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

Commit

Permalink
feat(billing): add aapi calls
Browse files Browse the repository at this point in the history
  • Loading branch information
marie-j authored and lizardK committed Jul 22, 2019
1 parent 6e62c76 commit ccf0e6c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/billing/autorenew/autorenew.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular.module("ovh-api-services").service("OvhApiBillingAutorenew", function ($injector) {
"use strict";

return {
Services: function () {
return $injector.get("OvhApiBillingAutorenewServices");
}
};

});
18 changes: 18 additions & 0 deletions src/billing/autorenew/services/services.aapi.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
angular.module("ovh-api-services").service("OvhApiBillingAutorenewServicesAapi", function ($resource) {
"use strict";

var vpsResource = $resource("/sws/billing/autorenew/services", {
}, {
query: {
method: "GET",
serviceType: "aapi"
},
put: {
url: "/sws/billing/autorenew/services/update",
method: "PUT",
serviceType: "aapi"
}
});

return vpsResource;
});
10 changes: 10 additions & 0 deletions src/billing/autorenew/services/services.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular.module("ovh-api-services").service("OvhApiBillingAutorenewServices", function ($injector) {
"use strict";

return {
Aapi: function () {
return $injector.get("OvhApiBillingAutorenewServicesAapi");
}
};

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

return {
Autorenew: function () {
return $injector.get("OvhApiBillingAutorenew");
}
};

});

0 comments on commit ccf0e6c

Please sign in to comment.