From ccf0e6c778aadb7dee9c65a3c64f4e1add88ff3c Mon Sep 17 00:00:00 2001 From: Marie JONES Date: Mon, 22 Jul 2019 15:39:39 +0200 Subject: [PATCH] feat(billing): add aapi calls --- src/billing/autorenew/autorenew.service.js | 10 ++++++++++ .../services/services.aapi.service.js | 18 ++++++++++++++++++ .../autorenew/services/services.service.js | 10 ++++++++++ src/billing/billing.service.js | 10 ++++++++++ 4 files changed, 48 insertions(+) create mode 100644 src/billing/autorenew/autorenew.service.js create mode 100644 src/billing/autorenew/services/services.aapi.service.js create mode 100644 src/billing/autorenew/services/services.service.js create mode 100644 src/billing/billing.service.js 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"); + } + }; + +});