Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(me): add some resources for paymentMean, billDebt and paymentMehtod
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisay committed Jun 20, 2018
1 parent 6a8d760 commit 68a0a49
Show file tree
Hide file tree
Showing 14 changed files with 246 additions and 10 deletions.
122 changes: 122 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -7267,6 +7267,54 @@ angular.module("ovh-api-services").service("OvhApiMeAvailableAutomaticPaymentMea
});
}]);

angular.module("ovh-api-services").service("OvhApiMeBillDebt", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeBillDebtV6");
},
Operation: function () {
return $injector.get("OvhApiMeBillDebtOperation");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiMeBillDebtV6", ["$resource", function ($resource) {
"use strict";

return $resource("/me/bill/:billId/debt", {
billId: "@billId"
}, {
pay: {
url: "/me/bill/:billId/debt/pay",
method: "POST"
}
});
}]);

angular.module("ovh-api-services").service("OvhApiMeBillDebtOperation", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeBillDebtOperationV6");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiMeBillDebtOperationV6", ["$resource", function ($resource) {
"use strict";

return $resource("/me/bill/:billId/debt/operation/:operationId", {
billId: "@billId",
operationId: "@operationId"
}, {
associatedObject: {
url: "/me/bill/:billId/debt/operation/:operationId/associatedObject",
method: "GET"
}
});
}]);

angular.module("ovh-api-services").service("OvhApiMeBillDetails", ["$injector", function ($injector) {
"use strict";

Expand Down Expand Up @@ -7309,8 +7357,14 @@ angular.module("ovh-api-services").service("OvhApiMeBill", ["$injector", functio
v6: function () {
return $injector.get("OvhApiMeBillV6");
},
v7: function () {
return $injector.get("OvhApiMeBillV7");
},
Details: function () {
return $injector.get("OvhApiMeBillDetails");
},
Debt: function () {
return $injector.get("OvhApiMeBillDebt");
}
};
}]);
Expand All @@ -7335,6 +7389,20 @@ angular.module("ovh-api-services").service("OvhApiMeBillV6", ["$resource", "$cac
return userBillResource;
}]);

angular.module("ovh-api-services").service("OvhApiMeBillV7", ["apiv7", function (apiv7) {
"use strict";

return apiv7("/me/bill/:billId", {
billId: "@billId"
}, {
debt: {
url: "/me/bill/:billId/debt",
method: "GET"
}
});

}]);

angular.module("ovh-api-services").service("OvhApiMeBillingInvoicesByPostalMail", ["$injector", function ($injector) {
"use strict";

Expand Down Expand Up @@ -7922,6 +7990,9 @@ angular.module("ovh-api-services").service("OvhApiMe", ["$injector", function ($
PaymentMean: function () {
return $injector.get("OvhApiMePaymentMean");
},
PaymentMethod: function () {
return $injector.get("OvhApiMePaymentMethod");
},
AvailableAutomaticPaymentMeans: function () {
return $injector.get("OvhApiMeAvailableAutomaticPaymentMeans");
},
Expand Down Expand Up @@ -8244,12 +8315,43 @@ angular.module("ovh-api-services").service("OvhApiMePaymentMeanCreditCardV6", ["
return resource;
}]);

angular.module("ovh-api-services").service("OvhApiMePaymentMeanDeferredPaymentAccount", ["$injector", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiMePaymentMeanDeferredPaymentAccountV6");
}
};

}]);

angular.module("ovh-api-services").service("OvhApiMePaymentMeanDeferredPaymentAccountV6", ["$resource", "$q", function ($resource, $q) {
"use strict";

return $resource("/me/paymentMean/deferredPaymentAccount/:id", {
id: "@id"
});
}]);

angular.module("ovh-api-services").service("OvhApiMePaymentMean", ["$injector", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiMePaymentMeanV6");
},
BankAccount: function () {
return $injector.get("OvhApiMePaymentMeanBankAccount");
},
CreditCard: function () {
return $injector.get("OvhApiMePaymentMeanCreditCard");
},
DeferredPaymentAccount: function () {
return $injector.get("OvhApiMePaymentMeanDeferredPaymentAccount");
},
Paypal: function () {
return $injector.get("OvhApiMePaymentMeanPaypal");
}
};

Expand Down Expand Up @@ -8324,6 +8426,26 @@ angular.module("ovh-api-services").service("OvhApiMePaymentMeanPaypalV6", ["$res
return resource;
}]);

angular.module("ovh-api-services").service("OvhApiMePaymentMethod", ["$injector", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiMePaymentMethodV6");
}
};

}]);

angular.module("ovh-api-services").service("OvhApiMePaymentMethodV6", ["$resource", function ($resource) {
"use strict";

return $resource("/me/paymentMethod/:id", {
id: "@id"
});

}]);

angular.module("ovh-api-services").service("OvhApiMeSshKey", ["$injector", function ($injector) {
"use strict";

Expand Down
21 changes: 11 additions & 10 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/me/bill/debt/me-bill-debt.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module("ovh-api-services").service("OvhApiMeBillDebt", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeBillDebtV6");
},
Operation: function () {
return $injector.get("OvhApiMeBillDebtOperation");
}
};
});
12 changes: 12 additions & 0 deletions src/me/bill/debt/me-bill-debt.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
angular.module("ovh-api-services").service("OvhApiMeBillDebtV6", function ($resource) {
"use strict";

return $resource("/me/bill/:billId/debt", {
billId: "@billId"
}, {
pay: {
url: "/me/bill/:billId/debt/pay",
method: "POST"
}
});
});
8 changes: 8 additions & 0 deletions src/me/bill/debt/operation/me-bill-debt-operation.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiMeBillDebtOperation", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeBillDebtOperationV6");
}
};
});
13 changes: 13 additions & 0 deletions src/me/bill/debt/operation/me-bill-debt-operation.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
angular.module("ovh-api-services").service("OvhApiMeBillDebtOperationV6", function ($resource) {
"use strict";

return $resource("/me/bill/:billId/debt/operation/:operationId", {
billId: "@billId",
operationId: "@operationId"
}, {
associatedObject: {
url: "/me/bill/:billId/debt/operation/:operationId/associatedObject",
method: "GET"
}
});
});
6 changes: 6 additions & 0 deletions src/me/bill/me-bill.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ angular.module("ovh-api-services").service("OvhApiMeBill", function ($injector)
v6: function () {
return $injector.get("OvhApiMeBillV6");
},
v7: function () {
return $injector.get("OvhApiMeBillV7");
},
Details: function () {
return $injector.get("OvhApiMeBillDetails");
},
Debt: function () {
return $injector.get("OvhApiMeBillDebt");
}
};
});
13 changes: 13 additions & 0 deletions src/me/bill/me-bill.v7.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
angular.module("ovh-api-services").service("OvhApiMeBillV7", function (apiv7) {
"use strict";

return apiv7("/me/bill/:billId", {
billId: "@billId"
}, {
debt: {
url: "/me/bill/:billId/debt",
method: "GET"
}
});

});
3 changes: 3 additions & 0 deletions src/me/me.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ angular.module("ovh-api-services").service("OvhApiMe", function ($injector) {
PaymentMean: function () {
return $injector.get("OvhApiMePaymentMean");
},
PaymentMethod: function () {
return $injector.get("OvhApiMePaymentMethod");
},
AvailableAutomaticPaymentMeans: function () {
return $injector.get("OvhApiMeAvailableAutomaticPaymentMeans");
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular.module("ovh-api-services").service("OvhApiMePaymentMeanDeferredPaymentAccount", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiMePaymentMeanDeferredPaymentAccountV6");
}
};

});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
angular.module("ovh-api-services").service("OvhApiMePaymentMeanDeferredPaymentAccountV6", function ($resource, $q) {
"use strict";

return $resource("/me/paymentMean/deferredPaymentAccount/:id", {
id: "@id"
});
});
12 changes: 12 additions & 0 deletions src/me/paymentMean/me-paymentMean.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ angular.module("ovh-api-services").service("OvhApiMePaymentMean", function ($inj
return {
v6: function () {
return $injector.get("OvhApiMePaymentMeanV6");
},
BankAccount: function () {
return $injector.get("OvhApiMePaymentMeanBankAccount");
},
CreditCard: function () {
return $injector.get("OvhApiMePaymentMeanCreditCard");
},
DeferredPaymentAccount: function () {
return $injector.get("OvhApiMePaymentMeanDeferredPaymentAccount");
},
Paypal: function () {
return $injector.get("OvhApiMePaymentMeanPaypal");
}
};

Expand Down
10 changes: 10 additions & 0 deletions src/me/paymentMehtod/me-paymentMethod.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular.module("ovh-api-services").service("OvhApiMePaymentMethod", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiMePaymentMethodV6");
}
};

});
8 changes: 8 additions & 0 deletions src/me/paymentMehtod/me-paymentMethod.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiMePaymentMethodV6", function ($resource) {
"use strict";

return $resource("/me/paymentMethod/:id", {
id: "@id"
});

});

0 comments on commit 68a0a49

Please sign in to comment.