diff --git a/src/billing/autorenew/autorenew.service.js b/src/billing/autorenew/autorenew.service.js new file mode 100644 index 00000000..912b01df --- /dev/null +++ b/src/billing/autorenew/autorenew.service.js @@ -0,0 +1,10 @@ +angular.module("ovh-api-services").service("OvhApiBillingAutorenew", function ($injector) { + "use strict"; + + return { + Services: function () { + return $injector.get("OvhApiBillingAutorenewServices"); + } + }; + +}); diff --git a/src/billing/autorenew/services/services.aapi.service.js b/src/billing/autorenew/services/services.aapi.service.js new file mode 100644 index 00000000..e4e5def6 --- /dev/null +++ b/src/billing/autorenew/services/services.aapi.service.js @@ -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; +}); diff --git a/src/billing/autorenew/services/services.service.js b/src/billing/autorenew/services/services.service.js new file mode 100644 index 00000000..543d5ac2 --- /dev/null +++ b/src/billing/autorenew/services/services.service.js @@ -0,0 +1,10 @@ +angular.module("ovh-api-services").service("OvhApiBillingAutorenewServices", function ($injector) { + "use strict"; + + return { + Aapi: function () { + return $injector.get("OvhApiBillingAutorenewServicesAapi"); + } + }; + +}); diff --git a/src/billing/billing.service.js b/src/billing/billing.service.js new file mode 100644 index 00000000..c3c7e5c6 --- /dev/null +++ b/src/billing/billing.service.js @@ -0,0 +1,10 @@ +angular.module("ovh-api-services").service("OvhApiBilling", function ($injector) { + "use strict"; + + return { + Autorenew: function () { + return $injector.get("OvhApiBillingAutorenew"); + } + }; + +});