This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(me): add some resources for paymentMean, billDebt and paymentMehtod
- Loading branch information
Showing
14 changed files
with
246 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
angular.module("ovh-api-services").service("OvhApiMeBillDebt", function ($injector) { | ||
"use strict"; | ||
return { | ||
v6: function () { | ||
return $injector.get("OvhApiMeBillDebtV6"); | ||
}, | ||
Operation: function () { | ||
return $injector.get("OvhApiMeBillDebtOperation"); | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
angular.module("ovh-api-services").service("OvhApiMeBillDebtV6", function ($resource) { | ||
"use strict"; | ||
|
||
return $resource("/me/bill/:billId/debt", { | ||
billId: "@billId" | ||
}, { | ||
pay: { | ||
url: "/me/bill/:billId/debt/pay", | ||
method: "POST" | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
angular.module("ovh-api-services").service("OvhApiMeBillDebtOperation", function ($injector) { | ||
"use strict"; | ||
return { | ||
v6: function () { | ||
return $injector.get("OvhApiMeBillDebtOperationV6"); | ||
} | ||
}; | ||
}); |
13 changes: 13 additions & 0 deletions
13
src/me/bill/debt/operation/me-bill-debt-operation.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
angular.module("ovh-api-services").service("OvhApiMeBillDebtOperationV6", function ($resource) { | ||
"use strict"; | ||
|
||
return $resource("/me/bill/:billId/debt/operation/:operationId", { | ||
billId: "@billId", | ||
operationId: "@operationId" | ||
}, { | ||
associatedObject: { | ||
url: "/me/bill/:billId/debt/operation/:operationId/associatedObject", | ||
method: "GET" | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
angular.module("ovh-api-services").service("OvhApiMeBillV7", function (apiv7) { | ||
"use strict"; | ||
|
||
return apiv7("/me/bill/:billId", { | ||
billId: "@billId" | ||
}, { | ||
debt: { | ||
url: "/me/bill/:billId/debt", | ||
method: "GET" | ||
} | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/me/paymentMean/deferredPaymentAccount/me-paymentMean-deferredPaymentAccount.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
angular.module("ovh-api-services").service("OvhApiMePaymentMeanDeferredPaymentAccount", function ($injector) { | ||
"use strict"; | ||
|
||
return { | ||
v6: function () { | ||
return $injector.get("OvhApiMePaymentMeanDeferredPaymentAccountV6"); | ||
} | ||
}; | ||
|
||
}); |
7 changes: 7 additions & 0 deletions
7
...me/paymentMean/deferredPaymentAccount/me-paymentMean-deferredPaymentAccount.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
angular.module("ovh-api-services").service("OvhApiMePaymentMeanDeferredPaymentAccountV6", function ($resource, $q) { | ||
"use strict"; | ||
|
||
return $resource("/me/paymentMean/deferredPaymentAccount/:id", { | ||
id: "@id" | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
angular.module("ovh-api-services").service("OvhApiMePaymentMethod", function ($injector) { | ||
"use strict"; | ||
|
||
return { | ||
v6: function () { | ||
return $injector.get("OvhApiMePaymentMethodV6"); | ||
} | ||
}; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
angular.module("ovh-api-services").service("OvhApiMePaymentMethodV6", function ($resource) { | ||
"use strict"; | ||
|
||
return $resource("/me/paymentMethod/:id", { | ||
id: "@id" | ||
}); | ||
|
||
}); |