Merge pull request #26086 from alexplumb/master

Add amount_returned support to IOrder in @types/stripe
This commit is contained in:
Benjamin Lichtman
2018-05-31 10:23:23 -07:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -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.
+4 -1
View File
@@ -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