mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #26086 from alexplumb/master
Add amount_returned support to IOrder in @types/stripe
This commit is contained in:
Vendored
+6
@@ -2306,6 +2306,12 @@ declare namespace Stripe {
|
||||
* currency) representing the total amount for the order.
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a 0-decimal
|
||||
* currency) representing the total amount returned for the order thus far.
|
||||
*/
|
||||
amount_returned: number;
|
||||
|
||||
/**
|
||||
* ID of the Connect Application that created the order.
|
||||
|
||||
@@ -798,7 +798,10 @@ stripe.accounts.createExternalAccount("", { external_account: "tok_15V2YhEe31JkL
|
||||
|
||||
//#region Orders tests
|
||||
// ##################################################################################
|
||||
|
||||
stripe.orders.retrieve("or_1C8XKwEe31JkLCeQHg0jcisf", function (err, order) {
|
||||
// asynchronously called
|
||||
var amount_returned: number = order.amount_returned;
|
||||
});
|
||||
|
||||
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user