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
@@ -13,7 +13,6 @@ module Stripe
13
13
  # Whether Stripe automatically computes tax on this Order.
14
14
  sig { returns(T::Boolean) }
15
15
  attr_reader :enabled
16
-
17
16
  # The status of the most recent automated tax calculation for this Order.
18
17
  sig { returns(T.nilable(String)) }
19
18
  attr_reader :status
@@ -23,23 +22,18 @@ module Stripe
23
22
  # City, district, suburb, town, or village.
24
23
  sig { returns(T.nilable(String)) }
25
24
  attr_reader :city
26
-
27
25
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
28
26
  sig { returns(T.nilable(String)) }
29
27
  attr_reader :country
30
-
31
28
  # Address line 1 (e.g., street, PO Box, or company name).
32
29
  sig { returns(T.nilable(String)) }
33
30
  attr_reader :line1
34
-
35
31
  # Address line 2 (e.g., apartment, suite, unit, or building).
36
32
  sig { returns(T.nilable(String)) }
37
33
  attr_reader :line2
38
-
39
34
  # ZIP or postal code.
40
35
  sig { returns(T.nilable(String)) }
41
36
  attr_reader :postal_code
42
-
43
37
  # State, county, province, or region.
44
38
  sig { returns(T.nilable(String)) }
45
39
  attr_reader :state
@@ -47,15 +41,12 @@ module Stripe
47
41
  # Billing address for the order.
48
42
  sig { returns(T.nilable(Address)) }
49
43
  attr_reader :address
50
-
51
44
  # Email address for the order.
52
45
  sig { returns(T.nilable(String)) }
53
46
  attr_reader :email
54
-
55
47
  # Full name for the order.
56
48
  sig { returns(T.nilable(String)) }
57
49
  attr_reader :name
58
-
59
50
  # Billing phone number for the order (including extension).
60
51
  sig { returns(T.nilable(String)) }
61
52
  attr_reader :phone
@@ -69,15 +60,12 @@ module Stripe
69
60
  # The amount of this credit to apply to the order.
70
61
  sig { returns(Integer) }
71
62
  attr_reader :amount
72
-
73
63
  # Details for a gift card.
74
64
  sig { returns(T.nilable(GiftCard)) }
75
65
  attr_reader :gift_card
76
-
77
66
  # Line items on this order that are ineligible for this credit
78
67
  sig { returns(T.nilable(T::Array[String])) }
79
68
  attr_reader :ineligible_line_items
80
-
81
69
  # The type of credit to apply to the order, only `gift_card` currently supported.
82
70
  sig { returns(String) }
83
71
  attr_reader :type
@@ -95,15 +83,12 @@ module Stripe
95
83
  # A URL for custom mandate text
96
84
  sig { returns(String) }
97
85
  attr_reader :custom_mandate_url
98
-
99
86
  # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
100
87
  sig { returns(T.nilable(String)) }
101
88
  attr_reader :interval_description
102
-
103
89
  # Payment schedule for the mandate.
104
90
  sig { returns(T.nilable(String)) }
105
91
  attr_reader :payment_schedule
106
-
107
92
  # Transaction type of the mandate.
108
93
  sig { returns(T.nilable(String)) }
109
94
  attr_reader :transaction_type
@@ -111,7 +96,6 @@ module Stripe
111
96
  # Attribute for field mandate_options
112
97
  sig { returns(MandateOptions) }
113
98
  attr_reader :mandate_options
114
-
115
99
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
116
100
  #
117
101
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -121,7 +105,6 @@ module Stripe
121
105
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
122
106
  sig { returns(String) }
123
107
  attr_reader :setup_future_usage
124
-
125
108
  # Bank account verification method.
126
109
  sig { returns(String) }
127
110
  attr_reader :verification_method
@@ -130,11 +113,9 @@ module Stripe
130
113
  # Controls when the funds will be captured from the customer's account.
131
114
  sig { returns(String) }
132
115
  attr_reader :capture_method
133
-
134
116
  # Order identifier shown to the user in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
135
117
  sig { returns(T.nilable(String)) }
136
118
  attr_reader :reference
137
-
138
119
  # Indicates that you intend to make future payments with the payment method.
139
120
  #
140
121
  # Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
@@ -160,7 +141,6 @@ module Stripe
160
141
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
161
142
  sig { returns(String) }
162
143
  attr_reader :preferred_language
163
-
164
144
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
165
145
  #
166
146
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -175,7 +155,6 @@ module Stripe
175
155
  # Controls when the funds will be captured from the customer's account.
176
156
  sig { returns(String) }
177
157
  attr_reader :capture_method
178
-
179
158
  # Indicates that you intend to make future payments with the payment method.
180
159
  #
181
160
  # Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
@@ -196,13 +175,11 @@ module Stripe
196
175
  # Attribute for field eu_bank_transfer
197
176
  sig { returns(EuBankTransfer) }
198
177
  attr_reader :eu_bank_transfer
199
-
200
178
  # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
201
179
  #
202
180
  # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
203
181
  sig { returns(T::Array[String]) }
204
182
  attr_reader :requested_address_types
205
-
206
183
  # The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
207
184
  sig { returns(T.nilable(String)) }
208
185
  attr_reader :type
@@ -210,11 +187,9 @@ module Stripe
210
187
  # Attribute for field bank_transfer
211
188
  sig { returns(BankTransfer) }
212
189
  attr_reader :bank_transfer
213
-
214
190
  # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
215
191
  sig { returns(T.nilable(String)) }
216
192
  attr_reader :funding_type
217
-
218
193
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
219
194
  #
220
195
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -240,11 +215,9 @@ module Stripe
240
215
  # Controls when the funds will be captured from the customer's account.
241
216
  sig { returns(String) }
242
217
  attr_reader :capture_method
243
-
244
218
  # Preferred locale of the Klarna checkout page that the customer is redirected to.
245
219
  sig { returns(T.nilable(String)) }
246
220
  attr_reader :preferred_locale
247
-
248
221
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
249
222
  #
250
223
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -259,11 +232,9 @@ module Stripe
259
232
  # Controls when the funds will be captured from the customer's account.
260
233
  sig { returns(String) }
261
234
  attr_reader :capture_method
262
-
263
235
  # [Deprecated] This is a legacy parameter that no longer has any function.
264
236
  sig { returns(T.nilable(String)) }
265
237
  attr_reader :persistent_token
266
-
267
238
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
268
239
  #
269
240
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -278,7 +249,6 @@ module Stripe
278
249
  # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
279
250
  sig { returns(Integer) }
280
251
  attr_reader :expires_after_days
281
-
282
252
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
283
253
  #
284
254
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -306,7 +276,6 @@ module Stripe
306
276
  # The tax for a single unit of the line item in minor units. Cannot be a negative number.
307
277
  sig { returns(Integer) }
308
278
  attr_reader :amount
309
-
310
279
  # The tax behavior for the line item.
311
280
  sig { returns(String) }
312
281
  attr_reader :behavior
@@ -314,31 +283,24 @@ module Stripe
314
283
  # Type of the line item.
315
284
  sig { returns(String) }
316
285
  attr_reader :category
317
-
318
286
  # Description of the line item.
319
287
  sig { returns(String) }
320
288
  attr_reader :description
321
-
322
289
  # Descriptive name of the line item.
323
290
  sig { returns(String) }
324
291
  attr_reader :name
325
-
326
292
  # Quantity of the line item. Cannot be a negative number.
327
293
  sig { returns(Integer) }
328
294
  attr_reader :quantity
329
-
330
295
  # Client facing stock keeping unit, article number or similar.
331
296
  sig { returns(String) }
332
297
  attr_reader :sku
333
-
334
298
  # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
335
299
  sig { returns(String) }
336
300
  attr_reader :sold_by
337
-
338
301
  # Attribute for field tax
339
302
  sig { returns(Tax) }
340
303
  attr_reader :tax
341
-
342
304
  # Price for a single unit of the line item in minor units. Cannot be a negative number.
343
305
  sig { returns(Integer) }
344
306
  attr_reader :unit_amount
@@ -346,23 +308,18 @@ module Stripe
346
308
  # Controls when the funds will be captured from the customer's account.
347
309
  sig { returns(String) }
348
310
  attr_reader :capture_method
349
-
350
311
  # The line items purchased by the customer.
351
312
  sig { returns(T::Array[LineItem]) }
352
313
  attr_reader :line_items
353
-
354
314
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
355
315
  sig { returns(T.nilable(String)) }
356
316
  attr_reader :preferred_locale
357
-
358
317
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
359
318
  sig { returns(T.nilable(String)) }
360
319
  attr_reader :reference
361
-
362
320
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
363
321
  sig { returns(T.nilable(String)) }
364
322
  attr_reader :reference_id
365
-
366
323
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
367
324
  #
368
325
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -372,7 +329,6 @@ module Stripe
372
329
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
373
330
  sig { returns(String) }
374
331
  attr_reader :setup_future_usage
375
-
376
332
  # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
377
333
  sig { returns(T::Array[String]) }
378
334
  attr_reader :subsellers
@@ -386,7 +342,6 @@ module Stripe
386
342
  # Attribute for field mandate_options
387
343
  sig { returns(MandateOptions) }
388
344
  attr_reader :mandate_options
389
-
390
345
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
391
346
  #
392
347
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -401,7 +356,6 @@ module Stripe
401
356
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
402
357
  sig { returns(T.nilable(String)) }
403
358
  attr_reader :preferred_language
404
-
405
359
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
406
360
  #
407
361
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -416,11 +370,9 @@ module Stripe
416
370
  # The app ID registered with WeChat Pay. Only required when client is ios or android.
417
371
  sig { returns(T.nilable(String)) }
418
372
  attr_reader :app_id
419
-
420
373
  # The client type that the end customer will pay from
421
374
  sig { returns(T.nilable(String)) }
422
375
  attr_reader :client
423
-
424
376
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
425
377
  #
426
378
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -434,59 +386,45 @@ module Stripe
434
386
  # Attribute for field acss_debit
435
387
  sig { returns(AcssDebit) }
436
388
  attr_reader :acss_debit
437
-
438
389
  # Attribute for field afterpay_clearpay
439
390
  sig { returns(AfterpayClearpay) }
440
391
  attr_reader :afterpay_clearpay
441
-
442
392
  # Attribute for field alipay
443
393
  sig { returns(Alipay) }
444
394
  attr_reader :alipay
445
-
446
395
  # Attribute for field bancontact
447
396
  sig { returns(Bancontact) }
448
397
  attr_reader :bancontact
449
-
450
398
  # Attribute for field card
451
399
  sig { returns(Card) }
452
400
  attr_reader :card
453
-
454
401
  # Attribute for field customer_balance
455
402
  sig { returns(CustomerBalance) }
456
403
  attr_reader :customer_balance
457
-
458
404
  # Attribute for field ideal
459
405
  sig { returns(Ideal) }
460
406
  attr_reader :ideal
461
-
462
407
  # Attribute for field klarna
463
408
  sig { returns(Klarna) }
464
409
  attr_reader :klarna
465
-
466
410
  # Attribute for field link
467
411
  sig { returns(Link) }
468
412
  attr_reader :link
469
-
470
413
  # Attribute for field oxxo
471
414
  sig { returns(Oxxo) }
472
415
  attr_reader :oxxo
473
-
474
416
  # Attribute for field p24
475
417
  sig { returns(P24) }
476
418
  attr_reader :p24
477
-
478
419
  # Attribute for field paypal
479
420
  sig { returns(Paypal) }
480
421
  attr_reader :paypal
481
-
482
422
  # Attribute for field sepa_debit
483
423
  sig { returns(SepaDebit) }
484
424
  attr_reader :sepa_debit
485
-
486
425
  # Attribute for field sofort
487
426
  sig { returns(Sofort) }
488
427
  attr_reader :sofort
489
-
490
428
  # Attribute for field wechat_pay
491
429
  sig { returns(WechatPay) }
492
430
  attr_reader :wechat_pay
@@ -495,7 +433,6 @@ module Stripe
495
433
  # The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
496
434
  sig { returns(T.nilable(Integer)) }
497
435
  attr_reader :amount
498
-
499
436
  # ID of the Connected account receiving the transfer.
500
437
  sig { returns(T.any(String, Stripe::Account)) }
501
438
  attr_reader :destination
@@ -503,31 +440,24 @@ module Stripe
503
440
  # 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.
504
441
  sig { returns(T.nilable(Integer)) }
505
442
  attr_reader :application_fee_amount
506
-
507
443
  # Indicates whether order has been opted into using [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods) to manage payment method types.
508
444
  sig { returns(T.nilable(AutomaticPaymentMethods)) }
509
445
  attr_reader :automatic_payment_methods
510
-
511
446
  # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
512
447
  sig { returns(T.nilable(PaymentMethodOptions)) }
513
448
  attr_reader :payment_method_options
514
-
515
449
  # The list of [payment method types](https://stripe.com/docs/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
516
450
  sig { returns(T.nilable(T::Array[String])) }
517
451
  attr_reader :payment_method_types
518
-
519
452
  # The URL to redirect the customer to after they authenticate their payment.
520
453
  sig { returns(T.nilable(String)) }
521
454
  attr_reader :return_url
522
-
523
455
  # For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
524
456
  sig { returns(T.nilable(String)) }
525
457
  attr_reader :statement_descriptor
526
-
527
458
  # Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
528
459
  sig { returns(T.nilable(String)) }
529
460
  attr_reader :statement_descriptor_suffix
530
-
531
461
  # Provides configuration for completing a transfer for the order after it is paid.
532
462
  sig { returns(T.nilable(TransferData)) }
533
463
  attr_reader :transfer_data
@@ -535,11 +465,9 @@ module Stripe
535
465
  # ID of the payment intent associated with this order. Null when the order is `open`.
536
466
  sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) }
537
467
  attr_reader :payment_intent
538
-
539
468
  # Settings describing how the order should configure generated PaymentIntents.
540
469
  sig { returns(T.nilable(Settings)) }
541
470
  attr_reader :settings
542
-
543
471
  # The status of the underlying payment associated with this order, if any. Null when the order is `open`.
544
472
  sig { returns(T.nilable(String)) }
545
473
  attr_reader :status
@@ -549,17 +477,14 @@ module Stripe
549
477
  # Amount of tax applied for this rate.
550
478
  sig { returns(Integer) }
551
479
  attr_reader :amount
552
-
553
480
  # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
554
481
  #
555
482
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
556
483
  sig { returns(Stripe::TaxRate) }
557
484
  attr_reader :rate
558
-
559
485
  # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
560
486
  sig { returns(T.nilable(String)) }
561
487
  attr_reader :taxability_reason
562
-
563
488
  # The amount on which tax is calculated, in cents (or local equivalent).
564
489
  sig { returns(T.nilable(Integer)) }
565
490
  attr_reader :taxable_amount
@@ -567,19 +492,15 @@ module Stripe
567
492
  # Total shipping cost before any discounts or taxes are applied.
568
493
  sig { returns(Integer) }
569
494
  attr_reader :amount_subtotal
570
-
571
495
  # Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
572
496
  sig { returns(Integer) }
573
497
  attr_reader :amount_tax
574
-
575
498
  # Total shipping cost after discounts and taxes are applied.
576
499
  sig { returns(Integer) }
577
500
  attr_reader :amount_total
578
-
579
501
  # The ID of the ShippingRate for this order.
580
502
  sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) }
581
503
  attr_reader :shipping_rate
582
-
583
504
  # The taxes applied to the shipping rate.
584
505
  sig { returns(T::Array[Tax]) }
585
506
  attr_reader :taxes
@@ -589,23 +510,18 @@ module Stripe
589
510
  # City, district, suburb, town, or village.
590
511
  sig { returns(T.nilable(String)) }
591
512
  attr_reader :city
592
-
593
513
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
594
514
  sig { returns(T.nilable(String)) }
595
515
  attr_reader :country
596
-
597
516
  # Address line 1 (e.g., street, PO Box, or company name).
598
517
  sig { returns(T.nilable(String)) }
599
518
  attr_reader :line1
600
-
601
519
  # Address line 2 (e.g., apartment, suite, unit, or building).
602
520
  sig { returns(T.nilable(String)) }
603
521
  attr_reader :line2
604
-
605
522
  # ZIP or postal code.
606
523
  sig { returns(T.nilable(String)) }
607
524
  attr_reader :postal_code
608
-
609
525
  # State, county, province, or region.
610
526
  sig { returns(T.nilable(String)) }
611
527
  attr_reader :state
@@ -613,21 +529,18 @@ module Stripe
613
529
  # Recipient shipping address. Required if the order includes products that are shippable.
614
530
  sig { returns(T.nilable(Address)) }
615
531
  attr_reader :address
616
-
617
532
  # Recipient name.
618
533
  sig { returns(T.nilable(String)) }
619
534
  attr_reader :name
620
-
621
535
  # Recipient phone (including extension).
622
536
  sig { returns(T.nilable(String)) }
623
537
  attr_reader :phone
624
538
  end
625
539
  class TaxDetails < Stripe::StripeObject
626
540
  class TaxId < Stripe::StripeObject
627
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
541
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
628
542
  sig { returns(String) }
629
543
  attr_reader :type
630
-
631
544
  # The value of the tax ID.
632
545
  sig { returns(T.nilable(String)) }
633
546
  attr_reader :value
@@ -635,7 +548,6 @@ module Stripe
635
548
  # Describes the purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
636
549
  sig { returns(String) }
637
550
  attr_reader :tax_exempt
638
-
639
551
  # The purchaser's tax IDs to be used in calculation of tax for this Order.
640
552
  sig { returns(T::Array[TaxId]) }
641
553
  attr_reader :tax_ids
@@ -646,7 +558,6 @@ module Stripe
646
558
  # The amount discounted.
647
559
  sig { returns(Integer) }
648
560
  attr_reader :amount
649
-
650
561
  # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
651
562
  # It contains information about when the discount began, when it will end, and what it is applied to.
652
563
  #
@@ -658,17 +569,14 @@ module Stripe
658
569
  # Amount of tax applied for this rate.
659
570
  sig { returns(Integer) }
660
571
  attr_reader :amount
661
-
662
572
  # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
663
573
  #
664
574
  # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
665
575
  sig { returns(Stripe::TaxRate) }
666
576
  attr_reader :rate
667
-
668
577
  # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
669
578
  sig { returns(T.nilable(String)) }
670
579
  attr_reader :taxability_reason
671
-
672
580
  # The amount on which tax is calculated, in cents (or local equivalent).
673
581
  sig { returns(T.nilable(Integer)) }
674
582
  attr_reader :taxable_amount
@@ -676,7 +584,6 @@ module Stripe
676
584
  # The aggregated discounts.
677
585
  sig { returns(T::Array[Discount]) }
678
586
  attr_reader :discounts
679
-
680
587
  # The aggregated tax amounts by rate.
681
588
  sig { returns(T::Array[Tax]) }
682
589
  attr_reader :taxes
@@ -684,19 +591,15 @@ module Stripe
684
591
  # Attribute for field amount_credit
685
592
  sig { returns(Integer) }
686
593
  attr_reader :amount_credit
687
-
688
594
  # This is the sum of all the discounts.
689
595
  sig { returns(Integer) }
690
596
  attr_reader :amount_discount
691
-
692
597
  # This is the sum of all the shipping amounts.
693
598
  sig { returns(T.nilable(Integer)) }
694
599
  attr_reader :amount_shipping
695
-
696
600
  # This is the sum of all the tax amounts.
697
601
  sig { returns(Integer) }
698
602
  attr_reader :amount_tax
699
-
700
603
  # Attribute for field breakdown
701
604
  sig { returns(Breakdown) }
702
605
  attr_reader :breakdown
@@ -704,27 +607,21 @@ module Stripe
704
607
  # Attribute for field amount_remaining
705
608
  sig { returns(Integer) }
706
609
  attr_reader :amount_remaining
707
-
708
610
  # Order cost before any discounts or taxes are applied. A positive integer representing the subtotal of the order in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency).
709
611
  sig { returns(Integer) }
710
612
  attr_reader :amount_subtotal
711
-
712
613
  # Total order cost after discounts and taxes are applied. A positive integer representing the cost of the order in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). To submit an order, the total must be either 0 or at least $0.50 USD or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts).
713
614
  sig { returns(Integer) }
714
615
  attr_reader :amount_total
715
-
716
616
  # ID of the Connect application that created the Order, if any.
717
617
  sig { returns(T.nilable(T.any(String, Stripe::Application))) }
718
618
  attr_reader :application
719
-
720
619
  # Attribute for field automatic_tax
721
620
  sig { returns(AutomaticTax) }
722
621
  attr_reader :automatic_tax
723
-
724
622
  # Customer billing details associated with the order.
725
623
  sig { returns(T.nilable(BillingDetails)) }
726
624
  attr_reader :billing_details
727
-
728
625
  # The client secret of this Order. Used for client-side retrieval using a publishable key.
729
626
  #
730
627
  # The client secret can be used to complete a payment for an Order from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
@@ -732,100 +629,76 @@ module Stripe
732
629
  # Refer to our docs for [creating and processing an order](https://stripe.com/docs/orders-beta/create-and-process) to learn about how client_secret should be handled.
733
630
  sig { returns(T.nilable(String)) }
734
631
  attr_reader :client_secret
735
-
736
632
  # Time at which the object was created. Measured in seconds since the Unix epoch.
737
633
  sig { returns(Integer) }
738
634
  attr_reader :created
739
-
740
635
  # The credits applied to the Order. At most 10 credits can be applied to an Order.
741
636
  sig { returns(T::Array[Credit]) }
742
637
  attr_reader :credits
743
-
744
638
  # 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).
745
639
  sig { returns(String) }
746
640
  attr_reader :currency
747
-
748
641
  # The customer which this orders belongs to.
749
642
  sig { returns(T.nilable(T.any(String, Stripe::Customer))) }
750
643
  attr_reader :customer
751
-
752
644
  # An arbitrary string attached to the object. Often useful for displaying to users.
753
645
  sig { returns(T.nilable(String)) }
754
646
  attr_reader :description
755
-
756
647
  # The discounts applied to the order. Use `expand[]=discounts` to expand each discount.
757
648
  sig { returns(T.nilable(T::Array[T.any(String, Stripe::Discount)])) }
758
649
  attr_reader :discounts
759
-
760
650
  # Unique identifier for the object.
761
651
  sig { returns(String) }
762
652
  attr_reader :id
763
-
764
653
  # A recent IP address of the purchaser used for tax reporting and tax location inference.
765
654
  sig { returns(T.nilable(String)) }
766
655
  attr_reader :ip_address
767
-
768
656
  # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost. There is a maximum of 100 line items.
769
657
  sig { returns(Stripe::ListObject) }
770
658
  attr_reader :line_items
771
-
772
659
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
773
660
  sig { returns(T::Boolean) }
774
661
  attr_reader :livemode
775
-
776
662
  # 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.
777
663
  sig { returns(T.nilable(T::Hash[String, String])) }
778
664
  attr_reader :metadata
779
-
780
665
  # String representing the object's type. Objects of the same type share the same value.
781
666
  sig { returns(String) }
782
667
  attr_reader :object
783
-
784
668
  # Attribute for field payment
785
669
  sig { returns(Payment) }
786
670
  attr_reader :payment
787
-
788
671
  # The details of the customer cost of shipping, including the customer chosen ShippingRate.
789
672
  sig { returns(T.nilable(ShippingCost)) }
790
673
  attr_reader :shipping_cost
791
-
792
674
  # Customer shipping information associated with the order.
793
675
  sig { returns(T.nilable(ShippingDetails)) }
794
676
  attr_reader :shipping_details
795
-
796
677
  # The overall status of the order.
797
678
  sig { returns(String) }
798
679
  attr_reader :status
799
-
800
680
  # Attribute for field tax_details
801
681
  sig { returns(TaxDetails) }
802
682
  attr_reader :tax_details
803
-
804
683
  # Attribute for field total_details
805
684
  sig { returns(TotalDetails) }
806
685
  attr_reader :total_details
807
-
808
686
  class ListParams < Stripe::RequestParams
809
687
  # Only return orders for the given customer.
810
688
  sig { returns(String) }
811
689
  attr_accessor :customer
812
-
813
690
  # 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.
814
691
  sig { returns(String) }
815
692
  attr_accessor :ending_before
816
-
817
693
  # Specifies which fields in the response should be expanded.
818
694
  sig { returns(T::Array[String]) }
819
695
  attr_accessor :expand
820
-
821
696
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
822
697
  sig { returns(Integer) }
823
698
  attr_accessor :limit
824
-
825
699
  # 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.
826
700
  sig { returns(String) }
827
701
  attr_accessor :starting_after
828
-
829
702
  sig {
830
703
  params(customer: String, ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
831
704
  }
@@ -842,7 +715,6 @@ module Stripe
842
715
  # Enable automatic tax calculation which will automatically compute tax rates on this order.
843
716
  sig { returns(T::Boolean) }
844
717
  attr_accessor :enabled
845
-
846
718
  sig { params(enabled: T::Boolean).void }
847
719
  def initialize(enabled: nil); end
848
720
  end
@@ -851,27 +723,21 @@ module Stripe
851
723
  # City, district, suburb, town, or village.
852
724
  sig { returns(String) }
853
725
  attr_accessor :city
854
-
855
726
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
856
727
  sig { returns(String) }
857
728
  attr_accessor :country
858
-
859
729
  # Address line 1 (e.g., street, PO Box, or company name).
860
730
  sig { returns(String) }
861
731
  attr_accessor :line1
862
-
863
732
  # Address line 2 (e.g., apartment, suite, unit, or building).
864
733
  sig { returns(String) }
865
734
  attr_accessor :line2
866
-
867
735
  # ZIP or postal code.
868
736
  sig { returns(String) }
869
737
  attr_accessor :postal_code
870
-
871
738
  # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
872
739
  sig { returns(String) }
873
740
  attr_accessor :state
874
-
875
741
  sig {
876
742
  params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
877
743
  }
@@ -887,19 +753,15 @@ module Stripe
887
753
  # The billing address provided by the customer.
888
754
  sig { returns(::Stripe::Order::CreateParams::BillingDetails::Address) }
889
755
  attr_accessor :address
890
-
891
756
  # The billing email provided by the customer.
892
757
  sig { returns(String) }
893
758
  attr_accessor :email
894
-
895
759
  # The billing name provided by the customer.
896
760
  sig { returns(String) }
897
761
  attr_accessor :name
898
-
899
762
  # The billing phone number provided by the customer.
900
763
  sig { returns(String) }
901
764
  attr_accessor :phone
902
-
903
765
  sig {
904
766
  params(address: ::Stripe::Order::CreateParams::BillingDetails::Address, email: String, name: String, phone: String).void
905
767
  }
@@ -909,11 +771,9 @@ module Stripe
909
771
  # The gift card to apply to the order.
910
772
  sig { returns(String) }
911
773
  attr_accessor :gift_card
912
-
913
774
  # The type of credit to apply to the order, only `gift_card` currently supported.
914
775
  sig { returns(String) }
915
776
  attr_accessor :type
916
-
917
777
  sig { params(gift_card: String, type: String).void }
918
778
  def initialize(gift_card: nil, type: nil); end
919
779
  end
@@ -921,15 +781,12 @@ module Stripe
921
781
  # ID of the coupon to create a new discount for.
922
782
  sig { returns(String) }
923
783
  attr_accessor :coupon
924
-
925
784
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
926
785
  sig { returns(String) }
927
786
  attr_accessor :discount
928
-
929
787
  # ID of the promotion code to create a new discount for.
930
788
  sig { returns(String) }
931
789
  attr_accessor :promotion_code
932
-
933
790
  sig { params(coupon: String, discount: String, promotion_code: String).void }
934
791
  def initialize(coupon: nil, discount: nil, promotion_code: nil); end
935
792
  end
@@ -938,11 +795,9 @@ module Stripe
938
795
  # ID of the coupon to create a new discount for.
939
796
  sig { returns(String) }
940
797
  attr_accessor :coupon
941
-
942
798
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
943
799
  sig { returns(String) }
944
800
  attr_accessor :discount
945
-
946
801
  sig { params(coupon: String, discount: String).void }
947
802
  def initialize(coupon: nil, discount: nil); end
948
803
  end
@@ -950,25 +805,20 @@ module Stripe
950
805
  # 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).
951
806
  sig { returns(String) }
952
807
  attr_accessor :currency
953
-
954
808
  # ID of the product this price belongs to.
955
809
  #
956
810
  # Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
957
811
  sig { returns(String) }
958
812
  attr_accessor :product
959
-
960
813
  # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
961
814
  sig { returns(String) }
962
815
  attr_accessor :tax_behavior
963
-
964
816
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
965
817
  sig { returns(Integer) }
966
818
  attr_accessor :unit_amount
967
-
968
819
  # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
969
820
  sig { returns(String) }
970
821
  attr_accessor :unit_amount_decimal
971
-
972
822
  sig {
973
823
  params(currency: String, product: String, tax_behavior: String, unit_amount: Integer, unit_amount_decimal: String).void
974
824
  }
@@ -985,62 +835,49 @@ module Stripe
985
835
  # Height, in inches. Maximum precision is 2 decimal places.
986
836
  sig { returns(Float) }
987
837
  attr_accessor :height
988
-
989
838
  # Length, in inches. Maximum precision is 2 decimal places.
990
839
  sig { returns(Float) }
991
840
  attr_accessor :length
992
-
993
841
  # Weight, in ounces. Maximum precision is 2 decimal places.
994
842
  sig { returns(Float) }
995
843
  attr_accessor :weight
996
-
997
844
  # Width, in inches. Maximum precision is 2 decimal places.
998
845
  sig { returns(Float) }
999
846
  attr_accessor :width
1000
-
1001
847
  sig { params(height: Float, length: Float, weight: Float, width: Float).void }
1002
848
  def initialize(height: nil, length: nil, weight: nil, width: nil); end
1003
849
  end
1004
850
  # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
1005
851
  sig { returns(T.nilable(String)) }
1006
852
  attr_accessor :description
1007
-
1008
853
  # A unique identifier for this product.
1009
854
  #
1010
855
  # `product_data` automatically creates a Product with this ID. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values in `product_data`, `product_data` updates the existing Product with the new information. So set `product_data[id]` to the same string every time you sell the same product, but don't re-use the same string for different products.
1011
856
  sig { returns(String) }
1012
857
  attr_accessor :id
1013
-
1014
858
  # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
1015
859
  sig { returns(T.nilable(T::Array[String])) }
1016
860
  attr_accessor :images
1017
-
1018
861
  # 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`.
1019
862
  sig { returns(T.nilable(T::Hash[String, String])) }
1020
863
  attr_accessor :metadata
1021
-
1022
864
  # The product's name, meant to be displayable to the customer.
1023
865
  sig { returns(String) }
1024
866
  attr_accessor :name
1025
-
1026
867
  # The dimensions of this product for shipping purposes.
1027
868
  sig {
1028
869
  returns(T.nilable(::Stripe::Order::CreateParams::LineItem::ProductData::PackageDimensions))
1029
870
  }
1030
871
  attr_accessor :package_dimensions
1031
-
1032
872
  # Whether this product is shipped (i.e., physical goods).
1033
873
  sig { returns(T::Boolean) }
1034
874
  attr_accessor :shippable
1035
-
1036
875
  # A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
1037
876
  sig { returns(T.nilable(String)) }
1038
877
  attr_accessor :tax_code
1039
-
1040
878
  # A URL of a publicly-accessible webpage for this product.
1041
879
  sig { returns(T.nilable(String)) }
1042
880
  attr_accessor :url
1043
-
1044
881
  sig {
1045
882
  params(description: T.nilable(String), id: String, images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, package_dimensions: T.nilable(::Stripe::Order::CreateParams::LineItem::ProductData::PackageDimensions), shippable: T::Boolean, tax_code: T.nilable(String), url: T.nilable(String)).void
1046
883
  }
@@ -1059,17 +896,14 @@ module Stripe
1059
896
  # The description for the line item. Will default to the name of the associated product.
1060
897
  sig { returns(String) }
1061
898
  attr_accessor :description
1062
-
1063
899
  # The discounts applied to this line item.
1064
900
  sig { returns(T.nilable(T::Array[::Stripe::Order::CreateParams::LineItem::Discount])) }
1065
901
  attr_accessor :discounts
1066
-
1067
902
  # The ID of a [Price](https://stripe.com/docs/api/prices) to add to the Order.
1068
903
  #
1069
904
  # The `price` parameter is an alternative to using the `product` parameter. If each of your products are sold at a single price, you can set `Product.default_price` and then pass the `product` parameter when creating a line item. If your products are sold at several possible prices, use the `price` parameter to explicitly specify which one to use.
1070
905
  sig { returns(String) }
1071
906
  attr_accessor :price
1072
-
1073
907
  # Data used to generate a new Price object inline.
1074
908
  #
1075
909
  # The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create products upfront and configure a `Product.default_price`, pass the `product` parameter when creating a line item. If you prefer not to define products upfront, or if you charge variable prices, pass the `price_data` parameter to describe the price for this line item.
@@ -1077,13 +911,11 @@ module Stripe
1077
911
  # Each time you pass `price_data` we create a Price for the product. This Price is hidden in both the Dashboard and API lists and cannot be reused.
1078
912
  sig { returns(::Stripe::Order::CreateParams::LineItem::PriceData) }
1079
913
  attr_accessor :price_data
1080
-
1081
914
  # The ID of a [Product](https://stripe.com/docs/api/products) to add to the Order.
1082
915
  #
1083
916
  # The product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
1084
917
  sig { returns(String) }
1085
918
  attr_accessor :product
1086
-
1087
919
  # Defines a Product inline and adds it to the Order.
1088
920
  #
1089
921
  # `product_data` is an alternative to the `product` parameter. If you created a Product upfront, use the `product` parameter to refer to the existing Product. But if you prefer not to create Products upfront, pass the `product_data` parameter to define a Product inline as part of configuring the Order.
@@ -1091,15 +923,12 @@ module Stripe
1091
923
  # `product_data` automatically creates a Product, just as if you had manually created the Product. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates.
1092
924
  sig { returns(::Stripe::Order::CreateParams::LineItem::ProductData) }
1093
925
  attr_accessor :product_data
1094
-
1095
926
  # The quantity of the line item.
1096
927
  sig { returns(Integer) }
1097
928
  attr_accessor :quantity
1098
-
1099
929
  # The tax rates applied to this line item.
1100
930
  sig { returns(T.nilable(T::Array[String])) }
1101
931
  attr_accessor :tax_rates
1102
-
1103
932
  sig {
1104
933
  params(description: String, discounts: T.nilable(T::Array[::Stripe::Order::CreateParams::LineItem::Discount]), price: String, price_data: ::Stripe::Order::CreateParams::LineItem::PriceData, product: String, product_data: ::Stripe::Order::CreateParams::LineItem::ProductData, quantity: Integer, tax_rates: T.nilable(T::Array[String])).void
1105
934
  }
@@ -1124,19 +953,15 @@ module Stripe
1124
953
  # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
1125
954
  sig { returns(T.nilable(String)) }
1126
955
  attr_accessor :custom_mandate_url
1127
-
1128
956
  # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
1129
957
  sig { returns(String) }
1130
958
  attr_accessor :interval_description
1131
-
1132
959
  # Payment schedule for the mandate.
1133
960
  sig { returns(String) }
1134
961
  attr_accessor :payment_schedule
1135
-
1136
962
  # Transaction type of the mandate.
1137
963
  sig { returns(String) }
1138
964
  attr_accessor :transaction_type
1139
-
1140
965
  sig {
1141
966
  params(custom_mandate_url: T.nilable(String), interval_description: String, payment_schedule: String, transaction_type: String).void
1142
967
  }
@@ -1152,7 +977,6 @@ module Stripe
1152
977
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::AcssDebit::MandateOptions)
1153
978
  }
1154
979
  attr_accessor :mandate_options
1155
-
1156
980
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1157
981
  #
1158
982
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1164,11 +988,9 @@ module Stripe
1164
988
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1165
989
  sig { returns(T.nilable(String)) }
1166
990
  attr_accessor :setup_future_usage
1167
-
1168
991
  # Bank account verification method.
1169
992
  sig { returns(String) }
1170
993
  attr_accessor :verification_method
1171
-
1172
994
  sig {
1173
995
  params(mandate_options: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), verification_method: String).void
1174
996
  }
@@ -1186,11 +1008,9 @@ module Stripe
1186
1008
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1187
1009
  sig { returns(String) }
1188
1010
  attr_accessor :capture_method
1189
-
1190
1011
  # An internal identifier or reference this payment corresponds to. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
1191
1012
  sig { returns(String) }
1192
1013
  attr_accessor :reference
1193
-
1194
1014
  # Indicates that you intend to make future payments with the payment method.
1195
1015
  #
1196
1016
  # Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
@@ -1200,7 +1020,6 @@ module Stripe
1200
1020
  # If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
1201
1021
  sig { returns(String) }
1202
1022
  attr_accessor :setup_future_usage
1203
-
1204
1023
  sig {
1205
1024
  params(capture_method: String, reference: String, setup_future_usage: String).void
1206
1025
  }
@@ -1218,7 +1037,6 @@ module Stripe
1218
1037
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1219
1038
  sig { returns(T.nilable(String)) }
1220
1039
  attr_accessor :setup_future_usage
1221
-
1222
1040
  sig { params(setup_future_usage: T.nilable(String)).void }
1223
1041
  def initialize(setup_future_usage: nil); end
1224
1042
  end
@@ -1226,7 +1044,6 @@ module Stripe
1226
1044
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
1227
1045
  sig { returns(String) }
1228
1046
  attr_accessor :preferred_language
1229
-
1230
1047
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1231
1048
  #
1232
1049
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1238,7 +1055,6 @@ module Stripe
1238
1055
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1239
1056
  sig { returns(T.nilable(String)) }
1240
1057
  attr_accessor :setup_future_usage
1241
-
1242
1058
  sig { params(preferred_language: String, setup_future_usage: T.nilable(String)).void }
1243
1059
  def initialize(preferred_language: nil, setup_future_usage: nil); end
1244
1060
  end
@@ -1246,7 +1062,6 @@ module Stripe
1246
1062
  # Controls when the funds will be captured from the customer's account.
1247
1063
  sig { returns(String) }
1248
1064
  attr_accessor :capture_method
1249
-
1250
1065
  # Indicates that you intend to make future payments with the payment method.
1251
1066
  #
1252
1067
  # Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
@@ -1256,7 +1071,6 @@ module Stripe
1256
1071
  # If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
1257
1072
  sig { returns(String) }
1258
1073
  attr_accessor :setup_future_usage
1259
-
1260
1074
  sig { params(capture_method: String, setup_future_usage: String).void }
1261
1075
  def initialize(capture_method: nil, setup_future_usage: nil); end
1262
1076
  end
@@ -1266,7 +1080,6 @@ module Stripe
1266
1080
  # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1267
1081
  sig { returns(String) }
1268
1082
  attr_accessor :country
1269
-
1270
1083
  sig { params(country: String).void }
1271
1084
  def initialize(country: nil); end
1272
1085
  end
@@ -1275,17 +1088,14 @@ module Stripe
1275
1088
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer::EuBankTransfer)
1276
1089
  }
1277
1090
  attr_accessor :eu_bank_transfer
1278
-
1279
1091
  # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1280
1092
  #
1281
1093
  # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1282
1094
  sig { returns(T::Array[String]) }
1283
1095
  attr_accessor :requested_address_types
1284
-
1285
1096
  # The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
1286
1097
  sig { returns(String) }
1287
1098
  attr_accessor :type
1288
-
1289
1099
  sig {
1290
1100
  params(eu_bank_transfer: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer::EuBankTransfer, requested_address_types: T::Array[String], type: String).void
1291
1101
  }
@@ -1296,11 +1106,9 @@ module Stripe
1296
1106
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer)
1297
1107
  }
1298
1108
  attr_accessor :bank_transfer
1299
-
1300
1109
  # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1301
1110
  sig { returns(String) }
1302
1111
  attr_accessor :funding_type
1303
-
1304
1112
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1305
1113
  #
1306
1114
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1312,7 +1120,6 @@ module Stripe
1312
1120
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1313
1121
  sig { returns(String) }
1314
1122
  attr_accessor :setup_future_usage
1315
-
1316
1123
  sig {
1317
1124
  params(bank_transfer: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer, funding_type: String, setup_future_usage: String).void
1318
1125
  }
@@ -1330,7 +1137,6 @@ module Stripe
1330
1137
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1331
1138
  sig { returns(T.nilable(String)) }
1332
1139
  attr_accessor :setup_future_usage
1333
-
1334
1140
  sig { params(setup_future_usage: T.nilable(String)).void }
1335
1141
  def initialize(setup_future_usage: nil); end
1336
1142
  end
@@ -1342,11 +1148,9 @@ module Stripe
1342
1148
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1343
1149
  sig { returns(T.nilable(String)) }
1344
1150
  attr_accessor :capture_method
1345
-
1346
1151
  # Preferred language of the Klarna authorization page that the customer is redirected to
1347
1152
  sig { returns(String) }
1348
1153
  attr_accessor :preferred_locale
1349
-
1350
1154
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1351
1155
  #
1352
1156
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1358,7 +1162,6 @@ module Stripe
1358
1162
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1359
1163
  sig { returns(String) }
1360
1164
  attr_accessor :setup_future_usage
1361
-
1362
1165
  sig {
1363
1166
  params(capture_method: T.nilable(String), preferred_locale: String, setup_future_usage: String).void
1364
1167
  }
@@ -1376,11 +1179,9 @@ module Stripe
1376
1179
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
1377
1180
  sig { returns(T.nilable(String)) }
1378
1181
  attr_accessor :capture_method
1379
-
1380
1182
  # [Deprecated] This is a legacy parameter that no longer has any function.
1381
1183
  sig { returns(String) }
1382
1184
  attr_accessor :persistent_token
1383
-
1384
1185
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1385
1186
  #
1386
1187
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1392,7 +1193,6 @@ module Stripe
1392
1193
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1393
1194
  sig { returns(T.nilable(String)) }
1394
1195
  attr_accessor :setup_future_usage
1395
-
1396
1196
  sig {
1397
1197
  params(capture_method: T.nilable(String), persistent_token: String, setup_future_usage: T.nilable(String)).void
1398
1198
  }
@@ -1406,7 +1206,6 @@ module Stripe
1406
1206
  # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1407
1207
  sig { returns(Integer) }
1408
1208
  attr_accessor :expires_after_days
1409
-
1410
1209
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1411
1210
  #
1412
1211
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1418,7 +1217,6 @@ module Stripe
1418
1217
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1419
1218
  sig { returns(String) }
1420
1219
  attr_accessor :setup_future_usage
1421
-
1422
1220
  sig { params(expires_after_days: Integer, setup_future_usage: String).void }
1423
1221
  def initialize(expires_after_days: nil, setup_future_usage: nil); end
1424
1222
  end
@@ -1434,11 +1232,9 @@ module Stripe
1434
1232
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1435
1233
  sig { returns(String) }
1436
1234
  attr_accessor :setup_future_usage
1437
-
1438
1235
  # Confirm that the payer has accepted the P24 terms and conditions.
1439
1236
  sig { returns(T::Boolean) }
1440
1237
  attr_accessor :tos_shown_and_accepted
1441
-
1442
1238
  sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void }
1443
1239
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
1444
1240
  end
@@ -1448,48 +1244,38 @@ module Stripe
1448
1244
  # The tax for a single unit of the line item in minor units. Cannot be a negative number.
1449
1245
  sig { returns(Integer) }
1450
1246
  attr_accessor :amount
1451
-
1452
1247
  # The tax behavior for the line item.
1453
1248
  sig { returns(String) }
1454
1249
  attr_accessor :behavior
1455
-
1456
1250
  sig { params(amount: Integer, behavior: String).void }
1457
1251
  def initialize(amount: nil, behavior: nil); end
1458
1252
  end
1459
1253
  # Type of the line item.
1460
1254
  sig { returns(String) }
1461
1255
  attr_accessor :category
1462
-
1463
1256
  # Description of the line item.
1464
1257
  sig { returns(String) }
1465
1258
  attr_accessor :description
1466
-
1467
1259
  # Descriptive name of the line item.
1468
1260
  sig { returns(String) }
1469
1261
  attr_accessor :name
1470
-
1471
1262
  # Quantity of the line item. Must be a positive number.
1472
1263
  sig { returns(Integer) }
1473
1264
  attr_accessor :quantity
1474
-
1475
1265
  # Client facing stock keeping unit, article number or similar.
1476
1266
  sig { returns(String) }
1477
1267
  attr_accessor :sku
1478
-
1479
1268
  # The Stripe account ID of the connected account that sells the item.
1480
1269
  sig { returns(String) }
1481
1270
  attr_accessor :sold_by
1482
-
1483
1271
  # The tax information for the line item.
1484
1272
  sig {
1485
1273
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem::Tax)
1486
1274
  }
1487
1275
  attr_accessor :tax
1488
-
1489
1276
  # Price for a single unit of the line item in minor units. Cannot be a negative number.
1490
1277
  sig { returns(Integer) }
1491
1278
  attr_accessor :unit_amount
1492
-
1493
1279
  sig {
1494
1280
  params(category: String, description: String, name: String, quantity: Integer, sku: String, sold_by: String, tax: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem::Tax, unit_amount: Integer).void
1495
1281
  }
@@ -1507,29 +1293,23 @@ module Stripe
1507
1293
  # Controls when the funds will be captured from the customer's account.
1508
1294
  sig { returns(T.nilable(String)) }
1509
1295
  attr_accessor :capture_method
1510
-
1511
1296
  # The line items purchased by the customer.
1512
1297
  sig {
1513
1298
  returns(T::Array[::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem])
1514
1299
  }
1515
1300
  attr_accessor :line_items
1516
-
1517
1301
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1518
1302
  sig { returns(String) }
1519
1303
  attr_accessor :preferred_locale
1520
-
1521
1304
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1522
1305
  sig { returns(String) }
1523
1306
  attr_accessor :reference
1524
-
1525
1307
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1526
1308
  sig { returns(String) }
1527
1309
  attr_accessor :reference_id
1528
-
1529
1310
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1530
1311
  sig { returns(String) }
1531
1312
  attr_accessor :risk_correlation_id
1532
-
1533
1313
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1534
1314
  #
1535
1315
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1541,11 +1321,9 @@ module Stripe
1541
1321
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1542
1322
  sig { returns(T.nilable(String)) }
1543
1323
  attr_accessor :setup_future_usage
1544
-
1545
1324
  # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1546
1325
  sig { returns(T::Array[String]) }
1547
1326
  attr_accessor :subsellers
1548
-
1549
1327
  sig {
1550
1328
  params(capture_method: T.nilable(String), line_items: T::Array[::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem], preferred_locale: String, reference: String, reference_id: String, risk_correlation_id: String, setup_future_usage: T.nilable(String), subsellers: T::Array[String]).void
1551
1329
  }
@@ -1565,7 +1343,6 @@ module Stripe
1565
1343
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
1566
1344
  sig { returns(T.nilable(String)) }
1567
1345
  attr_accessor :reference_prefix
1568
-
1569
1346
  sig { params(reference_prefix: T.nilable(String)).void }
1570
1347
  def initialize(reference_prefix: nil); end
1571
1348
  end
@@ -1574,7 +1351,6 @@ module Stripe
1574
1351
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::SepaDebit::MandateOptions)
1575
1352
  }
1576
1353
  attr_accessor :mandate_options
1577
-
1578
1354
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1579
1355
  #
1580
1356
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1586,7 +1362,6 @@ module Stripe
1586
1362
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1587
1363
  sig { returns(T.nilable(String)) }
1588
1364
  attr_accessor :setup_future_usage
1589
-
1590
1365
  sig {
1591
1366
  params(mandate_options: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
1592
1367
  }
@@ -1596,7 +1371,6 @@ module Stripe
1596
1371
  # Language shown to the payer on redirect.
1597
1372
  sig { returns(T.nilable(String)) }
1598
1373
  attr_accessor :preferred_language
1599
-
1600
1374
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1601
1375
  #
1602
1376
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1608,7 +1382,6 @@ module Stripe
1608
1382
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1609
1383
  sig { returns(T.nilable(String)) }
1610
1384
  attr_accessor :setup_future_usage
1611
-
1612
1385
  sig {
1613
1386
  params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(String)).void
1614
1387
  }
@@ -1618,11 +1391,9 @@ module Stripe
1618
1391
  # The app ID registered with WeChat Pay. Only required when client is ios or android.
1619
1392
  sig { returns(String) }
1620
1393
  attr_accessor :app_id
1621
-
1622
1394
  # The client type that the end customer will pay from
1623
1395
  sig { returns(String) }
1624
1396
  attr_accessor :client
1625
-
1626
1397
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1627
1398
  #
1628
1399
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1634,7 +1405,6 @@ module Stripe
1634
1405
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1635
1406
  sig { returns(String) }
1636
1407
  attr_accessor :setup_future_usage
1637
-
1638
1408
  sig { params(app_id: String, client: String, setup_future_usage: String).void }
1639
1409
  def initialize(app_id: nil, client: nil, setup_future_usage: nil); end
1640
1410
  end
@@ -1643,91 +1413,76 @@ module Stripe
1643
1413
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::AcssDebit)
1644
1414
  }
1645
1415
  attr_accessor :acss_debit
1646
-
1647
1416
  # If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
1648
1417
  sig {
1649
1418
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::AfterpayClearpay)
1650
1419
  }
1651
1420
  attr_accessor :afterpay_clearpay
1652
-
1653
1421
  # If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
1654
1422
  sig {
1655
1423
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Alipay)
1656
1424
  }
1657
1425
  attr_accessor :alipay
1658
-
1659
1426
  # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
1660
1427
  sig {
1661
1428
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Bancontact)
1662
1429
  }
1663
1430
  attr_accessor :bancontact
1664
-
1665
1431
  # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
1666
1432
  sig {
1667
1433
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Card)
1668
1434
  }
1669
1435
  attr_accessor :card
1670
-
1671
1436
  # If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
1672
1437
  sig {
1673
1438
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance)
1674
1439
  }
1675
1440
  attr_accessor :customer_balance
1676
-
1677
1441
  # If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
1678
1442
  sig {
1679
1443
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Ideal)
1680
1444
  }
1681
1445
  attr_accessor :ideal
1682
-
1683
1446
  # If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
1684
1447
  sig {
1685
1448
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Klarna)
1686
1449
  }
1687
1450
  attr_accessor :klarna
1688
-
1689
1451
  # If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
1690
1452
  sig {
1691
1453
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Link)
1692
1454
  }
1693
1455
  attr_accessor :link
1694
-
1695
1456
  # If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
1696
1457
  sig {
1697
1458
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Oxxo)
1698
1459
  }
1699
1460
  attr_accessor :oxxo
1700
-
1701
1461
  # If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
1702
1462
  sig {
1703
1463
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::P24)
1704
1464
  }
1705
1465
  attr_accessor :p24
1706
-
1707
1466
  # If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
1708
1467
  sig {
1709
1468
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Paypal)
1710
1469
  }
1711
1470
  attr_accessor :paypal
1712
-
1713
1471
  # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
1714
1472
  sig {
1715
1473
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::SepaDebit)
1716
1474
  }
1717
1475
  attr_accessor :sepa_debit
1718
-
1719
1476
  # If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
1720
1477
  sig {
1721
1478
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Sofort)
1722
1479
  }
1723
1480
  attr_accessor :sofort
1724
-
1725
1481
  # If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
1726
1482
  sig {
1727
1483
  returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::WechatPay)
1728
1484
  }
1729
1485
  attr_accessor :wechat_pay
1730
-
1731
1486
  sig {
1732
1487
  params(acss_debit: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::AcssDebit, afterpay_clearpay: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Alipay, bancontact: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Bancontact, card: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Card, customer_balance: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance, ideal: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Ideal, klarna: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Klarna, link: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Link, oxxo: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Oxxo, p24: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::P24, paypal: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Paypal, sepa_debit: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::Sofort, wechat_pay: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions::WechatPay).void
1733
1488
  }
@@ -1753,42 +1508,33 @@ module Stripe
1753
1508
  # The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
1754
1509
  sig { returns(Integer) }
1755
1510
  attr_accessor :amount
1756
-
1757
1511
  # ID of the Connected account receiving the transfer.
1758
1512
  sig { returns(String) }
1759
1513
  attr_accessor :destination
1760
-
1761
1514
  sig { params(amount: Integer, destination: String).void }
1762
1515
  def initialize(amount: nil, destination: nil); end
1763
1516
  end
1764
1517
  # 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.
1765
1518
  sig { returns(Integer) }
1766
1519
  attr_accessor :application_fee_amount
1767
-
1768
1520
  # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
1769
1521
  sig { returns(::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions) }
1770
1522
  attr_accessor :payment_method_options
1771
-
1772
1523
  # The list of [payment method types](https://stripe.com/docs/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
1773
1524
  sig { returns(T::Array[String]) }
1774
1525
  attr_accessor :payment_method_types
1775
-
1776
1526
  # The URL to redirect the customer to after they authenticate their payment.
1777
1527
  sig { returns(String) }
1778
1528
  attr_accessor :return_url
1779
-
1780
1529
  # For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
1781
1530
  sig { returns(String) }
1782
1531
  attr_accessor :statement_descriptor
1783
-
1784
1532
  # Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
1785
1533
  sig { returns(String) }
1786
1534
  attr_accessor :statement_descriptor_suffix
1787
-
1788
1535
  # Provides configuration for completing a transfer for the order after it is paid.
1789
1536
  sig { returns(::Stripe::Order::CreateParams::Payment::Settings::TransferData) }
1790
1537
  attr_accessor :transfer_data
1791
-
1792
1538
  sig {
1793
1539
  params(application_fee_amount: Integer, payment_method_options: ::Stripe::Order::CreateParams::Payment::Settings::PaymentMethodOptions, payment_method_types: T::Array[String], return_url: String, statement_descriptor: String, statement_descriptor_suffix: String, transfer_data: ::Stripe::Order::CreateParams::Payment::Settings::TransferData).void
1794
1540
  }
@@ -1805,7 +1551,6 @@ module Stripe
1805
1551
  # Settings describing how the order should configure generated PaymentIntents.
1806
1552
  sig { returns(::Stripe::Order::CreateParams::Payment::Settings) }
1807
1553
  attr_accessor :settings
1808
-
1809
1554
  sig { params(settings: ::Stripe::Order::CreateParams::Payment::Settings).void }
1810
1555
  def initialize(settings: nil); end
1811
1556
  end
@@ -1816,11 +1561,9 @@ module Stripe
1816
1561
  # A unit of time.
1817
1562
  sig { returns(String) }
1818
1563
  attr_accessor :unit
1819
-
1820
1564
  # Must be greater than 0.
1821
1565
  sig { returns(Integer) }
1822
1566
  attr_accessor :value
1823
-
1824
1567
  sig { params(unit: String, value: Integer).void }
1825
1568
  def initialize(unit: nil, value: nil); end
1826
1569
  end
@@ -1828,11 +1571,9 @@ module Stripe
1828
1571
  # A unit of time.
1829
1572
  sig { returns(String) }
1830
1573
  attr_accessor :unit
1831
-
1832
1574
  # Must be greater than 0.
1833
1575
  sig { returns(Integer) }
1834
1576
  attr_accessor :value
1835
-
1836
1577
  sig { params(unit: String, value: Integer).void }
1837
1578
  def initialize(unit: nil, value: nil); end
1838
1579
  end
@@ -1841,13 +1582,11 @@ module Stripe
1841
1582
  returns(::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Maximum)
1842
1583
  }
1843
1584
  attr_accessor :maximum
1844
-
1845
1585
  # The lower bound of the estimated range. If empty, represents no lower bound.
1846
1586
  sig {
1847
1587
  returns(::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Minimum)
1848
1588
  }
1849
1589
  attr_accessor :minimum
1850
-
1851
1590
  sig {
1852
1591
  params(maximum: ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Maximum, minimum: ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Minimum).void
1853
1592
  }
@@ -1858,28 +1597,23 @@ module Stripe
1858
1597
  # A non-negative integer in cents representing how much to charge.
1859
1598
  sig { returns(Integer) }
1860
1599
  attr_accessor :amount
1861
-
1862
1600
  # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1863
1601
  sig { returns(String) }
1864
1602
  attr_accessor :tax_behavior
1865
-
1866
1603
  sig { params(amount: Integer, tax_behavior: String).void }
1867
1604
  def initialize(amount: nil, tax_behavior: nil); end
1868
1605
  end
1869
1606
  # A non-negative integer in cents representing how much to charge.
1870
1607
  sig { returns(Integer) }
1871
1608
  attr_accessor :amount
1872
-
1873
1609
  # 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).
1874
1610
  sig { returns(String) }
1875
1611
  attr_accessor :currency
1876
-
1877
1612
  # Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
1878
1613
  sig {
1879
1614
  returns(T::Hash[String, ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::FixedAmount::CurrencyOptions])
1880
1615
  }
1881
1616
  attr_accessor :currency_options
1882
-
1883
1617
  sig {
1884
1618
  params(amount: Integer, currency: String, currency_options: T::Hash[String, ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::FixedAmount::CurrencyOptions]).void
1885
1619
  }
@@ -1890,33 +1624,26 @@ module Stripe
1890
1624
  returns(::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::DeliveryEstimate)
1891
1625
  }
1892
1626
  attr_accessor :delivery_estimate
1893
-
1894
1627
  # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
1895
1628
  sig { returns(String) }
1896
1629
  attr_accessor :display_name
1897
-
1898
1630
  # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1899
1631
  sig {
1900
1632
  returns(::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::FixedAmount)
1901
1633
  }
1902
1634
  attr_accessor :fixed_amount
1903
-
1904
1635
  # 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`.
1905
1636
  sig { returns(T::Hash[String, String]) }
1906
1637
  attr_accessor :metadata
1907
-
1908
1638
  # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1909
1639
  sig { returns(String) }
1910
1640
  attr_accessor :tax_behavior
1911
-
1912
1641
  # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1913
1642
  sig { returns(String) }
1914
1643
  attr_accessor :tax_code
1915
-
1916
1644
  # The type of calculation to use on the shipping rate.
1917
1645
  sig { returns(String) }
1918
1646
  attr_accessor :type
1919
-
1920
1647
  sig {
1921
1648
  params(delivery_estimate: ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::DeliveryEstimate, display_name: String, fixed_amount: ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData::FixedAmount, metadata: T::Hash[String, String], tax_behavior: String, tax_code: String, type: String).void
1922
1649
  }
@@ -1933,11 +1660,9 @@ module Stripe
1933
1660
  # The ID of the shipping rate to use for this order.
1934
1661
  sig { returns(String) }
1935
1662
  attr_accessor :shipping_rate
1936
-
1937
1663
  # Parameters to create a new ad-hoc shipping rate for this order.
1938
1664
  sig { returns(::Stripe::Order::CreateParams::ShippingCost::ShippingRateData) }
1939
1665
  attr_accessor :shipping_rate_data
1940
-
1941
1666
  sig {
1942
1667
  params(shipping_rate: String, shipping_rate_data: ::Stripe::Order::CreateParams::ShippingCost::ShippingRateData).void
1943
1668
  }
@@ -1948,27 +1673,21 @@ module Stripe
1948
1673
  # City, district, suburb, town, or village.
1949
1674
  sig { returns(String) }
1950
1675
  attr_accessor :city
1951
-
1952
1676
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1953
1677
  sig { returns(String) }
1954
1678
  attr_accessor :country
1955
-
1956
1679
  # Address line 1 (e.g., street, PO Box, or company name).
1957
1680
  sig { returns(String) }
1958
1681
  attr_accessor :line1
1959
-
1960
1682
  # Address line 2 (e.g., apartment, suite, unit, or building).
1961
1683
  sig { returns(String) }
1962
1684
  attr_accessor :line2
1963
-
1964
1685
  # ZIP or postal code.
1965
1686
  sig { returns(String) }
1966
1687
  attr_accessor :postal_code
1967
-
1968
1688
  # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
1969
1689
  sig { returns(String) }
1970
1690
  attr_accessor :state
1971
-
1972
1691
  sig {
1973
1692
  params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
1974
1693
  }
@@ -1984,15 +1703,12 @@ module Stripe
1984
1703
  # The shipping address for the order.
1985
1704
  sig { returns(::Stripe::Order::CreateParams::ShippingDetails::Address) }
1986
1705
  attr_accessor :address
1987
-
1988
1706
  # The name of the recipient of the order.
1989
1707
  sig { returns(String) }
1990
1708
  attr_accessor :name
1991
-
1992
1709
  # The phone number (including extension) for the recipient of the order.
1993
1710
  sig { returns(T.nilable(String)) }
1994
1711
  attr_accessor :phone
1995
-
1996
1712
  sig {
1997
1713
  params(address: ::Stripe::Order::CreateParams::ShippingDetails::Address, name: String, phone: T.nilable(String)).void
1998
1714
  }
@@ -2000,25 +1716,21 @@ module Stripe
2000
1716
  end
2001
1717
  class TaxDetails < Stripe::RequestParams
2002
1718
  class TaxId < Stripe::RequestParams
2003
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
1719
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
2004
1720
  sig { returns(String) }
2005
1721
  attr_accessor :type
2006
-
2007
1722
  # Value of the tax ID.
2008
1723
  sig { returns(String) }
2009
1724
  attr_accessor :value
2010
-
2011
1725
  sig { params(type: String, value: String).void }
2012
1726
  def initialize(type: nil, value: nil); end
2013
1727
  end
2014
1728
  # The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
2015
1729
  sig { returns(T.nilable(String)) }
2016
1730
  attr_accessor :tax_exempt
2017
-
2018
1731
  # The purchaser's tax IDs to be used for this order.
2019
1732
  sig { returns(T::Array[::Stripe::Order::CreateParams::TaxDetails::TaxId]) }
2020
1733
  attr_accessor :tax_ids
2021
-
2022
1734
  sig {
2023
1735
  params(tax_exempt: T.nilable(String), tax_ids: T::Array[::Stripe::Order::CreateParams::TaxDetails::TaxId]).void
2024
1736
  }
@@ -2027,63 +1739,48 @@ module Stripe
2027
1739
  # Settings for automatic tax calculation for this order.
2028
1740
  sig { returns(::Stripe::Order::CreateParams::AutomaticTax) }
2029
1741
  attr_accessor :automatic_tax
2030
-
2031
1742
  # Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided.
2032
1743
  sig { returns(T.nilable(::Stripe::Order::CreateParams::BillingDetails)) }
2033
1744
  attr_accessor :billing_details
2034
-
2035
1745
  # The credits to apply to the order, only `gift_card` currently supported.
2036
1746
  sig { returns(T.nilable(T::Array[::Stripe::Order::CreateParams::Credit])) }
2037
1747
  attr_accessor :credits
2038
-
2039
1748
  # 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).
2040
1749
  sig { returns(String) }
2041
1750
  attr_accessor :currency
2042
-
2043
1751
  # The customer associated with this order.
2044
1752
  sig { returns(String) }
2045
1753
  attr_accessor :customer
2046
-
2047
1754
  # An arbitrary string attached to the object. Often useful for displaying to users.
2048
1755
  sig { returns(String) }
2049
1756
  attr_accessor :description
2050
-
2051
1757
  # The coupons, promotion codes, and/or discounts to apply to the order.
2052
1758
  sig { returns(T.nilable(T::Array[::Stripe::Order::CreateParams::Discount])) }
2053
1759
  attr_accessor :discounts
2054
-
2055
1760
  # Specifies which fields in the response should be expanded.
2056
1761
  sig { returns(T::Array[String]) }
2057
1762
  attr_accessor :expand
2058
-
2059
1763
  # The IP address of the purchaser for this order.
2060
1764
  sig { returns(String) }
2061
1765
  attr_accessor :ip_address
2062
-
2063
1766
  # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
2064
1767
  sig { returns(T::Array[::Stripe::Order::CreateParams::LineItem]) }
2065
1768
  attr_accessor :line_items
2066
-
2067
1769
  # 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`.
2068
1770
  sig { returns(T::Hash[String, String]) }
2069
1771
  attr_accessor :metadata
2070
-
2071
1772
  # Payment information associated with the order, including payment settings.
2072
1773
  sig { returns(::Stripe::Order::CreateParams::Payment) }
2073
1774
  attr_accessor :payment
2074
-
2075
1775
  # Settings for the customer cost of shipping for this order.
2076
1776
  sig { returns(T.nilable(::Stripe::Order::CreateParams::ShippingCost)) }
2077
1777
  attr_accessor :shipping_cost
2078
-
2079
1778
  # Shipping details for the order.
2080
1779
  sig { returns(T.nilable(::Stripe::Order::CreateParams::ShippingDetails)) }
2081
1780
  attr_accessor :shipping_details
2082
-
2083
1781
  # Additional tax details about the purchaser to be used for this order.
2084
1782
  sig { returns(::Stripe::Order::CreateParams::TaxDetails) }
2085
1783
  attr_accessor :tax_details
2086
-
2087
1784
  sig {
2088
1785
  params(automatic_tax: ::Stripe::Order::CreateParams::AutomaticTax, billing_details: T.nilable(::Stripe::Order::CreateParams::BillingDetails), credits: T.nilable(T::Array[::Stripe::Order::CreateParams::Credit]), currency: String, customer: String, description: String, discounts: T.nilable(T::Array[::Stripe::Order::CreateParams::Discount]), expand: T::Array[String], ip_address: String, line_items: T::Array[::Stripe::Order::CreateParams::LineItem], metadata: T::Hash[String, String], payment: ::Stripe::Order::CreateParams::Payment, shipping_cost: T.nilable(::Stripe::Order::CreateParams::ShippingCost), shipping_details: T.nilable(::Stripe::Order::CreateParams::ShippingDetails), tax_details: ::Stripe::Order::CreateParams::TaxDetails).void
2089
1786
  }
@@ -2109,7 +1806,6 @@ module Stripe
2109
1806
  # Specifies which fields in the response should be expanded.
2110
1807
  sig { returns(T::Array[String]) }
2111
1808
  attr_accessor :expand
2112
-
2113
1809
  sig { params(expand: T::Array[String]).void }
2114
1810
  def initialize(expand: nil); end
2115
1811
  end
@@ -2118,7 +1814,6 @@ module Stripe
2118
1814
  # Enable automatic tax calculation which will automatically compute tax rates on this order.
2119
1815
  sig { returns(T::Boolean) }
2120
1816
  attr_accessor :enabled
2121
-
2122
1817
  sig { params(enabled: T::Boolean).void }
2123
1818
  def initialize(enabled: nil); end
2124
1819
  end
@@ -2127,27 +1822,21 @@ module Stripe
2127
1822
  # City, district, suburb, town, or village.
2128
1823
  sig { returns(String) }
2129
1824
  attr_accessor :city
2130
-
2131
1825
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2132
1826
  sig { returns(String) }
2133
1827
  attr_accessor :country
2134
-
2135
1828
  # Address line 1 (e.g., street, PO Box, or company name).
2136
1829
  sig { returns(String) }
2137
1830
  attr_accessor :line1
2138
-
2139
1831
  # Address line 2 (e.g., apartment, suite, unit, or building).
2140
1832
  sig { returns(String) }
2141
1833
  attr_accessor :line2
2142
-
2143
1834
  # ZIP or postal code.
2144
1835
  sig { returns(String) }
2145
1836
  attr_accessor :postal_code
2146
-
2147
1837
  # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
2148
1838
  sig { returns(String) }
2149
1839
  attr_accessor :state
2150
-
2151
1840
  sig {
2152
1841
  params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
2153
1842
  }
@@ -2163,19 +1852,15 @@ module Stripe
2163
1852
  # The billing address provided by the customer.
2164
1853
  sig { returns(::Stripe::Order::UpdateParams::BillingDetails::Address) }
2165
1854
  attr_accessor :address
2166
-
2167
1855
  # The billing email provided by the customer.
2168
1856
  sig { returns(String) }
2169
1857
  attr_accessor :email
2170
-
2171
1858
  # The billing name provided by the customer.
2172
1859
  sig { returns(String) }
2173
1860
  attr_accessor :name
2174
-
2175
1861
  # The billing phone number provided by the customer.
2176
1862
  sig { returns(String) }
2177
1863
  attr_accessor :phone
2178
-
2179
1864
  sig {
2180
1865
  params(address: ::Stripe::Order::UpdateParams::BillingDetails::Address, email: String, name: String, phone: String).void
2181
1866
  }
@@ -2185,11 +1870,9 @@ module Stripe
2185
1870
  # The gift card to apply to the order.
2186
1871
  sig { returns(String) }
2187
1872
  attr_accessor :gift_card
2188
-
2189
1873
  # The type of credit to apply to the order, only `gift_card` currently supported.
2190
1874
  sig { returns(String) }
2191
1875
  attr_accessor :type
2192
-
2193
1876
  sig { params(gift_card: String, type: String).void }
2194
1877
  def initialize(gift_card: nil, type: nil); end
2195
1878
  end
@@ -2197,15 +1880,12 @@ module Stripe
2197
1880
  # ID of the coupon to create a new discount for.
2198
1881
  sig { returns(String) }
2199
1882
  attr_accessor :coupon
2200
-
2201
1883
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2202
1884
  sig { returns(String) }
2203
1885
  attr_accessor :discount
2204
-
2205
1886
  # ID of the promotion code to create a new discount for.
2206
1887
  sig { returns(String) }
2207
1888
  attr_accessor :promotion_code
2208
-
2209
1889
  sig { params(coupon: String, discount: String, promotion_code: String).void }
2210
1890
  def initialize(coupon: nil, discount: nil, promotion_code: nil); end
2211
1891
  end
@@ -2214,11 +1894,9 @@ module Stripe
2214
1894
  # ID of the coupon to create a new discount for.
2215
1895
  sig { returns(String) }
2216
1896
  attr_accessor :coupon
2217
-
2218
1897
  # ID of an existing discount on the object (or one of its ancestors) to reuse.
2219
1898
  sig { returns(String) }
2220
1899
  attr_accessor :discount
2221
-
2222
1900
  sig { params(coupon: String, discount: String).void }
2223
1901
  def initialize(coupon: nil, discount: nil); end
2224
1902
  end
@@ -2226,25 +1904,20 @@ module Stripe
2226
1904
  # 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).
2227
1905
  sig { returns(String) }
2228
1906
  attr_accessor :currency
2229
-
2230
1907
  # ID of the product this price belongs to.
2231
1908
  #
2232
1909
  # Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
2233
1910
  sig { returns(String) }
2234
1911
  attr_accessor :product
2235
-
2236
1912
  # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
2237
1913
  sig { returns(String) }
2238
1914
  attr_accessor :tax_behavior
2239
-
2240
1915
  # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
2241
1916
  sig { returns(Integer) }
2242
1917
  attr_accessor :unit_amount
2243
-
2244
1918
  # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
2245
1919
  sig { returns(String) }
2246
1920
  attr_accessor :unit_amount_decimal
2247
-
2248
1921
  sig {
2249
1922
  params(currency: String, product: String, tax_behavior: String, unit_amount: Integer, unit_amount_decimal: String).void
2250
1923
  }
@@ -2261,62 +1934,49 @@ module Stripe
2261
1934
  # Height, in inches. Maximum precision is 2 decimal places.
2262
1935
  sig { returns(Float) }
2263
1936
  attr_accessor :height
2264
-
2265
1937
  # Length, in inches. Maximum precision is 2 decimal places.
2266
1938
  sig { returns(Float) }
2267
1939
  attr_accessor :length
2268
-
2269
1940
  # Weight, in ounces. Maximum precision is 2 decimal places.
2270
1941
  sig { returns(Float) }
2271
1942
  attr_accessor :weight
2272
-
2273
1943
  # Width, in inches. Maximum precision is 2 decimal places.
2274
1944
  sig { returns(Float) }
2275
1945
  attr_accessor :width
2276
-
2277
1946
  sig { params(height: Float, length: Float, weight: Float, width: Float).void }
2278
1947
  def initialize(height: nil, length: nil, weight: nil, width: nil); end
2279
1948
  end
2280
1949
  # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
2281
1950
  sig { returns(T.nilable(String)) }
2282
1951
  attr_accessor :description
2283
-
2284
1952
  # A unique identifier for this product.
2285
1953
  #
2286
1954
  # `product_data` automatically creates a Product with this ID. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values in `product_data`, `product_data` updates the existing Product with the new information. So set `product_data[id]` to the same string every time you sell the same product, but don't re-use the same string for different products.
2287
1955
  sig { returns(String) }
2288
1956
  attr_accessor :id
2289
-
2290
1957
  # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
2291
1958
  sig { returns(T.nilable(T::Array[String])) }
2292
1959
  attr_accessor :images
2293
-
2294
1960
  # 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`.
2295
1961
  sig { returns(T.nilable(T::Hash[String, String])) }
2296
1962
  attr_accessor :metadata
2297
-
2298
1963
  # The product's name, meant to be displayable to the customer.
2299
1964
  sig { returns(String) }
2300
1965
  attr_accessor :name
2301
-
2302
1966
  # The dimensions of this product for shipping purposes.
2303
1967
  sig {
2304
1968
  returns(T.nilable(::Stripe::Order::UpdateParams::LineItem::ProductData::PackageDimensions))
2305
1969
  }
2306
1970
  attr_accessor :package_dimensions
2307
-
2308
1971
  # Whether this product is shipped (i.e., physical goods).
2309
1972
  sig { returns(T::Boolean) }
2310
1973
  attr_accessor :shippable
2311
-
2312
1974
  # A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
2313
1975
  sig { returns(T.nilable(String)) }
2314
1976
  attr_accessor :tax_code
2315
-
2316
1977
  # A URL of a publicly-accessible webpage for this product.
2317
1978
  sig { returns(T.nilable(String)) }
2318
1979
  attr_accessor :url
2319
-
2320
1980
  sig {
2321
1981
  params(description: T.nilable(String), id: String, images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, package_dimensions: T.nilable(::Stripe::Order::UpdateParams::LineItem::ProductData::PackageDimensions), shippable: T::Boolean, tax_code: T.nilable(String), url: T.nilable(String)).void
2322
1982
  }
@@ -2335,21 +1995,17 @@ module Stripe
2335
1995
  # The description for the line item. Will default to the name of the associated product.
2336
1996
  sig { returns(String) }
2337
1997
  attr_accessor :description
2338
-
2339
1998
  # The discounts applied to this line item.
2340
1999
  sig { returns(T.nilable(T::Array[::Stripe::Order::UpdateParams::LineItem::Discount])) }
2341
2000
  attr_accessor :discounts
2342
-
2343
2001
  # The ID of an existing line item on the order.
2344
2002
  sig { returns(String) }
2345
2003
  attr_accessor :id
2346
-
2347
2004
  # The ID of a [Price](https://stripe.com/docs/api/prices) to add to the Order.
2348
2005
  #
2349
2006
  # The `price` parameter is an alternative to using the `product` parameter. If each of your products are sold at a single price, you can set `Product.default_price` and then pass the `product` parameter when creating a line item. If your products are sold at several possible prices, use the `price` parameter to explicitly specify which one to use.
2350
2007
  sig { returns(String) }
2351
2008
  attr_accessor :price
2352
-
2353
2009
  # Data used to generate a new Price object inline.
2354
2010
  #
2355
2011
  # The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create products upfront and configure a `Product.default_price`, pass the `product` parameter when creating a line item. If you prefer not to define products upfront, or if you charge variable prices, pass the `price_data` parameter to describe the price for this line item.
@@ -2357,13 +2013,11 @@ module Stripe
2357
2013
  # Each time you pass `price_data` we create a Price for the product. This Price is hidden in both the Dashboard and API lists and cannot be reused.
2358
2014
  sig { returns(::Stripe::Order::UpdateParams::LineItem::PriceData) }
2359
2015
  attr_accessor :price_data
2360
-
2361
2016
  # The ID of a [Product](https://stripe.com/docs/api/products) to add to the Order.
2362
2017
  #
2363
2018
  # The product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
2364
2019
  sig { returns(String) }
2365
2020
  attr_accessor :product
2366
-
2367
2021
  # Defines a Product inline and adds it to the Order.
2368
2022
  #
2369
2023
  # `product_data` is an alternative to the `product` parameter. If you created a Product upfront, use the `product` parameter to refer to the existing Product. But if you prefer not to create Products upfront, pass the `product_data` parameter to define a Product inline as part of configuring the Order.
@@ -2371,15 +2025,12 @@ module Stripe
2371
2025
  # `product_data` automatically creates a Product, just as if you had manually created the Product. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates.
2372
2026
  sig { returns(::Stripe::Order::UpdateParams::LineItem::ProductData) }
2373
2027
  attr_accessor :product_data
2374
-
2375
2028
  # The quantity of the line item.
2376
2029
  sig { returns(Integer) }
2377
2030
  attr_accessor :quantity
2378
-
2379
2031
  # The tax rates applied to this line item.
2380
2032
  sig { returns(T.nilable(T::Array[String])) }
2381
2033
  attr_accessor :tax_rates
2382
-
2383
2034
  sig {
2384
2035
  params(description: String, discounts: T.nilable(T::Array[::Stripe::Order::UpdateParams::LineItem::Discount]), id: String, price: String, price_data: ::Stripe::Order::UpdateParams::LineItem::PriceData, product: String, product_data: ::Stripe::Order::UpdateParams::LineItem::ProductData, quantity: Integer, tax_rates: T.nilable(T::Array[String])).void
2385
2036
  }
@@ -2405,19 +2056,15 @@ module Stripe
2405
2056
  # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
2406
2057
  sig { returns(T.nilable(String)) }
2407
2058
  attr_accessor :custom_mandate_url
2408
-
2409
2059
  # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
2410
2060
  sig { returns(String) }
2411
2061
  attr_accessor :interval_description
2412
-
2413
2062
  # Payment schedule for the mandate.
2414
2063
  sig { returns(String) }
2415
2064
  attr_accessor :payment_schedule
2416
-
2417
2065
  # Transaction type of the mandate.
2418
2066
  sig { returns(String) }
2419
2067
  attr_accessor :transaction_type
2420
-
2421
2068
  sig {
2422
2069
  params(custom_mandate_url: T.nilable(String), interval_description: String, payment_schedule: String, transaction_type: String).void
2423
2070
  }
@@ -2433,7 +2080,6 @@ module Stripe
2433
2080
  returns(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::AcssDebit::MandateOptions)
2434
2081
  }
2435
2082
  attr_accessor :mandate_options
2436
-
2437
2083
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2438
2084
  #
2439
2085
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2445,11 +2091,9 @@ module Stripe
2445
2091
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2446
2092
  sig { returns(T.nilable(String)) }
2447
2093
  attr_accessor :setup_future_usage
2448
-
2449
2094
  # Bank account verification method.
2450
2095
  sig { returns(String) }
2451
2096
  attr_accessor :verification_method
2452
-
2453
2097
  sig {
2454
2098
  params(mandate_options: ::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), verification_method: String).void
2455
2099
  }
@@ -2467,11 +2111,9 @@ module Stripe
2467
2111
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2468
2112
  sig { returns(String) }
2469
2113
  attr_accessor :capture_method
2470
-
2471
2114
  # An internal identifier or reference this payment corresponds to. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
2472
2115
  sig { returns(String) }
2473
2116
  attr_accessor :reference
2474
-
2475
2117
  # Indicates that you intend to make future payments with the payment method.
2476
2118
  #
2477
2119
  # Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
@@ -2481,7 +2123,6 @@ module Stripe
2481
2123
  # If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
2482
2124
  sig { returns(String) }
2483
2125
  attr_accessor :setup_future_usage
2484
-
2485
2126
  sig {
2486
2127
  params(capture_method: String, reference: String, setup_future_usage: String).void
2487
2128
  }
@@ -2499,7 +2140,6 @@ module Stripe
2499
2140
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2500
2141
  sig { returns(T.nilable(String)) }
2501
2142
  attr_accessor :setup_future_usage
2502
-
2503
2143
  sig { params(setup_future_usage: T.nilable(String)).void }
2504
2144
  def initialize(setup_future_usage: nil); end
2505
2145
  end
@@ -2507,7 +2147,6 @@ module Stripe
2507
2147
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
2508
2148
  sig { returns(String) }
2509
2149
  attr_accessor :preferred_language
2510
-
2511
2150
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2512
2151
  #
2513
2152
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2519,7 +2158,6 @@ module Stripe
2519
2158
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2520
2159
  sig { returns(T.nilable(String)) }
2521
2160
  attr_accessor :setup_future_usage
2522
-
2523
2161
  sig { params(preferred_language: String, setup_future_usage: T.nilable(String)).void }
2524
2162
  def initialize(preferred_language: nil, setup_future_usage: nil); end
2525
2163
  end
@@ -2527,7 +2165,6 @@ module Stripe
2527
2165
  # Controls when the funds will be captured from the customer's account.
2528
2166
  sig { returns(String) }
2529
2167
  attr_accessor :capture_method
2530
-
2531
2168
  # Indicates that you intend to make future payments with the payment method.
2532
2169
  #
2533
2170
  # Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
@@ -2537,7 +2174,6 @@ module Stripe
2537
2174
  # If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
2538
2175
  sig { returns(String) }
2539
2176
  attr_accessor :setup_future_usage
2540
-
2541
2177
  sig { params(capture_method: String, setup_future_usage: String).void }
2542
2178
  def initialize(capture_method: nil, setup_future_usage: nil); end
2543
2179
  end
@@ -2547,7 +2183,6 @@ module Stripe
2547
2183
  # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
2548
2184
  sig { returns(String) }
2549
2185
  attr_accessor :country
2550
-
2551
2186
  sig { params(country: String).void }
2552
2187
  def initialize(country: nil); end
2553
2188
  end
@@ -2556,17 +2191,14 @@ module Stripe
2556
2191
  returns(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer::EuBankTransfer)
2557
2192
  }
2558
2193
  attr_accessor :eu_bank_transfer
2559
-
2560
2194
  # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
2561
2195
  #
2562
2196
  # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
2563
2197
  sig { returns(T::Array[String]) }
2564
2198
  attr_accessor :requested_address_types
2565
-
2566
2199
  # The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
2567
2200
  sig { returns(String) }
2568
2201
  attr_accessor :type
2569
-
2570
2202
  sig {
2571
2203
  params(eu_bank_transfer: ::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer::EuBankTransfer, requested_address_types: T::Array[String], type: String).void
2572
2204
  }
@@ -2577,11 +2209,9 @@ module Stripe
2577
2209
  returns(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer)
2578
2210
  }
2579
2211
  attr_accessor :bank_transfer
2580
-
2581
2212
  # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
2582
2213
  sig { returns(String) }
2583
2214
  attr_accessor :funding_type
2584
-
2585
2215
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2586
2216
  #
2587
2217
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2593,7 +2223,6 @@ module Stripe
2593
2223
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2594
2224
  sig { returns(String) }
2595
2225
  attr_accessor :setup_future_usage
2596
-
2597
2226
  sig {
2598
2227
  params(bank_transfer: ::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance::BankTransfer, funding_type: String, setup_future_usage: String).void
2599
2228
  }
@@ -2611,7 +2240,6 @@ module Stripe
2611
2240
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2612
2241
  sig { returns(T.nilable(String)) }
2613
2242
  attr_accessor :setup_future_usage
2614
-
2615
2243
  sig { params(setup_future_usage: T.nilable(String)).void }
2616
2244
  def initialize(setup_future_usage: nil); end
2617
2245
  end
@@ -2623,11 +2251,9 @@ module Stripe
2623
2251
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2624
2252
  sig { returns(T.nilable(String)) }
2625
2253
  attr_accessor :capture_method
2626
-
2627
2254
  # Preferred language of the Klarna authorization page that the customer is redirected to
2628
2255
  sig { returns(String) }
2629
2256
  attr_accessor :preferred_locale
2630
-
2631
2257
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2632
2258
  #
2633
2259
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2639,7 +2265,6 @@ module Stripe
2639
2265
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2640
2266
  sig { returns(String) }
2641
2267
  attr_accessor :setup_future_usage
2642
-
2643
2268
  sig {
2644
2269
  params(capture_method: T.nilable(String), preferred_locale: String, setup_future_usage: String).void
2645
2270
  }
@@ -2657,11 +2282,9 @@ module Stripe
2657
2282
  # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2658
2283
  sig { returns(T.nilable(String)) }
2659
2284
  attr_accessor :capture_method
2660
-
2661
2285
  # [Deprecated] This is a legacy parameter that no longer has any function.
2662
2286
  sig { returns(String) }
2663
2287
  attr_accessor :persistent_token
2664
-
2665
2288
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2666
2289
  #
2667
2290
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2673,7 +2296,6 @@ module Stripe
2673
2296
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2674
2297
  sig { returns(T.nilable(String)) }
2675
2298
  attr_accessor :setup_future_usage
2676
-
2677
2299
  sig {
2678
2300
  params(capture_method: T.nilable(String), persistent_token: String, setup_future_usage: T.nilable(String)).void
2679
2301
  }
@@ -2687,7 +2309,6 @@ module Stripe
2687
2309
  # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
2688
2310
  sig { returns(Integer) }
2689
2311
  attr_accessor :expires_after_days
2690
-
2691
2312
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2692
2313
  #
2693
2314
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2699,7 +2320,6 @@ module Stripe
2699
2320
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2700
2321
  sig { returns(String) }
2701
2322
  attr_accessor :setup_future_usage
2702
-
2703
2323
  sig { params(expires_after_days: Integer, setup_future_usage: String).void }
2704
2324
  def initialize(expires_after_days: nil, setup_future_usage: nil); end
2705
2325
  end
@@ -2715,11 +2335,9 @@ module Stripe
2715
2335
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2716
2336
  sig { returns(String) }
2717
2337
  attr_accessor :setup_future_usage
2718
-
2719
2338
  # Confirm that the payer has accepted the P24 terms and conditions.
2720
2339
  sig { returns(T::Boolean) }
2721
2340
  attr_accessor :tos_shown_and_accepted
2722
-
2723
2341
  sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void }
2724
2342
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
2725
2343
  end
@@ -2729,48 +2347,38 @@ module Stripe
2729
2347
  # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2730
2348
  sig { returns(Integer) }
2731
2349
  attr_accessor :amount
2732
-
2733
2350
  # The tax behavior for the line item.
2734
2351
  sig { returns(String) }
2735
2352
  attr_accessor :behavior
2736
-
2737
2353
  sig { params(amount: Integer, behavior: String).void }
2738
2354
  def initialize(amount: nil, behavior: nil); end
2739
2355
  end
2740
2356
  # Type of the line item.
2741
2357
  sig { returns(String) }
2742
2358
  attr_accessor :category
2743
-
2744
2359
  # Description of the line item.
2745
2360
  sig { returns(String) }
2746
2361
  attr_accessor :description
2747
-
2748
2362
  # Descriptive name of the line item.
2749
2363
  sig { returns(String) }
2750
2364
  attr_accessor :name
2751
-
2752
2365
  # Quantity of the line item. Must be a positive number.
2753
2366
  sig { returns(Integer) }
2754
2367
  attr_accessor :quantity
2755
-
2756
2368
  # Client facing stock keeping unit, article number or similar.
2757
2369
  sig { returns(String) }
2758
2370
  attr_accessor :sku
2759
-
2760
2371
  # The Stripe account ID of the connected account that sells the item.
2761
2372
  sig { returns(String) }
2762
2373
  attr_accessor :sold_by
2763
-
2764
2374
  # The tax information for the line item.
2765
2375
  sig {
2766
2376
  returns(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem::Tax)
2767
2377
  }
2768
2378
  attr_accessor :tax
2769
-
2770
2379
  # Price for a single unit of the line item in minor units. Cannot be a negative number.
2771
2380
  sig { returns(Integer) }
2772
2381
  attr_accessor :unit_amount
2773
-
2774
2382
  sig {
2775
2383
  params(category: String, description: String, name: String, quantity: Integer, sku: String, sold_by: String, tax: ::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem::Tax, unit_amount: Integer).void
2776
2384
  }
@@ -2788,29 +2396,23 @@ module Stripe
2788
2396
  # Controls when the funds will be captured from the customer's account.
2789
2397
  sig { returns(T.nilable(String)) }
2790
2398
  attr_accessor :capture_method
2791
-
2792
2399
  # The line items purchased by the customer.
2793
2400
  sig {
2794
2401
  returns(T::Array[::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem])
2795
2402
  }
2796
2403
  attr_accessor :line_items
2797
-
2798
2404
  # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
2799
2405
  sig { returns(String) }
2800
2406
  attr_accessor :preferred_locale
2801
-
2802
2407
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2803
2408
  sig { returns(String) }
2804
2409
  attr_accessor :reference
2805
-
2806
2410
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2807
2411
  sig { returns(String) }
2808
2412
  attr_accessor :reference_id
2809
-
2810
2413
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
2811
2414
  sig { returns(String) }
2812
2415
  attr_accessor :risk_correlation_id
2813
-
2814
2416
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2815
2417
  #
2816
2418
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2822,11 +2424,9 @@ module Stripe
2822
2424
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2823
2425
  sig { returns(T.nilable(String)) }
2824
2426
  attr_accessor :setup_future_usage
2825
-
2826
2427
  # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2827
2428
  sig { returns(T::Array[String]) }
2828
2429
  attr_accessor :subsellers
2829
-
2830
2430
  sig {
2831
2431
  params(capture_method: T.nilable(String), line_items: T::Array[::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Paypal::LineItem], preferred_locale: String, reference: String, reference_id: String, risk_correlation_id: String, setup_future_usage: T.nilable(String), subsellers: T::Array[String]).void
2832
2432
  }
@@ -2846,7 +2446,6 @@ module Stripe
2846
2446
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
2847
2447
  sig { returns(T.nilable(String)) }
2848
2448
  attr_accessor :reference_prefix
2849
-
2850
2449
  sig { params(reference_prefix: T.nilable(String)).void }
2851
2450
  def initialize(reference_prefix: nil); end
2852
2451
  end
@@ -2855,7 +2454,6 @@ module Stripe
2855
2454
  returns(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::SepaDebit::MandateOptions)
2856
2455
  }
2857
2456
  attr_accessor :mandate_options
2858
-
2859
2457
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2860
2458
  #
2861
2459
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2867,7 +2465,6 @@ module Stripe
2867
2465
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2868
2466
  sig { returns(T.nilable(String)) }
2869
2467
  attr_accessor :setup_future_usage
2870
-
2871
2468
  sig {
2872
2469
  params(mandate_options: ::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
2873
2470
  }
@@ -2877,7 +2474,6 @@ module Stripe
2877
2474
  # Language shown to the payer on redirect.
2878
2475
  sig { returns(T.nilable(String)) }
2879
2476
  attr_accessor :preferred_language
2880
-
2881
2477
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2882
2478
  #
2883
2479
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2889,7 +2485,6 @@ module Stripe
2889
2485
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2890
2486
  sig { returns(T.nilable(String)) }
2891
2487
  attr_accessor :setup_future_usage
2892
-
2893
2488
  sig {
2894
2489
  params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(String)).void
2895
2490
  }
@@ -2899,11 +2494,9 @@ module Stripe
2899
2494
  # The app ID registered with WeChat Pay. Only required when client is ios or android.
2900
2495
  sig { returns(String) }
2901
2496
  attr_accessor :app_id
2902
-
2903
2497
  # The client type that the end customer will pay from
2904
2498
  sig { returns(String) }
2905
2499
  attr_accessor :client
2906
-
2907
2500
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2908
2501
  #
2909
2502
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2915,7 +2508,6 @@ module Stripe
2915
2508
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2916
2509
  sig { returns(String) }
2917
2510
  attr_accessor :setup_future_usage
2918
-
2919
2511
  sig { params(app_id: String, client: String, setup_future_usage: String).void }
2920
2512
  def initialize(app_id: nil, client: nil, setup_future_usage: nil); end
2921
2513
  end
@@ -2924,91 +2516,76 @@ module Stripe
2924
2516
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::AcssDebit))
2925
2517
  }
2926
2518
  attr_accessor :acss_debit
2927
-
2928
2519
  # If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
2929
2520
  sig {
2930
2521
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::AfterpayClearpay))
2931
2522
  }
2932
2523
  attr_accessor :afterpay_clearpay
2933
-
2934
2524
  # If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
2935
2525
  sig {
2936
2526
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Alipay))
2937
2527
  }
2938
2528
  attr_accessor :alipay
2939
-
2940
2529
  # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
2941
2530
  sig {
2942
2531
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Bancontact))
2943
2532
  }
2944
2533
  attr_accessor :bancontact
2945
-
2946
2534
  # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
2947
2535
  sig {
2948
2536
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Card))
2949
2537
  }
2950
2538
  attr_accessor :card
2951
-
2952
2539
  # If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
2953
2540
  sig {
2954
2541
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance))
2955
2542
  }
2956
2543
  attr_accessor :customer_balance
2957
-
2958
2544
  # If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
2959
2545
  sig {
2960
2546
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Ideal))
2961
2547
  }
2962
2548
  attr_accessor :ideal
2963
-
2964
2549
  # If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
2965
2550
  sig {
2966
2551
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Klarna))
2967
2552
  }
2968
2553
  attr_accessor :klarna
2969
-
2970
2554
  # If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
2971
2555
  sig {
2972
2556
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Link))
2973
2557
  }
2974
2558
  attr_accessor :link
2975
-
2976
2559
  # If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
2977
2560
  sig {
2978
2561
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Oxxo))
2979
2562
  }
2980
2563
  attr_accessor :oxxo
2981
-
2982
2564
  # If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
2983
2565
  sig {
2984
2566
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::P24))
2985
2567
  }
2986
2568
  attr_accessor :p24
2987
-
2988
2569
  # If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
2989
2570
  sig {
2990
2571
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Paypal))
2991
2572
  }
2992
2573
  attr_accessor :paypal
2993
-
2994
2574
  # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
2995
2575
  sig {
2996
2576
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::SepaDebit))
2997
2577
  }
2998
2578
  attr_accessor :sepa_debit
2999
-
3000
2579
  # If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
3001
2580
  sig {
3002
2581
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Sofort))
3003
2582
  }
3004
2583
  attr_accessor :sofort
3005
-
3006
2584
  # If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
3007
2585
  sig {
3008
2586
  returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::WechatPay))
3009
2587
  }
3010
2588
  attr_accessor :wechat_pay
3011
-
3012
2589
  sig {
3013
2590
  params(acss_debit: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::AcssDebit), afterpay_clearpay: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Alipay), bancontact: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Bancontact), card: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Card), customer_balance: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::CustomerBalance), ideal: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Ideal), klarna: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Link), oxxo: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::P24), paypal: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::SepaDebit), sofort: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::Sofort), wechat_pay: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions::WechatPay)).void
3014
2591
  }
@@ -3034,42 +2611,33 @@ module Stripe
3034
2611
  # The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
3035
2612
  sig { returns(Integer) }
3036
2613
  attr_accessor :amount
3037
-
3038
2614
  # ID of the Connected account receiving the transfer.
3039
2615
  sig { returns(String) }
3040
2616
  attr_accessor :destination
3041
-
3042
2617
  sig { params(amount: Integer, destination: String).void }
3043
2618
  def initialize(amount: nil, destination: nil); end
3044
2619
  end
3045
2620
  # 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.
3046
2621
  sig { returns(T.nilable(Integer)) }
3047
2622
  attr_accessor :application_fee_amount
3048
-
3049
2623
  # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
3050
2624
  sig { returns(::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions) }
3051
2625
  attr_accessor :payment_method_options
3052
-
3053
2626
  # The list of [payment method types](https://stripe.com/docs/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
3054
2627
  sig { returns(T::Array[String]) }
3055
2628
  attr_accessor :payment_method_types
3056
-
3057
2629
  # The URL to redirect the customer to after they authenticate their payment.
3058
2630
  sig { returns(T.nilable(String)) }
3059
2631
  attr_accessor :return_url
3060
-
3061
2632
  # For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
3062
2633
  sig { returns(String) }
3063
2634
  attr_accessor :statement_descriptor
3064
-
3065
2635
  # Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
3066
2636
  sig { returns(String) }
3067
2637
  attr_accessor :statement_descriptor_suffix
3068
-
3069
2638
  # Provides configuration for completing a transfer for the order after it is paid.
3070
2639
  sig { returns(T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::TransferData)) }
3071
2640
  attr_accessor :transfer_data
3072
-
3073
2641
  sig {
3074
2642
  params(application_fee_amount: T.nilable(Integer), payment_method_options: ::Stripe::Order::UpdateParams::Payment::Settings::PaymentMethodOptions, payment_method_types: T::Array[String], return_url: T.nilable(String), statement_descriptor: String, statement_descriptor_suffix: String, transfer_data: T.nilable(::Stripe::Order::UpdateParams::Payment::Settings::TransferData)).void
3075
2643
  }
@@ -3086,7 +2654,6 @@ module Stripe
3086
2654
  # Settings describing how the order should configure generated PaymentIntents.
3087
2655
  sig { returns(::Stripe::Order::UpdateParams::Payment::Settings) }
3088
2656
  attr_accessor :settings
3089
-
3090
2657
  sig { params(settings: ::Stripe::Order::UpdateParams::Payment::Settings).void }
3091
2658
  def initialize(settings: nil); end
3092
2659
  end
@@ -3097,11 +2664,9 @@ module Stripe
3097
2664
  # A unit of time.
3098
2665
  sig { returns(String) }
3099
2666
  attr_accessor :unit
3100
-
3101
2667
  # Must be greater than 0.
3102
2668
  sig { returns(Integer) }
3103
2669
  attr_accessor :value
3104
-
3105
2670
  sig { params(unit: String, value: Integer).void }
3106
2671
  def initialize(unit: nil, value: nil); end
3107
2672
  end
@@ -3109,11 +2674,9 @@ module Stripe
3109
2674
  # A unit of time.
3110
2675
  sig { returns(String) }
3111
2676
  attr_accessor :unit
3112
-
3113
2677
  # Must be greater than 0.
3114
2678
  sig { returns(Integer) }
3115
2679
  attr_accessor :value
3116
-
3117
2680
  sig { params(unit: String, value: Integer).void }
3118
2681
  def initialize(unit: nil, value: nil); end
3119
2682
  end
@@ -3122,13 +2685,11 @@ module Stripe
3122
2685
  returns(::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Maximum)
3123
2686
  }
3124
2687
  attr_accessor :maximum
3125
-
3126
2688
  # The lower bound of the estimated range. If empty, represents no lower bound.
3127
2689
  sig {
3128
2690
  returns(::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Minimum)
3129
2691
  }
3130
2692
  attr_accessor :minimum
3131
-
3132
2693
  sig {
3133
2694
  params(maximum: ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Maximum, minimum: ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Minimum).void
3134
2695
  }
@@ -3139,28 +2700,23 @@ module Stripe
3139
2700
  # A non-negative integer in cents representing how much to charge.
3140
2701
  sig { returns(Integer) }
3141
2702
  attr_accessor :amount
3142
-
3143
2703
  # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
3144
2704
  sig { returns(String) }
3145
2705
  attr_accessor :tax_behavior
3146
-
3147
2706
  sig { params(amount: Integer, tax_behavior: String).void }
3148
2707
  def initialize(amount: nil, tax_behavior: nil); end
3149
2708
  end
3150
2709
  # A non-negative integer in cents representing how much to charge.
3151
2710
  sig { returns(Integer) }
3152
2711
  attr_accessor :amount
3153
-
3154
2712
  # 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).
3155
2713
  sig { returns(String) }
3156
2714
  attr_accessor :currency
3157
-
3158
2715
  # Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
3159
2716
  sig {
3160
2717
  returns(T::Hash[String, ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::FixedAmount::CurrencyOptions])
3161
2718
  }
3162
2719
  attr_accessor :currency_options
3163
-
3164
2720
  sig {
3165
2721
  params(amount: Integer, currency: String, currency_options: T::Hash[String, ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::FixedAmount::CurrencyOptions]).void
3166
2722
  }
@@ -3171,33 +2727,26 @@ module Stripe
3171
2727
  returns(::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::DeliveryEstimate)
3172
2728
  }
3173
2729
  attr_accessor :delivery_estimate
3174
-
3175
2730
  # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
3176
2731
  sig { returns(String) }
3177
2732
  attr_accessor :display_name
3178
-
3179
2733
  # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
3180
2734
  sig {
3181
2735
  returns(::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::FixedAmount)
3182
2736
  }
3183
2737
  attr_accessor :fixed_amount
3184
-
3185
2738
  # 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`.
3186
2739
  sig { returns(T::Hash[String, String]) }
3187
2740
  attr_accessor :metadata
3188
-
3189
2741
  # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
3190
2742
  sig { returns(String) }
3191
2743
  attr_accessor :tax_behavior
3192
-
3193
2744
  # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
3194
2745
  sig { returns(String) }
3195
2746
  attr_accessor :tax_code
3196
-
3197
2747
  # The type of calculation to use on the shipping rate.
3198
2748
  sig { returns(String) }
3199
2749
  attr_accessor :type
3200
-
3201
2750
  sig {
3202
2751
  params(delivery_estimate: ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::DeliveryEstimate, display_name: String, fixed_amount: ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData::FixedAmount, metadata: T::Hash[String, String], tax_behavior: String, tax_code: String, type: String).void
3203
2752
  }
@@ -3214,11 +2763,9 @@ module Stripe
3214
2763
  # The ID of the shipping rate to use for this order.
3215
2764
  sig { returns(String) }
3216
2765
  attr_accessor :shipping_rate
3217
-
3218
2766
  # Parameters to create a new ad-hoc shipping rate for this order.
3219
2767
  sig { returns(::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData) }
3220
2768
  attr_accessor :shipping_rate_data
3221
-
3222
2769
  sig {
3223
2770
  params(shipping_rate: String, shipping_rate_data: ::Stripe::Order::UpdateParams::ShippingCost::ShippingRateData).void
3224
2771
  }
@@ -3229,27 +2776,21 @@ module Stripe
3229
2776
  # City, district, suburb, town, or village.
3230
2777
  sig { returns(String) }
3231
2778
  attr_accessor :city
3232
-
3233
2779
  # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3234
2780
  sig { returns(String) }
3235
2781
  attr_accessor :country
3236
-
3237
2782
  # Address line 1 (e.g., street, PO Box, or company name).
3238
2783
  sig { returns(String) }
3239
2784
  attr_accessor :line1
3240
-
3241
2785
  # Address line 2 (e.g., apartment, suite, unit, or building).
3242
2786
  sig { returns(String) }
3243
2787
  attr_accessor :line2
3244
-
3245
2788
  # ZIP or postal code.
3246
2789
  sig { returns(String) }
3247
2790
  attr_accessor :postal_code
3248
-
3249
2791
  # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
3250
2792
  sig { returns(String) }
3251
2793
  attr_accessor :state
3252
-
3253
2794
  sig {
3254
2795
  params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
3255
2796
  }
@@ -3265,15 +2806,12 @@ module Stripe
3265
2806
  # The shipping address for the order.
3266
2807
  sig { returns(::Stripe::Order::UpdateParams::ShippingDetails::Address) }
3267
2808
  attr_accessor :address
3268
-
3269
2809
  # The name of the recipient of the order.
3270
2810
  sig { returns(String) }
3271
2811
  attr_accessor :name
3272
-
3273
2812
  # The phone number (including extension) for the recipient of the order.
3274
2813
  sig { returns(T.nilable(String)) }
3275
2814
  attr_accessor :phone
3276
-
3277
2815
  sig {
3278
2816
  params(address: ::Stripe::Order::UpdateParams::ShippingDetails::Address, name: String, phone: T.nilable(String)).void
3279
2817
  }
@@ -3281,25 +2819,21 @@ module Stripe
3281
2819
  end
3282
2820
  class TaxDetails < Stripe::RequestParams
3283
2821
  class TaxId < Stripe::RequestParams
3284
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
2822
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
3285
2823
  sig { returns(String) }
3286
2824
  attr_accessor :type
3287
-
3288
2825
  # Value of the tax ID.
3289
2826
  sig { returns(String) }
3290
2827
  attr_accessor :value
3291
-
3292
2828
  sig { params(type: String, value: String).void }
3293
2829
  def initialize(type: nil, value: nil); end
3294
2830
  end
3295
2831
  # The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
3296
2832
  sig { returns(T.nilable(String)) }
3297
2833
  attr_accessor :tax_exempt
3298
-
3299
2834
  # The purchaser's tax IDs to be used for this order.
3300
2835
  sig { returns(T::Array[::Stripe::Order::UpdateParams::TaxDetails::TaxId]) }
3301
2836
  attr_accessor :tax_ids
3302
-
3303
2837
  sig {
3304
2838
  params(tax_exempt: T.nilable(String), tax_ids: T::Array[::Stripe::Order::UpdateParams::TaxDetails::TaxId]).void
3305
2839
  }
@@ -3308,63 +2842,48 @@ module Stripe
3308
2842
  # Settings for automatic tax calculation for this order.
3309
2843
  sig { returns(::Stripe::Order::UpdateParams::AutomaticTax) }
3310
2844
  attr_accessor :automatic_tax
3311
-
3312
2845
  # Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided.
3313
2846
  sig { returns(T.nilable(::Stripe::Order::UpdateParams::BillingDetails)) }
3314
2847
  attr_accessor :billing_details
3315
-
3316
2848
  # The credits to apply to the order, only `gift_card` currently supported. Pass the empty string `""` to unset this field.
3317
2849
  sig { returns(T.nilable(T::Array[::Stripe::Order::UpdateParams::Credit])) }
3318
2850
  attr_accessor :credits
3319
-
3320
2851
  # 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).
3321
2852
  sig { returns(String) }
3322
2853
  attr_accessor :currency
3323
-
3324
2854
  # The customer associated with this order.
3325
2855
  sig { returns(String) }
3326
2856
  attr_accessor :customer
3327
-
3328
2857
  # An arbitrary string attached to the object. Often useful for displaying to users.
3329
2858
  sig { returns(T.nilable(String)) }
3330
2859
  attr_accessor :description
3331
-
3332
2860
  # The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string `""` to unset this field.
3333
2861
  sig { returns(T.nilable(T::Array[::Stripe::Order::UpdateParams::Discount])) }
3334
2862
  attr_accessor :discounts
3335
-
3336
2863
  # Specifies which fields in the response should be expanded.
3337
2864
  sig { returns(T::Array[String]) }
3338
2865
  attr_accessor :expand
3339
-
3340
2866
  # The IP address of the purchaser for this order.
3341
2867
  sig { returns(String) }
3342
2868
  attr_accessor :ip_address
3343
-
3344
2869
  # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
3345
2870
  sig { returns(T::Array[::Stripe::Order::UpdateParams::LineItem]) }
3346
2871
  attr_accessor :line_items
3347
-
3348
2872
  # 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`.
3349
2873
  sig { returns(T.nilable(T::Hash[String, String])) }
3350
2874
  attr_accessor :metadata
3351
-
3352
2875
  # Payment information associated with the order, including payment settings.
3353
2876
  sig { returns(::Stripe::Order::UpdateParams::Payment) }
3354
2877
  attr_accessor :payment
3355
-
3356
2878
  # Settings for the customer cost of shipping for this order.
3357
2879
  sig { returns(T.nilable(::Stripe::Order::UpdateParams::ShippingCost)) }
3358
2880
  attr_accessor :shipping_cost
3359
-
3360
2881
  # Shipping details for the order.
3361
2882
  sig { returns(T.nilable(::Stripe::Order::UpdateParams::ShippingDetails)) }
3362
2883
  attr_accessor :shipping_details
3363
-
3364
2884
  # Additional tax details about the purchaser to be used for this order.
3365
2885
  sig { returns(::Stripe::Order::UpdateParams::TaxDetails) }
3366
2886
  attr_accessor :tax_details
3367
-
3368
2887
  sig {
3369
2888
  params(automatic_tax: ::Stripe::Order::UpdateParams::AutomaticTax, billing_details: T.nilable(::Stripe::Order::UpdateParams::BillingDetails), credits: T.nilable(T::Array[::Stripe::Order::UpdateParams::Credit]), currency: String, customer: String, description: T.nilable(String), discounts: T.nilable(T::Array[::Stripe::Order::UpdateParams::Discount]), expand: T::Array[String], ip_address: String, line_items: T::Array[::Stripe::Order::UpdateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), payment: ::Stripe::Order::UpdateParams::Payment, shipping_cost: T.nilable(::Stripe::Order::UpdateParams::ShippingCost), shipping_details: T.nilable(::Stripe::Order::UpdateParams::ShippingDetails), tax_details: ::Stripe::Order::UpdateParams::TaxDetails).void
3370
2889
  }
@@ -3390,19 +2909,15 @@ module Stripe
3390
2909
  # 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.
3391
2910
  sig { returns(String) }
3392
2911
  attr_accessor :ending_before
3393
-
3394
2912
  # Specifies which fields in the response should be expanded.
3395
2913
  sig { returns(T::Array[String]) }
3396
2914
  attr_accessor :expand
3397
-
3398
2915
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
3399
2916
  sig { returns(Integer) }
3400
2917
  attr_accessor :limit
3401
-
3402
2918
  # 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.
3403
2919
  sig { returns(String) }
3404
2920
  attr_accessor :starting_after
3405
-
3406
2921
  sig {
3407
2922
  params(ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String).void
3408
2923
  }
@@ -3412,7 +2927,6 @@ module Stripe
3412
2927
  # Specifies which fields in the response should be expanded.
3413
2928
  sig { returns(T::Array[String]) }
3414
2929
  attr_accessor :expand
3415
-
3416
2930
  sig { params(expand: T::Array[String]).void }
3417
2931
  def initialize(expand: nil); end
3418
2932
  end
@@ -3420,7 +2934,6 @@ module Stripe
3420
2934
  # Specifies which fields in the response should be expanded.
3421
2935
  sig { returns(T::Array[String]) }
3422
2936
  attr_accessor :expand
3423
-
3424
2937
  sig { params(expand: T::Array[String]).void }
3425
2938
  def initialize(expand: nil); end
3426
2939
  end
@@ -3428,11 +2941,9 @@ module Stripe
3428
2941
  # Specifies which fields in the response should be expanded.
3429
2942
  sig { returns(T::Array[String]) }
3430
2943
  attr_accessor :expand
3431
-
3432
2944
  # `expected_total` should always be set to the order's `amount_total` field. If they don't match, submitting the order will fail. This helps detect race conditions where something else concurrently modifies the order.
3433
2945
  sig { returns(Integer) }
3434
2946
  attr_accessor :expected_total
3435
-
3436
2947
  sig { params(expand: T::Array[String], expected_total: Integer).void }
3437
2948
  def initialize(expand: nil, expected_total: nil); end
3438
2949
  end