diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 991d4a618a..cf7a1e3c02 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -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. diff --git a/types/stripe/stripe-tests.ts b/types/stripe/stripe-tests.ts index 91cfa0f50c..306ab0442a 100644 --- a/types/stripe/stripe-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -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