stripe 20.2.0-alpha.1 → 20.2.0-beta.1

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 (261) hide show
  1. package/CHANGELOG.md +45 -460
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +1 -9
  5. package/cjs/StripeEventNotificationHandler.js +118 -0
  6. package/cjs/resources/PaymentMethods.js +0 -4
  7. package/cjs/resources/Reserve/Holds.js +14 -0
  8. package/cjs/resources/{ProductCatalog/TrialOffers.js → Reserve/Plans.js} +3 -6
  9. package/cjs/resources/{SharedPayment/GrantedTokens.js → Reserve/Releases.js} +8 -3
  10. package/cjs/resources.js +11 -77
  11. package/cjs/stripe.core.js +5 -1
  12. package/esm/Error.js +0 -7
  13. package/esm/StripeEventNotificationHandler.js +114 -0
  14. package/esm/resources/PaymentMethods.js +0 -4
  15. package/esm/resources/Reserve/Holds.js +11 -0
  16. package/esm/resources/Reserve/Plans.js +6 -0
  17. package/esm/resources/Reserve/Releases.js +14 -0
  18. package/esm/resources.js +7 -72
  19. package/esm/stripe.core.js +5 -1
  20. package/package.json +1 -1
  21. package/types/AccountSessions.d.ts +0 -18
  22. package/types/AccountSessionsResource.d.ts +0 -21
  23. package/types/AccountsResource.d.ts +12 -136
  24. package/types/ApplicationFees.d.ts +1 -6
  25. package/types/Balance.d.ts +0 -82
  26. package/types/BalanceTransactions.d.ts +1 -2
  27. package/types/Billing/AlertTriggereds.d.ts +0 -15
  28. package/types/Billing/Alerts.d.ts +1 -116
  29. package/types/Billing/AlertsResource.d.ts +2 -149
  30. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -5
  31. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -7
  32. package/types/Billing/CreditBalanceSummary.d.ts +2 -118
  33. package/types/Billing/CreditBalanceSummaryResource.d.ts +0 -12
  34. package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
  35. package/types/Billing/CreditGrants.d.ts +1 -71
  36. package/types/Billing/CreditGrantsResource.d.ts +1 -32
  37. package/types/Billing/MeterEventSummaries.d.ts +0 -7
  38. package/types/Billing/Meters.d.ts +0 -5
  39. package/types/Billing/MetersResource.d.ts +0 -17
  40. package/types/Cards.d.ts +0 -14
  41. package/types/Charges.d.ts +0 -14
  42. package/types/Checkout/Sessions.d.ts +0 -58
  43. package/types/Checkout/SessionsResource.d.ts +0 -78
  44. package/types/ConfirmationTokens.d.ts +0 -14
  45. package/types/Discounts.d.ts +0 -10
  46. package/types/Errors.d.ts +0 -6
  47. package/types/Identity/VerificationReports.d.ts +0 -10
  48. package/types/Identity/VerificationReportsResource.d.ts +0 -5
  49. package/types/InvoiceItems.d.ts +3 -118
  50. package/types/InvoiceLineItems.d.ts +8 -127
  51. package/types/Invoices.d.ts +0 -13
  52. package/types/InvoicesResource.d.ts +0 -201
  53. package/types/Issuing/Cards.d.ts +0 -10
  54. package/types/Issuing/CardsResource.d.ts +0 -33
  55. package/types/PaymentIntents.d.ts +1 -45
  56. package/types/PaymentIntentsResource.d.ts +5 -126
  57. package/types/PaymentLinksResource.d.ts +0 -14
  58. package/types/PaymentMethods.d.ts +0 -14
  59. package/types/PaymentMethodsResource.d.ts +0 -20
  60. package/types/Persons.d.ts +0 -28
  61. package/types/ProductsResource.d.ts +0 -24
  62. package/types/QuoteLines.d.ts +0 -17
  63. package/types/QuotePreviewInvoices.d.ts +0 -13
  64. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -126
  65. package/types/Quotes.d.ts +0 -282
  66. package/types/QuotesResource.d.ts +44 -662
  67. package/types/Reserve/Holds.d.ts +104 -0
  68. package/types/Reserve/HoldsResource.d.ts +76 -0
  69. package/types/Reserve/Plans.d.ts +103 -0
  70. package/types/{SharedPayment/GrantedTokensResource.d.ts → Reserve/PlansResource.d.ts} +7 -7
  71. package/types/Reserve/Releases.d.ts +105 -0
  72. package/types/Reserve/ReleasesResource.d.ts +60 -0
  73. package/types/SetupIntents.d.ts +0 -21
  74. package/types/SetupIntentsResource.d.ts +0 -90
  75. package/types/SubscriptionItems.d.ts +0 -13
  76. package/types/SubscriptionItemsResource.d.ts +0 -34
  77. package/types/SubscriptionSchedules.d.ts +0 -124
  78. package/types/SubscriptionSchedulesResource.d.ts +0 -238
  79. package/types/Subscriptions.d.ts +0 -22
  80. package/types/SubscriptionsResource.d.ts +0 -34
  81. package/types/TokensResource.d.ts +0 -68
  82. package/types/Transfers.d.ts +0 -4
  83. package/types/TransfersResource.d.ts +0 -2
  84. package/types/V2/Billing/Cadences.d.ts +0 -45
  85. package/types/V2/Billing/CadencesResource.d.ts +3 -32
  86. package/types/V2/Core/AccountTokensResource.d.ts +0 -245
  87. package/types/V2/Core/Accounts.d.ts +1 -1473
  88. package/types/V2/Core/AccountsResource.d.ts +0 -1644
  89. package/types/V2/Core/EventTypes.d.ts +702 -4551
  90. package/types/V2/Core/Events.d.ts +0 -61
  91. package/types/V2/Core/EventsResource.d.ts +1 -11
  92. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -21
  93. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -21
  94. package/types/V2/EventMisc.d.ts +37 -0
  95. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +1 -31
  96. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -7
  97. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +1 -4
  98. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -18
  99. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -8
  100. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -7
  101. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -12
  102. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -12
  103. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -34
  104. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -5
  105. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -5
  106. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -62
  107. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -34
  108. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -61
  109. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +1 -6
  110. package/types/WebhookEndpointsResource.d.ts +2 -1
  111. package/types/Webhooks.d.ts +0 -2
  112. package/types/index.d.ts +25 -122
  113. package/types/test/typescriptTest.ts +27 -0
  114. package/cjs/resources/BalanceTransfers.js +0 -9
  115. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +0 -28
  116. package/cjs/resources/Identity/BlocklistEntries.js +0 -25
  117. package/cjs/resources/Issuing/Programs.js +0 -22
  118. package/cjs/resources/Radar/AccountEvaluations.js +0 -20
  119. package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +0 -16
  120. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -16
  121. package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
  122. package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
  123. package/cjs/resources/V2/Billing/Intents.js +0 -36
  124. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
  125. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
  126. package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
  127. package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
  128. package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
  129. package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -12
  130. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -26
  131. package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
  132. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
  133. package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
  134. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
  135. package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
  136. package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
  137. package/cjs/resources/V2/Billing/RateCards.js +0 -29
  138. package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
  139. package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
  140. package/cjs/resources/V2/Iam/ApiKeys.js +0 -24
  141. package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +0 -21
  142. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
  143. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
  144. package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +0 -20
  145. package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +0 -33
  146. package/cjs/resources/V2/Reporting/ReportRuns.js +0 -13
  147. package/cjs/resources/V2/Reporting/Reports.js +0 -12
  148. package/cjs/resources/V2/Tax/ManualRules.js +0 -23
  149. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
  150. package/esm/resources/BalanceTransfers.js +0 -6
  151. package/esm/resources/DelegatedCheckout/RequestedSessions.js +0 -25
  152. package/esm/resources/Identity/BlocklistEntries.js +0 -22
  153. package/esm/resources/Issuing/Programs.js +0 -19
  154. package/esm/resources/ProductCatalog/TrialOffers.js +0 -9
  155. package/esm/resources/Radar/AccountEvaluations.js +0 -17
  156. package/esm/resources/SharedPayment/GrantedTokens.js +0 -9
  157. package/esm/resources/TestHelpers/Capital/FinancingOffers.js +0 -13
  158. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -13
  159. package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
  160. package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
  161. package/esm/resources/V2/Billing/Intents.js +0 -33
  162. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
  163. package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
  164. package/esm/resources/V2/Billing/LicenseFees.js +0 -24
  165. package/esm/resources/V2/Billing/LicensedItems.js +0 -22
  166. package/esm/resources/V2/Billing/MeteredItems.js +0 -19
  167. package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -9
  168. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -23
  169. package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
  170. package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
  171. package/esm/resources/V2/Billing/PricingPlans.js +0 -26
  172. package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
  173. package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
  174. package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
  175. package/esm/resources/V2/Billing/RateCards.js +0 -26
  176. package/esm/resources/V2/Billing/ServiceActions.js +0 -17
  177. package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
  178. package/esm/resources/V2/Iam/ApiKeys.js +0 -21
  179. package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +0 -18
  180. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
  181. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
  182. package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +0 -17
  183. package/esm/resources/V2/Payments/SettlementAllocationIntents.js +0 -30
  184. package/esm/resources/V2/Reporting/ReportRuns.js +0 -10
  185. package/esm/resources/V2/Reporting/Reports.js +0 -9
  186. package/esm/resources/V2/Tax/ManualRules.js +0 -20
  187. package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
  188. package/types/BalanceTransfers.d.ts +0 -122
  189. package/types/BalanceTransfersResource.d.ts +0 -87
  190. package/types/DelegatedCheckout/RequestedSessions.d.ts +0 -465
  191. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +0 -701
  192. package/types/Identity/BlocklistEntries.d.ts +0 -78
  193. package/types/Identity/BlocklistEntriesResource.d.ts +0 -146
  194. package/types/Issuing/Programs.d.ts +0 -42
  195. package/types/Issuing/ProgramsResource.d.ts +0 -96
  196. package/types/PaymentMethodBalances.d.ts +0 -63
  197. package/types/ProductCatalog/TrialOffers.d.ts +0 -77
  198. package/types/ProductCatalog/TrialOffersResource.d.ts +0 -80
  199. package/types/Radar/AccountEvaluations.d.ts +0 -88
  200. package/types/Radar/AccountEvaluationsResource.d.ts +0 -148
  201. package/types/SharedPayment/GrantedTokens.d.ts +0 -102
  202. package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +0 -130
  203. package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +0 -87
  204. package/types/TransitBalances.d.ts +0 -40
  205. package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
  206. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
  207. package/types/V2/Billing/IntentActions.d.ts +0 -564
  208. package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
  209. package/types/V2/Billing/Intents.d.ts +0 -117
  210. package/types/V2/Billing/IntentsResource.d.ts +0 -674
  211. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
  212. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
  213. package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
  214. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
  215. package/types/V2/Billing/LicenseFees.d.ts +0 -164
  216. package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
  217. package/types/V2/Billing/LicensedItems.d.ts +0 -73
  218. package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
  219. package/types/V2/Billing/MeteredItems.d.ts +0 -101
  220. package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
  221. package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
  222. package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +0 -57
  223. package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +0 -40
  224. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
  225. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -120
  226. package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
  227. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
  228. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
  229. package/types/V2/Billing/PricingPlans.d.ts +0 -84
  230. package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
  231. package/types/V2/Billing/RateCardRates.d.ts +0 -144
  232. package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
  233. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
  234. package/types/V2/Billing/RateCardVersions.d.ts +0 -39
  235. package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
  236. package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
  237. package/types/V2/Billing/RateCards.d.ts +0 -98
  238. package/types/V2/Billing/RateCardsResource.d.ts +0 -162
  239. package/types/V2/Billing/ServiceActions.d.ts +0 -298
  240. package/types/V2/Billing/ServiceActionsResource.d.ts +0 -394
  241. package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
  242. package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
  243. package/types/V2/Iam/ApiKeys.d.ts +0 -154
  244. package/types/V2/Iam/ApiKeysResource.d.ts +0 -215
  245. package/types/V2/MoneyManagement/CurrencyConversions.d.ts +0 -98
  246. package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +0 -141
  247. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
  248. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
  249. package/types/V2/Payments/OffSessionPayments.d.ts +0 -249
  250. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -306
  251. package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +0 -111
  252. package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +0 -126
  253. package/types/V2/Payments/SettlementAllocationIntents.d.ts +0 -122
  254. package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +0 -168
  255. package/types/V2/Reporting/ReportRuns.d.ts +0 -154
  256. package/types/V2/Reporting/ReportRunsResource.d.ts +0 -75
  257. package/types/V2/Reporting/Reports.d.ts +0 -120
  258. package/types/V2/Reporting/ReportsResource.d.ts +0 -30
  259. package/types/V2/Tax/ManualRules.d.ts +0 -142
  260. package/types/V2/Tax/ManualRulesResource.d.ts +0 -292
  261. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -49
@@ -1,78 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace Identity {
6
- /**
7
- * A BlocklistEntry represents an entry in our identity verification blocklist.
8
- * It helps prevent fraudulent users from repeatedly attempting verification with similar information.
9
- * When you create a BlocklistEntry, we store data from a specified VerificationReport,
10
- * such as document details or facial biometrics.
11
- * This allows us to compare future verification attempts against these entries.
12
- * If a match is found, we categorize the new verification as unverified.
13
- *
14
- * To learn more, see [Identity Verification Blocklist](https://docs.stripe.com/identity/review-tools#block-list)
15
- */
16
- interface BlocklistEntry {
17
- /**
18
- * Unique identifier for the object.
19
- */
20
- id: string;
21
-
22
- /**
23
- * String representing the object's type. Objects of the same type share the same value.
24
- */
25
- object: 'identity.blocklist_entry';
26
-
27
- /**
28
- * Time at which the object was created. Measured in seconds since the Unix epoch.
29
- */
30
- created: number;
31
-
32
- /**
33
- * Time at which you disabled the BlocklistEntry. Measured in seconds since the Unix epoch.
34
- */
35
- disabled_at: number | null;
36
-
37
- /**
38
- * Time at which the BlocklistEntry expires. Measured in seconds since the Unix epoch.
39
- */
40
- expires_at: number | null;
41
-
42
- /**
43
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
44
- */
45
- livemode: boolean;
46
-
47
- /**
48
- * The current status of the BlocklistEntry.
49
- */
50
- status: BlocklistEntry.Status;
51
-
52
- /**
53
- * The type of BlocklistEntry.
54
- */
55
- type: BlocklistEntry.Type;
56
-
57
- /**
58
- * The verification report the BlocklistEntry was created from.
59
- */
60
- verification_report: string | Stripe.Identity.VerificationReport | null;
61
-
62
- /**
63
- * The verification session the BlocklistEntry was created from.
64
- */
65
- verification_session:
66
- | string
67
- | Stripe.Identity.VerificationSession
68
- | null;
69
- }
70
-
71
- namespace BlocklistEntry {
72
- type Status = 'active' | 'disabled' | 'redacted';
73
-
74
- type Type = 'document' | 'selfie';
75
- }
76
- }
77
- }
78
- }
@@ -1,146 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace Identity {
6
- interface BlocklistEntryCreateParams {
7
- /**
8
- * The type of blocklist entry to be created.
9
- */
10
- entry_type: BlocklistEntryCreateParams.EntryType;
11
-
12
- /**
13
- * The identifier of the VerificationReport to create the BlocklistEntry from.
14
- */
15
- verification_report: string;
16
-
17
- /**
18
- * When true, the created BlocklistEntry will be used to retroactively unverify matching verifications.
19
- */
20
- check_existing_verifications?: boolean;
21
-
22
- /**
23
- * Specifies which fields in the response should be expanded.
24
- */
25
- expand?: Array<string>;
26
- }
27
-
28
- namespace BlocklistEntryCreateParams {
29
- type EntryType = 'document' | 'selfie';
30
- }
31
-
32
- interface BlocklistEntryRetrieveParams {
33
- /**
34
- * Specifies which fields in the response should be expanded.
35
- */
36
- expand?: Array<string>;
37
- }
38
-
39
- interface BlocklistEntryListParams extends PaginationParams {
40
- /**
41
- * Only return BlocklistEntries that were created during the given date interval.
42
- */
43
- created?: Stripe.RangeQueryParam | number;
44
-
45
- /**
46
- * Specifies which fields in the response should be expanded.
47
- */
48
- expand?: Array<string>;
49
-
50
- /**
51
- * Only return blocklist entries with the specified status.
52
- */
53
- status?: BlocklistEntryListParams.Status;
54
-
55
- /**
56
- * Only return blocklist entries of the specified type.
57
- */
58
- type?: BlocklistEntryListParams.Type;
59
-
60
- /**
61
- * Only return blocklist entries created from this verification report.
62
- */
63
- verification_report?: string;
64
- }
65
-
66
- namespace BlocklistEntryListParams {
67
- type Status = 'active' | 'disabled' | 'redacted';
68
-
69
- type Type = 'document' | 'selfie';
70
- }
71
-
72
- interface BlocklistEntryDisableParams {
73
- /**
74
- * Specifies which fields in the response should be expanded.
75
- */
76
- expand?: Array<string>;
77
- }
78
-
79
- class BlocklistEntriesResource {
80
- /**
81
- * Creates a BlocklistEntry object from a verification report.
82
- *
83
- * A blocklist entry prevents future identity verifications that match the same identity information.
84
- * You can create blocklist entries from verification reports that contain document extracted data
85
- * or a selfie.
86
- *
87
- * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#add-a-blocklist-entry)
88
- */
89
- create(
90
- params: BlocklistEntryCreateParams,
91
- options?: RequestOptions
92
- ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
93
-
94
- /**
95
- * Retrieves a BlocklistEntry object by its identifier.
96
- *
97
- * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
98
- */
99
- retrieve(
100
- id: string,
101
- params?: BlocklistEntryRetrieveParams,
102
- options?: RequestOptions
103
- ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
104
- retrieve(
105
- id: string,
106
- options?: RequestOptions
107
- ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
108
-
109
- /**
110
- * Returns a list of BlocklistEntry objects associated with your account.
111
- *
112
- * The blocklist entries are returned sorted by creation date, with the most recently created
113
- * entries appearing first.
114
- *
115
- * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
116
- */
117
- list(
118
- params?: BlocklistEntryListParams,
119
- options?: RequestOptions
120
- ): ApiListPromise<Stripe.Identity.BlocklistEntry>;
121
- list(
122
- options?: RequestOptions
123
- ): ApiListPromise<Stripe.Identity.BlocklistEntry>;
124
-
125
- /**
126
- * Disables a BlocklistEntry object.
127
- *
128
- * After a BlocklistEntry is disabled, it will no longer block future verifications that match
129
- * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
130
- * must be created using the same verification report.
131
- *
132
- * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
133
- */
134
- disable(
135
- id: string,
136
- params?: BlocklistEntryDisableParams,
137
- options?: RequestOptions
138
- ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
139
- disable(
140
- id: string,
141
- options?: RequestOptions
142
- ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
143
- }
144
- }
145
- }
146
- }
@@ -1,42 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace Issuing {
6
- /**
7
- * An Issuing `Program` represents a card program that the user has access to.
8
- */
9
- interface Program {
10
- /**
11
- * Unique identifier for the object.
12
- */
13
- id: string;
14
-
15
- /**
16
- * String representing the object's type. Objects of the same type share the same value.
17
- */
18
- object: 'issuing.program';
19
-
20
- /**
21
- * Time at which the object was created. Measured in seconds since the Unix epoch.
22
- */
23
- created: number;
24
-
25
- /**
26
- * Whether or not this is the "default" issuing program new cards are created on. Only one active `is_default` program at the same time.
27
- */
28
- is_default: boolean;
29
-
30
- /**
31
- * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
32
- */
33
- metadata: Stripe.Metadata;
34
-
35
- /**
36
- * The platform's Issuing Program for which this program is associated.
37
- */
38
- platform_program: string | null;
39
- }
40
- }
41
- }
42
- }
@@ -1,96 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace Issuing {
6
- interface ProgramCreateParams {
7
- /**
8
- * The program to use as the parent for the new program to create.
9
- */
10
- platform_program: string;
11
-
12
- /**
13
- * Specifies which fields in the response should be expanded.
14
- */
15
- expand?: Array<string>;
16
-
17
- /**
18
- * If true, makes the specified program the default for the given account.
19
- */
20
- is_default?: boolean;
21
- }
22
-
23
- interface ProgramRetrieveParams {
24
- /**
25
- * Specifies which fields in the response should be expanded.
26
- */
27
- expand?: Array<string>;
28
- }
29
-
30
- interface ProgramUpdateParams {
31
- /**
32
- * Specifies which fields in the response should be expanded.
33
- */
34
- expand?: Array<string>;
35
-
36
- /**
37
- * If true, makes the specified program the default.
38
- */
39
- is_default?: boolean;
40
-
41
- /**
42
- * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
43
- */
44
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
45
- }
46
-
47
- interface ProgramListParams extends PaginationParams {
48
- /**
49
- * Specifies which fields in the response should be expanded.
50
- */
51
- expand?: Array<string>;
52
- }
53
-
54
- class ProgramsResource {
55
- /**
56
- * Create a Program object.
57
- */
58
- create(
59
- params: ProgramCreateParams,
60
- options?: RequestOptions
61
- ): Promise<Stripe.Response<Stripe.Issuing.Program>>;
62
-
63
- /**
64
- * Retrieves the program specified by the given id.
65
- */
66
- retrieve(
67
- id: string,
68
- params?: ProgramRetrieveParams,
69
- options?: RequestOptions
70
- ): Promise<Stripe.Response<Stripe.Issuing.Program>>;
71
- retrieve(
72
- id: string,
73
- options?: RequestOptions
74
- ): Promise<Stripe.Response<Stripe.Issuing.Program>>;
75
-
76
- /**
77
- * Updates a Program object.
78
- */
79
- update(
80
- id: string,
81
- params?: ProgramUpdateParams,
82
- options?: RequestOptions
83
- ): Promise<Stripe.Response<Stripe.Issuing.Program>>;
84
-
85
- /**
86
- * List all of the programs the given Issuing user has access to.
87
- */
88
- list(
89
- params?: ProgramListParams,
90
- options?: RequestOptions
91
- ): ApiListPromise<Stripe.Issuing.Program>;
92
- list(options?: RequestOptions): ApiListPromise<Stripe.Issuing.Program>;
93
- }
94
- }
95
- }
96
- }
@@ -1,63 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- /**
6
- * PaymentMethodBalance objects represent balances available on a payment method.
7
- * You can use v1/payment_methods/:id/check_balance to check the balance of a payment method.
8
- */
9
- interface PaymentMethodBalance {
10
- /**
11
- * String representing the object's type. Objects of the same type share the same value.
12
- */
13
- object: 'payment_method_balance';
14
-
15
- /**
16
- * The time at which the balance was calculated. Measured in seconds since the Unix epoch.
17
- */
18
- as_of: number;
19
-
20
- /**
21
- * BalanceEntry contain information about every individual balance type of a card.
22
- */
23
- balance: PaymentMethodBalance.Balance;
24
-
25
- /**
26
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
27
- */
28
- livemode: boolean;
29
- }
30
-
31
- namespace PaymentMethodBalance {
32
- interface Balance {
33
- /**
34
- * The available FR Meal Voucher balances.
35
- */
36
- fr_meal_voucher: Balance.FrMealVoucher | null;
37
- }
38
-
39
- namespace Balance {
40
- interface FrMealVoucher {
41
- /**
42
- * The hashes of balances and amounts for available balances.
43
- */
44
- available: Array<FrMealVoucher.Available> | null;
45
- }
46
-
47
- namespace FrMealVoucher {
48
- interface Available {
49
- /**
50
- * The amount of the balance.
51
- */
52
- amount: number;
53
-
54
- /**
55
- * The currency of the balance.
56
- */
57
- currency: string;
58
- }
59
- }
60
- }
61
- }
62
- }
63
- }
@@ -1,77 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace ProductCatalog {
6
- /**
7
- * Resource for the TrialOffer API, used to describe a subscription item's trial period settings.
8
- * Renders a TrialOffer object that describes the price, duration, end_behavior of a trial offer.
9
- */
10
- interface TrialOffer {
11
- /**
12
- * Unique identifier for the object.
13
- */
14
- id: string;
15
-
16
- /**
17
- * String representing the object's type. Objects of the same type share the same value.
18
- */
19
- object: 'product_catalog.trial_offer';
20
-
21
- duration: TrialOffer.Duration;
22
-
23
- end_behavior: TrialOffer.EndBehavior;
24
-
25
- /**
26
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
27
- */
28
- livemode: boolean;
29
-
30
- /**
31
- * The price during the trial offer.
32
- */
33
- price: string | Stripe.Price;
34
- }
35
-
36
- namespace TrialOffer {
37
- interface Duration {
38
- relative?: Duration.Relative;
39
-
40
- /**
41
- * The type of trial offer duration.
42
- */
43
- type: Duration.Type;
44
- }
45
-
46
- namespace Duration {
47
- interface Relative {
48
- /**
49
- * The number of iterations of the price's interval for this trial offer.
50
- */
51
- iterations: number;
52
- }
53
-
54
- type Type = 'relative' | 'timestamp';
55
- }
56
-
57
- interface EndBehavior {
58
- transition: EndBehavior.Transition;
59
-
60
- /**
61
- * The type of behavior when the trial offer ends.
62
- */
63
- type: 'transition';
64
- }
65
-
66
- namespace EndBehavior {
67
- interface Transition {
68
- /**
69
- * The new price to use at the end of the trial offer period.
70
- */
71
- price: string;
72
- }
73
- }
74
- }
75
- }
76
- }
77
- }
@@ -1,80 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace ProductCatalog {
6
- interface TrialOfferCreateParams {
7
- /**
8
- * Duration of one service period of the trial.
9
- */
10
- duration: TrialOfferCreateParams.Duration;
11
-
12
- /**
13
- * Define behavior that occurs at the end of the trial.
14
- */
15
- end_behavior: TrialOfferCreateParams.EndBehavior;
16
-
17
- /**
18
- * Price configuration during the trial period (amount, billing scheme, etc).
19
- */
20
- price: string;
21
-
22
- /**
23
- * Specifies which fields in the response should be expanded.
24
- */
25
- expand?: Array<string>;
26
- }
27
-
28
- namespace TrialOfferCreateParams {
29
- interface Duration {
30
- /**
31
- * The relative duration of the trial period computed as the number of recurring price intervals.
32
- */
33
- relative?: Duration.Relative;
34
-
35
- /**
36
- * Specifies how the trial offer duration is determined.
37
- */
38
- type: Duration.Type;
39
- }
40
-
41
- namespace Duration {
42
- interface Relative {
43
- /**
44
- * The number of recurring price's interval to apply for the trial period.
45
- */
46
- iterations: number;
47
- }
48
-
49
- type Type = 'relative' | 'timestamp';
50
- }
51
-
52
- interface EndBehavior {
53
- /**
54
- * The transition to apply when the trial offer ends.
55
- */
56
- transition: EndBehavior.Transition;
57
- }
58
-
59
- namespace EndBehavior {
60
- interface Transition {
61
- /**
62
- * The price to transition the recurring item to when the trial offer ends.
63
- */
64
- price: string;
65
- }
66
- }
67
- }
68
-
69
- class TrialOffersResource {
70
- /**
71
- * Creates a trial offer.
72
- */
73
- create(
74
- params: TrialOfferCreateParams,
75
- options?: RequestOptions
76
- ): Promise<Stripe.Response<Stripe.ProductCatalog.TrialOffer>>;
77
- }
78
- }
79
- }
80
- }
@@ -1,88 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace Radar {
6
- /**
7
- * Account Evaluation resource returned by the Radar Account Evaluations API.
8
- */
9
- interface AccountEvaluation {
10
- /**
11
- * Unique identifier for the object.
12
- */
13
- id: string;
14
-
15
- /**
16
- * String representing the object's type. Objects of the same type share the same value.
17
- */
18
- object: 'radar.account_evaluation';
19
-
20
- /**
21
- * Time at which the object was created. Measured in seconds since the Unix epoch.
22
- */
23
- created_at: number;
24
-
25
- /**
26
- * The ID of the Stripe customer the account evaluation is associated with.
27
- */
28
- customer: string;
29
-
30
- /**
31
- * The list of events that were reported for this Account Evaluation object via the report API.
32
- */
33
- events: Array<AccountEvaluation.Event> | null;
34
-
35
- /**
36
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
37
- */
38
- livemode: boolean;
39
-
40
- /**
41
- * A hash of signal objects providing Radar's evaluation for the lifecycle event.
42
- */
43
- signals: AccountEvaluation.Signals | null;
44
-
45
- /**
46
- * The type of evaluation returned, based on the user's request.
47
- */
48
- type: string;
49
- }
50
-
51
- namespace AccountEvaluation {
52
- interface Event {
53
- /**
54
- * Time at which the event occurred. Measured in seconds since the Unix epoch.
55
- */
56
- occurred_at: number;
57
-
58
- /**
59
- * The type of event that occurred.
60
- */
61
- type: string;
62
- }
63
-
64
- interface Signals {
65
- account_sharing?: Signals.AccountSharing;
66
-
67
- multi_accounting?: Signals.MultiAccounting;
68
- }
69
-
70
- namespace Signals {
71
- interface AccountSharing {
72
- /**
73
- * Score for this signal (float between 0.0-100.0).
74
- */
75
- score: number;
76
- }
77
-
78
- interface MultiAccounting {
79
- /**
80
- * Score for this signal (float between 0.0-100.0).
81
- */
82
- score: number;
83
- }
84
- }
85
- }
86
- }
87
- }
88
- }