stripe 19.2.0.pre.beta.2 → 19.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -36
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -87
  5. data/lib/stripe/event_types.rb +0 -228
  6. data/lib/stripe/object_types.rb +0 -61
  7. data/lib/stripe/params/account_create_params.rb +17 -364
  8. data/lib/stripe/params/account_session_create_params.rb +1 -226
  9. data/lib/stripe/params/account_update_params.rb +16 -326
  10. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  11. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  12. data/lib/stripe/params/charge_create_params.rb +4 -1
  13. data/lib/stripe/params/charge_update_params.rb +0 -1646
  14. data/lib/stripe/params/checkout/session_create_params.rb +31 -141
  15. data/lib/stripe/params/checkout/session_update_params.rb +1 -176
  16. data/lib/stripe/params/confirmation_token_create_params.rb +11 -79
  17. data/lib/stripe/params/coupon_create_params.rb +1 -17
  18. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  19. data/lib/stripe/params/dispute_update_params.rb +1 -10
  20. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
  21. data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
  22. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  23. data/lib/stripe/params/invoice_create_params.rb +2 -70
  24. data/lib/stripe/params/invoice_create_preview_params.rb +13 -790
  25. data/lib/stripe/params/invoice_item_create_params.rb +1 -33
  26. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  27. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
  28. data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
  29. data/lib/stripe/params/invoice_update_params.rb +2 -70
  30. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  31. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  32. data/lib/stripe/params/payment_intent_capture_params.rb +3 -1645
  33. data/lib/stripe/params/payment_intent_confirm_params.rb +136 -3038
  34. data/lib/stripe/params/payment_intent_create_params.rb +167 -3043
  35. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -39
  36. data/lib/stripe/params/payment_intent_update_params.rb +121 -3034
  37. data/lib/stripe/params/payment_link_create_params.rb +30 -16
  38. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  39. data/lib/stripe/params/payment_method_configuration_create_params.rb +24 -87
  40. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  41. data/lib/stripe/params/payment_method_configuration_update_params.rb +24 -87
  42. data/lib/stripe/params/payment_method_create_params.rb +11 -75
  43. data/lib/stripe/params/payout_create_params.rb +1 -1
  44. data/lib/stripe/params/plan_create_params.rb +0 -15
  45. data/lib/stripe/params/price_create_params.rb +0 -15
  46. data/lib/stripe/params/price_update_params.rb +0 -19
  47. data/lib/stripe/params/product_create_params.rb +0 -16
  48. data/lib/stripe/params/product_update_params.rb +0 -16
  49. data/lib/stripe/params/quote_create_params.rb +3 -809
  50. data/lib/stripe/params/quote_list_params.rb +0 -4
  51. data/lib/stripe/params/quote_update_params.rb +4 -817
  52. data/lib/stripe/params/setup_intent_confirm_params.rb +21 -110
  53. data/lib/stripe/params/setup_intent_create_params.rb +21 -110
  54. data/lib/stripe/params/setup_intent_update_params.rb +21 -110
  55. data/lib/stripe/params/subscription_create_params.rb +11 -181
  56. data/lib/stripe/params/subscription_item_create_params.rb +3 -69
  57. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  58. data/lib/stripe/params/subscription_item_update_params.rb +2 -52
  59. data/lib/stripe/params/subscription_schedule_create_params.rb +9 -167
  60. data/lib/stripe/params/subscription_schedule_update_params.rb +9 -167
  61. data/lib/stripe/params/subscription_update_params.rb +11 -161
  62. data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
  63. data/lib/stripe/params/tax/registration_create_params.rb +0 -104
  64. data/lib/stripe/params/terminal/configuration_create_params.rb +52 -13
  65. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -13
  66. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -79
  67. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  68. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  69. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  70. data/lib/stripe/params/transfer_create_params.rb +0 -4
  71. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  72. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  73. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  74. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  75. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
  76. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  77. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  78. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  79. data/lib/stripe/params/v2/core/account_create_params.rb +33 -288
  80. data/lib/stripe/params/v2/core/account_token_create_params.rb +28 -18
  81. data/lib/stripe/params/v2/core/account_update_params.rb +33 -281
  82. data/lib/stripe/params.rb +1342 -795
  83. data/lib/stripe/railtie.rb +8 -0
  84. data/lib/stripe/resources/account.rb +5 -259
  85. data/lib/stripe/resources/account_session.rb +0 -81
  86. data/lib/stripe/resources/balance.rb +0 -83
  87. data/lib/stripe/resources/balance_settings.rb +42 -2
  88. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  89. data/lib/stripe/resources/card.rb +0 -2
  90. data/lib/stripe/resources/charge.rb +36 -211
  91. data/lib/stripe/resources/checkout/session.rb +26 -82
  92. data/lib/stripe/resources/confirmation_token.rb +20 -125
  93. data/lib/stripe/resources/coupon.rb +1 -26
  94. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  95. data/lib/stripe/resources/customer_session.rb +0 -36
  96. data/lib/stripe/resources/discount.rb +2 -2
  97. data/lib/stripe/resources/dispute.rb +0 -22
  98. data/lib/stripe/resources/event.rb +1 -64
  99. data/lib/stripe/resources/financial_connections/account.rb +0 -57
  100. data/lib/stripe/resources/financial_connections/session.rb +1 -125
  101. data/lib/stripe/resources/invoice.rb +3 -117
  102. data/lib/stripe/resources/invoice_item.rb +34 -3
  103. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  104. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  105. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  106. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  107. data/lib/stripe/resources/line_item.rb +0 -42
  108. data/lib/stripe/resources/mandate.rb +13 -12
  109. data/lib/stripe/resources/payment_attempt_record.rb +41 -187
  110. data/lib/stripe/resources/payment_intent.rb +96 -1583
  111. data/lib/stripe/resources/payment_link.rb +40 -0
  112. data/lib/stripe/resources/payment_method.rb +21 -130
  113. data/lib/stripe/resources/payment_method_configuration.rb +20 -122
  114. data/lib/stripe/resources/payment_record.rb +41 -187
  115. data/lib/stripe/resources/price.rb +0 -20
  116. data/lib/stripe/resources/product.rb +0 -18
  117. data/lib/stripe/resources/quote.rb +2 -569
  118. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  119. data/lib/stripe/resources/refund.rb +13 -18
  120. data/lib/stripe/resources/reserve/hold.rb +0 -7
  121. data/lib/stripe/resources/reserve/release.rb +0 -12
  122. data/lib/stripe/resources/setup_attempt.rb +4 -26
  123. data/lib/stripe/resources/setup_intent.rb +27 -22
  124. data/lib/stripe/resources/source.rb +0 -38
  125. data/lib/stripe/resources/subscription.rb +10 -107
  126. data/lib/stripe/resources/subscription_item.rb +1 -41
  127. data/lib/stripe/resources/subscription_schedule.rb +5 -198
  128. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  129. data/lib/stripe/resources/tax/registration.rb +0 -128
  130. data/lib/stripe/resources/tax_code.rb +1 -15
  131. data/lib/stripe/resources/terminal/configuration.rb +64 -16
  132. data/lib/stripe/resources/terminal/reader.rb +116 -8
  133. data/lib/stripe/resources/transfer.rb +0 -2
  134. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  135. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  136. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
  137. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  138. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  139. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  140. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +1 -1
  141. data/lib/stripe/resources/v2/core/account.rb +40 -607
  142. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  143. data/lib/stripe/resources/v2/core/event.rb +1 -0
  144. data/lib/stripe/resources.rb +500 -301
  145. data/lib/stripe/services/account_service.rb +0 -15
  146. data/lib/stripe/services/billing_service.rb +1 -2
  147. data/lib/stripe/services/credit_note_service.rb +0 -14
  148. data/lib/stripe/services/customer_service.rb +0 -15
  149. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  150. data/lib/stripe/services/financial_connections_service.rb +1 -3
  151. data/lib/stripe/services/invoice_service.rb +0 -41
  152. data/lib/stripe/services/issuing_service.rb +1 -5
  153. data/lib/stripe/services/mandate_service.rb +0 -5
  154. data/lib/stripe/services/payment_intent_service.rb +3 -38
  155. data/lib/stripe/services/promotion_code_service.rb +0 -29
  156. data/lib/stripe/services/quote_service.rb +1 -49
  157. data/lib/stripe/services/subscription_schedule_service.rb +0 -55
  158. data/lib/stripe/services/subscription_service.rb +2 -32
  159. data/lib/stripe/services/tax_service.rb +1 -3
  160. data/lib/stripe/services/terminal_service.rb +1 -2
  161. data/lib/stripe/services/test_helpers_service.rb +1 -2
  162. data/lib/stripe/services/v1_services.rb +1 -11
  163. data/lib/stripe/services/v2/billing_service.rb +1 -5
  164. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  165. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  166. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  167. data/lib/stripe/services/v2/core_service.rb +1 -3
  168. data/lib/stripe/services/v2_services.rb +1 -8
  169. data/lib/stripe/services.rb +469 -268
  170. data/lib/stripe/stripe_client.rb +1 -8
  171. data/lib/stripe/stripe_configuration.rb +1 -3
  172. data/lib/stripe/stripe_object.rb +1 -1
  173. data/lib/stripe/util.rb +1 -7
  174. data/lib/stripe/version.rb +1 -1
  175. data/lib/stripe.rb +25 -58
  176. data/rbi/stripe/stripe_client.rbi +0 -13
  177. data/rbi/stripe.rbi +53183 -118054
  178. metadata +5 -377
  179. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  180. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  181. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  182. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  183. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  184. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  185. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  186. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  187. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  188. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  189. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  190. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
  191. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  192. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
  193. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
  194. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
  195. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
  196. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
  197. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
  198. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  203. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  205. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  220. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  221. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  222. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
  223. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  224. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  225. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  226. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  227. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  228. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  229. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  230. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  231. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  232. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  233. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
  234. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  235. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
  236. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
  237. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
  238. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
  239. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  240. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  241. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  242. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  243. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  244. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  245. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  246. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  247. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  248. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  249. data/lib/stripe/params/external_account_create_params.rb +0 -134
  250. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  251. data/lib/stripe/params/external_account_list_params.rb +0 -25
  252. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  253. data/lib/stripe/params/external_account_update_params.rb +0 -91
  254. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  255. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  257. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  258. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  259. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  260. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  261. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  262. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  263. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  264. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  265. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  266. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  267. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  269. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  270. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  271. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  272. data/lib/stripe/params/mandate_list_params.rb +0 -39
  273. data/lib/stripe/params/margin_create_params.rb +0 -25
  274. data/lib/stripe/params/margin_list_params.rb +0 -25
  275. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  276. data/lib/stripe/params/margin_update_params.rb +0 -22
  277. data/lib/stripe/params/order_create_params.rb +0 -2083
  278. data/lib/stripe/params/order_list_params.rb +0 -25
  279. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  280. data/lib/stripe/params/order_submit_params.rb +0 -16
  281. data/lib/stripe/params/order_update_params.rb +0 -2087
  282. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  283. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  284. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  285. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  286. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  287. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  288. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  290. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  291. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  292. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
  293. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  294. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  295. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  296. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  297. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  298. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  299. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  300. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  301. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  302. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  303. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  304. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  305. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  307. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  308. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  309. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
  310. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  311. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  312. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  313. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  314. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  315. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  316. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  317. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  318. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  319. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  320. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  321. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  322. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  323. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  324. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  325. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  326. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  327. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  328. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  329. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  330. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  331. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  332. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  333. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
  334. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  335. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  336. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
  337. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  338. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  339. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  340. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  341. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  342. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  343. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
  344. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
  345. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
  346. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  347. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  348. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
  349. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  350. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  351. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  352. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  353. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  354. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
  355. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  356. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  357. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  358. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  359. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
  360. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
  361. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
  362. data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
  363. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
  364. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
  365. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
  366. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
  367. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  368. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  369. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  370. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  371. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  372. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  374. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  375. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  376. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  377. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  378. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  379. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  380. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  381. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
  382. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  383. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  384. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  385. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  386. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
  388. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  389. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  390. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -87
  391. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  392. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  393. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  394. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  395. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  396. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  397. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  398. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  399. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  400. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  401. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  402. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  403. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  404. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  405. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  406. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  407. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  408. data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
  409. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
  410. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
  411. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
  412. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
  413. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
  414. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
  415. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  416. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  417. data/lib/stripe/resources/account_notice.rb +0 -94
  418. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  419. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  420. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  421. data/lib/stripe/resources/capital/financing_summary.rb +0 -82
  422. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  423. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  424. data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
  425. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  426. data/lib/stripe/resources/fx_quote.rb +0 -147
  427. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  428. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  429. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  430. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  431. data/lib/stripe/resources/margin.rb +0 -64
  432. data/lib/stripe/resources/order.rb +0 -927
  433. data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
  434. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  435. data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
  436. data/lib/stripe/resources/quote_line.rb +0 -525
  437. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1181
  438. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -734
  439. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1766
  440. data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
  441. data/lib/stripe/resources/tax/form.rb +0 -264
  442. data/lib/stripe/resources/tax/location.rb +0 -72
  443. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  444. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  445. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
  446. data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
  447. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
  448. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
  449. data/lib/stripe/resources/v2/billing/profile.rb +0 -47
  450. data/lib/stripe/resources/v2/core/batch_job.rb +0 -492
  451. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
  452. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
  453. data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
  454. data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
  455. data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
  456. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
  457. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
  458. data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
  459. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  460. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  461. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
  462. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
  463. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
  464. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  465. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  466. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  467. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
  468. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
  469. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
  470. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  471. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
  472. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  473. data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
  474. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
  475. data/lib/stripe/services/account_notice_service.rb +0 -39
  476. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  477. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  478. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  479. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  480. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  481. data/lib/stripe/services/capital_service.rb +0 -15
  482. data/lib/stripe/services/external_account_service.rb +0 -68
  483. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  484. data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
  485. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  486. data/lib/stripe/services/fx_quote_service.rb +0 -27
  487. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  488. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  489. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  490. data/lib/stripe/services/margin_service.rb +0 -50
  491. data/lib/stripe/services/order_service.rb +0 -53
  492. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  493. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  494. data/lib/stripe/services/privacy_service.rb +0 -13
  495. data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
  496. data/lib/stripe/services/product_catalog_service.rb +0 -13
  497. data/lib/stripe/services/quote_line_service.rb +0 -17
  498. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  499. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  500. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  501. data/lib/stripe/services/reserve/plan_service.rb +0 -19
  502. data/lib/stripe/services/reserve/release_service.rb +0 -30
  503. data/lib/stripe/services/reserve_service.rb +0 -15
  504. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  505. data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
  506. data/lib/stripe/services/shared_payment_service.rb +0 -14
  507. data/lib/stripe/services/tax/form_service.rb +0 -37
  508. data/lib/stripe/services/tax/location_service.rb +0 -45
  509. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  510. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  511. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  512. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  513. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  514. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  515. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
  516. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  517. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  518. data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
  519. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  520. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  521. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  522. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
  523. data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
  524. data/lib/stripe/services/v2/datum_service.rb +0 -15
  525. data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
  526. data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
  527. data/lib/stripe/services/v2/extend_service.rb +0 -16
  528. data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -21
  529. data/lib/stripe/services/v2/iam_service.rb +0 -15
  530. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  531. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  532. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  533. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  534. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  535. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  536. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
  537. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  538. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -66
  539. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  540. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  541. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  542. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  543. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  544. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  545. data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
  546. data/lib/stripe/services/v2/network_service.rb +0 -15
  547. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
  548. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
  549. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  550. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
  551. data/lib/stripe/stripe_event_notification_handler.rb +0 -581
@@ -1,2087 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class OrderUpdateParams < ::Stripe::RequestParams
6
- class AutomaticTax < ::Stripe::RequestParams
7
- # Enable automatic tax calculation which will automatically compute tax rates on this order.
8
- attr_accessor :enabled
9
-
10
- def initialize(enabled: nil)
11
- @enabled = enabled
12
- end
13
- end
14
-
15
- class BillingDetails < ::Stripe::RequestParams
16
- class Address < ::Stripe::RequestParams
17
- # City, district, suburb, town, or village.
18
- attr_accessor :city
19
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
20
- attr_accessor :country
21
- # Address line 1, such as the street, PO Box, or company name.
22
- attr_accessor :line1
23
- # Address line 2, such as the apartment, suite, unit, or building.
24
- attr_accessor :line2
25
- # ZIP or postal code.
26
- attr_accessor :postal_code
27
- # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
28
- attr_accessor :state
29
-
30
- def initialize(
31
- city: nil,
32
- country: nil,
33
- line1: nil,
34
- line2: nil,
35
- postal_code: nil,
36
- state: nil
37
- )
38
- @city = city
39
- @country = country
40
- @line1 = line1
41
- @line2 = line2
42
- @postal_code = postal_code
43
- @state = state
44
- end
45
- end
46
- # The billing address provided by the customer.
47
- attr_accessor :address
48
- # The billing email provided by the customer.
49
- attr_accessor :email
50
- # The billing name provided by the customer.
51
- attr_accessor :name
52
- # The billing phone number provided by the customer.
53
- attr_accessor :phone
54
-
55
- def initialize(address: nil, email: nil, name: nil, phone: nil)
56
- @address = address
57
- @email = email
58
- @name = name
59
- @phone = phone
60
- end
61
- end
62
-
63
- class Discount < ::Stripe::RequestParams
64
- # ID of the coupon to create a new discount for.
65
- attr_accessor :coupon
66
- # ID of an existing discount on the object (or one of its ancestors) to reuse.
67
- attr_accessor :discount
68
- # ID of the promotion code to create a new discount for.
69
- attr_accessor :promotion_code
70
-
71
- def initialize(coupon: nil, discount: nil, promotion_code: nil)
72
- @coupon = coupon
73
- @discount = discount
74
- @promotion_code = promotion_code
75
- end
76
- end
77
-
78
- class LineItem < ::Stripe::RequestParams
79
- class Discount < ::Stripe::RequestParams
80
- # ID of the coupon to create a new discount for.
81
- attr_accessor :coupon
82
- # ID of an existing discount on the object (or one of its ancestors) to reuse.
83
- attr_accessor :discount
84
-
85
- def initialize(coupon: nil, discount: nil)
86
- @coupon = coupon
87
- @discount = discount
88
- end
89
- end
90
-
91
- class PriceData < ::Stripe::RequestParams
92
- # 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).
93
- attr_accessor :currency
94
- # ID of the [Product](https://docs.stripe.com/api/products) this [Price](https://docs.stripe.com/api/prices) belongs to.
95
- #
96
- # Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
97
- attr_accessor :product
98
- # Only required if a [default tax behavior](https://docs.stripe.com/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.
99
- attr_accessor :tax_behavior
100
- # A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
101
- attr_accessor :unit_amount
102
- # 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.
103
- attr_accessor :unit_amount_decimal
104
-
105
- def initialize(
106
- currency: nil,
107
- product: nil,
108
- tax_behavior: nil,
109
- unit_amount: nil,
110
- unit_amount_decimal: nil
111
- )
112
- @currency = currency
113
- @product = product
114
- @tax_behavior = tax_behavior
115
- @unit_amount = unit_amount
116
- @unit_amount_decimal = unit_amount_decimal
117
- end
118
-
119
- def self.field_encodings
120
- @field_encodings = { unit_amount_decimal: :decimal_string }
121
- end
122
- end
123
-
124
- class ProductData < ::Stripe::RequestParams
125
- class PackageDimensions < ::Stripe::RequestParams
126
- # Height, in inches. Maximum precision is 2 decimal places.
127
- attr_accessor :height
128
- # Length, in inches. Maximum precision is 2 decimal places.
129
- attr_accessor :length
130
- # Weight, in ounces. Maximum precision is 2 decimal places.
131
- attr_accessor :weight
132
- # Width, in inches. Maximum precision is 2 decimal places.
133
- attr_accessor :width
134
-
135
- def initialize(height: nil, length: nil, weight: nil, width: nil)
136
- @height = height
137
- @length = length
138
- @weight = weight
139
- @width = width
140
- end
141
- end
142
- # 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.
143
- attr_accessor :description
144
- # A unique identifier for this product.
145
- #
146
- # `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.
147
- attr_accessor :id
148
- # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
149
- attr_accessor :images
150
- # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
151
- attr_accessor :metadata
152
- # The product's name, meant to be displayable to the customer.
153
- attr_accessor :name
154
- # The dimensions of this product for shipping purposes.
155
- attr_accessor :package_dimensions
156
- # Whether this product is shipped (i.e., physical goods).
157
- attr_accessor :shippable
158
- # A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
159
- attr_accessor :tax_code
160
- # A URL of a publicly-accessible webpage for this product.
161
- attr_accessor :url
162
-
163
- def initialize(
164
- description: nil,
165
- id: nil,
166
- images: nil,
167
- metadata: nil,
168
- name: nil,
169
- package_dimensions: nil,
170
- shippable: nil,
171
- tax_code: nil,
172
- url: nil
173
- )
174
- @description = description
175
- @id = id
176
- @images = images
177
- @metadata = metadata
178
- @name = name
179
- @package_dimensions = package_dimensions
180
- @shippable = shippable
181
- @tax_code = tax_code
182
- @url = url
183
- end
184
- end
185
- # The description for the line item. Will default to the name of the associated product.
186
- attr_accessor :description
187
- # The discounts applied to this line item.
188
- attr_accessor :discounts
189
- # The ID of an existing line item on the order.
190
- attr_accessor :id
191
- # The ID of a [Price](https://docs.stripe.com/api/prices) to add to the Order.
192
- #
193
- # 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.
194
- attr_accessor :price
195
- # Data used to generate a new Price object inline.
196
- #
197
- # The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create a Product 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.
198
- #
199
- # 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.
200
- attr_accessor :price_data
201
- # The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
202
- #
203
- # The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
204
- attr_accessor :product
205
- # Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
206
- #
207
- # `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.
208
- #
209
- # `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.
210
- attr_accessor :product_data
211
- # The quantity of the line item.
212
- attr_accessor :quantity
213
- # The tax rates applied to this line item.
214
- attr_accessor :tax_rates
215
-
216
- def initialize(
217
- description: nil,
218
- discounts: nil,
219
- id: nil,
220
- price: nil,
221
- price_data: nil,
222
- product: nil,
223
- product_data: nil,
224
- quantity: nil,
225
- tax_rates: nil
226
- )
227
- @description = description
228
- @discounts = discounts
229
- @id = id
230
- @price = price
231
- @price_data = price_data
232
- @product = product
233
- @product_data = product_data
234
- @quantity = quantity
235
- @tax_rates = tax_rates
236
- end
237
-
238
- def self.field_encodings
239
- @field_encodings = {
240
- price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
241
- }
242
- end
243
- end
244
-
245
- class Payment < ::Stripe::RequestParams
246
- class Settings < ::Stripe::RequestParams
247
- class PaymentMethodOptions < ::Stripe::RequestParams
248
- class AcssDebit < ::Stripe::RequestParams
249
- class MandateOptions < ::Stripe::RequestParams
250
- # A URL for custom mandate text to render during confirmation step.
251
- # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
252
- # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
253
- attr_accessor :custom_mandate_url
254
- # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
255
- attr_accessor :interval_description
256
- # Payment schedule for the mandate.
257
- attr_accessor :payment_schedule
258
- # Transaction type of the mandate.
259
- attr_accessor :transaction_type
260
-
261
- def initialize(
262
- custom_mandate_url: nil,
263
- interval_description: nil,
264
- payment_schedule: nil,
265
- transaction_type: nil
266
- )
267
- @custom_mandate_url = custom_mandate_url
268
- @interval_description = interval_description
269
- @payment_schedule = payment_schedule
270
- @transaction_type = transaction_type
271
- end
272
- end
273
- # Additional fields for Mandate creation
274
- attr_accessor :mandate_options
275
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
276
- #
277
- # 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
- #
279
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
280
- #
281
- # 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).
282
- #
283
- # 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`.
284
- attr_accessor :setup_future_usage
285
- # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
286
- attr_accessor :target_date
287
- # Bank account verification method. The default value is `automatic`.
288
- attr_accessor :verification_method
289
-
290
- def initialize(
291
- mandate_options: nil,
292
- setup_future_usage: nil,
293
- target_date: nil,
294
- verification_method: nil
295
- )
296
- @mandate_options = mandate_options
297
- @setup_future_usage = setup_future_usage
298
- @target_date = target_date
299
- @verification_method = verification_method
300
- end
301
- end
302
-
303
- class AfterpayClearpay < ::Stripe::RequestParams
304
- # Controls when the funds are captured from the customer's account.
305
- #
306
- # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
307
- #
308
- # 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.
309
- attr_accessor :capture_method
310
- # 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.
311
- attr_accessor :reference
312
- # Indicates that you intend to make future payments with the payment method.
313
- #
314
- # Providing this parameter will [attach the payment method](https://docs.stripe.com/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://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
315
- #
316
- # When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
317
- #
318
- # 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`.
319
- attr_accessor :setup_future_usage
320
-
321
- def initialize(capture_method: nil, reference: nil, setup_future_usage: nil)
322
- @capture_method = capture_method
323
- @reference = reference
324
- @setup_future_usage = setup_future_usage
325
- end
326
- end
327
-
328
- class Alipay < ::Stripe::RequestParams
329
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
330
- #
331
- # 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.
332
- #
333
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
334
- #
335
- # 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).
336
- #
337
- # 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`.
338
- attr_accessor :setup_future_usage
339
-
340
- def initialize(setup_future_usage: nil)
341
- @setup_future_usage = setup_future_usage
342
- end
343
- end
344
-
345
- class Bancontact < ::Stripe::RequestParams
346
- # Preferred language of the Bancontact authorization page that the customer is redirected to.
347
- attr_accessor :preferred_language
348
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
349
- #
350
- # 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.
351
- #
352
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
353
- #
354
- # 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).
355
- #
356
- # 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`.
357
- attr_accessor :setup_future_usage
358
-
359
- def initialize(preferred_language: nil, setup_future_usage: nil)
360
- @preferred_language = preferred_language
361
- @setup_future_usage = setup_future_usage
362
- end
363
- end
364
-
365
- class Card < ::Stripe::RequestParams
366
- # Controls when the funds will be captured from the customer's account.
367
- attr_accessor :capture_method
368
- # Indicates that you intend to make future payments with the payment method.
369
- #
370
- # Providing this parameter will [attach the payment method](https://docs.stripe.com/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://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
371
- #
372
- # When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
373
- #
374
- # 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`.
375
- attr_accessor :setup_future_usage
376
-
377
- def initialize(capture_method: nil, setup_future_usage: nil)
378
- @capture_method = capture_method
379
- @setup_future_usage = setup_future_usage
380
- end
381
- end
382
-
383
- class CustomerBalance < ::Stripe::RequestParams
384
- class BankTransfer < ::Stripe::RequestParams
385
- class EuBankTransfer < ::Stripe::RequestParams
386
- # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
387
- attr_accessor :country
388
-
389
- def initialize(country: nil)
390
- @country = country
391
- end
392
- end
393
- # Configuration for the eu_bank_transfer funding type.
394
- attr_accessor :eu_bank_transfer
395
- # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
396
- #
397
- # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
398
- attr_accessor :requested_address_types
399
- # 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`.
400
- attr_accessor :type
401
-
402
- def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
403
- @eu_bank_transfer = eu_bank_transfer
404
- @requested_address_types = requested_address_types
405
- @type = type
406
- end
407
- end
408
- # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
409
- attr_accessor :bank_transfer
410
- # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
411
- attr_accessor :funding_type
412
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
413
- #
414
- # 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.
415
- #
416
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
417
- #
418
- # 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).
419
- #
420
- # 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`.
421
- attr_accessor :setup_future_usage
422
-
423
- def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
424
- @bank_transfer = bank_transfer
425
- @funding_type = funding_type
426
- @setup_future_usage = setup_future_usage
427
- end
428
- end
429
-
430
- class Ideal < ::Stripe::RequestParams
431
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
432
- #
433
- # 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
- #
435
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
436
- #
437
- # 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).
438
- #
439
- # 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`.
440
- attr_accessor :setup_future_usage
441
-
442
- def initialize(setup_future_usage: nil)
443
- @setup_future_usage = setup_future_usage
444
- end
445
- end
446
-
447
- class Klarna < ::Stripe::RequestParams
448
- class OnDemand < ::Stripe::RequestParams
449
- # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
450
- attr_accessor :average_amount
451
- # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
452
- attr_accessor :maximum_amount
453
- # The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
454
- attr_accessor :minimum_amount
455
- # Interval at which the customer is making purchases
456
- attr_accessor :purchase_interval
457
- # The number of `purchase_interval` between charges
458
- attr_accessor :purchase_interval_count
459
-
460
- def initialize(
461
- average_amount: nil,
462
- maximum_amount: nil,
463
- minimum_amount: nil,
464
- purchase_interval: nil,
465
- purchase_interval_count: nil
466
- )
467
- @average_amount = average_amount
468
- @maximum_amount = maximum_amount
469
- @minimum_amount = minimum_amount
470
- @purchase_interval = purchase_interval
471
- @purchase_interval_count = purchase_interval_count
472
- end
473
- end
474
-
475
- class Subscription < ::Stripe::RequestParams
476
- class NextBilling < ::Stripe::RequestParams
477
- # The amount of the next charge for the subscription.
478
- attr_accessor :amount
479
- # The date of the next charge for the subscription in YYYY-MM-DD format.
480
- attr_accessor :date
481
-
482
- def initialize(amount: nil, date: nil)
483
- @amount = amount
484
- @date = date
485
- end
486
- end
487
- # Unit of time between subscription charges.
488
- attr_accessor :interval
489
- # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
490
- attr_accessor :interval_count
491
- # Name for subscription.
492
- attr_accessor :name
493
- # Describes the upcoming charge for this subscription.
494
- attr_accessor :next_billing
495
- # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
496
- attr_accessor :reference
497
-
498
- def initialize(
499
- interval: nil,
500
- interval_count: nil,
501
- name: nil,
502
- next_billing: nil,
503
- reference: nil
504
- )
505
- @interval = interval
506
- @interval_count = interval_count
507
- @name = name
508
- @next_billing = next_billing
509
- @reference = reference
510
- end
511
- end
512
-
513
- class SupplementaryPurchaseData < ::Stripe::RequestParams
514
- class BusReservationDetail < ::Stripe::RequestParams
515
- class Arrival < ::Stripe::RequestParams
516
- class Address < ::Stripe::RequestParams
517
- # The city or town.
518
- attr_accessor :city
519
- # The country in ISO 3166-1 alpha-2 format.
520
- attr_accessor :country
521
- # The postal code formatted according to country.
522
- attr_accessor :postal_code
523
- # The state, county, province, or region formatted according to country.
524
- attr_accessor :region
525
- # Line 1 of the street address.
526
- attr_accessor :street_address
527
- # Line 2 of the street address.
528
- attr_accessor :street_address2
529
-
530
- def initialize(
531
- city: nil,
532
- country: nil,
533
- postal_code: nil,
534
- region: nil,
535
- street_address: nil,
536
- street_address2: nil
537
- )
538
- @city = city
539
- @country = country
540
- @postal_code = postal_code
541
- @region = region
542
- @street_address = street_address
543
- @street_address2 = street_address2
544
- end
545
- end
546
- # Address of the arrival location.
547
- attr_accessor :address
548
- # Identifier name or reference for the arrival location.
549
- attr_accessor :arrival_location
550
-
551
- def initialize(address: nil, arrival_location: nil)
552
- @address = address
553
- @arrival_location = arrival_location
554
- end
555
- end
556
-
557
- class Departure < ::Stripe::RequestParams
558
- class Address < ::Stripe::RequestParams
559
- # The city or town.
560
- attr_accessor :city
561
- # The country in ISO 3166-1 alpha-2 format.
562
- attr_accessor :country
563
- # The postal code formatted according to country.
564
- attr_accessor :postal_code
565
- # The state, county, province, or region formatted according to country.
566
- attr_accessor :region
567
- # Line 1 of the street address.
568
- attr_accessor :street_address
569
- # Line 2 of the street address.
570
- attr_accessor :street_address2
571
-
572
- def initialize(
573
- city: nil,
574
- country: nil,
575
- postal_code: nil,
576
- region: nil,
577
- street_address: nil,
578
- street_address2: nil
579
- )
580
- @city = city
581
- @country = country
582
- @postal_code = postal_code
583
- @region = region
584
- @street_address = street_address
585
- @street_address2 = street_address2
586
- end
587
- end
588
- # Address of the departure location.
589
- attr_accessor :address
590
- # Timestamp of departure.
591
- attr_accessor :departs_at
592
- # Identifier name or reference for the origin location.
593
- attr_accessor :departure_location
594
-
595
- def initialize(address: nil, departs_at: nil, departure_location: nil)
596
- @address = address
597
- @departs_at = departs_at
598
- @departure_location = departure_location
599
- end
600
- end
601
-
602
- class Insurance < ::Stripe::RequestParams
603
- # Insurance currency.
604
- attr_accessor :currency
605
- # Name of the company providing the insurance.
606
- attr_accessor :insurance_company_name
607
- # Type of insurance.
608
- attr_accessor :insurance_type
609
- # Price of insurance in cents.
610
- attr_accessor :price
611
-
612
- def initialize(
613
- currency: nil,
614
- insurance_company_name: nil,
615
- insurance_type: nil,
616
- price: nil
617
- )
618
- @currency = currency
619
- @insurance_company_name = insurance_company_name
620
- @insurance_type = insurance_type
621
- @price = price
622
- end
623
- end
624
-
625
- class Passenger < ::Stripe::RequestParams
626
- # The family name of the person.
627
- attr_accessor :family_name
628
- # The given name of the person.
629
- attr_accessor :given_name
630
-
631
- def initialize(family_name: nil, given_name: nil)
632
- @family_name = family_name
633
- @given_name = given_name
634
- end
635
- end
636
- # Name of associated or partner company for the service.
637
- attr_accessor :affiliate_name
638
- # Arrival details.
639
- attr_accessor :arrival
640
- # Name of transportation company.
641
- attr_accessor :carrier_name
642
- # Currency.
643
- attr_accessor :currency
644
- # Departure details.
645
- attr_accessor :departure
646
- # List of insurances for this reservation.
647
- attr_accessor :insurances
648
- # List of passengers that this reservation applies to.
649
- attr_accessor :passengers
650
- # Price in cents.
651
- attr_accessor :price
652
- # Ticket class.
653
- attr_accessor :ticket_class
654
-
655
- def initialize(
656
- affiliate_name: nil,
657
- arrival: nil,
658
- carrier_name: nil,
659
- currency: nil,
660
- departure: nil,
661
- insurances: nil,
662
- passengers: nil,
663
- price: nil,
664
- ticket_class: nil
665
- )
666
- @affiliate_name = affiliate_name
667
- @arrival = arrival
668
- @carrier_name = carrier_name
669
- @currency = currency
670
- @departure = departure
671
- @insurances = insurances
672
- @passengers = passengers
673
- @price = price
674
- @ticket_class = ticket_class
675
- end
676
- end
677
-
678
- class EventReservationDetail < ::Stripe::RequestParams
679
- class Address < ::Stripe::RequestParams
680
- # The city or town.
681
- attr_accessor :city
682
- # The country in ISO 3166-1 alpha-2 format.
683
- attr_accessor :country
684
- # The postal code formatted according to country.
685
- attr_accessor :postal_code
686
- # The state, county, province, or region formatted according to country.
687
- attr_accessor :region
688
- # Line 1 of the street address.
689
- attr_accessor :street_address
690
- # Line 2 of the street address.
691
- attr_accessor :street_address2
692
-
693
- def initialize(
694
- city: nil,
695
- country: nil,
696
- postal_code: nil,
697
- region: nil,
698
- street_address: nil,
699
- street_address2: nil
700
- )
701
- @city = city
702
- @country = country
703
- @postal_code = postal_code
704
- @region = region
705
- @street_address = street_address
706
- @street_address2 = street_address2
707
- end
708
- end
709
-
710
- class Insurance < ::Stripe::RequestParams
711
- # Insurance currency.
712
- attr_accessor :currency
713
- # Name of the company providing the insurance.
714
- attr_accessor :insurance_company_name
715
- # Type of insurance.
716
- attr_accessor :insurance_type
717
- # Price of insurance in cents.
718
- attr_accessor :price
719
-
720
- def initialize(
721
- currency: nil,
722
- insurance_company_name: nil,
723
- insurance_type: nil,
724
- price: nil
725
- )
726
- @currency = currency
727
- @insurance_company_name = insurance_company_name
728
- @insurance_type = insurance_type
729
- @price = price
730
- end
731
- end
732
- # Indicates if the tickets are digitally checked when entering the venue.
733
- attr_accessor :access_controlled_venue
734
- # Address of the event.
735
- attr_accessor :address
736
- # Name of associated or partner company for the service.
737
- attr_accessor :affiliate_name
738
- # End timestamp of the event.
739
- attr_accessor :ends_at
740
- # Company selling the ticket.
741
- attr_accessor :event_company_name
742
- # Name of the event.
743
- attr_accessor :event_name
744
- # Type of the event.
745
- attr_accessor :event_type
746
- # List of insurances for this event.
747
- attr_accessor :insurances
748
- # Start timestamp of the event.
749
- attr_accessor :starts_at
750
- # Name of the venue where the event takes place.
751
- attr_accessor :venue_name
752
-
753
- def initialize(
754
- access_controlled_venue: nil,
755
- address: nil,
756
- affiliate_name: nil,
757
- ends_at: nil,
758
- event_company_name: nil,
759
- event_name: nil,
760
- event_type: nil,
761
- insurances: nil,
762
- starts_at: nil,
763
- venue_name: nil
764
- )
765
- @access_controlled_venue = access_controlled_venue
766
- @address = address
767
- @affiliate_name = affiliate_name
768
- @ends_at = ends_at
769
- @event_company_name = event_company_name
770
- @event_name = event_name
771
- @event_type = event_type
772
- @insurances = insurances
773
- @starts_at = starts_at
774
- @venue_name = venue_name
775
- end
776
- end
777
-
778
- class FerryReservationDetail < ::Stripe::RequestParams
779
- class Arrival < ::Stripe::RequestParams
780
- class Address < ::Stripe::RequestParams
781
- # The city or town.
782
- attr_accessor :city
783
- # The country in ISO 3166-1 alpha-2 format.
784
- attr_accessor :country
785
- # The postal code formatted according to country.
786
- attr_accessor :postal_code
787
- # The state, county, province, or region formatted according to country.
788
- attr_accessor :region
789
- # Line 1 of the street address.
790
- attr_accessor :street_address
791
- # Line 2 of the street address.
792
- attr_accessor :street_address2
793
-
794
- def initialize(
795
- city: nil,
796
- country: nil,
797
- postal_code: nil,
798
- region: nil,
799
- street_address: nil,
800
- street_address2: nil
801
- )
802
- @city = city
803
- @country = country
804
- @postal_code = postal_code
805
- @region = region
806
- @street_address = street_address
807
- @street_address2 = street_address2
808
- end
809
- end
810
- # Address of the arrival location.
811
- attr_accessor :address
812
- # Identifier name or reference for the arrival location.
813
- attr_accessor :arrival_location
814
-
815
- def initialize(address: nil, arrival_location: nil)
816
- @address = address
817
- @arrival_location = arrival_location
818
- end
819
- end
820
-
821
- class Departure < ::Stripe::RequestParams
822
- class Address < ::Stripe::RequestParams
823
- # The city or town.
824
- attr_accessor :city
825
- # The country in ISO 3166-1 alpha-2 format.
826
- attr_accessor :country
827
- # The postal code formatted according to country.
828
- attr_accessor :postal_code
829
- # The state, county, province, or region formatted according to country.
830
- attr_accessor :region
831
- # Line 1 of the street address.
832
- attr_accessor :street_address
833
- # Line 2 of the street address.
834
- attr_accessor :street_address2
835
-
836
- def initialize(
837
- city: nil,
838
- country: nil,
839
- postal_code: nil,
840
- region: nil,
841
- street_address: nil,
842
- street_address2: nil
843
- )
844
- @city = city
845
- @country = country
846
- @postal_code = postal_code
847
- @region = region
848
- @street_address = street_address
849
- @street_address2 = street_address2
850
- end
851
- end
852
- # Address of the departure location.
853
- attr_accessor :address
854
- # Timestamp of departure.
855
- attr_accessor :departs_at
856
- # Identifier name or reference for the origin location.
857
- attr_accessor :departure_location
858
-
859
- def initialize(address: nil, departs_at: nil, departure_location: nil)
860
- @address = address
861
- @departs_at = departs_at
862
- @departure_location = departure_location
863
- end
864
- end
865
-
866
- class Insurance < ::Stripe::RequestParams
867
- # Insurance currency.
868
- attr_accessor :currency
869
- # Name of the company providing the insurance.
870
- attr_accessor :insurance_company_name
871
- # Type of insurance.
872
- attr_accessor :insurance_type
873
- # Price of insurance in cents.
874
- attr_accessor :price
875
-
876
- def initialize(
877
- currency: nil,
878
- insurance_company_name: nil,
879
- insurance_type: nil,
880
- price: nil
881
- )
882
- @currency = currency
883
- @insurance_company_name = insurance_company_name
884
- @insurance_type = insurance_type
885
- @price = price
886
- end
887
- end
888
-
889
- class Passenger < ::Stripe::RequestParams
890
- # The family name of the person.
891
- attr_accessor :family_name
892
- # The given name of the person.
893
- attr_accessor :given_name
894
-
895
- def initialize(family_name: nil, given_name: nil)
896
- @family_name = family_name
897
- @given_name = given_name
898
- end
899
- end
900
- # Name of associated or partner company for the service.
901
- attr_accessor :affiliate_name
902
- # Arrival details.
903
- attr_accessor :arrival
904
- # Name of transportation company.
905
- attr_accessor :carrier_name
906
- # Currency.
907
- attr_accessor :currency
908
- # Departure details.
909
- attr_accessor :departure
910
- # List of insurances for this reservation.
911
- attr_accessor :insurances
912
- # List of passengers that this reservation applies to.
913
- attr_accessor :passengers
914
- # Price in cents.
915
- attr_accessor :price
916
- # Ticket class.
917
- attr_accessor :ticket_class
918
-
919
- def initialize(
920
- affiliate_name: nil,
921
- arrival: nil,
922
- carrier_name: nil,
923
- currency: nil,
924
- departure: nil,
925
- insurances: nil,
926
- passengers: nil,
927
- price: nil,
928
- ticket_class: nil
929
- )
930
- @affiliate_name = affiliate_name
931
- @arrival = arrival
932
- @carrier_name = carrier_name
933
- @currency = currency
934
- @departure = departure
935
- @insurances = insurances
936
- @passengers = passengers
937
- @price = price
938
- @ticket_class = ticket_class
939
- end
940
- end
941
-
942
- class Insurance < ::Stripe::RequestParams
943
- # Insurance currency.
944
- attr_accessor :currency
945
- # Name of the company providing the insurance.
946
- attr_accessor :insurance_company_name
947
- # Type of insurance
948
- attr_accessor :insurance_type
949
- # Price of insurance in cents.
950
- attr_accessor :price
951
-
952
- def initialize(
953
- currency: nil,
954
- insurance_company_name: nil,
955
- insurance_type: nil,
956
- price: nil
957
- )
958
- @currency = currency
959
- @insurance_company_name = insurance_company_name
960
- @insurance_type = insurance_type
961
- @price = price
962
- end
963
- end
964
-
965
- class MarketplaceSeller < ::Stripe::RequestParams
966
- class MarketplaceSellerAddress < ::Stripe::RequestParams
967
- # The city or town.
968
- attr_accessor :city
969
- # The country in ISO 3166-1 alpha-2 format.
970
- attr_accessor :country
971
- # The postal code formatted according to country.
972
- attr_accessor :postal_code
973
- # The state, county, province, or region formatted according to country.
974
- attr_accessor :region
975
- # Line 1 of the street address.
976
- attr_accessor :street_address
977
- # Line 2 of the street address.
978
- attr_accessor :street_address2
979
-
980
- def initialize(
981
- city: nil,
982
- country: nil,
983
- postal_code: nil,
984
- region: nil,
985
- street_address: nil,
986
- street_address2: nil
987
- )
988
- @city = city
989
- @country = country
990
- @postal_code = postal_code
991
- @region = region
992
- @street_address = street_address
993
- @street_address2 = street_address2
994
- end
995
- end
996
- # The references to line items for purchases with multiple associated sub-sellers.
997
- attr_accessor :line_item_references
998
- # The address of the selling or delivering merchant.
999
- attr_accessor :marketplace_seller_address
1000
- # The name of the marketplace seller.
1001
- attr_accessor :marketplace_seller_name
1002
- # The unique identifier for the marketplace seller.
1003
- attr_accessor :marketplace_seller_reference
1004
- # The number of transactions the sub-seller completed in the last 12 months.
1005
- attr_accessor :number_of_transactions
1006
- # The category of the product.
1007
- attr_accessor :product_category
1008
- # The date when the seller's account with the marketplace was last logged in.
1009
- attr_accessor :seller_last_login_at
1010
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
1011
- attr_accessor :seller_rating
1012
- # The date when the seller's account with the marketplace was created.
1013
- attr_accessor :seller_registered_at
1014
- # The date when the seller's account with the marketplace was last updated.
1015
- attr_accessor :seller_updated_at
1016
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
1017
- attr_accessor :shipping_references
1018
- # The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
1019
- attr_accessor :volume_of_transactions
1020
-
1021
- def initialize(
1022
- line_item_references: nil,
1023
- marketplace_seller_address: nil,
1024
- marketplace_seller_name: nil,
1025
- marketplace_seller_reference: nil,
1026
- number_of_transactions: nil,
1027
- product_category: nil,
1028
- seller_last_login_at: nil,
1029
- seller_rating: nil,
1030
- seller_registered_at: nil,
1031
- seller_updated_at: nil,
1032
- shipping_references: nil,
1033
- volume_of_transactions: nil
1034
- )
1035
- @line_item_references = line_item_references
1036
- @marketplace_seller_address = marketplace_seller_address
1037
- @marketplace_seller_name = marketplace_seller_name
1038
- @marketplace_seller_reference = marketplace_seller_reference
1039
- @number_of_transactions = number_of_transactions
1040
- @product_category = product_category
1041
- @seller_last_login_at = seller_last_login_at
1042
- @seller_rating = seller_rating
1043
- @seller_registered_at = seller_registered_at
1044
- @seller_updated_at = seller_updated_at
1045
- @shipping_references = shipping_references
1046
- @volume_of_transactions = volume_of_transactions
1047
- end
1048
- end
1049
-
1050
- class RoundTripReservationDetail < ::Stripe::RequestParams
1051
- class Arrival < ::Stripe::RequestParams
1052
- class Address < ::Stripe::RequestParams
1053
- # The city or town.
1054
- attr_accessor :city
1055
- # The country in ISO 3166-1 alpha-2 format.
1056
- attr_accessor :country
1057
- # The postal code formatted according to country.
1058
- attr_accessor :postal_code
1059
- # The state, county, province, or region formatted according to country.
1060
- attr_accessor :region
1061
- # Line 1 of the street address.
1062
- attr_accessor :street_address
1063
- # Line 2 of the street address.
1064
- attr_accessor :street_address2
1065
-
1066
- def initialize(
1067
- city: nil,
1068
- country: nil,
1069
- postal_code: nil,
1070
- region: nil,
1071
- street_address: nil,
1072
- street_address2: nil
1073
- )
1074
- @city = city
1075
- @country = country
1076
- @postal_code = postal_code
1077
- @region = region
1078
- @street_address = street_address
1079
- @street_address2 = street_address2
1080
- end
1081
- end
1082
- # Address of the arrival location.
1083
- attr_accessor :address
1084
- # Identifier name or reference for the arrival location.
1085
- attr_accessor :arrival_location
1086
-
1087
- def initialize(address: nil, arrival_location: nil)
1088
- @address = address
1089
- @arrival_location = arrival_location
1090
- end
1091
- end
1092
-
1093
- class Departure < ::Stripe::RequestParams
1094
- class Address < ::Stripe::RequestParams
1095
- # The city or town.
1096
- attr_accessor :city
1097
- # The country in ISO 3166-1 alpha-2 format.
1098
- attr_accessor :country
1099
- # The postal code formatted according to country.
1100
- attr_accessor :postal_code
1101
- # The state, county, province, or region formatted according to country.
1102
- attr_accessor :region
1103
- # Line 1 of the street address.
1104
- attr_accessor :street_address
1105
- # Line 2 of the street address.
1106
- attr_accessor :street_address2
1107
-
1108
- def initialize(
1109
- city: nil,
1110
- country: nil,
1111
- postal_code: nil,
1112
- region: nil,
1113
- street_address: nil,
1114
- street_address2: nil
1115
- )
1116
- @city = city
1117
- @country = country
1118
- @postal_code = postal_code
1119
- @region = region
1120
- @street_address = street_address
1121
- @street_address2 = street_address2
1122
- end
1123
- end
1124
- # Address of the departure location.
1125
- attr_accessor :address
1126
- # Timestamp of departure.
1127
- attr_accessor :departs_at
1128
- # Identifier name or reference for the origin location.
1129
- attr_accessor :departure_location
1130
-
1131
- def initialize(address: nil, departs_at: nil, departure_location: nil)
1132
- @address = address
1133
- @departs_at = departs_at
1134
- @departure_location = departure_location
1135
- end
1136
- end
1137
-
1138
- class Insurance < ::Stripe::RequestParams
1139
- # Insurance currency.
1140
- attr_accessor :currency
1141
- # Name of the company providing the insurance.
1142
- attr_accessor :insurance_company_name
1143
- # Type of insurance.
1144
- attr_accessor :insurance_type
1145
- # Price of insurance in cents.
1146
- attr_accessor :price
1147
-
1148
- def initialize(
1149
- currency: nil,
1150
- insurance_company_name: nil,
1151
- insurance_type: nil,
1152
- price: nil
1153
- )
1154
- @currency = currency
1155
- @insurance_company_name = insurance_company_name
1156
- @insurance_type = insurance_type
1157
- @price = price
1158
- end
1159
- end
1160
-
1161
- class Passenger < ::Stripe::RequestParams
1162
- # The family name of the person.
1163
- attr_accessor :family_name
1164
- # The given name of the person.
1165
- attr_accessor :given_name
1166
-
1167
- def initialize(family_name: nil, given_name: nil)
1168
- @family_name = family_name
1169
- @given_name = given_name
1170
- end
1171
- end
1172
- # Name of associated or partner company for the service.
1173
- attr_accessor :affiliate_name
1174
- # Arrival details.
1175
- attr_accessor :arrival
1176
- # Name of transportation company.
1177
- attr_accessor :carrier_name
1178
- # Currency.
1179
- attr_accessor :currency
1180
- # Departure details.
1181
- attr_accessor :departure
1182
- # List of insurances for this reservation.
1183
- attr_accessor :insurances
1184
- # List of passengers that this reservation applies to.
1185
- attr_accessor :passengers
1186
- # Price in cents.
1187
- attr_accessor :price
1188
- # Ticket class.
1189
- attr_accessor :ticket_class
1190
-
1191
- def initialize(
1192
- affiliate_name: nil,
1193
- arrival: nil,
1194
- carrier_name: nil,
1195
- currency: nil,
1196
- departure: nil,
1197
- insurances: nil,
1198
- passengers: nil,
1199
- price: nil,
1200
- ticket_class: nil
1201
- )
1202
- @affiliate_name = affiliate_name
1203
- @arrival = arrival
1204
- @carrier_name = carrier_name
1205
- @currency = currency
1206
- @departure = departure
1207
- @insurances = insurances
1208
- @passengers = passengers
1209
- @price = price
1210
- @ticket_class = ticket_class
1211
- end
1212
- end
1213
-
1214
- class TrainReservationDetail < ::Stripe::RequestParams
1215
- class Arrival < ::Stripe::RequestParams
1216
- class Address < ::Stripe::RequestParams
1217
- # The city or town.
1218
- attr_accessor :city
1219
- # The country in ISO 3166-1 alpha-2 format.
1220
- attr_accessor :country
1221
- # The postal code formatted according to country.
1222
- attr_accessor :postal_code
1223
- # The state, county, province, or region formatted according to country.
1224
- attr_accessor :region
1225
- # Line 1 of the street address.
1226
- attr_accessor :street_address
1227
- # Line 2 of the street address.
1228
- attr_accessor :street_address2
1229
-
1230
- def initialize(
1231
- city: nil,
1232
- country: nil,
1233
- postal_code: nil,
1234
- region: nil,
1235
- street_address: nil,
1236
- street_address2: nil
1237
- )
1238
- @city = city
1239
- @country = country
1240
- @postal_code = postal_code
1241
- @region = region
1242
- @street_address = street_address
1243
- @street_address2 = street_address2
1244
- end
1245
- end
1246
- # Address of the arrival location.
1247
- attr_accessor :address
1248
- # Identifier name or reference for the arrival location.
1249
- attr_accessor :arrival_location
1250
-
1251
- def initialize(address: nil, arrival_location: nil)
1252
- @address = address
1253
- @arrival_location = arrival_location
1254
- end
1255
- end
1256
-
1257
- class Departure < ::Stripe::RequestParams
1258
- class Address < ::Stripe::RequestParams
1259
- # The city or town.
1260
- attr_accessor :city
1261
- # The country in ISO 3166-1 alpha-2 format.
1262
- attr_accessor :country
1263
- # The postal code formatted according to country.
1264
- attr_accessor :postal_code
1265
- # The state, county, province, or region formatted according to country.
1266
- attr_accessor :region
1267
- # Line 1 of the street address.
1268
- attr_accessor :street_address
1269
- # Line 2 of the street address.
1270
- attr_accessor :street_address2
1271
-
1272
- def initialize(
1273
- city: nil,
1274
- country: nil,
1275
- postal_code: nil,
1276
- region: nil,
1277
- street_address: nil,
1278
- street_address2: nil
1279
- )
1280
- @city = city
1281
- @country = country
1282
- @postal_code = postal_code
1283
- @region = region
1284
- @street_address = street_address
1285
- @street_address2 = street_address2
1286
- end
1287
- end
1288
- # Address of the departure location.
1289
- attr_accessor :address
1290
- # Timestamp of departure.
1291
- attr_accessor :departs_at
1292
- # Identifier name or reference for the origin location.
1293
- attr_accessor :departure_location
1294
-
1295
- def initialize(address: nil, departs_at: nil, departure_location: nil)
1296
- @address = address
1297
- @departs_at = departs_at
1298
- @departure_location = departure_location
1299
- end
1300
- end
1301
-
1302
- class Insurance < ::Stripe::RequestParams
1303
- # Insurance currency.
1304
- attr_accessor :currency
1305
- # Name of the company providing the insurance.
1306
- attr_accessor :insurance_company_name
1307
- # Type of insurance.
1308
- attr_accessor :insurance_type
1309
- # Price of insurance in cents.
1310
- attr_accessor :price
1311
-
1312
- def initialize(
1313
- currency: nil,
1314
- insurance_company_name: nil,
1315
- insurance_type: nil,
1316
- price: nil
1317
- )
1318
- @currency = currency
1319
- @insurance_company_name = insurance_company_name
1320
- @insurance_type = insurance_type
1321
- @price = price
1322
- end
1323
- end
1324
-
1325
- class Passenger < ::Stripe::RequestParams
1326
- # The family name of the person.
1327
- attr_accessor :family_name
1328
- # The given name of the person.
1329
- attr_accessor :given_name
1330
-
1331
- def initialize(family_name: nil, given_name: nil)
1332
- @family_name = family_name
1333
- @given_name = given_name
1334
- end
1335
- end
1336
- # Name of associated or partner company for the service.
1337
- attr_accessor :affiliate_name
1338
- # Arrival details.
1339
- attr_accessor :arrival
1340
- # Name of transportation company.
1341
- attr_accessor :carrier_name
1342
- # Currency.
1343
- attr_accessor :currency
1344
- # Departure details.
1345
- attr_accessor :departure
1346
- # List of insurances for this reservation.
1347
- attr_accessor :insurances
1348
- # List of passengers that this reservation applies to.
1349
- attr_accessor :passengers
1350
- # Price in cents.
1351
- attr_accessor :price
1352
- # Ticket class.
1353
- attr_accessor :ticket_class
1354
-
1355
- def initialize(
1356
- affiliate_name: nil,
1357
- arrival: nil,
1358
- carrier_name: nil,
1359
- currency: nil,
1360
- departure: nil,
1361
- insurances: nil,
1362
- passengers: nil,
1363
- price: nil,
1364
- ticket_class: nil
1365
- )
1366
- @affiliate_name = affiliate_name
1367
- @arrival = arrival
1368
- @carrier_name = carrier_name
1369
- @currency = currency
1370
- @departure = departure
1371
- @insurances = insurances
1372
- @passengers = passengers
1373
- @price = price
1374
- @ticket_class = ticket_class
1375
- end
1376
- end
1377
-
1378
- class Voucher < ::Stripe::RequestParams
1379
- # Name of associated or partner company for this voucher.
1380
- attr_accessor :affiliate_name
1381
- # The voucher validity end time.
1382
- attr_accessor :ends_at
1383
- # The voucher validity start time.
1384
- attr_accessor :starts_at
1385
- # The issuer or provider of this voucher.
1386
- attr_accessor :voucher_company
1387
- # The name or reference to identify the voucher.
1388
- attr_accessor :voucher_name
1389
- # The type of this voucher.
1390
- attr_accessor :voucher_type
1391
-
1392
- def initialize(
1393
- affiliate_name: nil,
1394
- ends_at: nil,
1395
- starts_at: nil,
1396
- voucher_company: nil,
1397
- voucher_name: nil,
1398
- voucher_type: nil
1399
- )
1400
- @affiliate_name = affiliate_name
1401
- @ends_at = ends_at
1402
- @starts_at = starts_at
1403
- @voucher_company = voucher_company
1404
- @voucher_name = voucher_name
1405
- @voucher_type = voucher_type
1406
- end
1407
- end
1408
- # Supplementary bus reservation details.
1409
- attr_accessor :bus_reservation_details
1410
- # Supplementary event reservation details.
1411
- attr_accessor :event_reservation_details
1412
- # Supplementary ferry reservation details.
1413
- attr_accessor :ferry_reservation_details
1414
- # Supplementary insurance details.
1415
- attr_accessor :insurances
1416
- # Supplementary marketplace seller details.
1417
- attr_accessor :marketplace_sellers
1418
- # Supplementary round trip reservation details.
1419
- attr_accessor :round_trip_reservation_details
1420
- # Supplementary train reservation details.
1421
- attr_accessor :train_reservation_details
1422
- # Voucher details, such as a gift card or discount code.
1423
- attr_accessor :vouchers
1424
-
1425
- def initialize(
1426
- bus_reservation_details: nil,
1427
- event_reservation_details: nil,
1428
- ferry_reservation_details: nil,
1429
- insurances: nil,
1430
- marketplace_sellers: nil,
1431
- round_trip_reservation_details: nil,
1432
- train_reservation_details: nil,
1433
- vouchers: nil
1434
- )
1435
- @bus_reservation_details = bus_reservation_details
1436
- @event_reservation_details = event_reservation_details
1437
- @ferry_reservation_details = ferry_reservation_details
1438
- @insurances = insurances
1439
- @marketplace_sellers = marketplace_sellers
1440
- @round_trip_reservation_details = round_trip_reservation_details
1441
- @train_reservation_details = train_reservation_details
1442
- @vouchers = vouchers
1443
- end
1444
- end
1445
- # Controls when the funds are captured from the customer's account.
1446
- #
1447
- # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1448
- #
1449
- # 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.
1450
- attr_accessor :capture_method
1451
- # On-demand details if setting up or charging an on-demand payment.
1452
- attr_accessor :on_demand
1453
- # Preferred language of the Klarna authorization page that the customer is redirected to
1454
- attr_accessor :preferred_locale
1455
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1456
- #
1457
- # 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.
1458
- #
1459
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1460
- #
1461
- # 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).
1462
- #
1463
- # 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`.
1464
- attr_accessor :setup_future_usage
1465
- # Subscription details if setting up or charging a subscription.
1466
- attr_accessor :subscriptions
1467
- # Supplementary Purchase Data for the corresponding Klarna payment
1468
- attr_accessor :supplementary_purchase_data
1469
-
1470
- def initialize(
1471
- capture_method: nil,
1472
- on_demand: nil,
1473
- preferred_locale: nil,
1474
- setup_future_usage: nil,
1475
- subscriptions: nil,
1476
- supplementary_purchase_data: nil
1477
- )
1478
- @capture_method = capture_method
1479
- @on_demand = on_demand
1480
- @preferred_locale = preferred_locale
1481
- @setup_future_usage = setup_future_usage
1482
- @subscriptions = subscriptions
1483
- @supplementary_purchase_data = supplementary_purchase_data
1484
- end
1485
- end
1486
-
1487
- class Link < ::Stripe::RequestParams
1488
- # Controls when the funds are captured from the customer's account.
1489
- #
1490
- # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
1491
- #
1492
- # 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.
1493
- attr_accessor :capture_method
1494
- # [Deprecated] This is a legacy parameter that no longer has any function.
1495
- attr_accessor :persistent_token
1496
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1497
- #
1498
- # 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.
1499
- #
1500
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1501
- #
1502
- # 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).
1503
- #
1504
- # 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`.
1505
- attr_accessor :setup_future_usage
1506
-
1507
- def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil)
1508
- @capture_method = capture_method
1509
- @persistent_token = persistent_token
1510
- @setup_future_usage = setup_future_usage
1511
- end
1512
- end
1513
-
1514
- class Oxxo < ::Stripe::RequestParams
1515
- # 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.
1516
- attr_accessor :expires_after_days
1517
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1518
- #
1519
- # 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.
1520
- #
1521
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1522
- #
1523
- # 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).
1524
- #
1525
- # 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`.
1526
- attr_accessor :setup_future_usage
1527
-
1528
- def initialize(expires_after_days: nil, setup_future_usage: nil)
1529
- @expires_after_days = expires_after_days
1530
- @setup_future_usage = setup_future_usage
1531
- end
1532
- end
1533
-
1534
- class P24 < ::Stripe::RequestParams
1535
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1536
- #
1537
- # 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.
1538
- #
1539
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1540
- #
1541
- # 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).
1542
- #
1543
- # 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`.
1544
- attr_accessor :setup_future_usage
1545
- # Confirm that the payer has accepted the P24 terms and conditions.
1546
- attr_accessor :tos_shown_and_accepted
1547
-
1548
- def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
1549
- @setup_future_usage = setup_future_usage
1550
- @tos_shown_and_accepted = tos_shown_and_accepted
1551
- end
1552
- end
1553
-
1554
- class Paypal < ::Stripe::RequestParams
1555
- class LineItem < ::Stripe::RequestParams
1556
- class Tax < ::Stripe::RequestParams
1557
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
1558
- attr_accessor :amount
1559
- # The tax behavior for the line item.
1560
- attr_accessor :behavior
1561
-
1562
- def initialize(amount: nil, behavior: nil)
1563
- @amount = amount
1564
- @behavior = behavior
1565
- end
1566
- end
1567
- # Type of the line item.
1568
- attr_accessor :category
1569
- # Description of the line item.
1570
- attr_accessor :description
1571
- # Descriptive name of the line item.
1572
- attr_accessor :name
1573
- # Quantity of the line item. Must be a positive number.
1574
- attr_accessor :quantity
1575
- # Client facing stock keeping unit, article number or similar.
1576
- attr_accessor :sku
1577
- # The Stripe account ID of the connected account that sells the item.
1578
- attr_accessor :sold_by
1579
- # The tax information for the line item.
1580
- attr_accessor :tax
1581
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
1582
- attr_accessor :unit_amount
1583
-
1584
- def initialize(
1585
- category: nil,
1586
- description: nil,
1587
- name: nil,
1588
- quantity: nil,
1589
- sku: nil,
1590
- sold_by: nil,
1591
- tax: nil,
1592
- unit_amount: nil
1593
- )
1594
- @category = category
1595
- @description = description
1596
- @name = name
1597
- @quantity = quantity
1598
- @sku = sku
1599
- @sold_by = sold_by
1600
- @tax = tax
1601
- @unit_amount = unit_amount
1602
- end
1603
- end
1604
- # Controls when the funds will be captured from the customer's account.
1605
- attr_accessor :capture_method
1606
- # The line items purchased by the customer.
1607
- attr_accessor :line_items
1608
- # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1609
- attr_accessor :preferred_locale
1610
- # 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.
1611
- attr_accessor :reference
1612
- # 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.
1613
- attr_accessor :reference_id
1614
- # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1615
- attr_accessor :risk_correlation_id
1616
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1617
- #
1618
- # 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.
1619
- #
1620
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1621
- #
1622
- # 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).
1623
- #
1624
- # 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`.
1625
- attr_accessor :setup_future_usage
1626
- # 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.
1627
- attr_accessor :subsellers
1628
-
1629
- def initialize(
1630
- capture_method: nil,
1631
- line_items: nil,
1632
- preferred_locale: nil,
1633
- reference: nil,
1634
- reference_id: nil,
1635
- risk_correlation_id: nil,
1636
- setup_future_usage: nil,
1637
- subsellers: nil
1638
- )
1639
- @capture_method = capture_method
1640
- @line_items = line_items
1641
- @preferred_locale = preferred_locale
1642
- @reference = reference
1643
- @reference_id = reference_id
1644
- @risk_correlation_id = risk_correlation_id
1645
- @setup_future_usage = setup_future_usage
1646
- @subsellers = subsellers
1647
- end
1648
- end
1649
-
1650
- class SepaDebit < ::Stripe::RequestParams
1651
- class MandateOptions < ::Stripe::RequestParams
1652
- # 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'.
1653
- attr_accessor :reference_prefix
1654
-
1655
- def initialize(reference_prefix: nil)
1656
- @reference_prefix = reference_prefix
1657
- end
1658
- end
1659
- # Additional fields for Mandate creation
1660
- attr_accessor :mandate_options
1661
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1662
- #
1663
- # 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.
1664
- #
1665
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1666
- #
1667
- # 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).
1668
- #
1669
- # 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`.
1670
- attr_accessor :setup_future_usage
1671
- # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1672
- attr_accessor :target_date
1673
-
1674
- def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1675
- @mandate_options = mandate_options
1676
- @setup_future_usage = setup_future_usage
1677
- @target_date = target_date
1678
- end
1679
- end
1680
-
1681
- class Sofort < ::Stripe::RequestParams
1682
- # Language shown to the payer on redirect.
1683
- attr_accessor :preferred_language
1684
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1685
- #
1686
- # 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.
1687
- #
1688
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1689
- #
1690
- # 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).
1691
- #
1692
- # 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`.
1693
- attr_accessor :setup_future_usage
1694
-
1695
- def initialize(preferred_language: nil, setup_future_usage: nil)
1696
- @preferred_language = preferred_language
1697
- @setup_future_usage = setup_future_usage
1698
- end
1699
- end
1700
-
1701
- class WechatPay < ::Stripe::RequestParams
1702
- # The app ID registered with WeChat Pay. Only required when client is ios or android.
1703
- attr_accessor :app_id
1704
- # The client type that the end customer will pay from
1705
- attr_accessor :client
1706
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1707
- #
1708
- # 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.
1709
- #
1710
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1711
- #
1712
- # 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).
1713
- #
1714
- # 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`.
1715
- attr_accessor :setup_future_usage
1716
-
1717
- def initialize(app_id: nil, client: nil, setup_future_usage: nil)
1718
- @app_id = app_id
1719
- @client = client
1720
- @setup_future_usage = setup_future_usage
1721
- end
1722
- end
1723
- # If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
1724
- attr_accessor :acss_debit
1725
- # If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
1726
- attr_accessor :afterpay_clearpay
1727
- # If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
1728
- attr_accessor :alipay
1729
- # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
1730
- attr_accessor :bancontact
1731
- # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
1732
- attr_accessor :card
1733
- # If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
1734
- attr_accessor :customer_balance
1735
- # If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
1736
- attr_accessor :ideal
1737
- # If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
1738
- attr_accessor :klarna
1739
- # If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
1740
- attr_accessor :link
1741
- # If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
1742
- attr_accessor :oxxo
1743
- # If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
1744
- attr_accessor :p24
1745
- # If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
1746
- attr_accessor :paypal
1747
- # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
1748
- attr_accessor :sepa_debit
1749
- # If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
1750
- attr_accessor :sofort
1751
- # If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
1752
- attr_accessor :wechat_pay
1753
-
1754
- def initialize(
1755
- acss_debit: nil,
1756
- afterpay_clearpay: nil,
1757
- alipay: nil,
1758
- bancontact: nil,
1759
- card: nil,
1760
- customer_balance: nil,
1761
- ideal: nil,
1762
- klarna: nil,
1763
- link: nil,
1764
- oxxo: nil,
1765
- p24: nil,
1766
- paypal: nil,
1767
- sepa_debit: nil,
1768
- sofort: nil,
1769
- wechat_pay: nil
1770
- )
1771
- @acss_debit = acss_debit
1772
- @afterpay_clearpay = afterpay_clearpay
1773
- @alipay = alipay
1774
- @bancontact = bancontact
1775
- @card = card
1776
- @customer_balance = customer_balance
1777
- @ideal = ideal
1778
- @klarna = klarna
1779
- @link = link
1780
- @oxxo = oxxo
1781
- @p24 = p24
1782
- @paypal = paypal
1783
- @sepa_debit = sepa_debit
1784
- @sofort = sofort
1785
- @wechat_pay = wechat_pay
1786
- end
1787
- end
1788
-
1789
- class TransferData < ::Stripe::RequestParams
1790
- # 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.
1791
- attr_accessor :amount
1792
- # ID of the Connected account receiving the transfer.
1793
- attr_accessor :destination
1794
-
1795
- def initialize(amount: nil, destination: nil)
1796
- @amount = amount
1797
- @destination = destination
1798
- end
1799
- end
1800
- # 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.
1801
- attr_accessor :application_fee_amount
1802
- # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
1803
- attr_accessor :payment_method_options
1804
- # The list of [payment method types](https://docs.stripe.com/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).
1805
- attr_accessor :payment_method_types
1806
- # The URL to redirect the customer to after they authenticate their payment.
1807
- attr_accessor :return_url
1808
- # 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.
1809
- attr_accessor :statement_descriptor
1810
- # 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.
1811
- attr_accessor :statement_descriptor_suffix
1812
- # Provides configuration for completing a transfer for the order after it is paid.
1813
- attr_accessor :transfer_data
1814
-
1815
- def initialize(
1816
- application_fee_amount: nil,
1817
- payment_method_options: nil,
1818
- payment_method_types: nil,
1819
- return_url: nil,
1820
- statement_descriptor: nil,
1821
- statement_descriptor_suffix: nil,
1822
- transfer_data: nil
1823
- )
1824
- @application_fee_amount = application_fee_amount
1825
- @payment_method_options = payment_method_options
1826
- @payment_method_types = payment_method_types
1827
- @return_url = return_url
1828
- @statement_descriptor = statement_descriptor
1829
- @statement_descriptor_suffix = statement_descriptor_suffix
1830
- @transfer_data = transfer_data
1831
- end
1832
- end
1833
- # Settings describing how the order should configure generated PaymentIntents.
1834
- attr_accessor :settings
1835
-
1836
- def initialize(settings: nil)
1837
- @settings = settings
1838
- end
1839
- end
1840
-
1841
- class ShippingCost < ::Stripe::RequestParams
1842
- class ShippingRateData < ::Stripe::RequestParams
1843
- class DeliveryEstimate < ::Stripe::RequestParams
1844
- class Maximum < ::Stripe::RequestParams
1845
- # A unit of time.
1846
- attr_accessor :unit
1847
- # Must be greater than 0.
1848
- attr_accessor :value
1849
-
1850
- def initialize(unit: nil, value: nil)
1851
- @unit = unit
1852
- @value = value
1853
- end
1854
- end
1855
-
1856
- class Minimum < ::Stripe::RequestParams
1857
- # A unit of time.
1858
- attr_accessor :unit
1859
- # Must be greater than 0.
1860
- attr_accessor :value
1861
-
1862
- def initialize(unit: nil, value: nil)
1863
- @unit = unit
1864
- @value = value
1865
- end
1866
- end
1867
- # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
1868
- attr_accessor :maximum
1869
- # The lower bound of the estimated range. If empty, represents no lower bound.
1870
- attr_accessor :minimum
1871
-
1872
- def initialize(maximum: nil, minimum: nil)
1873
- @maximum = maximum
1874
- @minimum = minimum
1875
- end
1876
- end
1877
-
1878
- class FixedAmount < ::Stripe::RequestParams
1879
- class CurrencyOptions < ::Stripe::RequestParams
1880
- # A non-negative integer in cents representing how much to charge.
1881
- attr_accessor :amount
1882
- # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1883
- attr_accessor :tax_behavior
1884
-
1885
- def initialize(amount: nil, tax_behavior: nil)
1886
- @amount = amount
1887
- @tax_behavior = tax_behavior
1888
- end
1889
- end
1890
- # A non-negative integer in cents representing how much to charge.
1891
- attr_accessor :amount
1892
- # 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).
1893
- attr_accessor :currency
1894
- # 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).
1895
- attr_accessor :currency_options
1896
-
1897
- def initialize(amount: nil, currency: nil, currency_options: nil)
1898
- @amount = amount
1899
- @currency = currency
1900
- @currency_options = currency_options
1901
- end
1902
- end
1903
- # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
1904
- attr_accessor :delivery_estimate
1905
- # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
1906
- attr_accessor :display_name
1907
- # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1908
- attr_accessor :fixed_amount
1909
- # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1910
- attr_accessor :metadata
1911
- # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1912
- attr_accessor :tax_behavior
1913
- # A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1914
- attr_accessor :tax_code
1915
- # The type of calculation to use on the shipping rate.
1916
- attr_accessor :type
1917
-
1918
- def initialize(
1919
- delivery_estimate: nil,
1920
- display_name: nil,
1921
- fixed_amount: nil,
1922
- metadata: nil,
1923
- tax_behavior: nil,
1924
- tax_code: nil,
1925
- type: nil
1926
- )
1927
- @delivery_estimate = delivery_estimate
1928
- @display_name = display_name
1929
- @fixed_amount = fixed_amount
1930
- @metadata = metadata
1931
- @tax_behavior = tax_behavior
1932
- @tax_code = tax_code
1933
- @type = type
1934
- end
1935
- end
1936
- # The ID of the shipping rate to use for this order.
1937
- attr_accessor :shipping_rate
1938
- # Parameters to create a new ad-hoc shipping rate for this order.
1939
- attr_accessor :shipping_rate_data
1940
-
1941
- def initialize(shipping_rate: nil, shipping_rate_data: nil)
1942
- @shipping_rate = shipping_rate
1943
- @shipping_rate_data = shipping_rate_data
1944
- end
1945
- end
1946
-
1947
- class ShippingDetails < ::Stripe::RequestParams
1948
- class Address < ::Stripe::RequestParams
1949
- # City, district, suburb, town, or village.
1950
- attr_accessor :city
1951
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1952
- attr_accessor :country
1953
- # Address line 1, such as the street, PO Box, or company name.
1954
- attr_accessor :line1
1955
- # Address line 2, such as the apartment, suite, unit, or building.
1956
- attr_accessor :line2
1957
- # ZIP or postal code.
1958
- attr_accessor :postal_code
1959
- # State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
1960
- attr_accessor :state
1961
-
1962
- def initialize(
1963
- city: nil,
1964
- country: nil,
1965
- line1: nil,
1966
- line2: nil,
1967
- postal_code: nil,
1968
- state: nil
1969
- )
1970
- @city = city
1971
- @country = country
1972
- @line1 = line1
1973
- @line2 = line2
1974
- @postal_code = postal_code
1975
- @state = state
1976
- end
1977
- end
1978
- # The shipping address for the order.
1979
- attr_accessor :address
1980
- # The name of the recipient of the order.
1981
- attr_accessor :name
1982
- # The phone number (including extension) for the recipient of the order.
1983
- attr_accessor :phone
1984
-
1985
- def initialize(address: nil, name: nil, phone: nil)
1986
- @address = address
1987
- @name = name
1988
- @phone = phone
1989
- end
1990
- end
1991
-
1992
- class TaxDetails < ::Stripe::RequestParams
1993
- class TaxId < ::Stripe::RequestParams
1994
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
1995
- attr_accessor :type
1996
- # Value of the tax ID.
1997
- attr_accessor :value
1998
-
1999
- def initialize(type: nil, value: nil)
2000
- @type = type
2001
- @value = value
2002
- end
2003
- end
2004
- # The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
2005
- attr_accessor :tax_exempt
2006
- # The purchaser's tax IDs to be used for this order.
2007
- attr_accessor :tax_ids
2008
-
2009
- def initialize(tax_exempt: nil, tax_ids: nil)
2010
- @tax_exempt = tax_exempt
2011
- @tax_ids = tax_ids
2012
- end
2013
- end
2014
- # Settings for automatic tax calculation for this order.
2015
- attr_accessor :automatic_tax
2016
- # 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.
2017
- attr_accessor :billing_details
2018
- # 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).
2019
- attr_accessor :currency
2020
- # The customer associated with this order.
2021
- attr_accessor :customer
2022
- # An arbitrary string attached to the object. Often useful for displaying to users.
2023
- attr_accessor :description
2024
- # The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string `""` to unset this field.
2025
- attr_accessor :discounts
2026
- # Specifies which fields in the response should be expanded.
2027
- attr_accessor :expand
2028
- # The IP address of the purchaser for this order.
2029
- attr_accessor :ip_address
2030
- # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
2031
- attr_accessor :line_items
2032
- # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2033
- attr_accessor :metadata
2034
- # Payment information associated with the order, including payment settings.
2035
- attr_accessor :payment
2036
- # Settings for the customer cost of shipping for this order.
2037
- attr_accessor :shipping_cost
2038
- # Shipping details for the order.
2039
- attr_accessor :shipping_details
2040
- # Additional tax details about the purchaser to be used for this order.
2041
- attr_accessor :tax_details
2042
-
2043
- def initialize(
2044
- automatic_tax: nil,
2045
- billing_details: nil,
2046
- currency: nil,
2047
- customer: nil,
2048
- description: nil,
2049
- discounts: nil,
2050
- expand: nil,
2051
- ip_address: nil,
2052
- line_items: nil,
2053
- metadata: nil,
2054
- payment: nil,
2055
- shipping_cost: nil,
2056
- shipping_details: nil,
2057
- tax_details: nil
2058
- )
2059
- @automatic_tax = automatic_tax
2060
- @billing_details = billing_details
2061
- @currency = currency
2062
- @customer = customer
2063
- @description = description
2064
- @discounts = discounts
2065
- @expand = expand
2066
- @ip_address = ip_address
2067
- @line_items = line_items
2068
- @metadata = metadata
2069
- @payment = payment
2070
- @shipping_cost = shipping_cost
2071
- @shipping_details = shipping_details
2072
- @tax_details = tax_details
2073
- end
2074
-
2075
- def self.field_encodings
2076
- @field_encodings = {
2077
- line_items: {
2078
- kind: :array,
2079
- element: {
2080
- kind: :object,
2081
- fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
2082
- },
2083
- },
2084
- }
2085
- end
2086
- end
2087
- end