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 customerBalance and requestDeposit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisay committed Apr 18, 2018
1 parent 763fbf4 commit d37b1cb
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 9 deletions.
49 changes: 49 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -6675,6 +6675,49 @@ angular.module("ovh-api-services").service("OvhApiMeContactV7", ["$resource", "$
return userContactResource;
}]);

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

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

}]);

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

return $resource("/me/customerBalance", {}, {
pay: {
method: "POST",
url: "/me/customerBalance/pay"
}
});

}]);

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

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

}]);

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

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

}]);

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

Expand Down Expand Up @@ -6888,6 +6931,12 @@ angular.module("ovh-api-services").service("OvhApiMe", ["$injector", function ($
},
Fax: function () {
return $injector.get("OvhApiMeFax");
},
CustomerBalance: function () {
return $injector.get("OvhApiMeCustomerBalance");
},
DepositRequest: function () {
return $injector.get("OvhApiMeDepositRequest");
}
};
}]);
Expand Down
18 changes: 9 additions & 9 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

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

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

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

return $resource("/me/customerBalance", {}, {
pay: {
method: "POST",
url: "/me/customerBalance/pay"
}
});

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

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

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

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

});
6 changes: 6 additions & 0 deletions src/me/me.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ angular.module("ovh-api-services").service("OvhApiMe", function ($injector) {
},
Fax: function () {
return $injector.get("OvhApiMeFax");
},
CustomerBalance: function () {
return $injector.get("OvhApiMeCustomerBalance");
},
DepositRequest: function () {
return $injector.get("OvhApiMeDepositRequest");
}
};
});

0 comments on commit d37b1cb

Please sign in to comment.