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,2083 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class OrderCreateParams < ::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 a [Price](https://docs.stripe.com/api/prices) to add to the Order.
190
- #
191
- # 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.
192
- attr_accessor :price
193
- # Data used to generate a new Price object inline.
194
- #
195
- # 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.
196
- #
197
- # 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.
198
- attr_accessor :price_data
199
- # The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
200
- #
201
- # The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
202
- attr_accessor :product
203
- # Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
204
- #
205
- # `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.
206
- #
207
- # `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.
208
- attr_accessor :product_data
209
- # The quantity of the line item.
210
- attr_accessor :quantity
211
- # The tax rates applied to this line item.
212
- attr_accessor :tax_rates
213
-
214
- def initialize(
215
- description: nil,
216
- discounts: nil,
217
- price: nil,
218
- price_data: nil,
219
- product: nil,
220
- product_data: nil,
221
- quantity: nil,
222
- tax_rates: nil
223
- )
224
- @description = description
225
- @discounts = discounts
226
- @price = price
227
- @price_data = price_data
228
- @product = product
229
- @product_data = product_data
230
- @quantity = quantity
231
- @tax_rates = tax_rates
232
- end
233
-
234
- def self.field_encodings
235
- @field_encodings = {
236
- price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
237
- }
238
- end
239
- end
240
-
241
- class Payment < ::Stripe::RequestParams
242
- class Settings < ::Stripe::RequestParams
243
- class PaymentMethodOptions < ::Stripe::RequestParams
244
- class AcssDebit < ::Stripe::RequestParams
245
- class MandateOptions < ::Stripe::RequestParams
246
- # A URL for custom mandate text to render during confirmation step.
247
- # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
248
- # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
249
- attr_accessor :custom_mandate_url
250
- # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
251
- attr_accessor :interval_description
252
- # Payment schedule for the mandate.
253
- attr_accessor :payment_schedule
254
- # Transaction type of the mandate.
255
- attr_accessor :transaction_type
256
-
257
- def initialize(
258
- custom_mandate_url: nil,
259
- interval_description: nil,
260
- payment_schedule: nil,
261
- transaction_type: nil
262
- )
263
- @custom_mandate_url = custom_mandate_url
264
- @interval_description = interval_description
265
- @payment_schedule = payment_schedule
266
- @transaction_type = transaction_type
267
- end
268
- end
269
- # Additional fields for Mandate creation
270
- attr_accessor :mandate_options
271
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
272
- #
273
- # 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.
274
- #
275
- # 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.
276
- #
277
- # 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).
278
- #
279
- # 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`.
280
- attr_accessor :setup_future_usage
281
- # 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.
282
- attr_accessor :target_date
283
- # Bank account verification method. The default value is `automatic`.
284
- attr_accessor :verification_method
285
-
286
- def initialize(
287
- mandate_options: nil,
288
- setup_future_usage: nil,
289
- target_date: nil,
290
- verification_method: nil
291
- )
292
- @mandate_options = mandate_options
293
- @setup_future_usage = setup_future_usage
294
- @target_date = target_date
295
- @verification_method = verification_method
296
- end
297
- end
298
-
299
- class AfterpayClearpay < ::Stripe::RequestParams
300
- # Controls when the funds are captured from the customer's account.
301
- #
302
- # 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.
303
- #
304
- # 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.
305
- attr_accessor :capture_method
306
- # 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.
307
- attr_accessor :reference
308
- # Indicates that you intend to make future payments with the payment method.
309
- #
310
- # 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.
311
- #
312
- # 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).
313
- #
314
- # 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`.
315
- attr_accessor :setup_future_usage
316
-
317
- def initialize(capture_method: nil, reference: nil, setup_future_usage: nil)
318
- @capture_method = capture_method
319
- @reference = reference
320
- @setup_future_usage = setup_future_usage
321
- end
322
- end
323
-
324
- class Alipay < ::Stripe::RequestParams
325
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
326
- #
327
- # 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.
328
- #
329
- # 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.
330
- #
331
- # 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).
332
- #
333
- # 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`.
334
- attr_accessor :setup_future_usage
335
-
336
- def initialize(setup_future_usage: nil)
337
- @setup_future_usage = setup_future_usage
338
- end
339
- end
340
-
341
- class Bancontact < ::Stripe::RequestParams
342
- # Preferred language of the Bancontact authorization page that the customer is redirected to.
343
- attr_accessor :preferred_language
344
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
345
- #
346
- # 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.
347
- #
348
- # 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.
349
- #
350
- # 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).
351
- #
352
- # 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`.
353
- attr_accessor :setup_future_usage
354
-
355
- def initialize(preferred_language: nil, setup_future_usage: nil)
356
- @preferred_language = preferred_language
357
- @setup_future_usage = setup_future_usage
358
- end
359
- end
360
-
361
- class Card < ::Stripe::RequestParams
362
- # Controls when the funds will be captured from the customer's account.
363
- attr_accessor :capture_method
364
- # Indicates that you intend to make future payments with the payment method.
365
- #
366
- # 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.
367
- #
368
- # 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).
369
- #
370
- # 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`.
371
- attr_accessor :setup_future_usage
372
-
373
- def initialize(capture_method: nil, setup_future_usage: nil)
374
- @capture_method = capture_method
375
- @setup_future_usage = setup_future_usage
376
- end
377
- end
378
-
379
- class CustomerBalance < ::Stripe::RequestParams
380
- class BankTransfer < ::Stripe::RequestParams
381
- class EuBankTransfer < ::Stripe::RequestParams
382
- # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
383
- attr_accessor :country
384
-
385
- def initialize(country: nil)
386
- @country = country
387
- end
388
- end
389
- # Configuration for the eu_bank_transfer funding type.
390
- attr_accessor :eu_bank_transfer
391
- # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
392
- #
393
- # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
394
- attr_accessor :requested_address_types
395
- # 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`.
396
- attr_accessor :type
397
-
398
- def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
399
- @eu_bank_transfer = eu_bank_transfer
400
- @requested_address_types = requested_address_types
401
- @type = type
402
- end
403
- end
404
- # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
405
- attr_accessor :bank_transfer
406
- # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
407
- attr_accessor :funding_type
408
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
409
- #
410
- # 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.
411
- #
412
- # 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.
413
- #
414
- # 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).
415
- #
416
- # 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`.
417
- attr_accessor :setup_future_usage
418
-
419
- def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
420
- @bank_transfer = bank_transfer
421
- @funding_type = funding_type
422
- @setup_future_usage = setup_future_usage
423
- end
424
- end
425
-
426
- class Ideal < ::Stripe::RequestParams
427
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
428
- #
429
- # 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.
430
- #
431
- # 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.
432
- #
433
- # 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).
434
- #
435
- # 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`.
436
- attr_accessor :setup_future_usage
437
-
438
- def initialize(setup_future_usage: nil)
439
- @setup_future_usage = setup_future_usage
440
- end
441
- end
442
-
443
- class Klarna < ::Stripe::RequestParams
444
- class OnDemand < ::Stripe::RequestParams
445
- # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
446
- attr_accessor :average_amount
447
- # 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.
448
- attr_accessor :maximum_amount
449
- # 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.
450
- attr_accessor :minimum_amount
451
- # Interval at which the customer is making purchases
452
- attr_accessor :purchase_interval
453
- # The number of `purchase_interval` between charges
454
- attr_accessor :purchase_interval_count
455
-
456
- def initialize(
457
- average_amount: nil,
458
- maximum_amount: nil,
459
- minimum_amount: nil,
460
- purchase_interval: nil,
461
- purchase_interval_count: nil
462
- )
463
- @average_amount = average_amount
464
- @maximum_amount = maximum_amount
465
- @minimum_amount = minimum_amount
466
- @purchase_interval = purchase_interval
467
- @purchase_interval_count = purchase_interval_count
468
- end
469
- end
470
-
471
- class Subscription < ::Stripe::RequestParams
472
- class NextBilling < ::Stripe::RequestParams
473
- # The amount of the next charge for the subscription.
474
- attr_accessor :amount
475
- # The date of the next charge for the subscription in YYYY-MM-DD format.
476
- attr_accessor :date
477
-
478
- def initialize(amount: nil, date: nil)
479
- @amount = amount
480
- @date = date
481
- end
482
- end
483
- # Unit of time between subscription charges.
484
- attr_accessor :interval
485
- # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
486
- attr_accessor :interval_count
487
- # Name for subscription.
488
- attr_accessor :name
489
- # Describes the upcoming charge for this subscription.
490
- attr_accessor :next_billing
491
- # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
492
- attr_accessor :reference
493
-
494
- def initialize(
495
- interval: nil,
496
- interval_count: nil,
497
- name: nil,
498
- next_billing: nil,
499
- reference: nil
500
- )
501
- @interval = interval
502
- @interval_count = interval_count
503
- @name = name
504
- @next_billing = next_billing
505
- @reference = reference
506
- end
507
- end
508
-
509
- class SupplementaryPurchaseData < ::Stripe::RequestParams
510
- class BusReservationDetail < ::Stripe::RequestParams
511
- class Arrival < ::Stripe::RequestParams
512
- class Address < ::Stripe::RequestParams
513
- # The city or town.
514
- attr_accessor :city
515
- # The country in ISO 3166-1 alpha-2 format.
516
- attr_accessor :country
517
- # The postal code formatted according to country.
518
- attr_accessor :postal_code
519
- # The state, county, province, or region formatted according to country.
520
- attr_accessor :region
521
- # Line 1 of the street address.
522
- attr_accessor :street_address
523
- # Line 2 of the street address.
524
- attr_accessor :street_address2
525
-
526
- def initialize(
527
- city: nil,
528
- country: nil,
529
- postal_code: nil,
530
- region: nil,
531
- street_address: nil,
532
- street_address2: nil
533
- )
534
- @city = city
535
- @country = country
536
- @postal_code = postal_code
537
- @region = region
538
- @street_address = street_address
539
- @street_address2 = street_address2
540
- end
541
- end
542
- # Address of the arrival location.
543
- attr_accessor :address
544
- # Identifier name or reference for the arrival location.
545
- attr_accessor :arrival_location
546
-
547
- def initialize(address: nil, arrival_location: nil)
548
- @address = address
549
- @arrival_location = arrival_location
550
- end
551
- end
552
-
553
- class Departure < ::Stripe::RequestParams
554
- class Address < ::Stripe::RequestParams
555
- # The city or town.
556
- attr_accessor :city
557
- # The country in ISO 3166-1 alpha-2 format.
558
- attr_accessor :country
559
- # The postal code formatted according to country.
560
- attr_accessor :postal_code
561
- # The state, county, province, or region formatted according to country.
562
- attr_accessor :region
563
- # Line 1 of the street address.
564
- attr_accessor :street_address
565
- # Line 2 of the street address.
566
- attr_accessor :street_address2
567
-
568
- def initialize(
569
- city: nil,
570
- country: nil,
571
- postal_code: nil,
572
- region: nil,
573
- street_address: nil,
574
- street_address2: nil
575
- )
576
- @city = city
577
- @country = country
578
- @postal_code = postal_code
579
- @region = region
580
- @street_address = street_address
581
- @street_address2 = street_address2
582
- end
583
- end
584
- # Address of the departure location.
585
- attr_accessor :address
586
- # Timestamp of departure.
587
- attr_accessor :departs_at
588
- # Identifier name or reference for the origin location.
589
- attr_accessor :departure_location
590
-
591
- def initialize(address: nil, departs_at: nil, departure_location: nil)
592
- @address = address
593
- @departs_at = departs_at
594
- @departure_location = departure_location
595
- end
596
- end
597
-
598
- class Insurance < ::Stripe::RequestParams
599
- # Insurance currency.
600
- attr_accessor :currency
601
- # Name of the company providing the insurance.
602
- attr_accessor :insurance_company_name
603
- # Type of insurance.
604
- attr_accessor :insurance_type
605
- # Price of insurance in cents.
606
- attr_accessor :price
607
-
608
- def initialize(
609
- currency: nil,
610
- insurance_company_name: nil,
611
- insurance_type: nil,
612
- price: nil
613
- )
614
- @currency = currency
615
- @insurance_company_name = insurance_company_name
616
- @insurance_type = insurance_type
617
- @price = price
618
- end
619
- end
620
-
621
- class Passenger < ::Stripe::RequestParams
622
- # The family name of the person.
623
- attr_accessor :family_name
624
- # The given name of the person.
625
- attr_accessor :given_name
626
-
627
- def initialize(family_name: nil, given_name: nil)
628
- @family_name = family_name
629
- @given_name = given_name
630
- end
631
- end
632
- # Name of associated or partner company for the service.
633
- attr_accessor :affiliate_name
634
- # Arrival details.
635
- attr_accessor :arrival
636
- # Name of transportation company.
637
- attr_accessor :carrier_name
638
- # Currency.
639
- attr_accessor :currency
640
- # Departure details.
641
- attr_accessor :departure
642
- # List of insurances for this reservation.
643
- attr_accessor :insurances
644
- # List of passengers that this reservation applies to.
645
- attr_accessor :passengers
646
- # Price in cents.
647
- attr_accessor :price
648
- # Ticket class.
649
- attr_accessor :ticket_class
650
-
651
- def initialize(
652
- affiliate_name: nil,
653
- arrival: nil,
654
- carrier_name: nil,
655
- currency: nil,
656
- departure: nil,
657
- insurances: nil,
658
- passengers: nil,
659
- price: nil,
660
- ticket_class: nil
661
- )
662
- @affiliate_name = affiliate_name
663
- @arrival = arrival
664
- @carrier_name = carrier_name
665
- @currency = currency
666
- @departure = departure
667
- @insurances = insurances
668
- @passengers = passengers
669
- @price = price
670
- @ticket_class = ticket_class
671
- end
672
- end
673
-
674
- class EventReservationDetail < ::Stripe::RequestParams
675
- class Address < ::Stripe::RequestParams
676
- # The city or town.
677
- attr_accessor :city
678
- # The country in ISO 3166-1 alpha-2 format.
679
- attr_accessor :country
680
- # The postal code formatted according to country.
681
- attr_accessor :postal_code
682
- # The state, county, province, or region formatted according to country.
683
- attr_accessor :region
684
- # Line 1 of the street address.
685
- attr_accessor :street_address
686
- # Line 2 of the street address.
687
- attr_accessor :street_address2
688
-
689
- def initialize(
690
- city: nil,
691
- country: nil,
692
- postal_code: nil,
693
- region: nil,
694
- street_address: nil,
695
- street_address2: nil
696
- )
697
- @city = city
698
- @country = country
699
- @postal_code = postal_code
700
- @region = region
701
- @street_address = street_address
702
- @street_address2 = street_address2
703
- end
704
- end
705
-
706
- class Insurance < ::Stripe::RequestParams
707
- # Insurance currency.
708
- attr_accessor :currency
709
- # Name of the company providing the insurance.
710
- attr_accessor :insurance_company_name
711
- # Type of insurance.
712
- attr_accessor :insurance_type
713
- # Price of insurance in cents.
714
- attr_accessor :price
715
-
716
- def initialize(
717
- currency: nil,
718
- insurance_company_name: nil,
719
- insurance_type: nil,
720
- price: nil
721
- )
722
- @currency = currency
723
- @insurance_company_name = insurance_company_name
724
- @insurance_type = insurance_type
725
- @price = price
726
- end
727
- end
728
- # Indicates if the tickets are digitally checked when entering the venue.
729
- attr_accessor :access_controlled_venue
730
- # Address of the event.
731
- attr_accessor :address
732
- # Name of associated or partner company for the service.
733
- attr_accessor :affiliate_name
734
- # End timestamp of the event.
735
- attr_accessor :ends_at
736
- # Company selling the ticket.
737
- attr_accessor :event_company_name
738
- # Name of the event.
739
- attr_accessor :event_name
740
- # Type of the event.
741
- attr_accessor :event_type
742
- # List of insurances for this event.
743
- attr_accessor :insurances
744
- # Start timestamp of the event.
745
- attr_accessor :starts_at
746
- # Name of the venue where the event takes place.
747
- attr_accessor :venue_name
748
-
749
- def initialize(
750
- access_controlled_venue: nil,
751
- address: nil,
752
- affiliate_name: nil,
753
- ends_at: nil,
754
- event_company_name: nil,
755
- event_name: nil,
756
- event_type: nil,
757
- insurances: nil,
758
- starts_at: nil,
759
- venue_name: nil
760
- )
761
- @access_controlled_venue = access_controlled_venue
762
- @address = address
763
- @affiliate_name = affiliate_name
764
- @ends_at = ends_at
765
- @event_company_name = event_company_name
766
- @event_name = event_name
767
- @event_type = event_type
768
- @insurances = insurances
769
- @starts_at = starts_at
770
- @venue_name = venue_name
771
- end
772
- end
773
-
774
- class FerryReservationDetail < ::Stripe::RequestParams
775
- class Arrival < ::Stripe::RequestParams
776
- class Address < ::Stripe::RequestParams
777
- # The city or town.
778
- attr_accessor :city
779
- # The country in ISO 3166-1 alpha-2 format.
780
- attr_accessor :country
781
- # The postal code formatted according to country.
782
- attr_accessor :postal_code
783
- # The state, county, province, or region formatted according to country.
784
- attr_accessor :region
785
- # Line 1 of the street address.
786
- attr_accessor :street_address
787
- # Line 2 of the street address.
788
- attr_accessor :street_address2
789
-
790
- def initialize(
791
- city: nil,
792
- country: nil,
793
- postal_code: nil,
794
- region: nil,
795
- street_address: nil,
796
- street_address2: nil
797
- )
798
- @city = city
799
- @country = country
800
- @postal_code = postal_code
801
- @region = region
802
- @street_address = street_address
803
- @street_address2 = street_address2
804
- end
805
- end
806
- # Address of the arrival location.
807
- attr_accessor :address
808
- # Identifier name or reference for the arrival location.
809
- attr_accessor :arrival_location
810
-
811
- def initialize(address: nil, arrival_location: nil)
812
- @address = address
813
- @arrival_location = arrival_location
814
- end
815
- end
816
-
817
- class Departure < ::Stripe::RequestParams
818
- class Address < ::Stripe::RequestParams
819
- # The city or town.
820
- attr_accessor :city
821
- # The country in ISO 3166-1 alpha-2 format.
822
- attr_accessor :country
823
- # The postal code formatted according to country.
824
- attr_accessor :postal_code
825
- # The state, county, province, or region formatted according to country.
826
- attr_accessor :region
827
- # Line 1 of the street address.
828
- attr_accessor :street_address
829
- # Line 2 of the street address.
830
- attr_accessor :street_address2
831
-
832
- def initialize(
833
- city: nil,
834
- country: nil,
835
- postal_code: nil,
836
- region: nil,
837
- street_address: nil,
838
- street_address2: nil
839
- )
840
- @city = city
841
- @country = country
842
- @postal_code = postal_code
843
- @region = region
844
- @street_address = street_address
845
- @street_address2 = street_address2
846
- end
847
- end
848
- # Address of the departure location.
849
- attr_accessor :address
850
- # Timestamp of departure.
851
- attr_accessor :departs_at
852
- # Identifier name or reference for the origin location.
853
- attr_accessor :departure_location
854
-
855
- def initialize(address: nil, departs_at: nil, departure_location: nil)
856
- @address = address
857
- @departs_at = departs_at
858
- @departure_location = departure_location
859
- end
860
- end
861
-
862
- class Insurance < ::Stripe::RequestParams
863
- # Insurance currency.
864
- attr_accessor :currency
865
- # Name of the company providing the insurance.
866
- attr_accessor :insurance_company_name
867
- # Type of insurance.
868
- attr_accessor :insurance_type
869
- # Price of insurance in cents.
870
- attr_accessor :price
871
-
872
- def initialize(
873
- currency: nil,
874
- insurance_company_name: nil,
875
- insurance_type: nil,
876
- price: nil
877
- )
878
- @currency = currency
879
- @insurance_company_name = insurance_company_name
880
- @insurance_type = insurance_type
881
- @price = price
882
- end
883
- end
884
-
885
- class Passenger < ::Stripe::RequestParams
886
- # The family name of the person.
887
- attr_accessor :family_name
888
- # The given name of the person.
889
- attr_accessor :given_name
890
-
891
- def initialize(family_name: nil, given_name: nil)
892
- @family_name = family_name
893
- @given_name = given_name
894
- end
895
- end
896
- # Name of associated or partner company for the service.
897
- attr_accessor :affiliate_name
898
- # Arrival details.
899
- attr_accessor :arrival
900
- # Name of transportation company.
901
- attr_accessor :carrier_name
902
- # Currency.
903
- attr_accessor :currency
904
- # Departure details.
905
- attr_accessor :departure
906
- # List of insurances for this reservation.
907
- attr_accessor :insurances
908
- # List of passengers that this reservation applies to.
909
- attr_accessor :passengers
910
- # Price in cents.
911
- attr_accessor :price
912
- # Ticket class.
913
- attr_accessor :ticket_class
914
-
915
- def initialize(
916
- affiliate_name: nil,
917
- arrival: nil,
918
- carrier_name: nil,
919
- currency: nil,
920
- departure: nil,
921
- insurances: nil,
922
- passengers: nil,
923
- price: nil,
924
- ticket_class: nil
925
- )
926
- @affiliate_name = affiliate_name
927
- @arrival = arrival
928
- @carrier_name = carrier_name
929
- @currency = currency
930
- @departure = departure
931
- @insurances = insurances
932
- @passengers = passengers
933
- @price = price
934
- @ticket_class = ticket_class
935
- end
936
- end
937
-
938
- class Insurance < ::Stripe::RequestParams
939
- # Insurance currency.
940
- attr_accessor :currency
941
- # Name of the company providing the insurance.
942
- attr_accessor :insurance_company_name
943
- # Type of insurance
944
- attr_accessor :insurance_type
945
- # Price of insurance in cents.
946
- attr_accessor :price
947
-
948
- def initialize(
949
- currency: nil,
950
- insurance_company_name: nil,
951
- insurance_type: nil,
952
- price: nil
953
- )
954
- @currency = currency
955
- @insurance_company_name = insurance_company_name
956
- @insurance_type = insurance_type
957
- @price = price
958
- end
959
- end
960
-
961
- class MarketplaceSeller < ::Stripe::RequestParams
962
- class MarketplaceSellerAddress < ::Stripe::RequestParams
963
- # The city or town.
964
- attr_accessor :city
965
- # The country in ISO 3166-1 alpha-2 format.
966
- attr_accessor :country
967
- # The postal code formatted according to country.
968
- attr_accessor :postal_code
969
- # The state, county, province, or region formatted according to country.
970
- attr_accessor :region
971
- # Line 1 of the street address.
972
- attr_accessor :street_address
973
- # Line 2 of the street address.
974
- attr_accessor :street_address2
975
-
976
- def initialize(
977
- city: nil,
978
- country: nil,
979
- postal_code: nil,
980
- region: nil,
981
- street_address: nil,
982
- street_address2: nil
983
- )
984
- @city = city
985
- @country = country
986
- @postal_code = postal_code
987
- @region = region
988
- @street_address = street_address
989
- @street_address2 = street_address2
990
- end
991
- end
992
- # The references to line items for purchases with multiple associated sub-sellers.
993
- attr_accessor :line_item_references
994
- # The address of the selling or delivering merchant.
995
- attr_accessor :marketplace_seller_address
996
- # The name of the marketplace seller.
997
- attr_accessor :marketplace_seller_name
998
- # The unique identifier for the marketplace seller.
999
- attr_accessor :marketplace_seller_reference
1000
- # The number of transactions the sub-seller completed in the last 12 months.
1001
- attr_accessor :number_of_transactions
1002
- # The category of the product.
1003
- attr_accessor :product_category
1004
- # The date when the seller's account with the marketplace was last logged in.
1005
- attr_accessor :seller_last_login_at
1006
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
1007
- attr_accessor :seller_rating
1008
- # The date when the seller's account with the marketplace was created.
1009
- attr_accessor :seller_registered_at
1010
- # The date when the seller's account with the marketplace was last updated.
1011
- attr_accessor :seller_updated_at
1012
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
1013
- attr_accessor :shipping_references
1014
- # 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.
1015
- attr_accessor :volume_of_transactions
1016
-
1017
- def initialize(
1018
- line_item_references: nil,
1019
- marketplace_seller_address: nil,
1020
- marketplace_seller_name: nil,
1021
- marketplace_seller_reference: nil,
1022
- number_of_transactions: nil,
1023
- product_category: nil,
1024
- seller_last_login_at: nil,
1025
- seller_rating: nil,
1026
- seller_registered_at: nil,
1027
- seller_updated_at: nil,
1028
- shipping_references: nil,
1029
- volume_of_transactions: nil
1030
- )
1031
- @line_item_references = line_item_references
1032
- @marketplace_seller_address = marketplace_seller_address
1033
- @marketplace_seller_name = marketplace_seller_name
1034
- @marketplace_seller_reference = marketplace_seller_reference
1035
- @number_of_transactions = number_of_transactions
1036
- @product_category = product_category
1037
- @seller_last_login_at = seller_last_login_at
1038
- @seller_rating = seller_rating
1039
- @seller_registered_at = seller_registered_at
1040
- @seller_updated_at = seller_updated_at
1041
- @shipping_references = shipping_references
1042
- @volume_of_transactions = volume_of_transactions
1043
- end
1044
- end
1045
-
1046
- class RoundTripReservationDetail < ::Stripe::RequestParams
1047
- class Arrival < ::Stripe::RequestParams
1048
- class Address < ::Stripe::RequestParams
1049
- # The city or town.
1050
- attr_accessor :city
1051
- # The country in ISO 3166-1 alpha-2 format.
1052
- attr_accessor :country
1053
- # The postal code formatted according to country.
1054
- attr_accessor :postal_code
1055
- # The state, county, province, or region formatted according to country.
1056
- attr_accessor :region
1057
- # Line 1 of the street address.
1058
- attr_accessor :street_address
1059
- # Line 2 of the street address.
1060
- attr_accessor :street_address2
1061
-
1062
- def initialize(
1063
- city: nil,
1064
- country: nil,
1065
- postal_code: nil,
1066
- region: nil,
1067
- street_address: nil,
1068
- street_address2: nil
1069
- )
1070
- @city = city
1071
- @country = country
1072
- @postal_code = postal_code
1073
- @region = region
1074
- @street_address = street_address
1075
- @street_address2 = street_address2
1076
- end
1077
- end
1078
- # Address of the arrival location.
1079
- attr_accessor :address
1080
- # Identifier name or reference for the arrival location.
1081
- attr_accessor :arrival_location
1082
-
1083
- def initialize(address: nil, arrival_location: nil)
1084
- @address = address
1085
- @arrival_location = arrival_location
1086
- end
1087
- end
1088
-
1089
- class Departure < ::Stripe::RequestParams
1090
- class Address < ::Stripe::RequestParams
1091
- # The city or town.
1092
- attr_accessor :city
1093
- # The country in ISO 3166-1 alpha-2 format.
1094
- attr_accessor :country
1095
- # The postal code formatted according to country.
1096
- attr_accessor :postal_code
1097
- # The state, county, province, or region formatted according to country.
1098
- attr_accessor :region
1099
- # Line 1 of the street address.
1100
- attr_accessor :street_address
1101
- # Line 2 of the street address.
1102
- attr_accessor :street_address2
1103
-
1104
- def initialize(
1105
- city: nil,
1106
- country: nil,
1107
- postal_code: nil,
1108
- region: nil,
1109
- street_address: nil,
1110
- street_address2: nil
1111
- )
1112
- @city = city
1113
- @country = country
1114
- @postal_code = postal_code
1115
- @region = region
1116
- @street_address = street_address
1117
- @street_address2 = street_address2
1118
- end
1119
- end
1120
- # Address of the departure location.
1121
- attr_accessor :address
1122
- # Timestamp of departure.
1123
- attr_accessor :departs_at
1124
- # Identifier name or reference for the origin location.
1125
- attr_accessor :departure_location
1126
-
1127
- def initialize(address: nil, departs_at: nil, departure_location: nil)
1128
- @address = address
1129
- @departs_at = departs_at
1130
- @departure_location = departure_location
1131
- end
1132
- end
1133
-
1134
- class Insurance < ::Stripe::RequestParams
1135
- # Insurance currency.
1136
- attr_accessor :currency
1137
- # Name of the company providing the insurance.
1138
- attr_accessor :insurance_company_name
1139
- # Type of insurance.
1140
- attr_accessor :insurance_type
1141
- # Price of insurance in cents.
1142
- attr_accessor :price
1143
-
1144
- def initialize(
1145
- currency: nil,
1146
- insurance_company_name: nil,
1147
- insurance_type: nil,
1148
- price: nil
1149
- )
1150
- @currency = currency
1151
- @insurance_company_name = insurance_company_name
1152
- @insurance_type = insurance_type
1153
- @price = price
1154
- end
1155
- end
1156
-
1157
- class Passenger < ::Stripe::RequestParams
1158
- # The family name of the person.
1159
- attr_accessor :family_name
1160
- # The given name of the person.
1161
- attr_accessor :given_name
1162
-
1163
- def initialize(family_name: nil, given_name: nil)
1164
- @family_name = family_name
1165
- @given_name = given_name
1166
- end
1167
- end
1168
- # Name of associated or partner company for the service.
1169
- attr_accessor :affiliate_name
1170
- # Arrival details.
1171
- attr_accessor :arrival
1172
- # Name of transportation company.
1173
- attr_accessor :carrier_name
1174
- # Currency.
1175
- attr_accessor :currency
1176
- # Departure details.
1177
- attr_accessor :departure
1178
- # List of insurances for this reservation.
1179
- attr_accessor :insurances
1180
- # List of passengers that this reservation applies to.
1181
- attr_accessor :passengers
1182
- # Price in cents.
1183
- attr_accessor :price
1184
- # Ticket class.
1185
- attr_accessor :ticket_class
1186
-
1187
- def initialize(
1188
- affiliate_name: nil,
1189
- arrival: nil,
1190
- carrier_name: nil,
1191
- currency: nil,
1192
- departure: nil,
1193
- insurances: nil,
1194
- passengers: nil,
1195
- price: nil,
1196
- ticket_class: nil
1197
- )
1198
- @affiliate_name = affiliate_name
1199
- @arrival = arrival
1200
- @carrier_name = carrier_name
1201
- @currency = currency
1202
- @departure = departure
1203
- @insurances = insurances
1204
- @passengers = passengers
1205
- @price = price
1206
- @ticket_class = ticket_class
1207
- end
1208
- end
1209
-
1210
- class TrainReservationDetail < ::Stripe::RequestParams
1211
- class Arrival < ::Stripe::RequestParams
1212
- class Address < ::Stripe::RequestParams
1213
- # The city or town.
1214
- attr_accessor :city
1215
- # The country in ISO 3166-1 alpha-2 format.
1216
- attr_accessor :country
1217
- # The postal code formatted according to country.
1218
- attr_accessor :postal_code
1219
- # The state, county, province, or region formatted according to country.
1220
- attr_accessor :region
1221
- # Line 1 of the street address.
1222
- attr_accessor :street_address
1223
- # Line 2 of the street address.
1224
- attr_accessor :street_address2
1225
-
1226
- def initialize(
1227
- city: nil,
1228
- country: nil,
1229
- postal_code: nil,
1230
- region: nil,
1231
- street_address: nil,
1232
- street_address2: nil
1233
- )
1234
- @city = city
1235
- @country = country
1236
- @postal_code = postal_code
1237
- @region = region
1238
- @street_address = street_address
1239
- @street_address2 = street_address2
1240
- end
1241
- end
1242
- # Address of the arrival location.
1243
- attr_accessor :address
1244
- # Identifier name or reference for the arrival location.
1245
- attr_accessor :arrival_location
1246
-
1247
- def initialize(address: nil, arrival_location: nil)
1248
- @address = address
1249
- @arrival_location = arrival_location
1250
- end
1251
- end
1252
-
1253
- class Departure < ::Stripe::RequestParams
1254
- class Address < ::Stripe::RequestParams
1255
- # The city or town.
1256
- attr_accessor :city
1257
- # The country in ISO 3166-1 alpha-2 format.
1258
- attr_accessor :country
1259
- # The postal code formatted according to country.
1260
- attr_accessor :postal_code
1261
- # The state, county, province, or region formatted according to country.
1262
- attr_accessor :region
1263
- # Line 1 of the street address.
1264
- attr_accessor :street_address
1265
- # Line 2 of the street address.
1266
- attr_accessor :street_address2
1267
-
1268
- def initialize(
1269
- city: nil,
1270
- country: nil,
1271
- postal_code: nil,
1272
- region: nil,
1273
- street_address: nil,
1274
- street_address2: nil
1275
- )
1276
- @city = city
1277
- @country = country
1278
- @postal_code = postal_code
1279
- @region = region
1280
- @street_address = street_address
1281
- @street_address2 = street_address2
1282
- end
1283
- end
1284
- # Address of the departure location.
1285
- attr_accessor :address
1286
- # Timestamp of departure.
1287
- attr_accessor :departs_at
1288
- # Identifier name or reference for the origin location.
1289
- attr_accessor :departure_location
1290
-
1291
- def initialize(address: nil, departs_at: nil, departure_location: nil)
1292
- @address = address
1293
- @departs_at = departs_at
1294
- @departure_location = departure_location
1295
- end
1296
- end
1297
-
1298
- class Insurance < ::Stripe::RequestParams
1299
- # Insurance currency.
1300
- attr_accessor :currency
1301
- # Name of the company providing the insurance.
1302
- attr_accessor :insurance_company_name
1303
- # Type of insurance.
1304
- attr_accessor :insurance_type
1305
- # Price of insurance in cents.
1306
- attr_accessor :price
1307
-
1308
- def initialize(
1309
- currency: nil,
1310
- insurance_company_name: nil,
1311
- insurance_type: nil,
1312
- price: nil
1313
- )
1314
- @currency = currency
1315
- @insurance_company_name = insurance_company_name
1316
- @insurance_type = insurance_type
1317
- @price = price
1318
- end
1319
- end
1320
-
1321
- class Passenger < ::Stripe::RequestParams
1322
- # The family name of the person.
1323
- attr_accessor :family_name
1324
- # The given name of the person.
1325
- attr_accessor :given_name
1326
-
1327
- def initialize(family_name: nil, given_name: nil)
1328
- @family_name = family_name
1329
- @given_name = given_name
1330
- end
1331
- end
1332
- # Name of associated or partner company for the service.
1333
- attr_accessor :affiliate_name
1334
- # Arrival details.
1335
- attr_accessor :arrival
1336
- # Name of transportation company.
1337
- attr_accessor :carrier_name
1338
- # Currency.
1339
- attr_accessor :currency
1340
- # Departure details.
1341
- attr_accessor :departure
1342
- # List of insurances for this reservation.
1343
- attr_accessor :insurances
1344
- # List of passengers that this reservation applies to.
1345
- attr_accessor :passengers
1346
- # Price in cents.
1347
- attr_accessor :price
1348
- # Ticket class.
1349
- attr_accessor :ticket_class
1350
-
1351
- def initialize(
1352
- affiliate_name: nil,
1353
- arrival: nil,
1354
- carrier_name: nil,
1355
- currency: nil,
1356
- departure: nil,
1357
- insurances: nil,
1358
- passengers: nil,
1359
- price: nil,
1360
- ticket_class: nil
1361
- )
1362
- @affiliate_name = affiliate_name
1363
- @arrival = arrival
1364
- @carrier_name = carrier_name
1365
- @currency = currency
1366
- @departure = departure
1367
- @insurances = insurances
1368
- @passengers = passengers
1369
- @price = price
1370
- @ticket_class = ticket_class
1371
- end
1372
- end
1373
-
1374
- class Voucher < ::Stripe::RequestParams
1375
- # Name of associated or partner company for this voucher.
1376
- attr_accessor :affiliate_name
1377
- # The voucher validity end time.
1378
- attr_accessor :ends_at
1379
- # The voucher validity start time.
1380
- attr_accessor :starts_at
1381
- # The issuer or provider of this voucher.
1382
- attr_accessor :voucher_company
1383
- # The name or reference to identify the voucher.
1384
- attr_accessor :voucher_name
1385
- # The type of this voucher.
1386
- attr_accessor :voucher_type
1387
-
1388
- def initialize(
1389
- affiliate_name: nil,
1390
- ends_at: nil,
1391
- starts_at: nil,
1392
- voucher_company: nil,
1393
- voucher_name: nil,
1394
- voucher_type: nil
1395
- )
1396
- @affiliate_name = affiliate_name
1397
- @ends_at = ends_at
1398
- @starts_at = starts_at
1399
- @voucher_company = voucher_company
1400
- @voucher_name = voucher_name
1401
- @voucher_type = voucher_type
1402
- end
1403
- end
1404
- # Supplementary bus reservation details.
1405
- attr_accessor :bus_reservation_details
1406
- # Supplementary event reservation details.
1407
- attr_accessor :event_reservation_details
1408
- # Supplementary ferry reservation details.
1409
- attr_accessor :ferry_reservation_details
1410
- # Supplementary insurance details.
1411
- attr_accessor :insurances
1412
- # Supplementary marketplace seller details.
1413
- attr_accessor :marketplace_sellers
1414
- # Supplementary round trip reservation details.
1415
- attr_accessor :round_trip_reservation_details
1416
- # Supplementary train reservation details.
1417
- attr_accessor :train_reservation_details
1418
- # Voucher details, such as a gift card or discount code.
1419
- attr_accessor :vouchers
1420
-
1421
- def initialize(
1422
- bus_reservation_details: nil,
1423
- event_reservation_details: nil,
1424
- ferry_reservation_details: nil,
1425
- insurances: nil,
1426
- marketplace_sellers: nil,
1427
- round_trip_reservation_details: nil,
1428
- train_reservation_details: nil,
1429
- vouchers: nil
1430
- )
1431
- @bus_reservation_details = bus_reservation_details
1432
- @event_reservation_details = event_reservation_details
1433
- @ferry_reservation_details = ferry_reservation_details
1434
- @insurances = insurances
1435
- @marketplace_sellers = marketplace_sellers
1436
- @round_trip_reservation_details = round_trip_reservation_details
1437
- @train_reservation_details = train_reservation_details
1438
- @vouchers = vouchers
1439
- end
1440
- end
1441
- # Controls when the funds are captured from the customer's account.
1442
- #
1443
- # 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.
1444
- #
1445
- # 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.
1446
- attr_accessor :capture_method
1447
- # On-demand details if setting up or charging an on-demand payment.
1448
- attr_accessor :on_demand
1449
- # Preferred language of the Klarna authorization page that the customer is redirected to
1450
- attr_accessor :preferred_locale
1451
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1452
- #
1453
- # 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.
1454
- #
1455
- # 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.
1456
- #
1457
- # 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).
1458
- #
1459
- # 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`.
1460
- attr_accessor :setup_future_usage
1461
- # Subscription details if setting up or charging a subscription.
1462
- attr_accessor :subscriptions
1463
- # Supplementary Purchase Data for the corresponding Klarna payment
1464
- attr_accessor :supplementary_purchase_data
1465
-
1466
- def initialize(
1467
- capture_method: nil,
1468
- on_demand: nil,
1469
- preferred_locale: nil,
1470
- setup_future_usage: nil,
1471
- subscriptions: nil,
1472
- supplementary_purchase_data: nil
1473
- )
1474
- @capture_method = capture_method
1475
- @on_demand = on_demand
1476
- @preferred_locale = preferred_locale
1477
- @setup_future_usage = setup_future_usage
1478
- @subscriptions = subscriptions
1479
- @supplementary_purchase_data = supplementary_purchase_data
1480
- end
1481
- end
1482
-
1483
- class Link < ::Stripe::RequestParams
1484
- # Controls when the funds are captured from the customer's account.
1485
- #
1486
- # 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.
1487
- #
1488
- # 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.
1489
- attr_accessor :capture_method
1490
- # [Deprecated] This is a legacy parameter that no longer has any function.
1491
- attr_accessor :persistent_token
1492
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1493
- #
1494
- # 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.
1495
- #
1496
- # 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.
1497
- #
1498
- # 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).
1499
- #
1500
- # 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`.
1501
- attr_accessor :setup_future_usage
1502
-
1503
- def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil)
1504
- @capture_method = capture_method
1505
- @persistent_token = persistent_token
1506
- @setup_future_usage = setup_future_usage
1507
- end
1508
- end
1509
-
1510
- class Oxxo < ::Stripe::RequestParams
1511
- # 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.
1512
- attr_accessor :expires_after_days
1513
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1514
- #
1515
- # 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.
1516
- #
1517
- # 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.
1518
- #
1519
- # 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).
1520
- #
1521
- # 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`.
1522
- attr_accessor :setup_future_usage
1523
-
1524
- def initialize(expires_after_days: nil, setup_future_usage: nil)
1525
- @expires_after_days = expires_after_days
1526
- @setup_future_usage = setup_future_usage
1527
- end
1528
- end
1529
-
1530
- class P24 < ::Stripe::RequestParams
1531
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1532
- #
1533
- # 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.
1534
- #
1535
- # 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.
1536
- #
1537
- # 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).
1538
- #
1539
- # 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`.
1540
- attr_accessor :setup_future_usage
1541
- # Confirm that the payer has accepted the P24 terms and conditions.
1542
- attr_accessor :tos_shown_and_accepted
1543
-
1544
- def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
1545
- @setup_future_usage = setup_future_usage
1546
- @tos_shown_and_accepted = tos_shown_and_accepted
1547
- end
1548
- end
1549
-
1550
- class Paypal < ::Stripe::RequestParams
1551
- class LineItem < ::Stripe::RequestParams
1552
- class Tax < ::Stripe::RequestParams
1553
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
1554
- attr_accessor :amount
1555
- # The tax behavior for the line item.
1556
- attr_accessor :behavior
1557
-
1558
- def initialize(amount: nil, behavior: nil)
1559
- @amount = amount
1560
- @behavior = behavior
1561
- end
1562
- end
1563
- # Type of the line item.
1564
- attr_accessor :category
1565
- # Description of the line item.
1566
- attr_accessor :description
1567
- # Descriptive name of the line item.
1568
- attr_accessor :name
1569
- # Quantity of the line item. Must be a positive number.
1570
- attr_accessor :quantity
1571
- # Client facing stock keeping unit, article number or similar.
1572
- attr_accessor :sku
1573
- # The Stripe account ID of the connected account that sells the item.
1574
- attr_accessor :sold_by
1575
- # The tax information for the line item.
1576
- attr_accessor :tax
1577
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
1578
- attr_accessor :unit_amount
1579
-
1580
- def initialize(
1581
- category: nil,
1582
- description: nil,
1583
- name: nil,
1584
- quantity: nil,
1585
- sku: nil,
1586
- sold_by: nil,
1587
- tax: nil,
1588
- unit_amount: nil
1589
- )
1590
- @category = category
1591
- @description = description
1592
- @name = name
1593
- @quantity = quantity
1594
- @sku = sku
1595
- @sold_by = sold_by
1596
- @tax = tax
1597
- @unit_amount = unit_amount
1598
- end
1599
- end
1600
- # Controls when the funds will be captured from the customer's account.
1601
- attr_accessor :capture_method
1602
- # The line items purchased by the customer.
1603
- attr_accessor :line_items
1604
- # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1605
- attr_accessor :preferred_locale
1606
- # 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.
1607
- attr_accessor :reference
1608
- # 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.
1609
- attr_accessor :reference_id
1610
- # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1611
- attr_accessor :risk_correlation_id
1612
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1613
- #
1614
- # 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.
1615
- #
1616
- # 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.
1617
- #
1618
- # 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).
1619
- #
1620
- # 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`.
1621
- attr_accessor :setup_future_usage
1622
- # 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.
1623
- attr_accessor :subsellers
1624
-
1625
- def initialize(
1626
- capture_method: nil,
1627
- line_items: nil,
1628
- preferred_locale: nil,
1629
- reference: nil,
1630
- reference_id: nil,
1631
- risk_correlation_id: nil,
1632
- setup_future_usage: nil,
1633
- subsellers: nil
1634
- )
1635
- @capture_method = capture_method
1636
- @line_items = line_items
1637
- @preferred_locale = preferred_locale
1638
- @reference = reference
1639
- @reference_id = reference_id
1640
- @risk_correlation_id = risk_correlation_id
1641
- @setup_future_usage = setup_future_usage
1642
- @subsellers = subsellers
1643
- end
1644
- end
1645
-
1646
- class SepaDebit < ::Stripe::RequestParams
1647
- class MandateOptions < ::Stripe::RequestParams
1648
- # 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'.
1649
- attr_accessor :reference_prefix
1650
-
1651
- def initialize(reference_prefix: nil)
1652
- @reference_prefix = reference_prefix
1653
- end
1654
- end
1655
- # Additional fields for Mandate creation
1656
- attr_accessor :mandate_options
1657
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1658
- #
1659
- # 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.
1660
- #
1661
- # 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.
1662
- #
1663
- # 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).
1664
- #
1665
- # 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`.
1666
- attr_accessor :setup_future_usage
1667
- # 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.
1668
- attr_accessor :target_date
1669
-
1670
- def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1671
- @mandate_options = mandate_options
1672
- @setup_future_usage = setup_future_usage
1673
- @target_date = target_date
1674
- end
1675
- end
1676
-
1677
- class Sofort < ::Stripe::RequestParams
1678
- # Language shown to the payer on redirect.
1679
- attr_accessor :preferred_language
1680
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1681
- #
1682
- # 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.
1683
- #
1684
- # 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.
1685
- #
1686
- # 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).
1687
- #
1688
- # 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`.
1689
- attr_accessor :setup_future_usage
1690
-
1691
- def initialize(preferred_language: nil, setup_future_usage: nil)
1692
- @preferred_language = preferred_language
1693
- @setup_future_usage = setup_future_usage
1694
- end
1695
- end
1696
-
1697
- class WechatPay < ::Stripe::RequestParams
1698
- # The app ID registered with WeChat Pay. Only required when client is ios or android.
1699
- attr_accessor :app_id
1700
- # The client type that the end customer will pay from
1701
- attr_accessor :client
1702
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1703
- #
1704
- # 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.
1705
- #
1706
- # 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.
1707
- #
1708
- # 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).
1709
- #
1710
- # 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`.
1711
- attr_accessor :setup_future_usage
1712
-
1713
- def initialize(app_id: nil, client: nil, setup_future_usage: nil)
1714
- @app_id = app_id
1715
- @client = client
1716
- @setup_future_usage = setup_future_usage
1717
- end
1718
- end
1719
- # If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
1720
- attr_accessor :acss_debit
1721
- # If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
1722
- attr_accessor :afterpay_clearpay
1723
- # If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
1724
- attr_accessor :alipay
1725
- # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
1726
- attr_accessor :bancontact
1727
- # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
1728
- attr_accessor :card
1729
- # If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
1730
- attr_accessor :customer_balance
1731
- # If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
1732
- attr_accessor :ideal
1733
- # If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
1734
- attr_accessor :klarna
1735
- # If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
1736
- attr_accessor :link
1737
- # If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
1738
- attr_accessor :oxxo
1739
- # If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
1740
- attr_accessor :p24
1741
- # If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
1742
- attr_accessor :paypal
1743
- # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
1744
- attr_accessor :sepa_debit
1745
- # If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
1746
- attr_accessor :sofort
1747
- # If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
1748
- attr_accessor :wechat_pay
1749
-
1750
- def initialize(
1751
- acss_debit: nil,
1752
- afterpay_clearpay: nil,
1753
- alipay: nil,
1754
- bancontact: nil,
1755
- card: nil,
1756
- customer_balance: nil,
1757
- ideal: nil,
1758
- klarna: nil,
1759
- link: nil,
1760
- oxxo: nil,
1761
- p24: nil,
1762
- paypal: nil,
1763
- sepa_debit: nil,
1764
- sofort: nil,
1765
- wechat_pay: nil
1766
- )
1767
- @acss_debit = acss_debit
1768
- @afterpay_clearpay = afterpay_clearpay
1769
- @alipay = alipay
1770
- @bancontact = bancontact
1771
- @card = card
1772
- @customer_balance = customer_balance
1773
- @ideal = ideal
1774
- @klarna = klarna
1775
- @link = link
1776
- @oxxo = oxxo
1777
- @p24 = p24
1778
- @paypal = paypal
1779
- @sepa_debit = sepa_debit
1780
- @sofort = sofort
1781
- @wechat_pay = wechat_pay
1782
- end
1783
- end
1784
-
1785
- class TransferData < ::Stripe::RequestParams
1786
- # 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.
1787
- attr_accessor :amount
1788
- # ID of the Connected account receiving the transfer.
1789
- attr_accessor :destination
1790
-
1791
- def initialize(amount: nil, destination: nil)
1792
- @amount = amount
1793
- @destination = destination
1794
- end
1795
- end
1796
- # 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.
1797
- attr_accessor :application_fee_amount
1798
- # PaymentMethod-specific configuration to provide to the order's PaymentIntent.
1799
- attr_accessor :payment_method_options
1800
- # 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).
1801
- attr_accessor :payment_method_types
1802
- # The URL to redirect the customer to after they authenticate their payment.
1803
- attr_accessor :return_url
1804
- # 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.
1805
- attr_accessor :statement_descriptor
1806
- # 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.
1807
- attr_accessor :statement_descriptor_suffix
1808
- # Provides configuration for completing a transfer for the order after it is paid.
1809
- attr_accessor :transfer_data
1810
-
1811
- def initialize(
1812
- application_fee_amount: nil,
1813
- payment_method_options: nil,
1814
- payment_method_types: nil,
1815
- return_url: nil,
1816
- statement_descriptor: nil,
1817
- statement_descriptor_suffix: nil,
1818
- transfer_data: nil
1819
- )
1820
- @application_fee_amount = application_fee_amount
1821
- @payment_method_options = payment_method_options
1822
- @payment_method_types = payment_method_types
1823
- @return_url = return_url
1824
- @statement_descriptor = statement_descriptor
1825
- @statement_descriptor_suffix = statement_descriptor_suffix
1826
- @transfer_data = transfer_data
1827
- end
1828
- end
1829
- # Settings describing how the order should configure generated PaymentIntents.
1830
- attr_accessor :settings
1831
-
1832
- def initialize(settings: nil)
1833
- @settings = settings
1834
- end
1835
- end
1836
-
1837
- class ShippingCost < ::Stripe::RequestParams
1838
- class ShippingRateData < ::Stripe::RequestParams
1839
- class DeliveryEstimate < ::Stripe::RequestParams
1840
- class Maximum < ::Stripe::RequestParams
1841
- # A unit of time.
1842
- attr_accessor :unit
1843
- # Must be greater than 0.
1844
- attr_accessor :value
1845
-
1846
- def initialize(unit: nil, value: nil)
1847
- @unit = unit
1848
- @value = value
1849
- end
1850
- end
1851
-
1852
- class Minimum < ::Stripe::RequestParams
1853
- # A unit of time.
1854
- attr_accessor :unit
1855
- # Must be greater than 0.
1856
- attr_accessor :value
1857
-
1858
- def initialize(unit: nil, value: nil)
1859
- @unit = unit
1860
- @value = value
1861
- end
1862
- end
1863
- # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
1864
- attr_accessor :maximum
1865
- # The lower bound of the estimated range. If empty, represents no lower bound.
1866
- attr_accessor :minimum
1867
-
1868
- def initialize(maximum: nil, minimum: nil)
1869
- @maximum = maximum
1870
- @minimum = minimum
1871
- end
1872
- end
1873
-
1874
- class FixedAmount < ::Stripe::RequestParams
1875
- class CurrencyOptions < ::Stripe::RequestParams
1876
- # A non-negative integer in cents representing how much to charge.
1877
- attr_accessor :amount
1878
- # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1879
- attr_accessor :tax_behavior
1880
-
1881
- def initialize(amount: nil, tax_behavior: nil)
1882
- @amount = amount
1883
- @tax_behavior = tax_behavior
1884
- end
1885
- end
1886
- # A non-negative integer in cents representing how much to charge.
1887
- attr_accessor :amount
1888
- # 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).
1889
- attr_accessor :currency
1890
- # 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).
1891
- attr_accessor :currency_options
1892
-
1893
- def initialize(amount: nil, currency: nil, currency_options: nil)
1894
- @amount = amount
1895
- @currency = currency
1896
- @currency_options = currency_options
1897
- end
1898
- end
1899
- # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
1900
- attr_accessor :delivery_estimate
1901
- # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
1902
- attr_accessor :display_name
1903
- # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
1904
- attr_accessor :fixed_amount
1905
- # 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`.
1906
- attr_accessor :metadata
1907
- # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
1908
- attr_accessor :tax_behavior
1909
- # A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
1910
- attr_accessor :tax_code
1911
- # The type of calculation to use on the shipping rate.
1912
- attr_accessor :type
1913
-
1914
- def initialize(
1915
- delivery_estimate: nil,
1916
- display_name: nil,
1917
- fixed_amount: nil,
1918
- metadata: nil,
1919
- tax_behavior: nil,
1920
- tax_code: nil,
1921
- type: nil
1922
- )
1923
- @delivery_estimate = delivery_estimate
1924
- @display_name = display_name
1925
- @fixed_amount = fixed_amount
1926
- @metadata = metadata
1927
- @tax_behavior = tax_behavior
1928
- @tax_code = tax_code
1929
- @type = type
1930
- end
1931
- end
1932
- # The ID of the shipping rate to use for this order.
1933
- attr_accessor :shipping_rate
1934
- # Parameters to create a new ad-hoc shipping rate for this order.
1935
- attr_accessor :shipping_rate_data
1936
-
1937
- def initialize(shipping_rate: nil, shipping_rate_data: nil)
1938
- @shipping_rate = shipping_rate
1939
- @shipping_rate_data = shipping_rate_data
1940
- end
1941
- end
1942
-
1943
- class ShippingDetails < ::Stripe::RequestParams
1944
- class Address < ::Stripe::RequestParams
1945
- # City, district, suburb, town, or village.
1946
- attr_accessor :city
1947
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1948
- attr_accessor :country
1949
- # Address line 1, such as the street, PO Box, or company name.
1950
- attr_accessor :line1
1951
- # Address line 2, such as the apartment, suite, unit, or building.
1952
- attr_accessor :line2
1953
- # ZIP or postal code.
1954
- attr_accessor :postal_code
1955
- # 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".
1956
- attr_accessor :state
1957
-
1958
- def initialize(
1959
- city: nil,
1960
- country: nil,
1961
- line1: nil,
1962
- line2: nil,
1963
- postal_code: nil,
1964
- state: nil
1965
- )
1966
- @city = city
1967
- @country = country
1968
- @line1 = line1
1969
- @line2 = line2
1970
- @postal_code = postal_code
1971
- @state = state
1972
- end
1973
- end
1974
- # The shipping address for the order.
1975
- attr_accessor :address
1976
- # The name of the recipient of the order.
1977
- attr_accessor :name
1978
- # The phone number (including extension) for the recipient of the order.
1979
- attr_accessor :phone
1980
-
1981
- def initialize(address: nil, name: nil, phone: nil)
1982
- @address = address
1983
- @name = name
1984
- @phone = phone
1985
- end
1986
- end
1987
-
1988
- class TaxDetails < ::Stripe::RequestParams
1989
- class TaxId < ::Stripe::RequestParams
1990
- # 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`
1991
- attr_accessor :type
1992
- # Value of the tax ID.
1993
- attr_accessor :value
1994
-
1995
- def initialize(type: nil, value: nil)
1996
- @type = type
1997
- @value = value
1998
- end
1999
- end
2000
- # The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
2001
- attr_accessor :tax_exempt
2002
- # The purchaser's tax IDs to be used for this order.
2003
- attr_accessor :tax_ids
2004
-
2005
- def initialize(tax_exempt: nil, tax_ids: nil)
2006
- @tax_exempt = tax_exempt
2007
- @tax_ids = tax_ids
2008
- end
2009
- end
2010
- # Settings for automatic tax calculation for this order.
2011
- attr_accessor :automatic_tax
2012
- # 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.
2013
- attr_accessor :billing_details
2014
- # 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).
2015
- attr_accessor :currency
2016
- # The customer associated with this order.
2017
- attr_accessor :customer
2018
- # An arbitrary string attached to the object. Often useful for displaying to users.
2019
- attr_accessor :description
2020
- # The coupons, promotion codes, and/or discounts to apply to the order.
2021
- attr_accessor :discounts
2022
- # Specifies which fields in the response should be expanded.
2023
- attr_accessor :expand
2024
- # The IP address of the purchaser for this order.
2025
- attr_accessor :ip_address
2026
- # A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
2027
- attr_accessor :line_items
2028
- # 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`.
2029
- attr_accessor :metadata
2030
- # Payment information associated with the order, including payment settings.
2031
- attr_accessor :payment
2032
- # Settings for the customer cost of shipping for this order.
2033
- attr_accessor :shipping_cost
2034
- # Shipping details for the order.
2035
- attr_accessor :shipping_details
2036
- # Additional tax details about the purchaser to be used for this order.
2037
- attr_accessor :tax_details
2038
-
2039
- def initialize(
2040
- automatic_tax: nil,
2041
- billing_details: nil,
2042
- currency: nil,
2043
- customer: nil,
2044
- description: nil,
2045
- discounts: nil,
2046
- expand: nil,
2047
- ip_address: nil,
2048
- line_items: nil,
2049
- metadata: nil,
2050
- payment: nil,
2051
- shipping_cost: nil,
2052
- shipping_details: nil,
2053
- tax_details: nil
2054
- )
2055
- @automatic_tax = automatic_tax
2056
- @billing_details = billing_details
2057
- @currency = currency
2058
- @customer = customer
2059
- @description = description
2060
- @discounts = discounts
2061
- @expand = expand
2062
- @ip_address = ip_address
2063
- @line_items = line_items
2064
- @metadata = metadata
2065
- @payment = payment
2066
- @shipping_cost = shipping_cost
2067
- @shipping_details = shipping_details
2068
- @tax_details = tax_details
2069
- end
2070
-
2071
- def self.field_encodings
2072
- @field_encodings = {
2073
- line_items: {
2074
- kind: :array,
2075
- element: {
2076
- kind: :object,
2077
- fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
2078
- },
2079
- },
2080
- }
2081
- end
2082
- end
2083
- end