stripe 13.4.0.pre.beta.1 → 13.4.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (688) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/resources/account.rb +23 -745
  6. data/lib/stripe/resources/account_link.rb +0 -10
  7. data/lib/stripe/resources/account_notice.rb +0 -22
  8. data/lib/stripe/resources/account_session.rb +0 -125
  9. data/lib/stripe/resources/apple_pay_domain.rb +0 -10
  10. data/lib/stripe/resources/application.rb +0 -3
  11. data/lib/stripe/resources/application_fee.rb +0 -24
  12. data/lib/stripe/resources/application_fee_refund.rb +0 -7
  13. data/lib/stripe/resources/apps/secret.rb +0 -25
  14. data/lib/stripe/resources/balance.rb +0 -31
  15. data/lib/stripe/resources/balance_transaction.rb +0 -29
  16. data/lib/stripe/resources/bank_account.rb +0 -29
  17. data/lib/stripe/resources/billing/alert.rb +0 -22
  18. data/lib/stripe/resources/billing/alert_triggered.rb +0 -5
  19. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -12
  20. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -24
  21. data/lib/stripe/resources/billing/credit_grant.rb +0 -32
  22. data/lib/stripe/resources/billing/meter.rb +0 -25
  23. data/lib/stripe/resources/billing/meter_error_report.rb +0 -11
  24. data/lib/stripe/resources/billing/meter_event.rb +0 -10
  25. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -8
  26. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -6
  27. data/lib/stripe/resources/billing_portal/configuration.rb +0 -77
  28. data/lib/stripe/resources/billing_portal/session.rb +0 -42
  29. data/lib/stripe/resources/capability.rb +2 -29
  30. data/lib/stripe/resources/capital/financing_offer.rb +0 -33
  31. data/lib/stripe/resources/capital/financing_summary.rb +0 -13
  32. data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
  33. data/lib/stripe/resources/card.rb +2 -34
  34. data/lib/stripe/resources/cash_balance.rb +0 -5
  35. data/lib/stripe/resources/charge.rb +4 -665
  36. data/lib/stripe/resources/checkout/session.rb +4 -512
  37. data/lib/stripe/resources/climate/order.rb +0 -40
  38. data/lib/stripe/resources/climate/product.rb +0 -13
  39. data/lib/stripe/resources/climate/supplier.rb +0 -13
  40. data/lib/stripe/resources/confirmation_token.rb +2 -337
  41. data/lib/stripe/resources/connect_collection_transfer.rb +0 -5
  42. data/lib/stripe/resources/country_spec.rb +0 -13
  43. data/lib/stripe/resources/coupon.rb +0 -39
  44. data/lib/stripe/resources/credit_note.rb +0 -138
  45. data/lib/stripe/resources/credit_note_line_item.rb +0 -24
  46. data/lib/stripe/resources/customer.rb +1 -156
  47. data/lib/stripe/resources/customer_balance_transaction.rb +0 -12
  48. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -27
  49. data/lib/stripe/resources/customer_session.rb +0 -24
  50. data/lib/stripe/resources/discount.rb +0 -12
  51. data/lib/stripe/resources/dispute.rb +4 -152
  52. data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -8
  53. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -3
  54. data/lib/stripe/resources/entitlements/feature.rb +0 -17
  55. data/lib/stripe/resources/ephemeral_key.rb +0 -5
  56. data/lib/stripe/resources/event.rb +0 -27
  57. data/lib/stripe/resources/exchange_rate.rb +0 -5
  58. data/lib/stripe/resources/file.rb +0 -23
  59. data/lib/stripe/resources/file_link.rb +0 -22
  60. data/lib/stripe/resources/financial_connections/account.rb +0 -47
  61. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -3
  62. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -7
  63. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -3
  64. data/lib/stripe/resources/financial_connections/institution.rb +0 -13
  65. data/lib/stripe/resources/financial_connections/session.rb +0 -28
  66. data/lib/stripe/resources/financial_connections/transaction.rb +0 -21
  67. data/lib/stripe/resources/forwarding/request.rb +0 -31
  68. data/lib/stripe/resources/funding_instructions.rb +0 -107
  69. data/lib/stripe/resources/gift_cards/card.rb +0 -28
  70. data/lib/stripe/resources/gift_cards/transaction.rb +0 -32
  71. data/lib/stripe/resources/identity/verification_report.rb +0 -69
  72. data/lib/stripe/resources/identity/verification_session.rb +0 -69
  73. data/lib/stripe/resources/invoice.rb +6 -1276
  74. data/lib/stripe/resources/invoice_item.rb +0 -91
  75. data/lib/stripe/resources/invoice_line_item.rb +0 -76
  76. data/lib/stripe/resources/invoice_payment.rb +0 -16
  77. data/lib/stripe/resources/invoice_rendering_template.rb +0 -12
  78. data/lib/stripe/resources/issuing/authorization.rb +0 -199
  79. data/lib/stripe/resources/issuing/card.rb +0 -128
  80. data/lib/stripe/resources/issuing/cardholder.rb +0 -110
  81. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -82
  82. data/lib/stripe/resources/issuing/dispute.rb +0 -151
  83. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -14
  84. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -14
  85. data/lib/stripe/resources/issuing/personalization_design.rb +0 -48
  86. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  87. data/lib/stripe/resources/issuing/settlement.rb +0 -16
  88. data/lib/stripe/resources/issuing/token.rb +0 -46
  89. data/lib/stripe/resources/issuing/transaction.rb +0 -171
  90. data/lib/stripe/resources/line_item.rb +0 -23
  91. data/lib/stripe/resources/login_link.rb +0 -2
  92. data/lib/stripe/resources/mandate.rb +0 -45
  93. data/lib/stripe/resources/margin.rb +0 -19
  94. data/lib/stripe/resources/order.rb +3 -391
  95. data/lib/stripe/resources/payment_attempt_record.rb +0 -42
  96. data/lib/stripe/resources/payment_intent.rb +2 -1768
  97. data/lib/stripe/resources/payment_link.rb +15 -213
  98. data/lib/stripe/resources/payment_method.rb +2 -345
  99. data/lib/stripe/resources/payment_method_configuration.rb +0 -293
  100. data/lib/stripe/resources/payment_method_domain.rb +0 -23
  101. data/lib/stripe/resources/payment_record.rb +0 -109
  102. data/lib/stripe/resources/payout.rb +0 -49
  103. data/lib/stripe/resources/person.rb +2 -92
  104. data/lib/stripe/resources/plan.rb +0 -69
  105. data/lib/stripe/resources/price.rb +0 -133
  106. data/lib/stripe/resources/product.rb +0 -100
  107. data/lib/stripe/resources/product_feature.rb +0 -4
  108. data/lib/stripe/resources/promotion_code.rb +0 -40
  109. data/lib/stripe/resources/quote.rb +0 -458
  110. data/lib/stripe/resources/quote_line.rb +0 -66
  111. data/lib/stripe/resources/quote_preview_invoice.rb +3 -184
  112. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -101
  113. data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -16
  114. data/lib/stripe/resources/radar/value_list.rb +0 -26
  115. data/lib/stripe/resources/radar/value_list_item.rb +0 -18
  116. data/lib/stripe/resources/refund.rb +0 -92
  117. data/lib/stripe/resources/reporting/report_run.rb +0 -32
  118. data/lib/stripe/resources/reporting/report_type.rb +0 -8
  119. data/lib/stripe/resources/reserve_transaction.rb +0 -4
  120. data/lib/stripe/resources/reversal.rb +0 -9
  121. data/lib/stripe/resources/review.rb +0 -27
  122. data/lib/stripe/resources/setup_attempt.rb +2 -103
  123. data/lib/stripe/resources/setup_intent.rb +2 -539
  124. data/lib/stripe/resources/shipping_rate.rb +0 -44
  125. data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -13
  126. data/lib/stripe/resources/source.rb +6 -338
  127. data/lib/stripe/resources/source_mandate_notification.rb +0 -13
  128. data/lib/stripe/resources/source_transaction.rb +0 -29
  129. data/lib/stripe/resources/subscription.rb +0 -338
  130. data/lib/stripe/resources/subscription_item.rb +0 -69
  131. data/lib/stripe/resources/subscription_schedule.rb +0 -388
  132. data/lib/stripe/resources/tax/association.rb +0 -11
  133. data/lib/stripe/resources/tax/calculation.rb +2 -89
  134. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -20
  135. data/lib/stripe/resources/tax/form.rb +2 -35
  136. data/lib/stripe/resources/tax/registration.rb +421 -213
  137. data/lib/stripe/resources/tax/settings.rb +0 -20
  138. data/lib/stripe/resources/tax/transaction.rb +1 -66
  139. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -12
  140. data/lib/stripe/resources/tax_code.rb +0 -6
  141. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -4
  142. data/lib/stripe/resources/tax_id.rb +2 -28
  143. data/lib/stripe/resources/tax_rate.rb +0 -45
  144. data/lib/stripe/resources/terminal/configuration.rb +0 -164
  145. data/lib/stripe/resources/terminal/connection_token.rb +0 -3
  146. data/lib/stripe/resources/terminal/location.rb +0 -33
  147. data/lib/stripe/resources/terminal/reader.rb +0 -129
  148. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -5
  149. data/lib/stripe/resources/test_helpers/test_clock.rb +0 -15
  150. data/lib/stripe/resources/token.rb +4 -192
  151. data/lib/stripe/resources/topup.rb +0 -36
  152. data/lib/stripe/resources/transfer.rb +0 -35
  153. data/lib/stripe/resources/treasury/credit_reversal.rb +0 -21
  154. data/lib/stripe/resources/treasury/debit_reversal.rb +0 -23
  155. data/lib/stripe/resources/treasury/financial_account.rb +77 -71
  156. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -46
  157. data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -50
  158. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -92
  159. data/lib/stripe/resources/treasury/outbound_transfer.rb +25 -66
  160. data/lib/stripe/resources/treasury/received_credit.rb +6 -58
  161. data/lib/stripe/resources/treasury/received_debit.rb +0 -54
  162. data/lib/stripe/resources/treasury/transaction.rb +0 -39
  163. data/lib/stripe/resources/treasury/transaction_entry.rb +0 -36
  164. data/lib/stripe/resources/usage_record.rb +0 -5
  165. data/lib/stripe/resources/usage_record_summary.rb +0 -7
  166. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -6
  167. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -7
  168. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -5
  169. data/lib/stripe/resources/v2/event.rb +0 -8
  170. data/lib/stripe/resources/v2/event_destination.rb +0 -19
  171. data/lib/stripe/resources/webhook_endpoint.rb +0 -26
  172. data/lib/stripe/services/account_capability_service.rb +0 -1
  173. data/lib/stripe/services/account_external_account_service.rb +0 -43
  174. data/lib/stripe/services/account_link_service.rb +0 -7
  175. data/lib/stripe/services/account_notice_service.rb +0 -9
  176. data/lib/stripe/services/account_person_service.rb +0 -139
  177. data/lib/stripe/services/account_service.rb +8 -519
  178. data/lib/stripe/services/account_session_service.rb +0 -76
  179. data/lib/stripe/services/apple_pay_domain_service.rb +0 -5
  180. data/lib/stripe/services/application_fee_refund_service.rb +0 -6
  181. data/lib/stripe/services/application_fee_service.rb +0 -8
  182. data/lib/stripe/services/apps/secret_service.rb +0 -16
  183. data/lib/stripe/services/balance_transaction_service.rb +0 -11
  184. data/lib/stripe/services/billing/alert_service.rb +0 -12
  185. data/lib/stripe/services/billing/credit_balance_summary_service.rb +0 -4
  186. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -5
  187. data/lib/stripe/services/billing/credit_grant_service.rb +0 -16
  188. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +0 -3
  189. data/lib/stripe/services/billing/meter_event_service.rb +0 -4
  190. data/lib/stripe/services/billing/meter_event_summary_service.rb +0 -7
  191. data/lib/stripe/services/billing/meter_service.rb +0 -12
  192. data/lib/stripe/services/billing_portal/configuration_service.rb +0 -48
  193. data/lib/stripe/services/billing_portal/session_service.rb +0 -19
  194. data/lib/stripe/services/capital/financing_offer_service.rb +0 -9
  195. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -7
  196. data/lib/stripe/services/charge_service.rb +0 -274
  197. data/lib/stripe/services/checkout/session_line_item_service.rb +0 -3
  198. data/lib/stripe/services/checkout/session_service.rb +2 -273
  199. data/lib/stripe/services/climate/order_service.rb +0 -11
  200. data/lib/stripe/services/climate/product_service.rb +0 -3
  201. data/lib/stripe/services/climate/supplier_service.rb +0 -3
  202. data/lib/stripe/services/country_spec_service.rb +0 -3
  203. data/lib/stripe/services/coupon_service.rb +0 -22
  204. data/lib/stripe/services/credit_note_line_item_service.rb +0 -3
  205. data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -28
  206. data/lib/stripe/services/credit_note_service.rb +0 -61
  207. data/lib/stripe/services/customer_balance_transaction_service.rb +0 -9
  208. data/lib/stripe/services/customer_cash_balance_service.rb +0 -1
  209. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +0 -3
  210. data/lib/stripe/services/customer_funding_instructions_service.rb +0 -5
  211. data/lib/stripe/services/customer_payment_method_service.rb +0 -5
  212. data/lib/stripe/services/customer_payment_source_service.rb +0 -29
  213. data/lib/stripe/services/customer_service.rb +1 -92
  214. data/lib/stripe/services/customer_session_service.rb +0 -10
  215. data/lib/stripe/services/customer_tax_id_service.rb +1 -6
  216. data/lib/stripe/services/dispute_service.rb +2 -67
  217. data/lib/stripe/services/entitlements/active_entitlement_service.rb +0 -4
  218. data/lib/stripe/services/entitlements/feature_service.rb +0 -11
  219. data/lib/stripe/services/ephemeral_key_service.rb +0 -4
  220. data/lib/stripe/services/event_service.rb +0 -10
  221. data/lib/stripe/services/exchange_rate_service.rb +0 -3
  222. data/lib/stripe/services/file_link_service.rb +0 -14
  223. data/lib/stripe/services/file_service.rb +0 -13
  224. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -3
  225. data/lib/stripe/services/financial_connections/account_owner_service.rb +0 -4
  226. data/lib/stripe/services/financial_connections/account_service.rb +0 -9
  227. data/lib/stripe/services/financial_connections/institution_service.rb +0 -3
  228. data/lib/stripe/services/financial_connections/session_service.rb +0 -11
  229. data/lib/stripe/services/financial_connections/transaction_service.rb +0 -9
  230. data/lib/stripe/services/forwarding/request_service.rb +0 -14
  231. data/lib/stripe/services/gift_cards/card_service.rb +0 -13
  232. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -16
  233. data/lib/stripe/services/identity/verification_report_service.rb +0 -10
  234. data/lib/stripe/services/identity/verification_session_service.rb +0 -30
  235. data/lib/stripe/services/invoice_item_service.rb +0 -66
  236. data/lib/stripe/services/invoice_line_item_service.rb +0 -40
  237. data/lib/stripe/services/invoice_payment_service.rb +0 -3
  238. data/lib/stripe/services/invoice_rendering_template_service.rb +0 -5
  239. data/lib/stripe/services/invoice_service.rb +2 -810
  240. data/lib/stripe/services/invoice_upcoming_lines_service.rb +1 -279
  241. data/lib/stripe/services/issuing/authorization_service.rb +0 -14
  242. data/lib/stripe/services/issuing/card_service.rb +0 -70
  243. data/lib/stripe/services/issuing/cardholder_service.rb +0 -73
  244. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -56
  245. data/lib/stripe/services/issuing/dispute_service.rb +0 -98
  246. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -4
  247. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -7
  248. data/lib/stripe/services/issuing/personalization_design_service.rb +0 -29
  249. data/lib/stripe/services/issuing/physical_bundle_service.rb +0 -5
  250. data/lib/stripe/services/issuing/token_service.rb +0 -10
  251. data/lib/stripe/services/issuing/transaction_service.rb +0 -12
  252. data/lib/stripe/services/margin_service.rb +0 -11
  253. data/lib/stripe/services/order_line_item_service.rb +0 -3
  254. data/lib/stripe/services/order_service.rb +2 -266
  255. data/lib/stripe/services/payment_attempt_record_service.rb +0 -1
  256. data/lib/stripe/services/payment_intent_service.rb +0 -1309
  257. data/lib/stripe/services/payment_link_line_item_service.rb +0 -3
  258. data/lib/stripe/services/payment_link_service.rb +15 -135
  259. data/lib/stripe/services/payment_method_configuration_service.rb +0 -102
  260. data/lib/stripe/services/payment_method_domain_service.rb +0 -8
  261. data/lib/stripe/services/payment_method_service.rb +0 -113
  262. data/lib/stripe/services/payment_record_service.rb +0 -68
  263. data/lib/stripe/services/payout_service.rb +0 -23
  264. data/lib/stripe/services/plan_service.rb +0 -43
  265. data/lib/stripe/services/price_service.rb +0 -87
  266. data/lib/stripe/services/product_feature_service.rb +0 -4
  267. data/lib/stripe/services/product_service.rb +0 -74
  268. data/lib/stripe/services/promotion_code_service.rb +0 -25
  269. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +0 -3
  270. data/lib/stripe/services/quote_line_item_service.rb +0 -3
  271. data/lib/stripe/services/quote_line_service.rb +0 -3
  272. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -3
  273. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -3
  274. data/lib/stripe/services/quote_service.rb +0 -309
  275. data/lib/stripe/services/radar/early_fraud_warning_service.rb +0 -9
  276. data/lib/stripe/services/radar/value_list_item_service.rb +0 -11
  277. data/lib/stripe/services/radar/value_list_service.rb +0 -16
  278. data/lib/stripe/services/refund_service.rb +0 -21
  279. data/lib/stripe/services/reporting/report_run_service.rb +0 -16
  280. data/lib/stripe/services/review_service.rb +0 -7
  281. data/lib/stripe/services/setup_attempt_service.rb +0 -8
  282. data/lib/stripe/services/setup_intent_service.rb +0 -447
  283. data/lib/stripe/services/shipping_rate_service.rb +0 -27
  284. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +0 -3
  285. data/lib/stripe/services/source_service.rb +0 -92
  286. data/lib/stripe/services/source_transaction_service.rb +0 -3
  287. data/lib/stripe/services/subscription_item_service.rb +0 -56
  288. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -3
  289. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -3
  290. data/lib/stripe/services/subscription_schedule_service.rb +0 -290
  291. data/lib/stripe/services/subscription_service.rb +0 -245
  292. data/lib/stripe/services/tax/association_service.rb +0 -1
  293. data/lib/stripe/services/tax/calculation_line_item_service.rb +0 -3
  294. data/lib/stripe/services/tax/calculation_service.rb +1 -31
  295. data/lib/stripe/services/tax/form_service.rb +0 -7
  296. data/lib/stripe/services/tax/registration_service.rb +274 -108
  297. data/lib/stripe/services/tax/settings_service.rb +0 -8
  298. data/lib/stripe/services/tax/transaction_line_item_service.rb +0 -3
  299. data/lib/stripe/services/tax/transaction_service.rb +0 -17
  300. data/lib/stripe/services/tax_code_service.rb +0 -3
  301. data/lib/stripe/services/tax_id_service.rb +1 -12
  302. data/lib/stripe/services/tax_rate_service.rb +0 -27
  303. data/lib/stripe/services/terminal/configuration_service.rb +0 -108
  304. data/lib/stripe/services/terminal/connection_token_service.rb +0 -1
  305. data/lib/stripe/services/terminal/location_service.rb +0 -21
  306. data/lib/stripe/services/terminal/reader_service.rb +0 -53
  307. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -89
  308. data/lib/stripe/services/test_helpers/customer_service.rb +0 -3
  309. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +0 -99
  310. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +0 -2
  311. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +0 -91
  312. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -4
  313. data/lib/stripe/services/test_helpers/test_clock_service.rb +0 -6
  314. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +0 -1
  315. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +0 -6
  316. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +0 -6
  317. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +0 -11
  318. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -11
  319. data/lib/stripe/services/token_service.rb +4 -184
  320. data/lib/stripe/services/topup_service.rb +0 -21
  321. data/lib/stripe/services/transfer_reversal_service.rb +0 -8
  322. data/lib/stripe/services/transfer_service.rb +0 -19
  323. data/lib/stripe/services/treasury/credit_reversal_service.rb +0 -8
  324. data/lib/stripe/services/treasury/debit_reversal_service.rb +0 -9
  325. data/lib/stripe/services/treasury/financial_account_features_service.rb +0 -10
  326. data/lib/stripe/services/treasury/financial_account_service.rb +64 -36
  327. data/lib/stripe/services/treasury/inbound_transfer_service.rb +0 -12
  328. data/lib/stripe/services/treasury/outbound_payment_service.rb +0 -38
  329. data/lib/stripe/services/treasury/outbound_transfer_service.rb +16 -15
  330. data/lib/stripe/services/treasury/received_credit_service.rb +0 -6
  331. data/lib/stripe/services/treasury/received_debit_service.rb +0 -5
  332. data/lib/stripe/services/treasury/transaction_entry_service.rb +0 -14
  333. data/lib/stripe/services/treasury/transaction_service.rb +0 -14
  334. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +0 -2
  335. data/lib/stripe/services/v2/billing/meter_event_service.rb +0 -3
  336. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +0 -3
  337. data/lib/stripe/services/v2/core/event_destination_service.rb +0 -18
  338. data/lib/stripe/services/v2/core/event_service.rb +0 -2
  339. data/lib/stripe/services/webhook_endpoint_service.rb +0 -14
  340. data/lib/stripe/stripe_client.rb +1 -1
  341. data/lib/stripe/stripe_object.rb +3 -3
  342. data/lib/stripe/util.rb +1 -1
  343. data/lib/stripe/version.rb +1 -1
  344. data/rbi/stripe/resources/account.rbi +29 -1001
  345. data/rbi/stripe/resources/account_link.rbi +0 -13
  346. data/rbi/stripe/resources/account_notice.rbi +0 -27
  347. data/rbi/stripe/resources/account_session.rbi +0 -166
  348. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -14
  349. data/rbi/stripe/resources/application.rbi +0 -3
  350. data/rbi/stripe/resources/application_fee.rbi +0 -28
  351. data/rbi/stripe/resources/application_fee_refund.rbi +0 -7
  352. data/rbi/stripe/resources/apps/secret.rbi +0 -34
  353. data/rbi/stripe/resources/balance.rbi +0 -33
  354. data/rbi/stripe/resources/balance_transaction.rbi +0 -33
  355. data/rbi/stripe/resources/bank_account.rbi +0 -29
  356. data/rbi/stripe/resources/billing/alert.rbi +0 -31
  357. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -5
  358. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -16
  359. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -27
  360. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -43
  361. data/rbi/stripe/resources/billing/meter.rbi +0 -35
  362. data/rbi/stripe/resources/billing/meter_error_report.rbi +0 -11
  363. data/rbi/stripe/resources/billing/meter_event.rbi +0 -12
  364. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -11
  365. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -6
  366. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -106
  367. data/rbi/stripe/resources/billing_portal/session.rbi +0 -55
  368. data/rbi/stripe/resources/capability.rbi +2 -29
  369. data/rbi/stripe/resources/capital/financing_offer.rbi +0 -38
  370. data/rbi/stripe/resources/capital/financing_summary.rbi +0 -15
  371. data/rbi/stripe/resources/capital/financing_transaction.rbi +0 -27
  372. data/rbi/stripe/resources/card.rbi +3 -34
  373. data/rbi/stripe/resources/cash_balance.rbi +0 -5
  374. data/rbi/stripe/resources/charge.rbi +6 -738
  375. data/rbi/stripe/resources/checkout/session.rbi +4 -636
  376. data/rbi/stripe/resources/climate/order.rbi +0 -48
  377. data/rbi/stripe/resources/climate/product.rbi +0 -16
  378. data/rbi/stripe/resources/climate/supplier.rbi +0 -16
  379. data/rbi/stripe/resources/confirmation_token.rbi +3 -364
  380. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -5
  381. data/rbi/stripe/resources/country_spec.rbi +0 -16
  382. data/rbi/stripe/resources/coupon.rbi +0 -48
  383. data/rbi/stripe/resources/credit_note.rbi +0 -159
  384. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -24
  385. data/rbi/stripe/resources/customer.rbi +1 -188
  386. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -12
  387. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -27
  388. data/rbi/stripe/resources/customer_session.rbi +0 -31
  389. data/rbi/stripe/resources/discount.rbi +0 -12
  390. data/rbi/stripe/resources/dispute.rbi +4 -166
  391. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -11
  392. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -3
  393. data/rbi/stripe/resources/entitlements/feature.rbi +0 -22
  394. data/rbi/stripe/resources/ephemeral_key.rbi +0 -7
  395. data/rbi/stripe/resources/event.rbi +0 -31
  396. data/rbi/stripe/resources/exchange_rate.rbi +0 -8
  397. data/rbi/stripe/resources/file.rbi +0 -29
  398. data/rbi/stripe/resources/file_link.rbi +0 -28
  399. data/rbi/stripe/resources/financial_connections/account.rbi +0 -56
  400. data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +0 -3
  401. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -7
  402. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -3
  403. data/rbi/stripe/resources/financial_connections/institution.rbi +0 -16
  404. data/rbi/stripe/resources/financial_connections/session.rbi +0 -35
  405. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -26
  406. data/rbi/stripe/resources/forwarding/request.rbi +0 -38
  407. data/rbi/stripe/resources/funding_instructions.rbi +0 -107
  408. data/rbi/stripe/resources/gift_cards/card.rbi +0 -36
  409. data/rbi/stripe/resources/gift_cards/transaction.rbi +0 -41
  410. data/rbi/stripe/resources/identity/verification_report.rbi +0 -73
  411. data/rbi/stripe/resources/identity/verification_session.rbi +0 -83
  412. data/rbi/stripe/resources/invoice.rbi +7 -1663
  413. data/rbi/stripe/resources/invoice_item.rbi +0 -107
  414. data/rbi/stripe/resources/invoice_line_item.rbi +0 -86
  415. data/rbi/stripe/resources/invoice_payment.rbi +0 -16
  416. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -17
  417. data/rbi/stripe/resources/issuing/authorization.rbi +0 -245
  418. data/rbi/stripe/resources/issuing/card.rbi +0 -153
  419. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -138
  420. data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +0 -109
  421. data/rbi/stripe/resources/issuing/dispute.rbi +0 -177
  422. data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +0 -17
  423. data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +0 -18
  424. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -62
  425. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -16
  426. data/rbi/stripe/resources/issuing/settlement.rbi +0 -16
  427. data/rbi/stripe/resources/issuing/token.rbi +0 -51
  428. data/rbi/stripe/resources/issuing/transaction.rbi +0 -205
  429. data/rbi/stripe/resources/line_item.rbi +0 -23
  430. data/rbi/stripe/resources/login_link.rbi +0 -2
  431. data/rbi/stripe/resources/mandate.rbi +0 -47
  432. data/rbi/stripe/resources/margin.rbi +0 -24
  433. data/rbi/stripe/resources/order.rbi +3 -492
  434. data/rbi/stripe/resources/payment_attempt_record.rbi +0 -45
  435. data/rbi/stripe/resources/payment_intent.rbi +3 -2224
  436. data/rbi/stripe/resources/payment_link.rbi +14 -291
  437. data/rbi/stripe/resources/payment_method.rbi +3 -382
  438. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -486
  439. data/rbi/stripe/resources/payment_method_domain.rbi +0 -29
  440. data/rbi/stripe/resources/payment_record.rbi +0 -134
  441. data/rbi/stripe/resources/payout.rbi +0 -58
  442. data/rbi/stripe/resources/person.rbi +2 -92
  443. data/rbi/stripe/resources/plan.rbi +0 -78
  444. data/rbi/stripe/resources/price.rbi +0 -153
  445. data/rbi/stripe/resources/product.rbi +0 -120
  446. data/rbi/stripe/resources/product_feature.rbi +0 -4
  447. data/rbi/stripe/resources/promotion_code.rbi +0 -50
  448. data/rbi/stripe/resources/quote.rbi +0 -593
  449. data/rbi/stripe/resources/quote_line.rbi +0 -66
  450. data/rbi/stripe/resources/quote_preview_invoice.rbi +4 -184
  451. data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +0 -101
  452. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -20
  453. data/rbi/stripe/resources/radar/value_list.rbi +0 -32
  454. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -23
  455. data/rbi/stripe/resources/refund.rbi +0 -100
  456. data/rbi/stripe/resources/reporting/report_run.rbi +0 -38
  457. data/rbi/stripe/resources/reporting/report_type.rbi +0 -11
  458. data/rbi/stripe/resources/reserve_transaction.rbi +0 -4
  459. data/rbi/stripe/resources/reversal.rbi +0 -9
  460. data/rbi/stripe/resources/review.rbi +0 -32
  461. data/rbi/stripe/resources/setup_attempt.rbi +3 -106
  462. data/rbi/stripe/resources/setup_intent.rbi +3 -688
  463. data/rbi/stripe/resources/shipping_rate.rbi +0 -57
  464. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -16
  465. data/rbi/stripe/resources/source.rbi +9 -365
  466. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -13
  467. data/rbi/stripe/resources/source_transaction.rbi +0 -29
  468. data/rbi/stripe/resources/subscription.rbi +0 -431
  469. data/rbi/stripe/resources/subscription_item.rbi +0 -88
  470. data/rbi/stripe/resources/subscription_schedule.rbi +0 -504
  471. data/rbi/stripe/resources/tax/association.rbi +0 -13
  472. data/rbi/stripe/resources/tax/calculation.rbi +2 -100
  473. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -20
  474. data/rbi/stripe/resources/tax/form.rbi +2 -40
  475. data/rbi/stripe/resources/tax/registration.rbi +401 -317
  476. data/rbi/stripe/resources/tax/settings.rbi +0 -26
  477. data/rbi/stripe/resources/tax/transaction.rbi +1 -73
  478. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -12
  479. data/rbi/stripe/resources/tax_code.rbi +0 -9
  480. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -4
  481. data/rbi/stripe/resources/tax_id.rbi +2 -34
  482. data/rbi/stripe/resources/tax_rate.rbi +0 -51
  483. data/rbi/stripe/resources/terminal/configuration.rbi +0 -211
  484. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -5
  485. data/rbi/stripe/resources/terminal/location.rbi +0 -40
  486. data/rbi/stripe/resources/terminal/reader.rbi +0 -158
  487. data/rbi/stripe/resources/terminal/reader_collected_data.rbi +0 -7
  488. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -20
  489. data/rbi/stripe/resources/token.rbi +5 -235
  490. data/rbi/stripe/resources/topup.rbi +0 -44
  491. data/rbi/stripe/resources/transfer.rbi +0 -41
  492. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -25
  493. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -27
  494. data/rbi/stripe/resources/treasury/financial_account.rbi +70 -124
  495. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -46
  496. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -59
  497. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -113
  498. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +28 -84
  499. data/rbi/stripe/resources/treasury/received_credit.rbi +7 -67
  500. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -62
  501. data/rbi/stripe/resources/treasury/transaction.rbi +0 -45
  502. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -41
  503. data/rbi/stripe/resources/usage_record.rbi +0 -5
  504. data/rbi/stripe/resources/usage_record_summary.rbi +0 -7
  505. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -6
  506. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -7
  507. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -5
  508. data/rbi/stripe/resources/v2/event.rbi +0 -8
  509. data/rbi/stripe/resources/v2/event_destination.rbi +0 -19
  510. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -31
  511. data/rbi/stripe/services/account_capability_service.rbi +0 -4
  512. data/rbi/stripe/services/account_external_account_service.rbi +0 -52
  513. data/rbi/stripe/services/account_link_service.rbi +0 -9
  514. data/rbi/stripe/services/account_login_link_service.rbi +0 -1
  515. data/rbi/stripe/services/account_notice_service.rbi +0 -13
  516. data/rbi/stripe/services/account_person_service.rbi +0 -174
  517. data/rbi/stripe/services/account_service.rbi +10 -773
  518. data/rbi/stripe/services/account_session_service.rbi +0 -116
  519. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -8
  520. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -10
  521. data/rbi/stripe/services/application_fee_service.rbi +0 -11
  522. data/rbi/stripe/services/apps/secret_service.rbi +0 -24
  523. data/rbi/stripe/services/balance_service.rbi +0 -1
  524. data/rbi/stripe/services/balance_transaction_service.rbi +0 -14
  525. data/rbi/stripe/services/billing/alert_service.rbi +0 -20
  526. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -7
  527. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -7
  528. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -26
  529. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -5
  530. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -5
  531. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -8
  532. data/rbi/stripe/services/billing/meter_service.rbi +0 -21
  533. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -76
  534. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -31
  535. data/rbi/stripe/services/capital/financing_offer_service.rbi +0 -13
  536. data/rbi/stripe/services/capital/financing_summary_service.rbi +0 -1
  537. data/rbi/stripe/services/capital/financing_transaction_service.rbi +0 -9
  538. data/rbi/stripe/services/charge_service.rbi +0 -346
  539. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -4
  540. data/rbi/stripe/services/checkout/session_service.rbi +2 -395
  541. data/rbi/stripe/services/climate/order_service.rbi +0 -18
  542. data/rbi/stripe/services/climate/product_service.rbi +0 -5
  543. data/rbi/stripe/services/climate/supplier_service.rbi +0 -5
  544. data/rbi/stripe/services/confirmation_token_service.rbi +0 -1
  545. data/rbi/stripe/services/country_spec_service.rbi +0 -5
  546. data/rbi/stripe/services/coupon_service.rbi +0 -30
  547. data/rbi/stripe/services/credit_note_line_item_service.rbi +0 -4
  548. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -33
  549. data/rbi/stripe/services/credit_note_service.rbi +0 -76
  550. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -13
  551. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -4
  552. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -5
  553. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -8
  554. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -7
  555. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -37
  556. data/rbi/stripe/services/customer_service.rbi +1 -117
  557. data/rbi/stripe/services/customer_session_service.rbi +0 -16
  558. data/rbi/stripe/services/customer_tax_id_service.rbi +1 -9
  559. data/rbi/stripe/services/dispute_service.rbi +2 -80
  560. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -6
  561. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -15
  562. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -6
  563. data/rbi/stripe/services/event_service.rbi +0 -13
  564. data/rbi/stripe/services/exchange_rate_service.rbi +0 -5
  565. data/rbi/stripe/services/file_link_service.rbi +0 -19
  566. data/rbi/stripe/services/file_service.rbi +0 -18
  567. data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +0 -4
  568. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -5
  569. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -16
  570. data/rbi/stripe/services/financial_connections/institution_service.rbi +0 -5
  571. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -17
  572. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -13
  573. data/rbi/stripe/services/forwarding/request_service.rbi +0 -20
  574. data/rbi/stripe/services/gift_cards/card_service.rbi +0 -20
  575. data/rbi/stripe/services/gift_cards/transaction_service.rbi +0 -24
  576. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -13
  577. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -43
  578. data/rbi/stripe/services/invoice_item_service.rbi +0 -81
  579. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -50
  580. data/rbi/stripe/services/invoice_payment_service.rbi +0 -5
  581. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -9
  582. data/rbi/stripe/services/invoice_service.rbi +2 -1100
  583. data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +1 -375
  584. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -20
  585. data/rbi/stripe/services/issuing/card_service.rbi +0 -89
  586. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -100
  587. data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +0 -82
  588. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -123
  589. data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +0 -6
  590. data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +0 -10
  591. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -38
  592. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -7
  593. data/rbi/stripe/services/issuing/token_service.rbi +0 -14
  594. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -16
  595. data/rbi/stripe/services/mandate_service.rbi +0 -1
  596. data/rbi/stripe/services/margin_service.rbi +0 -15
  597. data/rbi/stripe/services/order_line_item_service.rbi +0 -4
  598. data/rbi/stripe/services/order_service.rbi +2 -365
  599. data/rbi/stripe/services/payment_attempt_record_service.rbi +0 -3
  600. data/rbi/stripe/services/payment_intent_service.rbi +0 -1764
  601. data/rbi/stripe/services/payment_link_line_item_service.rbi +0 -4
  602. data/rbi/stripe/services/payment_link_service.rbi +14 -211
  603. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -294
  604. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -13
  605. data/rbi/stripe/services/payment_method_service.rbi +0 -149
  606. data/rbi/stripe/services/payment_record_service.rbi +0 -92
  607. data/rbi/stripe/services/payout_service.rbi +0 -31
  608. data/rbi/stripe/services/plan_service.rbi +0 -51
  609. data/rbi/stripe/services/price_service.rbi +0 -106
  610. data/rbi/stripe/services/product_feature_service.rbi +0 -7
  611. data/rbi/stripe/services/product_service.rbi +0 -93
  612. data/rbi/stripe/services/promotion_code_service.rbi +0 -34
  613. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -4
  614. data/rbi/stripe/services/quote_line_item_service.rbi +0 -4
  615. data/rbi/stripe/services/quote_line_service.rbi +0 -4
  616. data/rbi/stripe/services/quote_preview_invoice_service.rbi +0 -4
  617. data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +0 -4
  618. data/rbi/stripe/services/quote_service.rbi +0 -440
  619. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -12
  620. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -15
  621. data/rbi/stripe/services/radar/value_list_service.rbi +0 -21
  622. data/rbi/stripe/services/refund_service.rbi +0 -27
  623. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -21
  624. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -2
  625. data/rbi/stripe/services/review_service.rbi +0 -11
  626. data/rbi/stripe/services/setup_attempt_service.rbi +0 -10
  627. data/rbi/stripe/services/setup_intent_service.rbi +0 -595
  628. data/rbi/stripe/services/shipping_rate_service.rbi +0 -39
  629. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -5
  630. data/rbi/stripe/services/source_service.rbi +0 -119
  631. data/rbi/stripe/services/source_transaction_service.rbi +0 -4
  632. data/rbi/stripe/services/subscription_item_service.rbi +0 -74
  633. data/rbi/stripe/services/subscription_item_usage_record_service.rbi +0 -4
  634. data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +0 -4
  635. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -405
  636. data/rbi/stripe/services/subscription_service.rbi +0 -337
  637. data/rbi/stripe/services/tax/association_service.rbi +0 -2
  638. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +0 -4
  639. data/rbi/stripe/services/tax/calculation_service.rbi +1 -40
  640. data/rbi/stripe/services/tax/form_service.rbi +0 -11
  641. data/rbi/stripe/services/tax/registration_service.rbi +233 -211
  642. data/rbi/stripe/services/tax/settings_service.rbi +0 -13
  643. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +0 -4
  644. data/rbi/stripe/services/tax/transaction_service.rbi +0 -22
  645. data/rbi/stripe/services/tax_code_service.rbi +0 -5
  646. data/rbi/stripe/services/tax_id_service.rbi +1 -17
  647. data/rbi/stripe/services/tax_rate_service.rbi +0 -32
  648. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -154
  649. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -2
  650. data/rbi/stripe/services/terminal/location_service.rbi +0 -27
  651. data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +0 -1
  652. data/rbi/stripe/services/terminal/reader_service.rbi +0 -78
  653. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -114
  654. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -4
  655. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -138
  656. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -5
  657. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -6
  658. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -120
  659. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -1
  660. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -7
  661. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -10
  662. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -5
  663. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -14
  664. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -14
  665. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -16
  666. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -16
  667. data/rbi/stripe/services/token_service.rbi +5 -226
  668. data/rbi/stripe/services/topup_service.rbi +0 -28
  669. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -12
  670. data/rbi/stripe/services/transfer_service.rbi +0 -24
  671. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -11
  672. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -12
  673. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -25
  674. data/rbi/stripe/services/treasury/financial_account_service.rbi +62 -73
  675. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -16
  676. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -50
  677. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +17 -24
  678. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -9
  679. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -7
  680. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -18
  681. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -19
  682. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -4
  683. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -4
  684. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -5
  685. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -25
  686. data/rbi/stripe/services/v2/core/event_service.rbi +0 -3
  687. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -18
  688. metadata +2 -2
@@ -23,11 +23,9 @@ module Stripe
23
23
  # Attribute for field hosted_confirmation
24
24
  sig { returns(HostedConfirmation) }
25
25
  attr_reader :hosted_confirmation
26
-
27
26
  # Attribute for field redirect
28
27
  sig { returns(Redirect) }
29
28
  attr_reader :redirect
30
-
31
29
  # The specified behavior after the purchase is complete.
32
30
  sig { returns(String) }
33
31
  attr_reader :type
@@ -37,7 +35,6 @@ module Stripe
37
35
  # The connected account being referenced when `type` is `account`.
38
36
  sig { returns(T.any(String, Stripe::Account)) }
39
37
  attr_reader :account
40
-
41
38
  # Type of the account referenced.
42
39
  sig { returns(String) }
43
40
  attr_reader :type
@@ -45,7 +42,6 @@ module Stripe
45
42
  # If `true`, tax will be calculated automatically using the customer's location.
46
43
  sig { returns(T::Boolean) }
47
44
  attr_reader :enabled
48
-
49
45
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
50
46
  sig { returns(T.nilable(Liability)) }
51
47
  attr_reader :liability
@@ -61,11 +57,9 @@ module Stripe
61
57
  # Settings related to the payment method reuse text shown in the Checkout UI.
62
58
  sig { returns(T.nilable(PaymentMethodReuseAgreement)) }
63
59
  attr_reader :payment_method_reuse_agreement
64
-
65
60
  # If set to `auto`, enables the collection of customer consent for promotional communications.
66
61
  sig { returns(T.nilable(String)) }
67
62
  attr_reader :promotions
68
-
69
63
  # If set to `required`, it requires cutomers to accept the terms of service before being able to pay. If set to `none`, customers won't be shown a checkbox to accept the terms of service.
70
64
  sig { returns(T.nilable(String)) }
71
65
  attr_reader :terms_of_service
@@ -76,7 +70,6 @@ module Stripe
76
70
  # The label for the option, displayed to the customer. Up to 100 characters.
77
71
  sig { returns(String) }
78
72
  attr_reader :label
79
-
80
73
  # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
81
74
  sig { returns(String) }
82
75
  attr_reader :value
@@ -89,7 +82,6 @@ module Stripe
89
82
  # Custom text for the label, displayed to the customer. Up to 50 characters.
90
83
  sig { returns(T.nilable(String)) }
91
84
  attr_reader :custom
92
-
93
85
  # The type of the label.
94
86
  sig { returns(String) }
95
87
  attr_reader :type
@@ -98,7 +90,6 @@ module Stripe
98
90
  # The maximum character length constraint for the customer's input.
99
91
  sig { returns(T.nilable(Integer)) }
100
92
  attr_reader :maximum_length
101
-
102
93
  # The minimum character length requirement for the customer's input.
103
94
  sig { returns(T.nilable(Integer)) }
104
95
  attr_reader :minimum_length
@@ -107,7 +98,6 @@ module Stripe
107
98
  # The maximum character length constraint for the customer's input.
108
99
  sig { returns(T.nilable(Integer)) }
109
100
  attr_reader :maximum_length
110
-
111
101
  # The minimum character length requirement for the customer's input.
112
102
  sig { returns(T.nilable(Integer)) }
113
103
  attr_reader :minimum_length
@@ -115,27 +105,21 @@ module Stripe
115
105
  # Attribute for field dropdown
116
106
  sig { returns(Dropdown) }
117
107
  attr_reader :dropdown
118
-
119
108
  # String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
120
109
  sig { returns(String) }
121
110
  attr_reader :key
122
-
123
111
  # Attribute for field label
124
112
  sig { returns(Label) }
125
113
  attr_reader :label
126
-
127
114
  # Attribute for field numeric
128
115
  sig { returns(Numeric) }
129
116
  attr_reader :numeric
130
-
131
117
  # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
132
118
  sig { returns(T::Boolean) }
133
119
  attr_reader :optional
134
-
135
120
  # Attribute for field text
136
121
  sig { returns(Text) }
137
122
  attr_reader :text
138
-
139
123
  # The type of the field.
140
124
  sig { returns(String) }
141
125
  attr_reader :type
@@ -164,15 +148,12 @@ module Stripe
164
148
  # Custom text that should be displayed after the payment confirmation button.
165
149
  sig { returns(T.nilable(AfterSubmit)) }
166
150
  attr_reader :after_submit
167
-
168
151
  # Custom text that should be displayed alongside shipping address collection.
169
152
  sig { returns(T.nilable(ShippingAddress)) }
170
153
  attr_reader :shipping_address
171
-
172
154
  # Custom text that should be displayed alongside the payment confirmation button.
173
155
  sig { returns(T.nilable(Submit)) }
174
156
  attr_reader :submit
175
-
176
157
  # Custom text that should be displayed in place of the default terms of service agreement text.
177
158
  sig { returns(T.nilable(TermsOfServiceAcceptance)) }
178
159
  attr_reader :terms_of_service_acceptance
@@ -183,7 +164,6 @@ module Stripe
183
164
  # The name of the custom field.
184
165
  sig { returns(String) }
185
166
  attr_reader :name
186
-
187
167
  # The value of the custom field.
188
168
  sig { returns(String) }
189
169
  attr_reader :value
@@ -192,7 +172,6 @@ module Stripe
192
172
  # The connected account being referenced when `type` is `account`.
193
173
  sig { returns(T.any(String, Stripe::Account)) }
194
174
  attr_reader :account
195
-
196
175
  # Type of the account referenced.
197
176
  sig { returns(String) }
198
177
  attr_reader :type
@@ -205,27 +184,21 @@ module Stripe
205
184
  # The account tax IDs associated with the invoice.
206
185
  sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) }
207
186
  attr_reader :account_tax_ids
208
-
209
187
  # A list of up to 4 custom fields to be displayed on the invoice.
210
188
  sig { returns(T.nilable(T::Array[CustomField])) }
211
189
  attr_reader :custom_fields
212
-
213
190
  # An arbitrary string attached to the object. Often useful for displaying to users.
214
191
  sig { returns(T.nilable(String)) }
215
192
  attr_reader :description
216
-
217
193
  # Footer to be displayed on the invoice.
218
194
  sig { returns(T.nilable(String)) }
219
195
  attr_reader :footer
220
-
221
196
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
222
197
  sig { returns(T.nilable(Issuer)) }
223
198
  attr_reader :issuer
224
-
225
199
  # 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.
226
200
  sig { returns(T.nilable(T::Hash[String, String])) }
227
201
  attr_reader :metadata
228
-
229
202
  # Options for invoice PDF rendering.
230
203
  sig { returns(T.nilable(RenderingOptions)) }
231
204
  attr_reader :rendering_options
@@ -233,7 +206,6 @@ module Stripe
233
206
  # Enable creating an invoice on successful payment.
234
207
  sig { returns(T::Boolean) }
235
208
  attr_reader :enabled
236
-
237
209
  # Configuration for the invoice. Default invoice values will be used if unspecified.
238
210
  sig { returns(T.nilable(InvoiceData)) }
239
211
  attr_reader :invoice_data
@@ -242,27 +214,21 @@ module Stripe
242
214
  # Indicates when the funds will be captured from the customer's account.
243
215
  sig { returns(T.nilable(String)) }
244
216
  attr_reader :capture_method
245
-
246
217
  # An arbitrary string attached to the object. Often useful for displaying to users.
247
218
  sig { returns(T.nilable(String)) }
248
219
  attr_reader :description
249
-
250
220
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on [Payment Intents](https://stripe.com/docs/api/payment_intents) generated from this payment link.
251
221
  sig { returns(T::Hash[String, String]) }
252
222
  attr_reader :metadata
253
-
254
223
  # Indicates that you intend to make future payments with the payment method collected during checkout.
255
224
  sig { returns(T.nilable(String)) }
256
225
  attr_reader :setup_future_usage
257
-
258
226
  # For a non-card payment, information about the charge that appears on the customer's statement when this payment succeeds in creating a charge.
259
227
  sig { returns(T.nilable(String)) }
260
228
  attr_reader :statement_descriptor
261
-
262
229
  # For a card payment, information about the charge that appears on the customer's statement when this payment succeeds in creating a charge. Concatenated with the account's statement descriptor prefix to form the complete statement descriptor.
263
230
  sig { returns(T.nilable(String)) }
264
231
  attr_reader :statement_descriptor_suffix
265
-
266
232
  # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
267
233
  sig { returns(T.nilable(String)) }
268
234
  attr_reader :transfer_group
@@ -277,7 +243,6 @@ module Stripe
277
243
  # The current number of checkout sessions that have been completed on the payment link which count towards the `completed_sessions` restriction to be met.
278
244
  sig { returns(Integer) }
279
245
  attr_reader :count
280
-
281
246
  # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met.
282
247
  sig { returns(Integer) }
283
248
  attr_reader :limit
@@ -295,7 +260,6 @@ module Stripe
295
260
  # A non-negative integer in cents representing how much to charge.
296
261
  sig { returns(Integer) }
297
262
  attr_reader :shipping_amount
298
-
299
263
  # The ID of the Shipping Rate to use for this shipping option.
300
264
  sig { returns(T.any(String, Stripe::ShippingRate)) }
301
265
  attr_reader :shipping_rate
@@ -306,7 +270,6 @@ module Stripe
306
270
  # The connected account being referenced when `type` is `account`.
307
271
  sig { returns(T.any(String, Stripe::Account)) }
308
272
  attr_reader :account
309
-
310
273
  # Type of the account referenced.
311
274
  sig { returns(String) }
312
275
  attr_reader :type
@@ -328,19 +291,15 @@ module Stripe
328
291
  # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
329
292
  sig { returns(T.nilable(String)) }
330
293
  attr_reader :description
331
-
332
294
  # Attribute for field invoice_settings
333
295
  sig { returns(InvoiceSettings) }
334
296
  attr_reader :invoice_settings
335
-
336
297
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link.
337
298
  sig { returns(T::Hash[String, String]) }
338
299
  attr_reader :metadata
339
-
340
300
  # Integer representing the number of trial period days before the customer is charged for the first time.
341
301
  sig { returns(T.nilable(Integer)) }
342
302
  attr_reader :trial_period_days
343
-
344
303
  # Settings related to subscription trials.
345
304
  sig { returns(T.nilable(TrialSettings)) }
346
305
  attr_reader :trial_settings
@@ -349,7 +308,6 @@ module Stripe
349
308
  # Indicates whether tax ID collection is enabled for the session.
350
309
  sig { returns(T::Boolean) }
351
310
  attr_reader :enabled
352
-
353
311
  # Attribute for field required
354
312
  sig { returns(String) }
355
313
  attr_reader :required
@@ -358,7 +316,6 @@ module Stripe
358
316
  # The amount in cents (or local equivalent) that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
359
317
  sig { returns(T.nilable(Integer)) }
360
318
  attr_reader :amount
361
-
362
319
  # The connected account receiving the transfer.
363
320
  sig { returns(T.any(String, Stripe::Account)) }
364
321
  attr_reader :destination
@@ -366,156 +323,118 @@ module Stripe
366
323
  # Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
367
324
  sig { returns(T::Boolean) }
368
325
  attr_reader :active
369
-
370
326
  # Attribute for field after_completion
371
327
  sig { returns(AfterCompletion) }
372
328
  attr_reader :after_completion
373
-
374
329
  # Whether user redeemable promotion codes are enabled.
375
330
  sig { returns(T::Boolean) }
376
331
  attr_reader :allow_promotion_codes
377
-
378
332
  # The ID of the Connect application that created the Payment Link.
379
333
  sig { returns(T.nilable(T.any(String, Stripe::Application))) }
380
334
  attr_reader :application
381
-
382
335
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
383
336
  sig { returns(T.nilable(Integer)) }
384
337
  attr_reader :application_fee_amount
385
-
386
338
  # This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
387
339
  sig { returns(T.nilable(Float)) }
388
340
  attr_reader :application_fee_percent
389
-
390
341
  # Attribute for field automatic_tax
391
342
  sig { returns(AutomaticTax) }
392
343
  attr_reader :automatic_tax
393
-
394
344
  # Configuration for collecting the customer's billing address. Defaults to `auto`.
395
345
  sig { returns(String) }
396
346
  attr_reader :billing_address_collection
397
-
398
347
  # When set, provides configuration to gather active consent from customers.
399
348
  sig { returns(T.nilable(ConsentCollection)) }
400
349
  attr_reader :consent_collection
401
-
402
350
  # 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).
403
351
  sig { returns(String) }
404
352
  attr_reader :currency
405
-
406
353
  # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
407
354
  sig { returns(T::Array[CustomField]) }
408
355
  attr_reader :custom_fields
409
-
410
356
  # Attribute for field custom_text
411
357
  sig { returns(CustomText) }
412
358
  attr_reader :custom_text
413
-
414
359
  # Configuration for Customer creation during checkout.
415
360
  sig { returns(String) }
416
361
  attr_reader :customer_creation
417
-
418
362
  # Unique identifier for the object.
419
363
  sig { returns(String) }
420
364
  attr_reader :id
421
-
422
365
  # The custom message to be displayed to a customer when a payment link is no longer active.
423
366
  sig { returns(T.nilable(String)) }
424
367
  attr_reader :inactive_message
425
-
426
368
  # Configuration for creating invoice for payment mode payment links.
427
369
  sig { returns(T.nilable(InvoiceCreation)) }
428
370
  attr_reader :invoice_creation
429
-
430
371
  # The line items representing what is being sold.
431
372
  sig { returns(Stripe::ListObject) }
432
373
  attr_reader :line_items
433
-
434
374
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
435
375
  sig { returns(T::Boolean) }
436
376
  attr_reader :livemode
437
-
438
377
  # 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.
439
378
  sig { returns(T::Hash[String, String]) }
440
379
  attr_reader :metadata
441
-
442
380
  # String representing the object's type. Objects of the same type share the same value.
443
381
  sig { returns(String) }
444
382
  attr_reader :object
445
-
446
383
  # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
447
384
  sig { returns(T.nilable(T.any(String, Stripe::Account))) }
448
385
  attr_reader :on_behalf_of
449
-
450
386
  # Indicates the parameters to be passed to PaymentIntent creation during checkout.
451
387
  sig { returns(T.nilable(PaymentIntentData)) }
452
388
  attr_reader :payment_intent_data
453
-
454
389
  # Configuration for collecting a payment method during checkout. Defaults to `always`.
455
390
  sig { returns(String) }
456
391
  attr_reader :payment_method_collection
457
-
458
392
  # The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
459
393
  sig { returns(T.nilable(T::Array[String])) }
460
394
  attr_reader :payment_method_types
461
-
462
395
  # Attribute for field phone_number_collection
463
396
  sig { returns(PhoneNumberCollection) }
464
397
  attr_reader :phone_number_collection
465
-
466
398
  # Settings that restrict the usage of a payment link.
467
399
  sig { returns(T.nilable(Restrictions)) }
468
400
  attr_reader :restrictions
469
-
470
401
  # Configuration for collecting the customer's shipping address.
471
402
  sig { returns(T.nilable(ShippingAddressCollection)) }
472
403
  attr_reader :shipping_address_collection
473
-
474
404
  # The shipping rate options applied to the session.
475
405
  sig { returns(T::Array[ShippingOption]) }
476
406
  attr_reader :shipping_options
477
-
478
407
  # Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.
479
408
  sig { returns(String) }
480
409
  attr_reader :submit_type
481
-
482
410
  # 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`.
483
411
  sig { returns(T.nilable(SubscriptionData)) }
484
412
  attr_reader :subscription_data
485
-
486
413
  # Attribute for field tax_id_collection
487
414
  sig { returns(TaxIdCollection) }
488
415
  attr_reader :tax_id_collection
489
-
490
416
  # The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
491
417
  sig { returns(T.nilable(TransferData)) }
492
418
  attr_reader :transfer_data
493
-
494
419
  # The public URL that can be shared with customers.
495
420
  sig { returns(String) }
496
421
  attr_reader :url
497
-
498
422
  class ListParams < Stripe::RequestParams
499
423
  # Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links).
500
424
  sig { returns(T::Boolean) }
501
425
  attr_accessor :active
502
-
503
426
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
504
427
  sig { returns(String) }
505
428
  attr_accessor :ending_before
506
-
507
429
  # Specifies which fields in the response should be expanded.
508
430
  sig { returns(T::Array[String]) }
509
431
  attr_accessor :expand
510
-
511
432
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
512
433
  sig { returns(Integer) }
513
434
  attr_accessor :limit
514
-
515
435
  # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
516
436
  sig { returns(String) }
517
437
  attr_accessor :starting_after
518
-
519
438
  sig {
520
439
  params(active: T::Boolean, ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
521
440
  }
@@ -533,7 +452,6 @@ module Stripe
533
452
  # A custom message to display to the customer after the purchase is complete.
534
453
  sig { returns(String) }
535
454
  attr_accessor :custom_message
536
-
537
455
  sig { params(custom_message: String).void }
538
456
  def initialize(custom_message: nil); end
539
457
  end
@@ -541,22 +459,18 @@ module Stripe
541
459
  # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included.
542
460
  sig { returns(String) }
543
461
  attr_accessor :url
544
-
545
462
  sig { params(url: String).void }
546
463
  def initialize(url: nil); end
547
464
  end
548
465
  # Configuration when `type=hosted_confirmation`.
549
466
  sig { returns(::Stripe::PaymentLink::CreateParams::AfterCompletion::HostedConfirmation) }
550
467
  attr_accessor :hosted_confirmation
551
-
552
468
  # Configuration when `type=redirect`.
553
469
  sig { returns(::Stripe::PaymentLink::CreateParams::AfterCompletion::Redirect) }
554
470
  attr_accessor :redirect
555
-
556
471
  # The specified behavior after the purchase is complete. Either `redirect` or `hosted_confirmation`.
557
472
  sig { returns(String) }
558
473
  attr_accessor :type
559
-
560
474
  sig {
561
475
  params(hosted_confirmation: ::Stripe::PaymentLink::CreateParams::AfterCompletion::HostedConfirmation, redirect: ::Stripe::PaymentLink::CreateParams::AfterCompletion::Redirect, type: String).void
562
476
  }
@@ -567,11 +481,9 @@ module Stripe
567
481
  # The connected account being referenced when `type` is `account`.
568
482
  sig { returns(String) }
569
483
  attr_accessor :account
570
-
571
484
  # Type of the account referenced in the request.
572
485
  sig { returns(String) }
573
486
  attr_accessor :type
574
-
575
487
  sig { params(account: String, type: String).void }
576
488
  def initialize(account: nil, type: nil); end
577
489
  end
@@ -580,11 +492,9 @@ module Stripe
580
492
  # Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation.
581
493
  sig { returns(T::Boolean) }
582
494
  attr_accessor :enabled
583
-
584
495
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
585
496
  sig { returns(::Stripe::PaymentLink::CreateParams::AutomaticTax::Liability) }
586
497
  attr_accessor :liability
587
-
588
498
  sig {
589
499
  params(enabled: T::Boolean, liability: ::Stripe::PaymentLink::CreateParams::AutomaticTax::Liability).void
590
500
  }
@@ -596,7 +506,6 @@ module Stripe
596
506
  # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
597
507
  sig { returns(String) }
598
508
  attr_accessor :position
599
-
600
509
  sig { params(position: String).void }
601
510
  def initialize(position: nil); end
602
511
  end
@@ -605,18 +514,15 @@ module Stripe
605
514
  returns(::Stripe::PaymentLink::CreateParams::ConsentCollection::PaymentMethodReuseAgreement)
606
515
  }
607
516
  attr_accessor :payment_method_reuse_agreement
608
-
609
517
  # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
610
518
  # Session will determine whether to display an option to opt into promotional communication
611
519
  # from the merchant depending on the customer's locale. Only available to US merchants.
612
520
  sig { returns(String) }
613
521
  attr_accessor :promotions
614
-
615
522
  # If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.
616
523
  # There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).
617
524
  sig { returns(String) }
618
525
  attr_accessor :terms_of_service
619
-
620
526
  sig {
621
527
  params(payment_method_reuse_agreement: ::Stripe::PaymentLink::CreateParams::ConsentCollection::PaymentMethodReuseAgreement, promotions: String, terms_of_service: String).void
622
528
  }
@@ -632,11 +538,9 @@ module Stripe
632
538
  # The label for the option, displayed to the customer. Up to 100 characters.
633
539
  sig { returns(String) }
634
540
  attr_accessor :label
635
-
636
541
  # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
637
542
  sig { returns(String) }
638
543
  attr_accessor :value
639
-
640
544
  sig { params(label: String, value: String).void }
641
545
  def initialize(label: nil, value: nil); end
642
546
  end
@@ -645,7 +549,6 @@ module Stripe
645
549
  returns(T::Array[::Stripe::PaymentLink::CreateParams::CustomField::Dropdown::Option])
646
550
  }
647
551
  attr_accessor :options
648
-
649
552
  sig {
650
553
  params(options: T::Array[::Stripe::PaymentLink::CreateParams::CustomField::Dropdown::Option]).void
651
554
  }
@@ -655,11 +558,9 @@ module Stripe
655
558
  # Custom text for the label, displayed to the customer. Up to 50 characters.
656
559
  sig { returns(String) }
657
560
  attr_accessor :custom
658
-
659
561
  # The type of the label.
660
562
  sig { returns(String) }
661
563
  attr_accessor :type
662
-
663
564
  sig { params(custom: String, type: String).void }
664
565
  def initialize(custom: nil, type: nil); end
665
566
  end
@@ -667,11 +568,9 @@ module Stripe
667
568
  # The maximum character length constraint for the customer's input.
668
569
  sig { returns(Integer) }
669
570
  attr_accessor :maximum_length
670
-
671
571
  # The minimum character length requirement for the customer's input.
672
572
  sig { returns(Integer) }
673
573
  attr_accessor :minimum_length
674
-
675
574
  sig { params(maximum_length: Integer, minimum_length: Integer).void }
676
575
  def initialize(maximum_length: nil, minimum_length: nil); end
677
576
  end
@@ -679,42 +578,33 @@ module Stripe
679
578
  # The maximum character length constraint for the customer's input.
680
579
  sig { returns(Integer) }
681
580
  attr_accessor :maximum_length
682
-
683
581
  # The minimum character length requirement for the customer's input.
684
582
  sig { returns(Integer) }
685
583
  attr_accessor :minimum_length
686
-
687
584
  sig { params(maximum_length: Integer, minimum_length: Integer).void }
688
585
  def initialize(maximum_length: nil, minimum_length: nil); end
689
586
  end
690
587
  # Configuration for `type=dropdown` fields.
691
588
  sig { returns(::Stripe::PaymentLink::CreateParams::CustomField::Dropdown) }
692
589
  attr_accessor :dropdown
693
-
694
590
  # String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
695
591
  sig { returns(String) }
696
592
  attr_accessor :key
697
-
698
593
  # The label for the field, displayed to the customer.
699
594
  sig { returns(::Stripe::PaymentLink::CreateParams::CustomField::Label) }
700
595
  attr_accessor :label
701
-
702
596
  # Configuration for `type=numeric` fields.
703
597
  sig { returns(::Stripe::PaymentLink::CreateParams::CustomField::Numeric) }
704
598
  attr_accessor :numeric
705
-
706
599
  # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
707
600
  sig { returns(T::Boolean) }
708
601
  attr_accessor :optional
709
-
710
602
  # Configuration for `type=text` fields.
711
603
  sig { returns(::Stripe::PaymentLink::CreateParams::CustomField::Text) }
712
604
  attr_accessor :text
713
-
714
605
  # The type of the field.
715
606
  sig { returns(String) }
716
607
  attr_accessor :type
717
-
718
608
  sig {
719
609
  params(dropdown: ::Stripe::PaymentLink::CreateParams::CustomField::Dropdown, key: String, label: ::Stripe::PaymentLink::CreateParams::CustomField::Label, numeric: ::Stripe::PaymentLink::CreateParams::CustomField::Numeric, optional: T::Boolean, text: ::Stripe::PaymentLink::CreateParams::CustomField::Text, type: String).void
720
610
  }
@@ -733,7 +623,6 @@ module Stripe
733
623
  # Text may be up to 1200 characters in length.
734
624
  sig { returns(String) }
735
625
  attr_accessor :message
736
-
737
626
  sig { params(message: String).void }
738
627
  def initialize(message: nil); end
739
628
  end
@@ -741,7 +630,6 @@ module Stripe
741
630
  # Text may be up to 1200 characters in length.
742
631
  sig { returns(String) }
743
632
  attr_accessor :message
744
-
745
633
  sig { params(message: String).void }
746
634
  def initialize(message: nil); end
747
635
  end
@@ -749,7 +637,6 @@ module Stripe
749
637
  # Text may be up to 1200 characters in length.
750
638
  sig { returns(String) }
751
639
  attr_accessor :message
752
-
753
640
  sig { params(message: String).void }
754
641
  def initialize(message: nil); end
755
642
  end
@@ -757,28 +644,23 @@ module Stripe
757
644
  # Text may be up to 1200 characters in length.
758
645
  sig { returns(String) }
759
646
  attr_accessor :message
760
-
761
647
  sig { params(message: String).void }
762
648
  def initialize(message: nil); end
763
649
  end
764
650
  # Custom text that should be displayed after the payment confirmation button.
765
651
  sig { returns(T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::AfterSubmit)) }
766
652
  attr_accessor :after_submit
767
-
768
653
  # Custom text that should be displayed alongside shipping address collection.
769
654
  sig { returns(T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::ShippingAddress)) }
770
655
  attr_accessor :shipping_address
771
-
772
656
  # Custom text that should be displayed alongside the payment confirmation button.
773
657
  sig { returns(T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::Submit)) }
774
658
  attr_accessor :submit
775
-
776
659
  # Custom text that should be displayed in place of the default terms of service agreement text.
777
660
  sig {
778
661
  returns(T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::TermsOfServiceAcceptance))
779
662
  }
780
663
  attr_accessor :terms_of_service_acceptance
781
-
782
664
  sig {
783
665
  params(after_submit: T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::AfterSubmit), shipping_address: T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::ShippingAddress), submit: T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::Submit), terms_of_service_acceptance: T.nilable(::Stripe::PaymentLink::CreateParams::CustomText::TermsOfServiceAcceptance)).void
784
666
  }
@@ -795,11 +677,9 @@ module Stripe
795
677
  # The name of the custom field. This may be up to 40 characters.
796
678
  sig { returns(String) }
797
679
  attr_accessor :name
798
-
799
680
  # The value of the custom field. This may be up to 140 characters.
800
681
  sig { returns(String) }
801
682
  attr_accessor :value
802
-
803
683
  sig { params(name: String, value: String).void }
804
684
  def initialize(name: nil, value: nil); end
805
685
  end
@@ -807,11 +687,9 @@ module Stripe
807
687
  # The connected account being referenced when `type` is `account`.
808
688
  sig { returns(String) }
809
689
  attr_accessor :account
810
-
811
690
  # Type of the account referenced in the request.
812
691
  sig { returns(String) }
813
692
  attr_accessor :type
814
-
815
693
  sig { params(account: String, type: String).void }
816
694
  def initialize(account: nil, type: nil); end
817
695
  end
@@ -819,42 +697,34 @@ module Stripe
819
697
  # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
820
698
  sig { returns(T.nilable(String)) }
821
699
  attr_accessor :amount_tax_display
822
-
823
700
  sig { params(amount_tax_display: T.nilable(String)).void }
824
701
  def initialize(amount_tax_display: nil); end
825
702
  end
826
703
  # The account tax IDs associated with the invoice.
827
704
  sig { returns(T.nilable(T::Array[String])) }
828
705
  attr_accessor :account_tax_ids
829
-
830
706
  # Default custom fields to be displayed on invoices for this customer.
831
707
  sig {
832
708
  returns(T.nilable(T::Array[::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::CustomField]))
833
709
  }
834
710
  attr_accessor :custom_fields
835
-
836
711
  # An arbitrary string attached to the object. Often useful for displaying to users.
837
712
  sig { returns(String) }
838
713
  attr_accessor :description
839
-
840
714
  # Default footer to be displayed on invoices for this customer.
841
715
  sig { returns(String) }
842
716
  attr_accessor :footer
843
-
844
717
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
845
718
  sig { returns(::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::Issuer) }
846
719
  attr_accessor :issuer
847
-
848
720
  # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
849
721
  sig { returns(T.nilable(T::Hash[String, String])) }
850
722
  attr_accessor :metadata
851
-
852
723
  # Default options for invoice PDF rendering for this customer.
853
724
  sig {
854
725
  returns(T.nilable(::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))
855
726
  }
856
727
  attr_accessor :rendering_options
857
-
858
728
  sig {
859
729
  params(account_tax_ids: T.nilable(T::Array[String]), custom_fields: T.nilable(T::Array[::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::CustomField]), description: String, footer: String, issuer: ::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::Issuer, metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)).void
860
730
  }
@@ -871,11 +741,9 @@ module Stripe
871
741
  # Whether the feature is enabled
872
742
  sig { returns(T::Boolean) }
873
743
  attr_accessor :enabled
874
-
875
744
  # Invoice PDF configuration.
876
745
  sig { returns(::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData) }
877
746
  attr_accessor :invoice_data
878
-
879
747
  sig {
880
748
  params(enabled: T::Boolean, invoice_data: ::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData).void
881
749
  }
@@ -886,30 +754,24 @@ module Stripe
886
754
  # Set to true if the quantity can be adjusted to any non-negative Integer.
887
755
  sig { returns(T::Boolean) }
888
756
  attr_accessor :enabled
889
-
890
757
  # The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
891
758
  sig { returns(Integer) }
892
759
  attr_accessor :maximum
893
-
894
760
  # The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
895
761
  sig { returns(Integer) }
896
762
  attr_accessor :minimum
897
-
898
763
  sig { params(enabled: T::Boolean, maximum: Integer, minimum: Integer).void }
899
764
  def initialize(enabled: nil, maximum: nil, minimum: nil); end
900
765
  end
901
766
  # When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.
902
767
  sig { returns(::Stripe::PaymentLink::CreateParams::LineItem::AdjustableQuantity) }
903
768
  attr_accessor :adjustable_quantity
904
-
905
769
  # The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
906
770
  sig { returns(String) }
907
771
  attr_accessor :price
908
-
909
772
  # The quantity of the line item being purchased.
910
773
  sig { returns(Integer) }
911
774
  attr_accessor :quantity
912
-
913
775
  sig {
914
776
  params(adjustable_quantity: ::Stripe::PaymentLink::CreateParams::LineItem::AdjustableQuantity, price: String, quantity: Integer).void
915
777
  }
@@ -919,15 +781,12 @@ module Stripe
919
781
  # Controls when the funds will be captured from the customer's account.
920
782
  sig { returns(String) }
921
783
  attr_accessor :capture_method
922
-
923
784
  # An arbitrary string attached to the object. Often useful for displaying to users.
924
785
  sig { returns(String) }
925
786
  attr_accessor :description
926
-
927
787
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents](https://stripe.com/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
928
788
  sig { returns(T::Hash[String, String]) }
929
789
  attr_accessor :metadata
930
-
931
790
  # Indicates that you intend to [make future payments](https://stripe.com/docs/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session.
932
791
  #
933
792
  # When setting this to `on_session`, Checkout will show a notice to the customer that their payment details will be saved.
@@ -941,21 +800,17 @@ module Stripe
941
800
  # When processing card payments, Checkout also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
942
801
  sig { returns(String) }
943
802
  attr_accessor :setup_future_usage
944
-
945
803
  # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
946
804
  #
947
805
  # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
948
806
  sig { returns(String) }
949
807
  attr_accessor :statement_descriptor
950
-
951
808
  # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
952
809
  sig { returns(String) }
953
810
  attr_accessor :statement_descriptor_suffix
954
-
955
811
  # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
956
812
  sig { returns(String) }
957
813
  attr_accessor :transfer_group
958
-
959
814
  sig {
960
815
  params(capture_method: String, description: String, metadata: T::Hash[String, String], setup_future_usage: String, statement_descriptor: String, statement_descriptor_suffix: String, transfer_group: String).void
961
816
  }
@@ -973,7 +828,6 @@ module Stripe
973
828
  # Set to `true` to enable phone number collection.
974
829
  sig { returns(T::Boolean) }
975
830
  attr_accessor :enabled
976
-
977
831
  sig { params(enabled: T::Boolean).void }
978
832
  def initialize(enabled: nil); end
979
833
  end
@@ -982,14 +836,12 @@ module Stripe
982
836
  # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met.
983
837
  sig { returns(Integer) }
984
838
  attr_accessor :limit
985
-
986
839
  sig { params(limit: Integer).void }
987
840
  def initialize(limit: nil); end
988
841
  end
989
842
  # Configuration for the `completed_sessions` restriction type.
990
843
  sig { returns(::Stripe::PaymentLink::CreateParams::Restrictions::CompletedSessions) }
991
844
  attr_accessor :completed_sessions
992
-
993
845
  sig {
994
846
  params(completed_sessions: ::Stripe::PaymentLink::CreateParams::Restrictions::CompletedSessions).void
995
847
  }
@@ -1000,7 +852,6 @@ module Stripe
1000
852
  # shipping locations.
1001
853
  sig { returns(T::Array[String]) }
1002
854
  attr_accessor :allowed_countries
1003
-
1004
855
  sig { params(allowed_countries: T::Array[String]).void }
1005
856
  def initialize(allowed_countries: nil); end
1006
857
  end
@@ -1008,7 +859,6 @@ module Stripe
1008
859
  # The ID of the Shipping Rate to use for this shipping option.
1009
860
  sig { returns(String) }
1010
861
  attr_accessor :shipping_rate
1011
-
1012
862
  sig { params(shipping_rate: String).void }
1013
863
  def initialize(shipping_rate: nil); end
1014
864
  end
@@ -1018,11 +868,9 @@ module Stripe
1018
868
  # The connected account being referenced when `type` is `account`.
1019
869
  sig { returns(String) }
1020
870
  attr_accessor :account
1021
-
1022
871
  # Type of the account referenced in the request.
1023
872
  sig { returns(String) }
1024
873
  attr_accessor :type
1025
-
1026
874
  sig { params(account: String, type: String).void }
1027
875
  def initialize(account: nil, type: nil); end
1028
876
  end
@@ -1031,7 +879,6 @@ module Stripe
1031
879
  returns(::Stripe::PaymentLink::CreateParams::SubscriptionData::InvoiceSettings::Issuer)
1032
880
  }
1033
881
  attr_accessor :issuer
1034
-
1035
882
  sig {
1036
883
  params(issuer: ::Stripe::PaymentLink::CreateParams::SubscriptionData::InvoiceSettings::Issuer).void
1037
884
  }
@@ -1042,7 +889,6 @@ module Stripe
1042
889
  # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
1043
890
  sig { returns(String) }
1044
891
  attr_accessor :missing_payment_method
1045
-
1046
892
  sig { params(missing_payment_method: String).void }
1047
893
  def initialize(missing_payment_method: nil); end
1048
894
  end
@@ -1051,7 +897,6 @@ module Stripe
1051
897
  returns(::Stripe::PaymentLink::CreateParams::SubscriptionData::TrialSettings::EndBehavior)
1052
898
  }
1053
899
  attr_accessor :end_behavior
1054
-
1055
900
  sig {
1056
901
  params(end_behavior: ::Stripe::PaymentLink::CreateParams::SubscriptionData::TrialSettings::EndBehavior).void
1057
902
  }
@@ -1060,23 +905,18 @@ module Stripe
1060
905
  # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
1061
906
  sig { returns(String) }
1062
907
  attr_accessor :description
1063
-
1064
908
  # All invoices will be billed using the specified settings.
1065
909
  sig { returns(::Stripe::PaymentLink::CreateParams::SubscriptionData::InvoiceSettings) }
1066
910
  attr_accessor :invoice_settings
1067
-
1068
911
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
1069
912
  sig { returns(T::Hash[String, String]) }
1070
913
  attr_accessor :metadata
1071
-
1072
914
  # Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
1073
915
  sig { returns(Integer) }
1074
916
  attr_accessor :trial_period_days
1075
-
1076
917
  # Settings related to subscription trials.
1077
918
  sig { returns(::Stripe::PaymentLink::CreateParams::SubscriptionData::TrialSettings) }
1078
919
  attr_accessor :trial_settings
1079
-
1080
920
  sig {
1081
921
  params(description: String, invoice_settings: ::Stripe::PaymentLink::CreateParams::SubscriptionData::InvoiceSettings, metadata: T::Hash[String, String], trial_period_days: Integer, trial_settings: ::Stripe::PaymentLink::CreateParams::SubscriptionData::TrialSettings).void
1082
922
  }
@@ -1092,11 +932,9 @@ module Stripe
1092
932
  # Enable tax ID collection during checkout. Defaults to `false`.
1093
933
  sig { returns(T::Boolean) }
1094
934
  attr_accessor :enabled
1095
-
1096
935
  # Describes whether a tax ID is required during checkout. Defaults to `never`.
1097
936
  sig { returns(String) }
1098
937
  attr_accessor :required
1099
-
1100
938
  sig { params(enabled: T::Boolean, required: String).void }
1101
939
  def initialize(enabled: nil, required: nil); end
1102
940
  end
@@ -1104,89 +942,69 @@ module Stripe
1104
942
  # The amount that will be transferred automatically when a charge succeeds.
1105
943
  sig { returns(Integer) }
1106
944
  attr_accessor :amount
1107
-
1108
945
  # If specified, successful charges will be attributed to the destination
1109
946
  # account for tax reporting, and the funds from charges will be transferred
1110
947
  # to the destination account. The ID of the resulting transfer will be
1111
948
  # returned on the successful charge's `transfer` field.
1112
949
  sig { returns(String) }
1113
950
  attr_accessor :destination
1114
-
1115
951
  sig { params(amount: Integer, destination: String).void }
1116
952
  def initialize(amount: nil, destination: nil); end
1117
953
  end
1118
954
  # Behavior after the purchase is complete.
1119
955
  sig { returns(::Stripe::PaymentLink::CreateParams::AfterCompletion) }
1120
956
  attr_accessor :after_completion
1121
-
1122
957
  # Enables user redeemable promotion codes.
1123
958
  sig { returns(T::Boolean) }
1124
959
  attr_accessor :allow_promotion_codes
1125
-
1126
960
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices.
1127
961
  sig { returns(Integer) }
1128
962
  attr_accessor :application_fee_amount
1129
-
1130
963
  # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
1131
964
  sig { returns(Float) }
1132
965
  attr_accessor :application_fee_percent
1133
-
1134
966
  # Configuration for automatic tax collection.
1135
967
  sig { returns(::Stripe::PaymentLink::CreateParams::AutomaticTax) }
1136
968
  attr_accessor :automatic_tax
1137
-
1138
969
  # Configuration for collecting the customer's billing address. Defaults to `auto`.
1139
970
  sig { returns(String) }
1140
971
  attr_accessor :billing_address_collection
1141
-
1142
972
  # Configure fields to gather active consent from customers.
1143
973
  sig { returns(::Stripe::PaymentLink::CreateParams::ConsentCollection) }
1144
974
  attr_accessor :consent_collection
1145
-
1146
975
  # 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) and supported by each line item's price.
1147
976
  sig { returns(String) }
1148
977
  attr_accessor :currency
1149
-
1150
978
  # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
1151
979
  sig { returns(T::Array[::Stripe::PaymentLink::CreateParams::CustomField]) }
1152
980
  attr_accessor :custom_fields
1153
-
1154
981
  # Display additional text for your customers using custom text.
1155
982
  sig { returns(::Stripe::PaymentLink::CreateParams::CustomText) }
1156
983
  attr_accessor :custom_text
1157
-
1158
984
  # Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers).
1159
985
  sig { returns(String) }
1160
986
  attr_accessor :customer_creation
1161
-
1162
987
  # Specifies which fields in the response should be expanded.
1163
988
  sig { returns(T::Array[String]) }
1164
989
  attr_accessor :expand
1165
-
1166
990
  # The custom message to be displayed to a customer when a payment link is no longer active.
1167
991
  sig { returns(String) }
1168
992
  attr_accessor :inactive_message
1169
-
1170
993
  # Generate a post-purchase Invoice for one-time payments.
1171
994
  sig { returns(::Stripe::PaymentLink::CreateParams::InvoiceCreation) }
1172
995
  attr_accessor :invoice_creation
1173
-
1174
996
  # The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.
1175
997
  sig { returns(T::Array[::Stripe::PaymentLink::CreateParams::LineItem]) }
1176
998
  attr_accessor :line_items
1177
-
1178
999
  # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
1179
1000
  sig { returns(T::Hash[String, String]) }
1180
1001
  attr_accessor :metadata
1181
-
1182
1002
  # The account on behalf of which to charge.
1183
1003
  sig { returns(String) }
1184
1004
  attr_accessor :on_behalf_of
1185
-
1186
1005
  # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
1187
1006
  sig { returns(::Stripe::PaymentLink::CreateParams::PaymentIntentData) }
1188
1007
  attr_accessor :payment_intent_data
1189
-
1190
1008
  # Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.
1191
1009
  #
1192
1010
  # Can only be set in `subscription` mode. Defaults to `always`.
@@ -1194,45 +1012,35 @@ module Stripe
1194
1012
  # If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials).
1195
1013
  sig { returns(String) }
1196
1014
  attr_accessor :payment_method_collection
1197
-
1198
1015
  # The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support)).
1199
1016
  sig { returns(T::Array[String]) }
1200
1017
  attr_accessor :payment_method_types
1201
-
1202
1018
  # Controls phone number collection settings during checkout.
1203
1019
  #
1204
1020
  # We recommend that you review your privacy policy and check with your legal contacts.
1205
1021
  sig { returns(::Stripe::PaymentLink::CreateParams::PhoneNumberCollection) }
1206
1022
  attr_accessor :phone_number_collection
1207
-
1208
1023
  # Settings that restrict the usage of a payment link.
1209
1024
  sig { returns(::Stripe::PaymentLink::CreateParams::Restrictions) }
1210
1025
  attr_accessor :restrictions
1211
-
1212
1026
  # Configuration for collecting the customer's shipping address.
1213
1027
  sig { returns(::Stripe::PaymentLink::CreateParams::ShippingAddressCollection) }
1214
1028
  attr_accessor :shipping_address_collection
1215
-
1216
1029
  # The shipping rate options to apply to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
1217
1030
  sig { returns(T::Array[::Stripe::PaymentLink::CreateParams::ShippingOption]) }
1218
1031
  attr_accessor :shipping_options
1219
-
1220
1032
  # 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`).
1221
1033
  sig { returns(String) }
1222
1034
  attr_accessor :submit_type
1223
-
1224
1035
  # 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`.
1225
1036
  sig { returns(::Stripe::PaymentLink::CreateParams::SubscriptionData) }
1226
1037
  attr_accessor :subscription_data
1227
-
1228
1038
  # Controls tax ID collection during checkout.
1229
1039
  sig { returns(::Stripe::PaymentLink::CreateParams::TaxIdCollection) }
1230
1040
  attr_accessor :tax_id_collection
1231
-
1232
1041
  # The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
1233
1042
  sig { returns(::Stripe::PaymentLink::CreateParams::TransferData) }
1234
1043
  attr_accessor :transfer_data
1235
-
1236
1044
  sig {
1237
1045
  params(after_completion: ::Stripe::PaymentLink::CreateParams::AfterCompletion, allow_promotion_codes: T::Boolean, application_fee_amount: Integer, application_fee_percent: Float, automatic_tax: ::Stripe::PaymentLink::CreateParams::AutomaticTax, billing_address_collection: String, consent_collection: ::Stripe::PaymentLink::CreateParams::ConsentCollection, currency: String, custom_fields: T::Array[::Stripe::PaymentLink::CreateParams::CustomField], custom_text: ::Stripe::PaymentLink::CreateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: String, invoice_creation: ::Stripe::PaymentLink::CreateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLink::CreateParams::LineItem], metadata: T::Hash[String, String], on_behalf_of: String, payment_intent_data: ::Stripe::PaymentLink::CreateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T::Array[String], phone_number_collection: ::Stripe::PaymentLink::CreateParams::PhoneNumberCollection, restrictions: ::Stripe::PaymentLink::CreateParams::Restrictions, shipping_address_collection: ::Stripe::PaymentLink::CreateParams::ShippingAddressCollection, shipping_options: T::Array[::Stripe::PaymentLink::CreateParams::ShippingOption], submit_type: String, subscription_data: ::Stripe::PaymentLink::CreateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLink::CreateParams::TaxIdCollection, transfer_data: ::Stripe::PaymentLink::CreateParams::TransferData).void
1238
1046
  }
@@ -1271,7 +1079,6 @@ module Stripe
1271
1079
  # Specifies which fields in the response should be expanded.
1272
1080
  sig { returns(T::Array[String]) }
1273
1081
  attr_accessor :expand
1274
-
1275
1082
  sig { params(expand: T::Array[String]).void }
1276
1083
  def initialize(expand: nil); end
1277
1084
  end
@@ -1281,7 +1088,6 @@ module Stripe
1281
1088
  # A custom message to display to the customer after the purchase is complete.
1282
1089
  sig { returns(String) }
1283
1090
  attr_accessor :custom_message
1284
-
1285
1091
  sig { params(custom_message: String).void }
1286
1092
  def initialize(custom_message: nil); end
1287
1093
  end
@@ -1289,22 +1095,18 @@ module Stripe
1289
1095
  # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included.
1290
1096
  sig { returns(String) }
1291
1097
  attr_accessor :url
1292
-
1293
1098
  sig { params(url: String).void }
1294
1099
  def initialize(url: nil); end
1295
1100
  end
1296
1101
  # Configuration when `type=hosted_confirmation`.
1297
1102
  sig { returns(::Stripe::PaymentLink::UpdateParams::AfterCompletion::HostedConfirmation) }
1298
1103
  attr_accessor :hosted_confirmation
1299
-
1300
1104
  # Configuration when `type=redirect`.
1301
1105
  sig { returns(::Stripe::PaymentLink::UpdateParams::AfterCompletion::Redirect) }
1302
1106
  attr_accessor :redirect
1303
-
1304
1107
  # The specified behavior after the purchase is complete. Either `redirect` or `hosted_confirmation`.
1305
1108
  sig { returns(String) }
1306
1109
  attr_accessor :type
1307
-
1308
1110
  sig {
1309
1111
  params(hosted_confirmation: ::Stripe::PaymentLink::UpdateParams::AfterCompletion::HostedConfirmation, redirect: ::Stripe::PaymentLink::UpdateParams::AfterCompletion::Redirect, type: String).void
1310
1112
  }
@@ -1315,11 +1117,9 @@ module Stripe
1315
1117
  # The connected account being referenced when `type` is `account`.
1316
1118
  sig { returns(String) }
1317
1119
  attr_accessor :account
1318
-
1319
1120
  # Type of the account referenced in the request.
1320
1121
  sig { returns(String) }
1321
1122
  attr_accessor :type
1322
-
1323
1123
  sig { params(account: String, type: String).void }
1324
1124
  def initialize(account: nil, type: nil); end
1325
1125
  end
@@ -1328,11 +1128,9 @@ module Stripe
1328
1128
  # Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation.
1329
1129
  sig { returns(T::Boolean) }
1330
1130
  attr_accessor :enabled
1331
-
1332
1131
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
1333
1132
  sig { returns(::Stripe::PaymentLink::UpdateParams::AutomaticTax::Liability) }
1334
1133
  attr_accessor :liability
1335
-
1336
1134
  sig {
1337
1135
  params(enabled: T::Boolean, liability: ::Stripe::PaymentLink::UpdateParams::AutomaticTax::Liability).void
1338
1136
  }
@@ -1344,11 +1142,9 @@ module Stripe
1344
1142
  # The label for the option, displayed to the customer. Up to 100 characters.
1345
1143
  sig { returns(String) }
1346
1144
  attr_accessor :label
1347
-
1348
1145
  # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
1349
1146
  sig { returns(String) }
1350
1147
  attr_accessor :value
1351
-
1352
1148
  sig { params(label: String, value: String).void }
1353
1149
  def initialize(label: nil, value: nil); end
1354
1150
  end
@@ -1357,7 +1153,6 @@ module Stripe
1357
1153
  returns(T::Array[::Stripe::PaymentLink::UpdateParams::CustomField::Dropdown::Option])
1358
1154
  }
1359
1155
  attr_accessor :options
1360
-
1361
1156
  sig {
1362
1157
  params(options: T::Array[::Stripe::PaymentLink::UpdateParams::CustomField::Dropdown::Option]).void
1363
1158
  }
@@ -1367,11 +1162,9 @@ module Stripe
1367
1162
  # Custom text for the label, displayed to the customer. Up to 50 characters.
1368
1163
  sig { returns(String) }
1369
1164
  attr_accessor :custom
1370
-
1371
1165
  # The type of the label.
1372
1166
  sig { returns(String) }
1373
1167
  attr_accessor :type
1374
-
1375
1168
  sig { params(custom: String, type: String).void }
1376
1169
  def initialize(custom: nil, type: nil); end
1377
1170
  end
@@ -1379,11 +1172,9 @@ module Stripe
1379
1172
  # The maximum character length constraint for the customer's input.
1380
1173
  sig { returns(Integer) }
1381
1174
  attr_accessor :maximum_length
1382
-
1383
1175
  # The minimum character length requirement for the customer's input.
1384
1176
  sig { returns(Integer) }
1385
1177
  attr_accessor :minimum_length
1386
-
1387
1178
  sig { params(maximum_length: Integer, minimum_length: Integer).void }
1388
1179
  def initialize(maximum_length: nil, minimum_length: nil); end
1389
1180
  end
@@ -1391,42 +1182,33 @@ module Stripe
1391
1182
  # The maximum character length constraint for the customer's input.
1392
1183
  sig { returns(Integer) }
1393
1184
  attr_accessor :maximum_length
1394
-
1395
1185
  # The minimum character length requirement for the customer's input.
1396
1186
  sig { returns(Integer) }
1397
1187
  attr_accessor :minimum_length
1398
-
1399
1188
  sig { params(maximum_length: Integer, minimum_length: Integer).void }
1400
1189
  def initialize(maximum_length: nil, minimum_length: nil); end
1401
1190
  end
1402
1191
  # Configuration for `type=dropdown` fields.
1403
1192
  sig { returns(::Stripe::PaymentLink::UpdateParams::CustomField::Dropdown) }
1404
1193
  attr_accessor :dropdown
1405
-
1406
1194
  # String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
1407
1195
  sig { returns(String) }
1408
1196
  attr_accessor :key
1409
-
1410
1197
  # The label for the field, displayed to the customer.
1411
1198
  sig { returns(::Stripe::PaymentLink::UpdateParams::CustomField::Label) }
1412
1199
  attr_accessor :label
1413
-
1414
1200
  # Configuration for `type=numeric` fields.
1415
1201
  sig { returns(::Stripe::PaymentLink::UpdateParams::CustomField::Numeric) }
1416
1202
  attr_accessor :numeric
1417
-
1418
1203
  # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
1419
1204
  sig { returns(T::Boolean) }
1420
1205
  attr_accessor :optional
1421
-
1422
1206
  # Configuration for `type=text` fields.
1423
1207
  sig { returns(::Stripe::PaymentLink::UpdateParams::CustomField::Text) }
1424
1208
  attr_accessor :text
1425
-
1426
1209
  # The type of the field.
1427
1210
  sig { returns(String) }
1428
1211
  attr_accessor :type
1429
-
1430
1212
  sig {
1431
1213
  params(dropdown: ::Stripe::PaymentLink::UpdateParams::CustomField::Dropdown, key: String, label: ::Stripe::PaymentLink::UpdateParams::CustomField::Label, numeric: ::Stripe::PaymentLink::UpdateParams::CustomField::Numeric, optional: T::Boolean, text: ::Stripe::PaymentLink::UpdateParams::CustomField::Text, type: String).void
1432
1214
  }
@@ -1445,7 +1227,6 @@ module Stripe
1445
1227
  # Text may be up to 1200 characters in length.
1446
1228
  sig { returns(String) }
1447
1229
  attr_accessor :message
1448
-
1449
1230
  sig { params(message: String).void }
1450
1231
  def initialize(message: nil); end
1451
1232
  end
@@ -1453,7 +1234,6 @@ module Stripe
1453
1234
  # Text may be up to 1200 characters in length.
1454
1235
  sig { returns(String) }
1455
1236
  attr_accessor :message
1456
-
1457
1237
  sig { params(message: String).void }
1458
1238
  def initialize(message: nil); end
1459
1239
  end
@@ -1461,7 +1241,6 @@ module Stripe
1461
1241
  # Text may be up to 1200 characters in length.
1462
1242
  sig { returns(String) }
1463
1243
  attr_accessor :message
1464
-
1465
1244
  sig { params(message: String).void }
1466
1245
  def initialize(message: nil); end
1467
1246
  end
@@ -1469,28 +1248,23 @@ module Stripe
1469
1248
  # Text may be up to 1200 characters in length.
1470
1249
  sig { returns(String) }
1471
1250
  attr_accessor :message
1472
-
1473
1251
  sig { params(message: String).void }
1474
1252
  def initialize(message: nil); end
1475
1253
  end
1476
1254
  # Custom text that should be displayed after the payment confirmation button.
1477
1255
  sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::AfterSubmit)) }
1478
1256
  attr_accessor :after_submit
1479
-
1480
1257
  # Custom text that should be displayed alongside shipping address collection.
1481
1258
  sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::ShippingAddress)) }
1482
1259
  attr_accessor :shipping_address
1483
-
1484
1260
  # Custom text that should be displayed alongside the payment confirmation button.
1485
1261
  sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::Submit)) }
1486
1262
  attr_accessor :submit
1487
-
1488
1263
  # Custom text that should be displayed in place of the default terms of service agreement text.
1489
1264
  sig {
1490
1265
  returns(T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::TermsOfServiceAcceptance))
1491
1266
  }
1492
1267
  attr_accessor :terms_of_service_acceptance
1493
-
1494
1268
  sig {
1495
1269
  params(after_submit: T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::AfterSubmit), shipping_address: T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::ShippingAddress), submit: T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::Submit), terms_of_service_acceptance: T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText::TermsOfServiceAcceptance)).void
1496
1270
  }
@@ -1507,11 +1281,9 @@ module Stripe
1507
1281
  # The name of the custom field. This may be up to 40 characters.
1508
1282
  sig { returns(String) }
1509
1283
  attr_accessor :name
1510
-
1511
1284
  # The value of the custom field. This may be up to 140 characters.
1512
1285
  sig { returns(String) }
1513
1286
  attr_accessor :value
1514
-
1515
1287
  sig { params(name: String, value: String).void }
1516
1288
  def initialize(name: nil, value: nil); end
1517
1289
  end
@@ -1519,11 +1291,9 @@ module Stripe
1519
1291
  # The connected account being referenced when `type` is `account`.
1520
1292
  sig { returns(String) }
1521
1293
  attr_accessor :account
1522
-
1523
1294
  # Type of the account referenced in the request.
1524
1295
  sig { returns(String) }
1525
1296
  attr_accessor :type
1526
-
1527
1297
  sig { params(account: String, type: String).void }
1528
1298
  def initialize(account: nil, type: nil); end
1529
1299
  end
@@ -1531,42 +1301,34 @@ module Stripe
1531
1301
  # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
1532
1302
  sig { returns(T.nilable(String)) }
1533
1303
  attr_accessor :amount_tax_display
1534
-
1535
1304
  sig { params(amount_tax_display: T.nilable(String)).void }
1536
1305
  def initialize(amount_tax_display: nil); end
1537
1306
  end
1538
1307
  # The account tax IDs associated with the invoice.
1539
1308
  sig { returns(T.nilable(T::Array[String])) }
1540
1309
  attr_accessor :account_tax_ids
1541
-
1542
1310
  # Default custom fields to be displayed on invoices for this customer.
1543
1311
  sig {
1544
1312
  returns(T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::CustomField]))
1545
1313
  }
1546
1314
  attr_accessor :custom_fields
1547
-
1548
1315
  # An arbitrary string attached to the object. Often useful for displaying to users.
1549
1316
  sig { returns(String) }
1550
1317
  attr_accessor :description
1551
-
1552
1318
  # Default footer to be displayed on invoices for this customer.
1553
1319
  sig { returns(String) }
1554
1320
  attr_accessor :footer
1555
-
1556
1321
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
1557
1322
  sig { returns(::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::Issuer) }
1558
1323
  attr_accessor :issuer
1559
-
1560
1324
  # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1561
1325
  sig { returns(T.nilable(T::Hash[String, String])) }
1562
1326
  attr_accessor :metadata
1563
-
1564
1327
  # Default options for invoice PDF rendering for this customer.
1565
1328
  sig {
1566
1329
  returns(T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions))
1567
1330
  }
1568
1331
  attr_accessor :rendering_options
1569
-
1570
1332
  sig {
1571
1333
  params(account_tax_ids: T.nilable(T::Array[String]), custom_fields: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::CustomField]), description: String, footer: String, issuer: ::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::Issuer, metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions)).void
1572
1334
  }
@@ -1583,11 +1345,9 @@ module Stripe
1583
1345
  # Whether the feature is enabled
1584
1346
  sig { returns(T::Boolean) }
1585
1347
  attr_accessor :enabled
1586
-
1587
1348
  # Invoice PDF configuration.
1588
1349
  sig { returns(::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData) }
1589
1350
  attr_accessor :invoice_data
1590
-
1591
1351
  sig {
1592
1352
  params(enabled: T::Boolean, invoice_data: ::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData).void
1593
1353
  }
@@ -1598,30 +1358,24 @@ module Stripe
1598
1358
  # Set to true if the quantity can be adjusted to any non-negative Integer.
1599
1359
  sig { returns(T::Boolean) }
1600
1360
  attr_accessor :enabled
1601
-
1602
1361
  # The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
1603
1362
  sig { returns(Integer) }
1604
1363
  attr_accessor :maximum
1605
-
1606
1364
  # The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
1607
1365
  sig { returns(Integer) }
1608
1366
  attr_accessor :minimum
1609
-
1610
1367
  sig { params(enabled: T::Boolean, maximum: Integer, minimum: Integer).void }
1611
1368
  def initialize(enabled: nil, maximum: nil, minimum: nil); end
1612
1369
  end
1613
1370
  # When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.
1614
1371
  sig { returns(::Stripe::PaymentLink::UpdateParams::LineItem::AdjustableQuantity) }
1615
1372
  attr_accessor :adjustable_quantity
1616
-
1617
1373
  # The ID of an existing line item on the payment link.
1618
1374
  sig { returns(String) }
1619
1375
  attr_accessor :id
1620
-
1621
1376
  # The quantity of the line item being purchased.
1622
1377
  sig { returns(Integer) }
1623
1378
  attr_accessor :quantity
1624
-
1625
1379
  sig {
1626
1380
  params(adjustable_quantity: ::Stripe::PaymentLink::UpdateParams::LineItem::AdjustableQuantity, id: String, quantity: Integer).void
1627
1381
  }
@@ -1631,25 +1385,20 @@ module Stripe
1631
1385
  # An arbitrary string attached to the object. Often useful for displaying to users.
1632
1386
  sig { returns(T.nilable(String)) }
1633
1387
  attr_accessor :description
1634
-
1635
1388
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents](https://stripe.com/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
1636
1389
  sig { returns(T.nilable(T::Hash[String, String])) }
1637
1390
  attr_accessor :metadata
1638
-
1639
1391
  # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
1640
1392
  #
1641
1393
  # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
1642
1394
  sig { returns(T.nilable(String)) }
1643
1395
  attr_accessor :statement_descriptor
1644
-
1645
1396
  # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
1646
1397
  sig { returns(T.nilable(String)) }
1647
1398
  attr_accessor :statement_descriptor_suffix
1648
-
1649
1399
  # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
1650
1400
  sig { returns(T.nilable(String)) }
1651
1401
  attr_accessor :transfer_group
1652
-
1653
1402
  sig {
1654
1403
  params(description: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_group: T.nilable(String)).void
1655
1404
  }
@@ -1661,19 +1410,24 @@ module Stripe
1661
1410
  transfer_group: nil
1662
1411
  ); end
1663
1412
  end
1413
+ class PhoneNumberCollection < Stripe::RequestParams
1414
+ # Set to `true` to enable phone number collection.
1415
+ sig { returns(T::Boolean) }
1416
+ attr_accessor :enabled
1417
+ sig { params(enabled: T::Boolean).void }
1418
+ def initialize(enabled: nil); end
1419
+ end
1664
1420
  class Restrictions < Stripe::RequestParams
1665
1421
  class CompletedSessions < Stripe::RequestParams
1666
1422
  # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met.
1667
1423
  sig { returns(Integer) }
1668
1424
  attr_accessor :limit
1669
-
1670
1425
  sig { params(limit: Integer).void }
1671
1426
  def initialize(limit: nil); end
1672
1427
  end
1673
1428
  # Configuration for the `completed_sessions` restriction type.
1674
1429
  sig { returns(::Stripe::PaymentLink::UpdateParams::Restrictions::CompletedSessions) }
1675
1430
  attr_accessor :completed_sessions
1676
-
1677
1431
  sig {
1678
1432
  params(completed_sessions: ::Stripe::PaymentLink::UpdateParams::Restrictions::CompletedSessions).void
1679
1433
  }
@@ -1684,7 +1438,6 @@ module Stripe
1684
1438
  # shipping locations.
1685
1439
  sig { returns(T::Array[String]) }
1686
1440
  attr_accessor :allowed_countries
1687
-
1688
1441
  sig { params(allowed_countries: T::Array[String]).void }
1689
1442
  def initialize(allowed_countries: nil); end
1690
1443
  end
@@ -1694,11 +1447,9 @@ module Stripe
1694
1447
  # The connected account being referenced when `type` is `account`.
1695
1448
  sig { returns(String) }
1696
1449
  attr_accessor :account
1697
-
1698
1450
  # Type of the account referenced in the request.
1699
1451
  sig { returns(String) }
1700
1452
  attr_accessor :type
1701
-
1702
1453
  sig { params(account: String, type: String).void }
1703
1454
  def initialize(account: nil, type: nil); end
1704
1455
  end
@@ -1707,7 +1458,6 @@ module Stripe
1707
1458
  returns(::Stripe::PaymentLink::UpdateParams::SubscriptionData::InvoiceSettings::Issuer)
1708
1459
  }
1709
1460
  attr_accessor :issuer
1710
-
1711
1461
  sig {
1712
1462
  params(issuer: ::Stripe::PaymentLink::UpdateParams::SubscriptionData::InvoiceSettings::Issuer).void
1713
1463
  }
@@ -1718,7 +1468,6 @@ module Stripe
1718
1468
  # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
1719
1469
  sig { returns(String) }
1720
1470
  attr_accessor :missing_payment_method
1721
-
1722
1471
  sig { params(missing_payment_method: String).void }
1723
1472
  def initialize(missing_payment_method: nil); end
1724
1473
  end
@@ -1727,7 +1476,6 @@ module Stripe
1727
1476
  returns(::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings::EndBehavior)
1728
1477
  }
1729
1478
  attr_accessor :end_behavior
1730
-
1731
1479
  sig {
1732
1480
  params(end_behavior: ::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings::EndBehavior).void
1733
1481
  }
@@ -1736,21 +1484,17 @@ module Stripe
1736
1484
  # All invoices will be billed using the specified settings.
1737
1485
  sig { returns(::Stripe::PaymentLink::UpdateParams::SubscriptionData::InvoiceSettings) }
1738
1486
  attr_accessor :invoice_settings
1739
-
1740
1487
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
1741
1488
  sig { returns(T.nilable(T::Hash[String, String])) }
1742
1489
  attr_accessor :metadata
1743
-
1744
1490
  # Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
1745
1491
  sig { returns(T.nilable(Integer)) }
1746
1492
  attr_accessor :trial_period_days
1747
-
1748
1493
  # Settings related to subscription trials.
1749
1494
  sig {
1750
1495
  returns(T.nilable(::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings))
1751
1496
  }
1752
1497
  attr_accessor :trial_settings
1753
-
1754
1498
  sig {
1755
1499
  params(invoice_settings: ::Stripe::PaymentLink::UpdateParams::SubscriptionData::InvoiceSettings, metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings)).void
1756
1500
  }
@@ -1765,70 +1509,54 @@ module Stripe
1765
1509
  # Enable tax ID collection during checkout. Defaults to `false`.
1766
1510
  sig { returns(T::Boolean) }
1767
1511
  attr_accessor :enabled
1768
-
1769
1512
  # Describes whether a tax ID is required during checkout. Defaults to `never`.
1770
1513
  sig { returns(String) }
1771
1514
  attr_accessor :required
1772
-
1773
1515
  sig { params(enabled: T::Boolean, required: String).void }
1774
1516
  def initialize(enabled: nil, required: nil); end
1775
1517
  end
1776
1518
  # Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
1777
1519
  sig { returns(T::Boolean) }
1778
1520
  attr_accessor :active
1779
-
1780
1521
  # Behavior after the purchase is complete.
1781
1522
  sig { returns(::Stripe::PaymentLink::UpdateParams::AfterCompletion) }
1782
1523
  attr_accessor :after_completion
1783
-
1784
1524
  # Enables user redeemable promotion codes.
1785
1525
  sig { returns(T::Boolean) }
1786
1526
  attr_accessor :allow_promotion_codes
1787
-
1788
1527
  # Configuration for automatic tax collection.
1789
1528
  sig { returns(::Stripe::PaymentLink::UpdateParams::AutomaticTax) }
1790
1529
  attr_accessor :automatic_tax
1791
-
1792
1530
  # Configuration for collecting the customer's billing address. Defaults to `auto`.
1793
1531
  sig { returns(String) }
1794
1532
  attr_accessor :billing_address_collection
1795
-
1796
1533
  # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
1797
1534
  sig { returns(T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::CustomField])) }
1798
1535
  attr_accessor :custom_fields
1799
-
1800
1536
  # Display additional text for your customers using custom text.
1801
1537
  sig { returns(::Stripe::PaymentLink::UpdateParams::CustomText) }
1802
1538
  attr_accessor :custom_text
1803
-
1804
1539
  # Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers).
1805
1540
  sig { returns(String) }
1806
1541
  attr_accessor :customer_creation
1807
-
1808
1542
  # Specifies which fields in the response should be expanded.
1809
1543
  sig { returns(T::Array[String]) }
1810
1544
  attr_accessor :expand
1811
-
1812
1545
  # The custom message to be displayed to a customer when a payment link is no longer active.
1813
1546
  sig { returns(T.nilable(String)) }
1814
1547
  attr_accessor :inactive_message
1815
-
1816
1548
  # Generate a post-purchase Invoice for one-time payments.
1817
1549
  sig { returns(::Stripe::PaymentLink::UpdateParams::InvoiceCreation) }
1818
1550
  attr_accessor :invoice_creation
1819
-
1820
1551
  # The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.
1821
1552
  sig { returns(T::Array[::Stripe::PaymentLink::UpdateParams::LineItem]) }
1822
1553
  attr_accessor :line_items
1823
-
1824
1554
  # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
1825
1555
  sig { returns(T::Hash[String, String]) }
1826
1556
  attr_accessor :metadata
1827
-
1828
1557
  # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
1829
1558
  sig { returns(::Stripe::PaymentLink::UpdateParams::PaymentIntentData) }
1830
1559
  attr_accessor :payment_intent_data
1831
-
1832
1560
  # Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.
1833
1561
  #
1834
1562
  # Can only be set in `subscription` mode. Defaults to `always`.
@@ -1836,33 +1564,31 @@ module Stripe
1836
1564
  # If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials).
1837
1565
  sig { returns(String) }
1838
1566
  attr_accessor :payment_method_collection
1839
-
1840
1567
  # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
1841
1568
  sig { returns(T.nilable(T::Array[String])) }
1842
1569
  attr_accessor :payment_method_types
1843
-
1570
+ # Controls phone number collection settings during checkout.
1571
+ #
1572
+ # We recommend that you review your privacy policy and check with your legal contacts.
1573
+ sig { returns(::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection) }
1574
+ attr_accessor :phone_number_collection
1844
1575
  # Settings that restrict the usage of a payment link.
1845
1576
  sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::Restrictions)) }
1846
1577
  attr_accessor :restrictions
1847
-
1848
1578
  # Configuration for collecting the customer's shipping address.
1849
1579
  sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection)) }
1850
1580
  attr_accessor :shipping_address_collection
1851
-
1852
1581
  # 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`).
1853
1582
  sig { returns(String) }
1854
1583
  attr_accessor :submit_type
1855
-
1856
1584
  # 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`.
1857
1585
  sig { returns(::Stripe::PaymentLink::UpdateParams::SubscriptionData) }
1858
1586
  attr_accessor :subscription_data
1859
-
1860
1587
  # Controls tax ID collection during checkout.
1861
1588
  sig { returns(::Stripe::PaymentLink::UpdateParams::TaxIdCollection) }
1862
1589
  attr_accessor :tax_id_collection
1863
-
1864
1590
  sig {
1865
- params(active: T::Boolean, after_completion: ::Stripe::PaymentLink::UpdateParams::AfterCompletion, allow_promotion_codes: T::Boolean, automatic_tax: ::Stripe::PaymentLink::UpdateParams::AutomaticTax, billing_address_collection: String, custom_fields: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::CustomField]), custom_text: ::Stripe::PaymentLink::UpdateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: T.nilable(String), invoice_creation: ::Stripe::PaymentLink::UpdateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLink::UpdateParams::LineItem], metadata: T::Hash[String, String], payment_intent_data: ::Stripe::PaymentLink::UpdateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T.nilable(T::Array[String]), restrictions: T.nilable(::Stripe::PaymentLink::UpdateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection), submit_type: String, subscription_data: ::Stripe::PaymentLink::UpdateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLink::UpdateParams::TaxIdCollection).void
1591
+ params(active: T::Boolean, after_completion: ::Stripe::PaymentLink::UpdateParams::AfterCompletion, allow_promotion_codes: T::Boolean, automatic_tax: ::Stripe::PaymentLink::UpdateParams::AutomaticTax, billing_address_collection: String, custom_fields: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::CustomField]), custom_text: ::Stripe::PaymentLink::UpdateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: T.nilable(String), invoice_creation: ::Stripe::PaymentLink::UpdateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLink::UpdateParams::LineItem], metadata: T::Hash[String, String], payment_intent_data: ::Stripe::PaymentLink::UpdateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T.nilable(T::Array[String]), phone_number_collection: ::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection, restrictions: T.nilable(::Stripe::PaymentLink::UpdateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection), submit_type: String, subscription_data: ::Stripe::PaymentLink::UpdateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLink::UpdateParams::TaxIdCollection).void
1866
1592
  }
1867
1593
  def initialize(
1868
1594
  active: nil,
@@ -1881,6 +1607,7 @@ module Stripe
1881
1607
  payment_intent_data: nil,
1882
1608
  payment_method_collection: nil,
1883
1609
  payment_method_types: nil,
1610
+ phone_number_collection: nil,
1884
1611
  restrictions: nil,
1885
1612
  shipping_address_collection: nil,
1886
1613
  submit_type: nil,
@@ -1892,19 +1619,15 @@ module Stripe
1892
1619
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
1893
1620
  sig { returns(String) }
1894
1621
  attr_accessor :ending_before
1895
-
1896
1622
  # Specifies which fields in the response should be expanded.
1897
1623
  sig { returns(T::Array[String]) }
1898
1624
  attr_accessor :expand
1899
-
1900
1625
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
1901
1626
  sig { returns(Integer) }
1902
1627
  attr_accessor :limit
1903
-
1904
1628
  # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
1905
1629
  sig { returns(String) }
1906
1630
  attr_accessor :starting_after
1907
-
1908
1631
  sig {
1909
1632
  params(ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
1910
1633
  }