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

Commit

Permalink
feat(newAccount): add newAccount resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisay committed Jan 3, 2019
1 parent b505b6c commit af5a1f8
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 9 deletions.
16 changes: 16 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -10744,6 +10744,9 @@ angular.module("ovh-api-services").service("OvhApiNewAccountLegalFormV6", ["$res
angular.module("ovh-api-services").service("OvhApiNewAccount", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiNewAccountV6");
},
LegalForm: function () {
return $injector.get("OvhApiNewAccountLegalForm");
},
Expand All @@ -10753,6 +10756,19 @@ angular.module("ovh-api-services").service("OvhApiNewAccount", ["$injector", fun
};
}]);

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

return $resource("/newAccount", {}, {
rules: {
method: "POST",
url: "/newAccount/rules",
isArray: true
}
});

}]);

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

Expand Down
18 changes: 9 additions & 9 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/newAccount/newAccount.service.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
angular.module("ovh-api-services").service("OvhApiNewAccount", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiNewAccountV6");
},
LegalForm: function () {
return $injector.get("OvhApiNewAccountLegalForm");
},
Expand Down
12 changes: 12 additions & 0 deletions src/newAccount/newAccount.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
angular.module("ovh-api-services").service("OvhApiNewAccountV6", function ($resource) {
"use strict";

return $resource("/newAccount", {}, {
rules: {
method: "POST",
url: "/newAccount/rules",
isArray: true
}
});

});

0 comments on commit af5a1f8

Please sign in to comment.