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

Commit

Permalink
feat(me.voucherAccount): add api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisay committed Apr 19, 2019
1 parent 3f93667 commit f407688
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 10 deletions.
43 changes: 43 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -10620,6 +10620,9 @@ angular.module("ovh-api-services").service("OvhApiMe", ["$injector", function ($
},
Payment: function () {
return $injector.get("OvhApiMePayment");
},
VoucherAccount: function () {
return $injector.get("OvhApiMeVoucherAccount");
}
};
}]);
Expand Down Expand Up @@ -11376,6 +11379,46 @@ angular.module("ovh-api-services").service("OvhApiMeVipStatusV6", ["$injector",
return req;
}]);

angular.module("ovh-api-services").service("OvhApiMeVoucherAccount", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeVoucherAccountV6");
},
Movements: function () {
return $injector.get("OvhApiMeVoucherAccountMovements");
}
};
}]);

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

return $resource("/me/voucherAccount/:voucherAccountId", {
voucherAccountId: "@voucherAccountId"
});

}]);

angular.module("ovh-api-services").service("OvhApiMeVoucherAccountMovements", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeVoucherAccountMovementsV6");
}
};
}]);

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

return $resource("/me/voucherAccount/:voucherAccountId/movements/:movementId", {
voucherAccountId: "@voucherAccountId",
movementId: "@movementId"
});

}]);

angular
.module("ovh-api-services")
.service("OvhApiMetrics", ["$injector", function ($injector) {
Expand Down
20 changes: 10 additions & 10 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/me/me.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ angular.module("ovh-api-services").service("OvhApiMe", function ($injector) {
},
Payment: function () {
return $injector.get("OvhApiMePayment");
},
VoucherAccount: function () {
return $injector.get("OvhApiMeVoucherAccount");
}
};
});
11 changes: 11 additions & 0 deletions src/me/voucherAccount/me-voucherAccount.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module("ovh-api-services").service("OvhApiMeVoucherAccount", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeVoucherAccountV6");
},
Movements: function () {
return $injector.get("OvhApiMeVoucherAccountMovements");
}
};
});
8 changes: 8 additions & 0 deletions src/me/voucherAccount/me-voucherAccount.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiMeVoucherAccountV6", function ($resource) {
"use strict";

return $resource("/me/voucherAccount/:voucherAccountId", {
voucherAccountId: "@voucherAccountId"
});

});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiMeVoucherAccountMovements", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiMeVoucherAccountMovementsV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiMeVoucherAccountMovementsV6", function ($resource) {
"use strict";

return $resource("/me/voucherAccount/:voucherAccountId/movements/:movementId", {
voucherAccountId: "@voucherAccountId",
movementId: "@movementId"
});

});

0 comments on commit f407688

Please sign in to comment.