stripe 17.4.0-beta.1 → 17.4.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +78 -36
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  5. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  6. package/cjs/resources/PaymentRecords.js +29 -0
  7. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  8. package/cjs/resources.js +28 -6
  9. package/cjs/stripe.core.js +1 -1
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  12. package/esm/resources/PaymentAttemptRecords.js +14 -0
  13. package/esm/resources/PaymentRecords.js +26 -0
  14. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  15. package/esm/resources.js +22 -1
  16. package/esm/stripe.core.js +1 -1
  17. package/package.json +1 -1
  18. package/types/AccountSessions.d.ts +5 -5
  19. package/types/AccountSessionsResource.d.ts +29 -6
  20. package/types/Accounts.d.ts +39 -5
  21. package/types/AccountsResource.d.ts +15 -0
  22. package/types/Billing/CreditBalanceSummaryResource.d.ts +1 -1
  23. package/types/Billing/CreditGrants.d.ts +5 -6
  24. package/types/Billing/CreditGrantsResource.d.ts +11 -11
  25. package/types/Billing/MeterEventsResource.d.ts +1 -1
  26. package/types/Capabilities.d.ts +1 -1
  27. package/types/Charges.d.ts +5 -5
  28. package/types/Checkout/Sessions.d.ts +60 -3
  29. package/types/Checkout/SessionsResource.d.ts +91 -5
  30. package/types/ConfirmationTokens.d.ts +4 -4
  31. package/types/CustomersResource.d.ts +4 -2
  32. package/types/Disputes.d.ts +1 -1
  33. package/types/EventTypes.d.ts +34 -0
  34. package/types/Events.d.ts +2 -0
  35. package/types/FileLinksResource.d.ts +1 -1
  36. package/types/Files.d.ts +1 -0
  37. package/types/FilesResource.d.ts +1 -0
  38. package/types/FundingInstructions.d.ts +49 -0
  39. package/types/Identity/VerificationReports.d.ts +1 -1
  40. package/types/Identity/VerificationSessions.d.ts +1 -1
  41. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  42. package/types/InvoicePayments.d.ts +10 -35
  43. package/types/Invoices.d.ts +9 -2
  44. package/types/InvoicesResource.d.ts +24 -11
  45. package/types/Issuing/Authorizations.d.ts +41 -1
  46. package/types/Issuing/Cardholders.d.ts +1 -1
  47. package/types/Issuing/Cards.d.ts +2 -2
  48. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  49. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  50. package/types/Orders.d.ts +2 -1
  51. package/types/OrdersResource.d.ts +4 -2
  52. package/types/PaymentAttemptRecords.d.ts +242 -0
  53. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  54. package/types/PaymentIntents.d.ts +52 -2
  55. package/types/PaymentIntentsResource.d.ts +9 -6
  56. package/types/PaymentLinks.d.ts +1 -1
  57. package/types/PaymentLinksResource.d.ts +10 -3
  58. package/types/PaymentMethods.d.ts +4 -4
  59. package/types/PaymentRecords.d.ts +259 -0
  60. package/types/PaymentRecordsResource.d.ts +455 -0
  61. package/types/Payouts.d.ts +17 -0
  62. package/types/Persons.d.ts +5 -0
  63. package/types/QuoteLines.d.ts +1 -1
  64. package/types/QuotePreviewInvoices.d.ts +9 -2
  65. package/types/QuotePreviewSubscriptionSchedules.d.ts +1 -1
  66. package/types/Refunds.d.ts +10 -0
  67. package/types/SetupAttempts.d.ts +2 -2
  68. package/types/SetupIntents.d.ts +2 -1
  69. package/types/SetupIntentsResource.d.ts +7 -4
  70. package/types/SubscriptionSchedules.d.ts +1 -1
  71. package/types/SubscriptionSchedulesResource.d.ts +2 -2
  72. package/types/Subscriptions.d.ts +4 -2
  73. package/types/SubscriptionsResource.d.ts +6 -2
  74. package/types/Tax/CalculationLineItems.d.ts +1 -0
  75. package/types/Tax/Calculations.d.ts +4 -1
  76. package/types/Tax/CalculationsResource.d.ts +2 -1
  77. package/types/Tax/Transactions.d.ts +3 -1
  78. package/types/TaxIds.d.ts +2 -1
  79. package/types/TaxIdsResource.d.ts +2 -1
  80. package/types/TaxRates.d.ts +1 -0
  81. package/types/TaxRatesResource.d.ts +2 -0
  82. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +37 -4
  83. package/types/TokensResource.d.ts +5 -0
  84. package/types/Treasury/InboundTransfers.d.ts +1 -1
  85. package/types/WebhookEndpointsResource.d.ts +6 -1
  86. package/types/index.d.ts +21 -4
  87. package/types/lib.d.ts +1 -1
  88. package/types/test/typescriptTest.ts +3 -3
  89. package/cjs/resources/V2/Billing.js +0 -18
  90. package/cjs/resources/V2/Core.js +0 -14
  91. package/cjs/resources/V2.js +0 -14
  92. package/esm/resources/V2/Billing.js +0 -15
  93. package/esm/resources/V2/Core.js +0 -11
  94. package/esm/resources/V2.js +0 -11
  95. package/types/V2/BillingResource.d.ts +0 -14
  96. package/types/V2/CoreResource.d.ts +0 -12
  97. package/types/V2Resource.d.ts +0 -10
@@ -0,0 +1,47 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ interface PaymentAttemptRecordRetrieveParams {
6
+ /**
7
+ * Specifies which fields in the response should be expanded.
8
+ */
9
+ expand?: Array<string>;
10
+ }
11
+
12
+ interface PaymentAttemptRecordListParams {
13
+ /**
14
+ * The ID of the Payment Record.
15
+ */
16
+ payment_record: string;
17
+
18
+ /**
19
+ * Specifies which fields in the response should be expanded.
20
+ */
21
+ expand?: Array<string>;
22
+ }
23
+
24
+ class PaymentAttemptRecordsResource {
25
+ /**
26
+ * Retrieves a Payment Attempt Record with the given ID
27
+ */
28
+ retrieve(
29
+ id: string,
30
+ params?: PaymentAttemptRecordRetrieveParams,
31
+ options?: RequestOptions
32
+ ): Promise<Stripe.Response<Stripe.PaymentAttemptRecord>>;
33
+ retrieve(
34
+ id: string,
35
+ options?: RequestOptions
36
+ ): Promise<Stripe.Response<Stripe.PaymentAttemptRecord>>;
37
+
38
+ /**
39
+ * List all the Payment Attempt Records attached to the specified Payment Record.
40
+ */
41
+ list(
42
+ params: PaymentAttemptRecordListParams,
43
+ options?: RequestOptions
44
+ ): ApiListPromise<Stripe.PaymentAttemptRecord>;
45
+ }
46
+ }
47
+ }
@@ -156,7 +156,7 @@ declare module 'stripe' {
156
156
  payment_method: string | Stripe.PaymentMethod | null;
157
157
 
158
158
  /**
159
- * Information about the payment method configuration used for this PaymentIntent.
159
+ * Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
160
160
  */
161
161
  payment_method_configuration_details: PaymentIntent.PaymentMethodConfigurationDetails | null;
162
162
 
@@ -808,11 +808,25 @@ declare module 'stripe' {
808
808
 
809
809
  namespace FinancialAddress {
810
810
  interface Aba {
811
+ account_holder_address: Stripe.Address;
812
+
813
+ /**
814
+ * The account holder name
815
+ */
816
+ account_holder_name: string;
817
+
811
818
  /**
812
819
  * The ABA account number
813
820
  */
814
821
  account_number: string;
815
822
 
823
+ /**
824
+ * The account type
825
+ */
826
+ account_type: string;
827
+
828
+ bank_address: Stripe.Address;
829
+
816
830
  /**
817
831
  * The bank name
818
832
  */
@@ -825,11 +839,15 @@ declare module 'stripe' {
825
839
  }
826
840
 
827
841
  interface Iban {
842
+ account_holder_address: Stripe.Address;
843
+
828
844
  /**
829
845
  * The name of the person or business that owns the bank account
830
846
  */
831
847
  account_holder_name: string;
832
848
 
849
+ bank_address: Stripe.Address;
850
+
833
851
  /**
834
852
  * The BIC/SWIFT code of the account.
835
853
  */
@@ -847,6 +865,8 @@ declare module 'stripe' {
847
865
  }
848
866
 
849
867
  interface SortCode {
868
+ account_holder_address: Stripe.Address;
869
+
850
870
  /**
851
871
  * The name of the person or business that owns the bank account
852
872
  */
@@ -857,6 +877,8 @@ declare module 'stripe' {
857
877
  */
858
878
  account_number: string;
859
879
 
880
+ bank_address: Stripe.Address;
881
+
860
882
  /**
861
883
  * The six-digit sort code
862
884
  */
@@ -864,6 +886,15 @@ declare module 'stripe' {
864
886
  }
865
887
 
866
888
  interface Spei {
889
+ account_holder_address: Stripe.Address;
890
+
891
+ /**
892
+ * The account holder name
893
+ */
894
+ account_holder_name: string;
895
+
896
+ bank_address: Stripe.Address;
897
+
867
898
  /**
868
899
  * The three-digit bank code
869
900
  */
@@ -891,11 +922,25 @@ declare module 'stripe' {
891
922
  | 'zengin';
892
923
 
893
924
  interface Swift {
925
+ account_holder_address: Stripe.Address;
926
+
927
+ /**
928
+ * The account holder name
929
+ */
930
+ account_holder_name: string;
931
+
894
932
  /**
895
933
  * The account number
896
934
  */
897
935
  account_number: string;
898
936
 
937
+ /**
938
+ * The account type
939
+ */
940
+ account_type: string;
941
+
942
+ bank_address: Stripe.Address;
943
+
899
944
  /**
900
945
  * The bank name
901
946
  */
@@ -916,6 +961,8 @@ declare module 'stripe' {
916
961
  | 'zengin';
917
962
 
918
963
  interface Zengin {
964
+ account_holder_address: Stripe.Address;
965
+
919
966
  /**
920
967
  * The account holder name
921
968
  */
@@ -931,6 +978,8 @@ declare module 'stripe' {
931
978
  */
932
979
  account_type: string | null;
933
980
 
981
+ bank_address: Stripe.Address;
982
+
934
983
  /**
935
984
  * The bank code of the account
936
985
  */
@@ -2145,6 +2194,7 @@ declare module 'stripe' {
2145
2194
  | 'girocard'
2146
2195
  | 'interac'
2147
2196
  | 'jcb'
2197
+ | 'link'
2148
2198
  | 'mastercard'
2149
2199
  | 'unionpay'
2150
2200
  | 'unknown'
@@ -2992,7 +3042,7 @@ declare module 'stripe' {
2992
3042
 
2993
3043
  interface Swish {
2994
3044
  /**
2995
- * The order ID displayed in the Swish app after the payment is authorized.
3045
+ * A reference for this payment to be displayed in the Swish app.
2996
3046
  */
2997
3047
  reference: string | null;
2998
3048
 
@@ -112,7 +112,7 @@ declare module 'stripe' {
112
112
  payment_method?: string;
113
113
 
114
114
  /**
115
- * The ID of the payment method configuration to use with this PaymentIntent.
115
+ * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
116
116
  */
117
117
  payment_method_configuration?: string;
118
118
 
@@ -129,7 +129,7 @@ declare module 'stripe' {
129
129
  payment_method_options?: PaymentIntentCreateParams.PaymentMethodOptions;
130
130
 
131
131
  /**
132
- * The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, it defaults to ["card"]. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
132
+ * The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
133
133
  */
134
134
  payment_method_types?: Array<string>;
135
135
 
@@ -2468,6 +2468,7 @@ declare module 'stripe' {
2468
2468
  | 'girocard'
2469
2469
  | 'interac'
2470
2470
  | 'jcb'
2471
+ | 'link'
2471
2472
  | 'mastercard'
2472
2473
  | 'unionpay'
2473
2474
  | 'unknown'
@@ -3569,7 +3570,7 @@ declare module 'stripe' {
3569
3570
 
3570
3571
  interface Swish {
3571
3572
  /**
3572
- * The order ID displayed in the Swish app after the payment is authorized.
3573
+ * A reference for this payment to be displayed in the Swish app.
3573
3574
  */
3574
3575
  reference?: Stripe.Emptyable<string>;
3575
3576
 
@@ -3920,7 +3921,7 @@ declare module 'stripe' {
3920
3921
  payment_method?: string;
3921
3922
 
3922
3923
  /**
3923
- * The ID of the payment method configuration to use with this PaymentIntent.
3924
+ * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
3924
3925
  */
3925
3926
  payment_method_configuration?: string;
3926
3927
 
@@ -6223,6 +6224,7 @@ declare module 'stripe' {
6223
6224
  | 'girocard'
6224
6225
  | 'interac'
6225
6226
  | 'jcb'
6227
+ | 'link'
6226
6228
  | 'mastercard'
6227
6229
  | 'unionpay'
6228
6230
  | 'unknown'
@@ -7324,7 +7326,7 @@ declare module 'stripe' {
7324
7326
 
7325
7327
  interface Swish {
7326
7328
  /**
7327
- * The order ID displayed in the Swish app after the payment is authorized.
7329
+ * A reference for this payment to be displayed in the Swish app.
7328
7330
  */
7329
7331
  reference?: Stripe.Emptyable<string>;
7330
7332
 
@@ -10733,6 +10735,7 @@ declare module 'stripe' {
10733
10735
  | 'girocard'
10734
10736
  | 'interac'
10735
10737
  | 'jcb'
10738
+ | 'link'
10736
10739
  | 'mastercard'
10737
10740
  | 'unionpay'
10738
10741
  | 'unknown'
@@ -11834,7 +11837,7 @@ declare module 'stripe' {
11834
11837
 
11835
11838
  interface Swish {
11836
11839
  /**
11837
- * The order ID displayed in the Swish app after the payment is authorized.
11840
+ * A reference for this payment to be displayed in the Swish app.
11838
11841
  */
11839
11842
  reference?: Stripe.Emptyable<string>;
11840
11843
 
@@ -865,7 +865,7 @@ declare module 'stripe' {
865
865
  shipping_rate: string | Stripe.ShippingRate;
866
866
  }
867
867
 
868
- type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
868
+ type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
869
869
 
870
870
  interface SubscriptionData {
871
871
  /**
@@ -665,7 +665,7 @@ declare module 'stripe' {
665
665
  interface ShippingAddressCollection {
666
666
  /**
667
667
  * An array of two-letter ISO country codes representing which countries Checkout should provide as options for
668
- * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.
668
+ * shipping locations.
669
669
  */
670
670
  allowed_countries: Array<ShippingAddressCollection.AllowedCountry>;
671
671
  }
@@ -918,7 +918,7 @@ declare module 'stripe' {
918
918
  shipping_rate?: string;
919
919
  }
920
920
 
921
- type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
921
+ type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
922
922
 
923
923
  interface SubscriptionData {
924
924
  /**
@@ -1134,6 +1134,11 @@ declare module 'stripe' {
1134
1134
  PaymentLinkUpdateParams.ShippingAddressCollection
1135
1135
  >;
1136
1136
 
1137
+ /**
1138
+ * Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`).
1139
+ */
1140
+ submit_type?: PaymentLinkUpdateParams.SubmitType;
1141
+
1137
1142
  /**
1138
1143
  * When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
1139
1144
  */
@@ -1589,7 +1594,7 @@ declare module 'stripe' {
1589
1594
  interface ShippingAddressCollection {
1590
1595
  /**
1591
1596
  * An array of two-letter ISO country codes representing which countries Checkout should provide as options for
1592
- * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.
1597
+ * shipping locations.
1593
1598
  */
1594
1599
  allowed_countries: Array<ShippingAddressCollection.AllowedCountry>;
1595
1600
  }
@@ -1835,6 +1840,8 @@ declare module 'stripe' {
1835
1840
  | 'ZZ';
1836
1841
  }
1837
1842
 
1843
+ type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
1844
+
1838
1845
  interface SubscriptionData {
1839
1846
  /**
1840
1847
  * All invoices will be billed using the specified settings.
@@ -271,7 +271,7 @@ declare module 'stripe' {
271
271
 
272
272
  interface Card {
273
273
  /**
274
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
274
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
275
275
  */
276
276
  brand: string;
277
277
 
@@ -406,7 +406,7 @@ declare module 'stripe' {
406
406
  amount_authorized: number | null;
407
407
 
408
408
  /**
409
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
409
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
410
410
  */
411
411
  brand: string | null;
412
412
 
@@ -488,7 +488,7 @@ declare module 'stripe' {
488
488
  last4: string | null;
489
489
 
490
490
  /**
491
- * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
491
+ * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
492
492
  */
493
493
  network: string | null;
494
494
 
@@ -731,7 +731,7 @@ declare module 'stripe' {
731
731
 
732
732
  interface CardPresent {
733
733
  /**
734
- * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
734
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
735
735
  */
736
736
  brand: string | null;
737
737
 
@@ -0,0 +1,259 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ /**
6
+ * A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe.
7
+ * For example, you can create a Payment Record to model a payment made on a different payment processor,
8
+ * in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or
9
+ * more Payment Attempt Records, which represent individual attempts made on a payment network.
10
+ */
11
+ interface PaymentRecord {
12
+ /**
13
+ * Unique identifier for the object.
14
+ */
15
+ id: string;
16
+
17
+ /**
18
+ * String representing the object's type. Objects of the same type share the same value.
19
+ */
20
+ object: 'payment_record';
21
+
22
+ /**
23
+ * A representation of an amount of money, consisting of an amount and a currency.
24
+ */
25
+ amount_canceled: PaymentRecord.AmountCanceled;
26
+
27
+ /**
28
+ * A representation of an amount of money, consisting of an amount and a currency.
29
+ */
30
+ amount_failed: PaymentRecord.AmountFailed;
31
+
32
+ /**
33
+ * A representation of an amount of money, consisting of an amount and a currency.
34
+ */
35
+ amount_guaranteed: PaymentRecord.AmountGuaranteed;
36
+
37
+ /**
38
+ * A representation of an amount of money, consisting of an amount and a currency.
39
+ */
40
+ amount_refunded: PaymentRecord.AmountRefunded;
41
+
42
+ /**
43
+ * A representation of an amount of money, consisting of an amount and a currency.
44
+ */
45
+ amount_requested: PaymentRecord.AmountRequested;
46
+
47
+ /**
48
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
49
+ */
50
+ created: number;
51
+
52
+ /**
53
+ * Customer information for this payment.
54
+ */
55
+ customer_details: PaymentRecord.CustomerDetails | null;
56
+
57
+ /**
58
+ * Indicates whether the customer was present in your checkout flow during this payment.
59
+ */
60
+ customer_presence: PaymentRecord.CustomerPresence | null;
61
+
62
+ /**
63
+ * An arbitrary string attached to the object. Often useful for displaying to users.
64
+ */
65
+ description: string | null;
66
+
67
+ /**
68
+ * ID of the latest Payment Attempt Record attached to this Payment Record.
69
+ */
70
+ latest_payment_attempt_record: string;
71
+
72
+ /**
73
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
74
+ */
75
+ livemode: boolean;
76
+
77
+ /**
78
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
79
+ */
80
+ metadata: Stripe.Metadata | null;
81
+
82
+ /**
83
+ * Information about the Payment Method debited for this payment.
84
+ */
85
+ payment_method_details: PaymentRecord.PaymentMethodDetails | null;
86
+
87
+ /**
88
+ * An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
89
+ */
90
+ payment_reference: string | null;
91
+
92
+ /**
93
+ * Shipping information for this payment.
94
+ */
95
+ shipping_details: PaymentRecord.ShippingDetails | null;
96
+ }
97
+
98
+ namespace PaymentRecord {
99
+ interface AmountCanceled {
100
+ /**
101
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
102
+ */
103
+ currency: string;
104
+
105
+ /**
106
+ * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
107
+ */
108
+ value: number;
109
+ }
110
+
111
+ interface AmountFailed {
112
+ /**
113
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
114
+ */
115
+ currency: string;
116
+
117
+ /**
118
+ * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
119
+ */
120
+ value: number;
121
+ }
122
+
123
+ interface AmountGuaranteed {
124
+ /**
125
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
126
+ */
127
+ currency: string;
128
+
129
+ /**
130
+ * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
131
+ */
132
+ value: number;
133
+ }
134
+
135
+ interface AmountRefunded {
136
+ /**
137
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
138
+ */
139
+ currency: string;
140
+
141
+ /**
142
+ * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
143
+ */
144
+ value: number;
145
+ }
146
+
147
+ interface AmountRequested {
148
+ /**
149
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
150
+ */
151
+ currency: string;
152
+
153
+ /**
154
+ * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
155
+ */
156
+ value: number;
157
+ }
158
+
159
+ interface CustomerDetails {
160
+ /**
161
+ * ID of the Stripe Customer associated with this payment.
162
+ */
163
+ customer: string | null;
164
+
165
+ /**
166
+ * The customer's email address.
167
+ */
168
+ email: string | null;
169
+
170
+ /**
171
+ * The customer's name.
172
+ */
173
+ name: string | null;
174
+
175
+ /**
176
+ * The customer's phone number.
177
+ */
178
+ phone: string | null;
179
+ }
180
+
181
+ type CustomerPresence = 'off_session' | 'on_session';
182
+
183
+ interface PaymentMethodDetails {
184
+ /**
185
+ * The billing details associated with the method of payment.
186
+ */
187
+ billing_details: PaymentMethodDetails.BillingDetails | null;
188
+
189
+ /**
190
+ * Information about the custom (user-defined) payment method used to make this payment.
191
+ */
192
+ custom: PaymentMethodDetails.Custom | null;
193
+
194
+ /**
195
+ * ID of the Stripe PaymentMethod used to make this payment.
196
+ */
197
+ payment_method: string | null;
198
+
199
+ /**
200
+ * The type of Payment Method used for this payment attempt.
201
+ */
202
+ type: 'custom';
203
+ }
204
+
205
+ namespace PaymentMethodDetails {
206
+ interface BillingDetails {
207
+ /**
208
+ * A representation of a physical address.
209
+ */
210
+ address: Stripe.Address;
211
+
212
+ /**
213
+ * The billing email associated with the method of payment.
214
+ */
215
+ email: string | null;
216
+
217
+ /**
218
+ * The billing name associated with the method of payment.
219
+ */
220
+ name: string | null;
221
+
222
+ /**
223
+ * The billing phone number associated with the method of payment.
224
+ */
225
+ phone: string | null;
226
+ }
227
+
228
+ interface Custom {
229
+ /**
230
+ * Display name for the custom (user-defined) payment method type used to make this payment.
231
+ */
232
+ display_name: string;
233
+
234
+ /**
235
+ * The custom payment method type associated with this payment.
236
+ */
237
+ type: string | null;
238
+ }
239
+ }
240
+
241
+ interface ShippingDetails {
242
+ /**
243
+ * A representation of a physical address.
244
+ */
245
+ address: Stripe.Address;
246
+
247
+ /**
248
+ * The shipping recipient's name.
249
+ */
250
+ name: string | null;
251
+
252
+ /**
253
+ * The shipping recipient's phone number.
254
+ */
255
+ phone: string | null;
256
+ }
257
+ }
258
+ }
259
+ }