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
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -145,18 +145,6 @@ module Stripe
145
145
  end
146
146
  end
147
147
 
148
- class Surcharge < ::Stripe::RequestParams
149
- # Portion of the amount that corresponds to a surcharge.
150
- attr_accessor :amount
151
- # Indicate whether to enforce validations on the surcharge amount.
152
- attr_accessor :enforce_validation
153
-
154
- def initialize(amount: nil, enforce_validation: nil)
155
- @amount = amount
156
- @enforce_validation = enforce_validation
157
- end
158
- end
159
-
160
148
  class Tax < ::Stripe::RequestParams
161
149
  # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
162
150
  #
@@ -181,8 +169,6 @@ module Stripe
181
169
  attr_accessor :line_items
182
170
  # Contains information about the shipping portion of the amount.
183
171
  attr_accessor :shipping
184
- # Contains information about the surcharge portion of the amount.
185
- attr_accessor :surcharge
186
172
  # Contains information about the tax portion of the amount.
187
173
  attr_accessor :tax
188
174
 
@@ -191,14 +177,12 @@ module Stripe
191
177
  enforce_arithmetic_validation: nil,
192
178
  line_items: nil,
193
179
  shipping: nil,
194
- surcharge: nil,
195
180
  tax: nil
196
181
  )
197
182
  @discount_amount = discount_amount
198
183
  @enforce_arithmetic_validation = enforce_arithmetic_validation
199
184
  @line_items = line_items
200
185
  @shipping = shipping
201
- @surcharge = surcharge
202
186
  @tax = tax
203
187
  end
204
188
  end
@@ -229,1644 +213,18 @@ module Stripe
229
213
  end
230
214
 
231
215
  class PaymentDetails < ::Stripe::RequestParams
232
- class CarRental < ::Stripe::RequestParams
233
- class Affiliate < ::Stripe::RequestParams
234
- # The name of the affiliate that originated the purchase.
235
- attr_accessor :name
236
-
237
- def initialize(name: nil)
238
- @name = name
239
- end
240
- end
241
-
242
- class Delivery < ::Stripe::RequestParams
243
- class Recipient < ::Stripe::RequestParams
244
- # The email of the recipient the ticket is delivered to.
245
- attr_accessor :email
246
- # The name of the recipient the ticket is delivered to.
247
- attr_accessor :name
248
- # The phone number of the recipient the ticket is delivered to.
249
- attr_accessor :phone
250
-
251
- def initialize(email: nil, name: nil, phone: nil)
252
- @email = email
253
- @name = name
254
- @phone = phone
255
- end
256
- end
257
- # The delivery method for the payment
258
- attr_accessor :mode
259
- # Details of the recipient.
260
- attr_accessor :recipient
261
-
262
- def initialize(mode: nil, recipient: nil)
263
- @mode = mode
264
- @recipient = recipient
265
- end
266
- end
267
-
268
- class Distance < ::Stripe::RequestParams
269
- # Distance traveled.
270
- attr_accessor :amount
271
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
272
- attr_accessor :unit
273
-
274
- def initialize(amount: nil, unit: nil)
275
- @amount = amount
276
- @unit = unit
277
- end
278
- end
279
-
280
- class Driver < ::Stripe::RequestParams
281
- # Driver's identification number.
282
- attr_accessor :driver_identification_number
283
- # Driver's tax number.
284
- attr_accessor :driver_tax_number
285
- # Full name of the person or entity on the car reservation.
286
- attr_accessor :name
287
-
288
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
289
- @driver_identification_number = driver_identification_number
290
- @driver_tax_number = driver_tax_number
291
- @name = name
292
- end
293
- end
294
-
295
- class PickupAddress < ::Stripe::RequestParams
296
- # City, district, suburb, town, or village.
297
- attr_accessor :city
298
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
299
- attr_accessor :country
300
- # Address line 1, such as the street, PO Box, or company name.
301
- attr_accessor :line1
302
- # Address line 2, such as the apartment, suite, unit, or building.
303
- attr_accessor :line2
304
- # ZIP or postal code.
305
- attr_accessor :postal_code
306
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
307
- attr_accessor :state
308
-
309
- def initialize(
310
- city: nil,
311
- country: nil,
312
- line1: nil,
313
- line2: nil,
314
- postal_code: nil,
315
- state: nil
316
- )
317
- @city = city
318
- @country = country
319
- @line1 = line1
320
- @line2 = line2
321
- @postal_code = postal_code
322
- @state = state
323
- end
324
- end
325
-
326
- class ReturnAddress < ::Stripe::RequestParams
327
- # City, district, suburb, town, or village.
328
- attr_accessor :city
329
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
330
- attr_accessor :country
331
- # Address line 1, such as the street, PO Box, or company name.
332
- attr_accessor :line1
333
- # Address line 2, such as the apartment, suite, unit, or building.
334
- attr_accessor :line2
335
- # ZIP or postal code.
336
- attr_accessor :postal_code
337
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
338
- attr_accessor :state
339
-
340
- def initialize(
341
- city: nil,
342
- country: nil,
343
- line1: nil,
344
- line2: nil,
345
- postal_code: nil,
346
- state: nil
347
- )
348
- @city = city
349
- @country = country
350
- @line1 = line1
351
- @line2 = line2
352
- @postal_code = postal_code
353
- @state = state
354
- end
355
- end
356
- # Affiliate details for this purchase.
357
- attr_accessor :affiliate
358
- # The booking number associated with the car rental.
359
- attr_accessor :booking_number
360
- # Class code of the car.
361
- attr_accessor :car_class_code
362
- # Make of the car.
363
- attr_accessor :car_make
364
- # Model of the car.
365
- attr_accessor :car_model
366
- # The name of the rental car company.
367
- attr_accessor :company
368
- # The customer service phone number of the car rental company.
369
- attr_accessor :customer_service_phone_number
370
- # Number of days the car is being rented.
371
- attr_accessor :days_rented
372
- # Delivery details for this purchase.
373
- attr_accessor :delivery
374
- # The details of the distance traveled during the rental period.
375
- attr_accessor :distance
376
- # The details of the passengers in the travel reservation
377
- attr_accessor :drivers
378
- # List of additional charges being billed.
379
- attr_accessor :extra_charges
380
- # Indicates if the customer did not keep nor cancel their booking.
381
- attr_accessor :no_show
382
- # Car pick-up address.
383
- attr_accessor :pickup_address
384
- # Car pick-up time. Measured in seconds since the Unix epoch.
385
- attr_accessor :pickup_at
386
- # Name of the pickup location.
387
- attr_accessor :pickup_location_name
388
- # Rental rate.
389
- attr_accessor :rate_amount
390
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
391
- attr_accessor :rate_interval
392
- # The name of the person or entity renting the car.
393
- attr_accessor :renter_name
394
- # Car return address.
395
- attr_accessor :return_address
396
- # Car return time. Measured in seconds since the Unix epoch.
397
- attr_accessor :return_at
398
- # Name of the return location.
399
- attr_accessor :return_location_name
400
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
401
- attr_accessor :tax_exempt
402
- # The vehicle identification number.
403
- attr_accessor :vehicle_identification_number
404
-
405
- def initialize(
406
- affiliate: nil,
407
- booking_number: nil,
408
- car_class_code: nil,
409
- car_make: nil,
410
- car_model: nil,
411
- company: nil,
412
- customer_service_phone_number: nil,
413
- days_rented: nil,
414
- delivery: nil,
415
- distance: nil,
416
- drivers: nil,
417
- extra_charges: nil,
418
- no_show: nil,
419
- pickup_address: nil,
420
- pickup_at: nil,
421
- pickup_location_name: nil,
422
- rate_amount: nil,
423
- rate_interval: nil,
424
- renter_name: nil,
425
- return_address: nil,
426
- return_at: nil,
427
- return_location_name: nil,
428
- tax_exempt: nil,
429
- vehicle_identification_number: nil
430
- )
431
- @affiliate = affiliate
432
- @booking_number = booking_number
433
- @car_class_code = car_class_code
434
- @car_make = car_make
435
- @car_model = car_model
436
- @company = company
437
- @customer_service_phone_number = customer_service_phone_number
438
- @days_rented = days_rented
439
- @delivery = delivery
440
- @distance = distance
441
- @drivers = drivers
442
- @extra_charges = extra_charges
443
- @no_show = no_show
444
- @pickup_address = pickup_address
445
- @pickup_at = pickup_at
446
- @pickup_location_name = pickup_location_name
447
- @rate_amount = rate_amount
448
- @rate_interval = rate_interval
449
- @renter_name = renter_name
450
- @return_address = return_address
451
- @return_at = return_at
452
- @return_location_name = return_location_name
453
- @tax_exempt = tax_exempt
454
- @vehicle_identification_number = vehicle_identification_number
455
- end
456
- end
457
-
458
- class CarRentalDatum < ::Stripe::RequestParams
459
- class Affiliate < ::Stripe::RequestParams
460
- # Affiliate partner code.
461
- attr_accessor :code
462
- # Name of affiliate partner.
463
- attr_accessor :name
464
-
465
- def initialize(code: nil, name: nil)
466
- @code = code
467
- @name = name
468
- end
469
- end
470
-
471
- class Distance < ::Stripe::RequestParams
472
- # Distance traveled.
473
- attr_accessor :amount
474
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
475
- attr_accessor :unit
476
-
477
- def initialize(amount: nil, unit: nil)
478
- @amount = amount
479
- @unit = unit
480
- end
481
- end
482
-
483
- class Driver < ::Stripe::RequestParams
484
- class DateOfBirth < ::Stripe::RequestParams
485
- # Day of birth (1-31).
486
- attr_accessor :day
487
- # Month of birth (1-12).
488
- attr_accessor :month
489
- # Year of birth (must be greater than 1900).
490
- attr_accessor :year
491
-
492
- def initialize(day: nil, month: nil, year: nil)
493
- @day = day
494
- @month = month
495
- @year = year
496
- end
497
- end
498
- # Driver's date of birth.
499
- attr_accessor :date_of_birth
500
- # Driver's identification number.
501
- attr_accessor :driver_identification_number
502
- # Driver's tax number.
503
- attr_accessor :driver_tax_number
504
- # Driver's full name.
505
- attr_accessor :name
506
-
507
- def initialize(
508
- date_of_birth: nil,
509
- driver_identification_number: nil,
510
- driver_tax_number: nil,
511
- name: nil
512
- )
513
- @date_of_birth = date_of_birth
514
- @driver_identification_number = driver_identification_number
515
- @driver_tax_number = driver_tax_number
516
- @name = name
517
- end
518
- end
519
-
520
- class DropOff < ::Stripe::RequestParams
521
- class Address < ::Stripe::RequestParams
522
- # City, district, suburb, town, or village.
523
- attr_accessor :city
524
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
525
- attr_accessor :country
526
- # Address line 1, such as the street, PO Box, or company name.
527
- attr_accessor :line1
528
- # Address line 2, such as the apartment, suite, unit, or building.
529
- attr_accessor :line2
530
- # ZIP or postal code.
531
- attr_accessor :postal_code
532
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
533
- attr_accessor :state
534
-
535
- def initialize(
536
- city: nil,
537
- country: nil,
538
- line1: nil,
539
- line2: nil,
540
- postal_code: nil,
541
- state: nil
542
- )
543
- @city = city
544
- @country = country
545
- @line1 = line1
546
- @line2 = line2
547
- @postal_code = postal_code
548
- @state = state
549
- end
550
- end
551
- # Address of the rental location.
552
- attr_accessor :address
553
- # Location name.
554
- attr_accessor :location_name
555
- # Timestamp for the location.
556
- attr_accessor :time
557
-
558
- def initialize(address: nil, location_name: nil, time: nil)
559
- @address = address
560
- @location_name = location_name
561
- @time = time
562
- end
563
- end
564
-
565
- class Insurance < ::Stripe::RequestParams
566
- # Amount of the insurance coverage in cents.
567
- attr_accessor :amount
568
- # Currency of the insurance amount.
569
- attr_accessor :currency
570
- # Name of the insurance company.
571
- attr_accessor :insurance_company_name
572
- # Type of insurance coverage.
573
- attr_accessor :insurance_type
574
-
575
- def initialize(
576
- amount: nil,
577
- currency: nil,
578
- insurance_company_name: nil,
579
- insurance_type: nil
580
- )
581
- @amount = amount
582
- @currency = currency
583
- @insurance_company_name = insurance_company_name
584
- @insurance_type = insurance_type
585
- end
586
- end
587
-
588
- class Pickup < ::Stripe::RequestParams
589
- class Address < ::Stripe::RequestParams
590
- # City, district, suburb, town, or village.
591
- attr_accessor :city
592
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
593
- attr_accessor :country
594
- # Address line 1, such as the street, PO Box, or company name.
595
- attr_accessor :line1
596
- # Address line 2, such as the apartment, suite, unit, or building.
597
- attr_accessor :line2
598
- # ZIP or postal code.
599
- attr_accessor :postal_code
600
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
601
- attr_accessor :state
602
-
603
- def initialize(
604
- city: nil,
605
- country: nil,
606
- line1: nil,
607
- line2: nil,
608
- postal_code: nil,
609
- state: nil
610
- )
611
- @city = city
612
- @country = country
613
- @line1 = line1
614
- @line2 = line2
615
- @postal_code = postal_code
616
- @state = state
617
- end
618
- end
619
- # Address of the rental location.
620
- attr_accessor :address
621
- # Location name.
622
- attr_accessor :location_name
623
- # Timestamp for the location.
624
- attr_accessor :time
625
-
626
- def initialize(address: nil, location_name: nil, time: nil)
627
- @address = address
628
- @location_name = location_name
629
- @time = time
630
- end
631
- end
632
-
633
- class Total < ::Stripe::RequestParams
634
- class Discounts < ::Stripe::RequestParams
635
- # Corporate client discount code.
636
- attr_accessor :corporate_client_code
637
- # Coupon code applied to the rental.
638
- attr_accessor :coupon
639
- # Maximum number of free miles or kilometers included.
640
- attr_accessor :maximum_free_miles_or_kilometers
641
-
642
- def initialize(
643
- corporate_client_code: nil,
644
- coupon: nil,
645
- maximum_free_miles_or_kilometers: nil
646
- )
647
- @corporate_client_code = corporate_client_code
648
- @coupon = coupon
649
- @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
650
- end
651
- end
652
-
653
- class ExtraCharge < ::Stripe::RequestParams
654
- # Amount of the extra charge in cents.
655
- attr_accessor :amount
656
- # Type of extra charge.
657
- attr_accessor :type
658
-
659
- def initialize(amount: nil, type: nil)
660
- @amount = amount
661
- @type = type
662
- end
663
- end
664
-
665
- class Tax < ::Stripe::RequestParams
666
- class Tax < ::Stripe::RequestParams
667
- # Tax amount.
668
- attr_accessor :amount
669
- # Tax rate applied.
670
- attr_accessor :rate
671
- # Type of tax applied.
672
- attr_accessor :type
673
-
674
- def initialize(amount: nil, rate: nil, type: nil)
675
- @amount = amount
676
- @rate = rate
677
- @type = type
678
- end
679
- end
680
- # Indicates if the transaction is tax exempt.
681
- attr_accessor :tax_exempt_indicator
682
- # Array of tax details.
683
- attr_accessor :taxes
684
-
685
- def initialize(tax_exempt_indicator: nil, taxes: nil)
686
- @tax_exempt_indicator = tax_exempt_indicator
687
- @taxes = taxes
688
- end
689
- end
690
- # Total amount in cents.
691
- attr_accessor :amount
692
- # Currency of the amount.
693
- attr_accessor :currency
694
- # Discount details for the rental.
695
- attr_accessor :discounts
696
- # Additional charges for the rental.
697
- attr_accessor :extra_charges
698
- # Rate per unit for the rental.
699
- attr_accessor :rate_per_unit
700
- # Unit of measurement for the rate.
701
- attr_accessor :rate_unit
702
- # Tax breakdown for the rental.
703
- attr_accessor :tax
704
-
705
- def initialize(
706
- amount: nil,
707
- currency: nil,
708
- discounts: nil,
709
- extra_charges: nil,
710
- rate_per_unit: nil,
711
- rate_unit: nil,
712
- tax: nil
713
- )
714
- @amount = amount
715
- @currency = currency
716
- @discounts = discounts
717
- @extra_charges = extra_charges
718
- @rate_per_unit = rate_per_unit
719
- @rate_unit = rate_unit
720
- @tax = tax
721
- end
722
- end
723
-
724
- class Vehicle < ::Stripe::RequestParams
725
- # Make of the rental vehicle.
726
- attr_accessor :make
727
- # Model of the rental vehicle.
728
- attr_accessor :model
729
- # Odometer reading at the time of rental.
730
- attr_accessor :odometer
731
- # Type of the rental vehicle.
732
- attr_accessor :type
733
- # Class of the rental vehicle.
734
- attr_accessor :vehicle_class
735
- # Vehicle identification number (VIN).
736
- attr_accessor :vehicle_identification_number
737
-
738
- def initialize(
739
- make: nil,
740
- model: nil,
741
- odometer: nil,
742
- type: nil,
743
- vehicle_class: nil,
744
- vehicle_identification_number: nil
745
- )
746
- @make = make
747
- @model = model
748
- @odometer = odometer
749
- @type = type
750
- @vehicle_class = vehicle_class
751
- @vehicle_identification_number = vehicle_identification_number
752
- end
753
- end
754
- # Affiliate (such as travel agency) details for the rental.
755
- attr_accessor :affiliate
756
- # Booking confirmation number for the car rental.
757
- attr_accessor :booking_number
758
- # Name of the car rental company.
759
- attr_accessor :carrier_name
760
- # Customer service phone number for the car rental company.
761
- attr_accessor :customer_service_phone_number
762
- # Number of days the car is being rented.
763
- attr_accessor :days_rented
764
- # Distance details for the rental.
765
- attr_accessor :distance
766
- # List of drivers for the rental.
767
- attr_accessor :drivers
768
- # Drop-off location details.
769
- attr_accessor :drop_off
770
- # Insurance details for the rental.
771
- attr_accessor :insurances
772
- # Indicates if the customer was a no-show.
773
- attr_accessor :no_show_indicator
774
- # Pickup location details.
775
- attr_accessor :pickup
776
- # Name of the person renting the vehicle.
777
- attr_accessor :renter_name
778
- # Total cost breakdown for the rental.
779
- attr_accessor :total
780
- # Vehicle details for the rental.
781
- attr_accessor :vehicle
782
-
783
- def initialize(
784
- affiliate: nil,
785
- booking_number: nil,
786
- carrier_name: nil,
787
- customer_service_phone_number: nil,
788
- days_rented: nil,
789
- distance: nil,
790
- drivers: nil,
791
- drop_off: nil,
792
- insurances: nil,
793
- no_show_indicator: nil,
794
- pickup: nil,
795
- renter_name: nil,
796
- total: nil,
797
- vehicle: nil
798
- )
799
- @affiliate = affiliate
800
- @booking_number = booking_number
801
- @carrier_name = carrier_name
802
- @customer_service_phone_number = customer_service_phone_number
803
- @days_rented = days_rented
804
- @distance = distance
805
- @drivers = drivers
806
- @drop_off = drop_off
807
- @insurances = insurances
808
- @no_show_indicator = no_show_indicator
809
- @pickup = pickup
810
- @renter_name = renter_name
811
- @total = total
812
- @vehicle = vehicle
813
- end
814
- end
815
-
816
- class EventDetails < ::Stripe::RequestParams
817
- class Address < ::Stripe::RequestParams
818
- # City, district, suburb, town, or village.
819
- attr_accessor :city
820
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
821
- attr_accessor :country
822
- # Address line 1, such as the street, PO Box, or company name.
823
- attr_accessor :line1
824
- # Address line 2, such as the apartment, suite, unit, or building.
825
- attr_accessor :line2
826
- # ZIP or postal code.
827
- attr_accessor :postal_code
828
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
829
- attr_accessor :state
830
-
831
- def initialize(
832
- city: nil,
833
- country: nil,
834
- line1: nil,
835
- line2: nil,
836
- postal_code: nil,
837
- state: nil
838
- )
839
- @city = city
840
- @country = country
841
- @line1 = line1
842
- @line2 = line2
843
- @postal_code = postal_code
844
- @state = state
845
- end
846
- end
847
-
848
- class Affiliate < ::Stripe::RequestParams
849
- # The name of the affiliate that originated the purchase.
850
- attr_accessor :name
851
-
852
- def initialize(name: nil)
853
- @name = name
854
- end
855
- end
856
-
857
- class Delivery < ::Stripe::RequestParams
858
- class Recipient < ::Stripe::RequestParams
859
- # The email of the recipient the ticket is delivered to.
860
- attr_accessor :email
861
- # The name of the recipient the ticket is delivered to.
862
- attr_accessor :name
863
- # The phone number of the recipient the ticket is delivered to.
864
- attr_accessor :phone
865
-
866
- def initialize(email: nil, name: nil, phone: nil)
867
- @email = email
868
- @name = name
869
- @phone = phone
870
- end
871
- end
872
- # The delivery method for the payment
873
- attr_accessor :mode
874
- # Details of the recipient.
875
- attr_accessor :recipient
876
-
877
- def initialize(mode: nil, recipient: nil)
878
- @mode = mode
879
- @recipient = recipient
880
- end
881
- end
882
- # Indicates if the tickets are digitally checked when entering the venue.
883
- attr_accessor :access_controlled_venue
884
- # The event location's address.
885
- attr_accessor :address
886
- # Affiliate details for this purchase.
887
- attr_accessor :affiliate
888
- # The name of the company
889
- attr_accessor :company
890
- # Delivery details for this purchase.
891
- attr_accessor :delivery
892
- # Event end time. Measured in seconds since the Unix epoch.
893
- attr_accessor :ends_at
894
- # Type of the event entertainment (concert, sports event etc)
895
- attr_accessor :genre
896
- # The name of the event.
897
- attr_accessor :name
898
- # Event start time. Measured in seconds since the Unix epoch.
899
- attr_accessor :starts_at
900
-
901
- def initialize(
902
- access_controlled_venue: nil,
903
- address: nil,
904
- affiliate: nil,
905
- company: nil,
906
- delivery: nil,
907
- ends_at: nil,
908
- genre: nil,
909
- name: nil,
910
- starts_at: nil
911
- )
912
- @access_controlled_venue = access_controlled_venue
913
- @address = address
914
- @affiliate = affiliate
915
- @company = company
916
- @delivery = delivery
917
- @ends_at = ends_at
918
- @genre = genre
919
- @name = name
920
- @starts_at = starts_at
921
- end
922
- end
923
-
924
- class Flight < ::Stripe::RequestParams
925
- class Affiliate < ::Stripe::RequestParams
926
- # The name of the affiliate that originated the purchase.
927
- attr_accessor :name
928
-
929
- def initialize(name: nil)
930
- @name = name
931
- end
932
- end
933
-
934
- class Delivery < ::Stripe::RequestParams
935
- class Recipient < ::Stripe::RequestParams
936
- # The email of the recipient the ticket is delivered to.
937
- attr_accessor :email
938
- # The name of the recipient the ticket is delivered to.
939
- attr_accessor :name
940
- # The phone number of the recipient the ticket is delivered to.
941
- attr_accessor :phone
942
-
943
- def initialize(email: nil, name: nil, phone: nil)
944
- @email = email
945
- @name = name
946
- @phone = phone
947
- end
948
- end
949
- # The delivery method for the payment
950
- attr_accessor :mode
951
- # Details of the recipient.
952
- attr_accessor :recipient
953
-
954
- def initialize(mode: nil, recipient: nil)
955
- @mode = mode
956
- @recipient = recipient
957
- end
958
- end
959
-
960
- class Passenger < ::Stripe::RequestParams
961
- # Full name of the person or entity on the flight reservation.
962
- attr_accessor :name
963
-
964
- def initialize(name: nil)
965
- @name = name
966
- end
967
- end
968
-
969
- class Segment < ::Stripe::RequestParams
970
- # The flight segment amount.
971
- attr_accessor :amount
972
- # The International Air Transport Association (IATA) airport code for the arrival airport.
973
- attr_accessor :arrival_airport
974
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
975
- attr_accessor :arrives_at
976
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
977
- attr_accessor :carrier
978
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
979
- attr_accessor :departs_at
980
- # The International Air Transport Association (IATA) airport code for the departure airport.
981
- attr_accessor :departure_airport
982
- # The flight number associated with the segment
983
- attr_accessor :flight_number
984
- # The fare class for the segment.
985
- attr_accessor :service_class
986
-
987
- def initialize(
988
- amount: nil,
989
- arrival_airport: nil,
990
- arrives_at: nil,
991
- carrier: nil,
992
- departs_at: nil,
993
- departure_airport: nil,
994
- flight_number: nil,
995
- service_class: nil
996
- )
997
- @amount = amount
998
- @arrival_airport = arrival_airport
999
- @arrives_at = arrives_at
1000
- @carrier = carrier
1001
- @departs_at = departs_at
1002
- @departure_airport = departure_airport
1003
- @flight_number = flight_number
1004
- @service_class = service_class
1005
- end
1006
- end
1007
- # Affiliate details for this purchase.
1008
- attr_accessor :affiliate
1009
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1010
- attr_accessor :agency_number
1011
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1012
- attr_accessor :carrier
1013
- # Delivery details for this purchase.
1014
- attr_accessor :delivery
1015
- # The name of the person or entity on the reservation.
1016
- attr_accessor :passenger_name
1017
- # The details of the passengers in the travel reservation.
1018
- attr_accessor :passengers
1019
- # The individual flight segments associated with the trip.
1020
- attr_accessor :segments
1021
- # The ticket number associated with the travel reservation.
1022
- attr_accessor :ticket_number
1023
-
1024
- def initialize(
1025
- affiliate: nil,
1026
- agency_number: nil,
1027
- carrier: nil,
1028
- delivery: nil,
1029
- passenger_name: nil,
1030
- passengers: nil,
1031
- segments: nil,
1032
- ticket_number: nil
1033
- )
1034
- @affiliate = affiliate
1035
- @agency_number = agency_number
1036
- @carrier = carrier
1037
- @delivery = delivery
1038
- @passenger_name = passenger_name
1039
- @passengers = passengers
1040
- @segments = segments
1041
- @ticket_number = ticket_number
1042
- end
1043
- end
1044
-
1045
- class FlightDatum < ::Stripe::RequestParams
1046
- class Affiliate < ::Stripe::RequestParams
1047
- # Affiliate partner code.
1048
- attr_accessor :code
1049
- # Name of affiliate partner.
1050
- attr_accessor :name
1051
- # Code provided by the company to a travel agent authorizing ticket issuance.
1052
- attr_accessor :travel_authorization_code
1053
-
1054
- def initialize(code: nil, name: nil, travel_authorization_code: nil)
1055
- @code = code
1056
- @name = name
1057
- @travel_authorization_code = travel_authorization_code
1058
- end
1059
- end
1060
-
1061
- class Insurance < ::Stripe::RequestParams
1062
- # Insurance cost.
1063
- attr_accessor :amount
1064
- # Insurance currency.
1065
- attr_accessor :currency
1066
- # Insurance company name.
1067
- attr_accessor :insurance_company_name
1068
- # Type of insurance.
1069
- attr_accessor :insurance_type
1070
-
1071
- def initialize(
1072
- amount: nil,
1073
- currency: nil,
1074
- insurance_company_name: nil,
1075
- insurance_type: nil
1076
- )
1077
- @amount = amount
1078
- @currency = currency
1079
- @insurance_company_name = insurance_company_name
1080
- @insurance_type = insurance_type
1081
- end
1082
- end
1083
-
1084
- class Passenger < ::Stripe::RequestParams
1085
- # Passenger's full name.
1086
- attr_accessor :name
1087
-
1088
- def initialize(name: nil)
1089
- @name = name
1090
- end
1091
- end
1092
-
1093
- class Segment < ::Stripe::RequestParams
1094
- class Arrival < ::Stripe::RequestParams
1095
- # Arrival airport IATA code.
1096
- attr_accessor :airport
1097
- # Arrival date/time.
1098
- attr_accessor :arrives_at
1099
- # Arrival city.
1100
- attr_accessor :city
1101
- # Arrival country.
1102
- attr_accessor :country
1103
-
1104
- def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1105
- @airport = airport
1106
- @arrives_at = arrives_at
1107
- @city = city
1108
- @country = country
1109
- end
1110
- end
1111
-
1112
- class Departure < ::Stripe::RequestParams
1113
- # Departure airport IATA code.
1114
- attr_accessor :airport
1115
- # Departure city.
1116
- attr_accessor :city
1117
- # Departure country.
1118
- attr_accessor :country
1119
- # Departure date/time.
1120
- attr_accessor :departs_at
1121
-
1122
- def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1123
- @airport = airport
1124
- @city = city
1125
- @country = country
1126
- @departs_at = departs_at
1127
- end
1128
- end
1129
- # Segment fare amount.
1130
- attr_accessor :amount
1131
- # Arrival details.
1132
- attr_accessor :arrival
1133
- # Airline carrier code.
1134
- attr_accessor :carrier_code
1135
- # Carrier name.
1136
- attr_accessor :carrier_name
1137
- # Segment currency.
1138
- attr_accessor :currency
1139
- # Departure details.
1140
- attr_accessor :departure
1141
- # Exchange ticket number.
1142
- attr_accessor :exchange_ticket_number
1143
- # Fare basis code.
1144
- attr_accessor :fare_basis_code
1145
- # Additional fees.
1146
- attr_accessor :fees
1147
- # Flight number.
1148
- attr_accessor :flight_number
1149
- # Stopover indicator.
1150
- attr_accessor :is_stop_over_indicator
1151
- # Refundable ticket indicator.
1152
- attr_accessor :refundable
1153
- # Class of service.
1154
- attr_accessor :service_class
1155
- # Tax amount for segment.
1156
- attr_accessor :tax_amount
1157
- # Ticket number.
1158
- attr_accessor :ticket_number
1159
-
1160
- def initialize(
1161
- amount: nil,
1162
- arrival: nil,
1163
- carrier_code: nil,
1164
- carrier_name: nil,
1165
- currency: nil,
1166
- departure: nil,
1167
- exchange_ticket_number: nil,
1168
- fare_basis_code: nil,
1169
- fees: nil,
1170
- flight_number: nil,
1171
- is_stop_over_indicator: nil,
1172
- refundable: nil,
1173
- service_class: nil,
1174
- tax_amount: nil,
1175
- ticket_number: nil
1176
- )
1177
- @amount = amount
1178
- @arrival = arrival
1179
- @carrier_code = carrier_code
1180
- @carrier_name = carrier_name
1181
- @currency = currency
1182
- @departure = departure
1183
- @exchange_ticket_number = exchange_ticket_number
1184
- @fare_basis_code = fare_basis_code
1185
- @fees = fees
1186
- @flight_number = flight_number
1187
- @is_stop_over_indicator = is_stop_over_indicator
1188
- @refundable = refundable
1189
- @service_class = service_class
1190
- @tax_amount = tax_amount
1191
- @ticket_number = ticket_number
1192
- end
1193
- end
1194
-
1195
- class Total < ::Stripe::RequestParams
1196
- class Discounts < ::Stripe::RequestParams
1197
- # Corporate client discount code.
1198
- attr_accessor :corporate_client_code
1199
-
1200
- def initialize(corporate_client_code: nil)
1201
- @corporate_client_code = corporate_client_code
1202
- end
1203
- end
1204
-
1205
- class ExtraCharge < ::Stripe::RequestParams
1206
- # Amount of additional charges.
1207
- attr_accessor :amount
1208
- # Type of additional charges.
1209
- attr_accessor :type
1210
-
1211
- def initialize(amount: nil, type: nil)
1212
- @amount = amount
1213
- @type = type
1214
- end
1215
- end
1216
-
1217
- class Tax < ::Stripe::RequestParams
1218
- class Tax < ::Stripe::RequestParams
1219
- # Tax amount.
1220
- attr_accessor :amount
1221
- # Tax rate.
1222
- attr_accessor :rate
1223
- # Type of tax.
1224
- attr_accessor :type
1225
-
1226
- def initialize(amount: nil, rate: nil, type: nil)
1227
- @amount = amount
1228
- @rate = rate
1229
- @type = type
1230
- end
1231
- end
1232
- # Array of tax details.
1233
- attr_accessor :taxes
1234
-
1235
- def initialize(taxes: nil)
1236
- @taxes = taxes
1237
- end
1238
- end
1239
- # Total flight amount.
1240
- attr_accessor :amount
1241
- # Reason for credit.
1242
- attr_accessor :credit_reason
1243
- # Total currency.
1244
- attr_accessor :currency
1245
- # Discount details.
1246
- attr_accessor :discounts
1247
- # Additional charges.
1248
- attr_accessor :extra_charges
1249
- # Tax breakdown.
1250
- attr_accessor :tax
1251
-
1252
- def initialize(
1253
- amount: nil,
1254
- credit_reason: nil,
1255
- currency: nil,
1256
- discounts: nil,
1257
- extra_charges: nil,
1258
- tax: nil
1259
- )
1260
- @amount = amount
1261
- @credit_reason = credit_reason
1262
- @currency = currency
1263
- @discounts = discounts
1264
- @extra_charges = extra_charges
1265
- @tax = tax
1266
- end
1267
- end
1268
- # Affiliate details if applicable.
1269
- attr_accessor :affiliate
1270
- # Reservation reference.
1271
- attr_accessor :booking_number
1272
- # Computerized reservation system used to make the reservation and purchase the ticket.
1273
- attr_accessor :computerized_reservation_system
1274
- # Ticket restrictions.
1275
- attr_accessor :endorsements_and_restrictions
1276
- # List of insurances.
1277
- attr_accessor :insurances
1278
- # List of passengers.
1279
- attr_accessor :passengers
1280
- # List of flight segments.
1281
- attr_accessor :segments
1282
- # Electronic ticket indicator.
1283
- attr_accessor :ticket_electronically_issued_indicator
1284
- # Total cost breakdown.
1285
- attr_accessor :total
1286
- # Type of flight transaction.
1287
- attr_accessor :transaction_type
1288
-
1289
- def initialize(
1290
- affiliate: nil,
1291
- booking_number: nil,
1292
- computerized_reservation_system: nil,
1293
- endorsements_and_restrictions: nil,
1294
- insurances: nil,
1295
- passengers: nil,
1296
- segments: nil,
1297
- ticket_electronically_issued_indicator: nil,
1298
- total: nil,
1299
- transaction_type: nil
1300
- )
1301
- @affiliate = affiliate
1302
- @booking_number = booking_number
1303
- @computerized_reservation_system = computerized_reservation_system
1304
- @endorsements_and_restrictions = endorsements_and_restrictions
1305
- @insurances = insurances
1306
- @passengers = passengers
1307
- @segments = segments
1308
- @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1309
- @total = total
1310
- @transaction_type = transaction_type
1311
- end
1312
- end
1313
-
1314
- class Lodging < ::Stripe::RequestParams
1315
- class Address < ::Stripe::RequestParams
1316
- # City, district, suburb, town, or village.
1317
- attr_accessor :city
1318
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1319
- attr_accessor :country
1320
- # Address line 1, such as the street, PO Box, or company name.
1321
- attr_accessor :line1
1322
- # Address line 2, such as the apartment, suite, unit, or building.
1323
- attr_accessor :line2
1324
- # ZIP or postal code.
1325
- attr_accessor :postal_code
1326
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1327
- attr_accessor :state
1328
-
1329
- def initialize(
1330
- city: nil,
1331
- country: nil,
1332
- line1: nil,
1333
- line2: nil,
1334
- postal_code: nil,
1335
- state: nil
1336
- )
1337
- @city = city
1338
- @country = country
1339
- @line1 = line1
1340
- @line2 = line2
1341
- @postal_code = postal_code
1342
- @state = state
1343
- end
1344
- end
1345
-
1346
- class Affiliate < ::Stripe::RequestParams
1347
- # The name of the affiliate that originated the purchase.
1348
- attr_accessor :name
1349
-
1350
- def initialize(name: nil)
1351
- @name = name
1352
- end
1353
- end
1354
-
1355
- class Delivery < ::Stripe::RequestParams
1356
- class Recipient < ::Stripe::RequestParams
1357
- # The email of the recipient the ticket is delivered to.
1358
- attr_accessor :email
1359
- # The name of the recipient the ticket is delivered to.
1360
- attr_accessor :name
1361
- # The phone number of the recipient the ticket is delivered to.
1362
- attr_accessor :phone
1363
-
1364
- def initialize(email: nil, name: nil, phone: nil)
1365
- @email = email
1366
- @name = name
1367
- @phone = phone
1368
- end
1369
- end
1370
- # The delivery method for the payment
1371
- attr_accessor :mode
1372
- # Details of the recipient.
1373
- attr_accessor :recipient
1374
-
1375
- def initialize(mode: nil, recipient: nil)
1376
- @mode = mode
1377
- @recipient = recipient
1378
- end
1379
- end
1380
-
1381
- class Passenger < ::Stripe::RequestParams
1382
- # Full name of the person or entity on the lodging reservation.
1383
- attr_accessor :name
1384
-
1385
- def initialize(name: nil)
1386
- @name = name
1387
- end
1388
- end
1389
- # The lodging location's address.
1390
- attr_accessor :address
1391
- # The number of adults on the booking
1392
- attr_accessor :adults
1393
- # Affiliate details for this purchase.
1394
- attr_accessor :affiliate
1395
- # The booking number associated with the lodging reservation.
1396
- attr_accessor :booking_number
1397
- # The lodging category
1398
- attr_accessor :category
1399
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1400
- attr_accessor :checkin_at
1401
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1402
- attr_accessor :checkout_at
1403
- # The customer service phone number of the lodging company.
1404
- attr_accessor :customer_service_phone_number
1405
- # The daily lodging room rate.
1406
- attr_accessor :daily_room_rate_amount
1407
- # Delivery details for this purchase.
1408
- attr_accessor :delivery
1409
- # List of additional charges being billed.
1410
- attr_accessor :extra_charges
1411
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
1412
- attr_accessor :fire_safety_act_compliance
1413
- # The name of the lodging location.
1414
- attr_accessor :name
1415
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1416
- attr_accessor :no_show
1417
- # The number of rooms on the booking
1418
- attr_accessor :number_of_rooms
1419
- # The details of the passengers in the travel reservation
1420
- attr_accessor :passengers
1421
- # The phone number of the lodging location.
1422
- attr_accessor :property_phone_number
1423
- # The room class for this purchase.
1424
- attr_accessor :room_class
1425
- # The number of room nights
1426
- attr_accessor :room_nights
1427
- # The total tax amount associating with the room reservation.
1428
- attr_accessor :total_room_tax_amount
1429
- # The total tax amount
1430
- attr_accessor :total_tax_amount
1431
-
1432
- def initialize(
1433
- address: nil,
1434
- adults: nil,
1435
- affiliate: nil,
1436
- booking_number: nil,
1437
- category: nil,
1438
- checkin_at: nil,
1439
- checkout_at: nil,
1440
- customer_service_phone_number: nil,
1441
- daily_room_rate_amount: nil,
1442
- delivery: nil,
1443
- extra_charges: nil,
1444
- fire_safety_act_compliance: nil,
1445
- name: nil,
1446
- no_show: nil,
1447
- number_of_rooms: nil,
1448
- passengers: nil,
1449
- property_phone_number: nil,
1450
- room_class: nil,
1451
- room_nights: nil,
1452
- total_room_tax_amount: nil,
1453
- total_tax_amount: nil
1454
- )
1455
- @address = address
1456
- @adults = adults
1457
- @affiliate = affiliate
1458
- @booking_number = booking_number
1459
- @category = category
1460
- @checkin_at = checkin_at
1461
- @checkout_at = checkout_at
1462
- @customer_service_phone_number = customer_service_phone_number
1463
- @daily_room_rate_amount = daily_room_rate_amount
1464
- @delivery = delivery
1465
- @extra_charges = extra_charges
1466
- @fire_safety_act_compliance = fire_safety_act_compliance
1467
- @name = name
1468
- @no_show = no_show
1469
- @number_of_rooms = number_of_rooms
1470
- @passengers = passengers
1471
- @property_phone_number = property_phone_number
1472
- @room_class = room_class
1473
- @room_nights = room_nights
1474
- @total_room_tax_amount = total_room_tax_amount
1475
- @total_tax_amount = total_tax_amount
1476
- end
1477
- end
1478
-
1479
- class LodgingDatum < ::Stripe::RequestParams
1480
- class Accommodation < ::Stripe::RequestParams
1481
- # Type of accommodation.
1482
- attr_accessor :accommodation_type
1483
- # Bed type.
1484
- attr_accessor :bed_type
1485
- # Daily accommodation rate in cents.
1486
- attr_accessor :daily_rate_amount
1487
- # Number of nights.
1488
- attr_accessor :nights
1489
- # Number of rooms, cabanas, apartments, and so on.
1490
- attr_accessor :number_of_rooms
1491
- # Rate type.
1492
- attr_accessor :rate_type
1493
- # Whether smoking is allowed.
1494
- attr_accessor :smoking_indicator
1495
-
1496
- def initialize(
1497
- accommodation_type: nil,
1498
- bed_type: nil,
1499
- daily_rate_amount: nil,
1500
- nights: nil,
1501
- number_of_rooms: nil,
1502
- rate_type: nil,
1503
- smoking_indicator: nil
1504
- )
1505
- @accommodation_type = accommodation_type
1506
- @bed_type = bed_type
1507
- @daily_rate_amount = daily_rate_amount
1508
- @nights = nights
1509
- @number_of_rooms = number_of_rooms
1510
- @rate_type = rate_type
1511
- @smoking_indicator = smoking_indicator
1512
- end
1513
- end
1514
-
1515
- class Affiliate < ::Stripe::RequestParams
1516
- # Affiliate partner code.
1517
- attr_accessor :code
1518
- # Affiliate partner name.
1519
- attr_accessor :name
1520
-
1521
- def initialize(code: nil, name: nil)
1522
- @code = code
1523
- @name = name
1524
- end
1525
- end
1526
-
1527
- class Guest < ::Stripe::RequestParams
1528
- # Guest's full name.
1529
- attr_accessor :name
1530
-
1531
- def initialize(name: nil)
1532
- @name = name
1533
- end
1534
- end
1535
-
1536
- class Host < ::Stripe::RequestParams
1537
- class Address < ::Stripe::RequestParams
1538
- # City, district, suburb, town, or village.
1539
- attr_accessor :city
1540
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1541
- attr_accessor :country
1542
- # Address line 1, such as the street, PO Box, or company name.
1543
- attr_accessor :line1
1544
- # Address line 2, such as the apartment, suite, unit, or building.
1545
- attr_accessor :line2
1546
- # ZIP or postal code.
1547
- attr_accessor :postal_code
1548
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1549
- attr_accessor :state
1550
-
1551
- def initialize(
1552
- city: nil,
1553
- country: nil,
1554
- line1: nil,
1555
- line2: nil,
1556
- postal_code: nil,
1557
- state: nil
1558
- )
1559
- @city = city
1560
- @country = country
1561
- @line1 = line1
1562
- @line2 = line2
1563
- @postal_code = postal_code
1564
- @state = state
1565
- end
1566
- end
1567
- # Address of the host.
1568
- attr_accessor :address
1569
- # Host's country of domicile.
1570
- attr_accessor :country_of_domicile
1571
- # Reference number for the host.
1572
- attr_accessor :host_reference
1573
- # Type of host.
1574
- attr_accessor :host_type
1575
- # Name of the lodging property or host.
1576
- attr_accessor :name
1577
- # Total number of reservations for the host.
1578
- attr_accessor :number_of_reservations
1579
- # Property phone number.
1580
- attr_accessor :property_phone_number
1581
- # Host's registration date.
1582
- attr_accessor :registered_at
1583
-
1584
- def initialize(
1585
- address: nil,
1586
- country_of_domicile: nil,
1587
- host_reference: nil,
1588
- host_type: nil,
1589
- name: nil,
1590
- number_of_reservations: nil,
1591
- property_phone_number: nil,
1592
- registered_at: nil
1593
- )
1594
- @address = address
1595
- @country_of_domicile = country_of_domicile
1596
- @host_reference = host_reference
1597
- @host_type = host_type
1598
- @name = name
1599
- @number_of_reservations = number_of_reservations
1600
- @property_phone_number = property_phone_number
1601
- @registered_at = registered_at
1602
- end
1603
- end
1604
-
1605
- class Insurance < ::Stripe::RequestParams
1606
- # Price of the insurance coverage in cents.
1607
- attr_accessor :amount
1608
- # Currency of the insurance amount.
1609
- attr_accessor :currency
1610
- # Name of the insurance company.
1611
- attr_accessor :insurance_company_name
1612
- # Type of insurance coverage.
1613
- attr_accessor :insurance_type
1614
-
1615
- def initialize(
1616
- amount: nil,
1617
- currency: nil,
1618
- insurance_company_name: nil,
1619
- insurance_type: nil
1620
- )
1621
- @amount = amount
1622
- @currency = currency
1623
- @insurance_company_name = insurance_company_name
1624
- @insurance_type = insurance_type
1625
- end
1626
- end
1627
-
1628
- class Total < ::Stripe::RequestParams
1629
- class Discounts < ::Stripe::RequestParams
1630
- # Corporate client discount code.
1631
- attr_accessor :corporate_client_code
1632
- # Coupon code.
1633
- attr_accessor :coupon
1634
-
1635
- def initialize(corporate_client_code: nil, coupon: nil)
1636
- @corporate_client_code = corporate_client_code
1637
- @coupon = coupon
1638
- end
1639
- end
1640
-
1641
- class ExtraCharge < ::Stripe::RequestParams
1642
- # Amount of the extra charge in cents.
1643
- attr_accessor :amount
1644
- # Type of extra charge.
1645
- attr_accessor :type
1646
-
1647
- def initialize(amount: nil, type: nil)
1648
- @amount = amount
1649
- @type = type
1650
- end
1651
- end
1652
-
1653
- class Tax < ::Stripe::RequestParams
1654
- class Tax < ::Stripe::RequestParams
1655
- # Tax amount in cents.
1656
- attr_accessor :amount
1657
- # Tax rate.
1658
- attr_accessor :rate
1659
- # Type of tax applied.
1660
- attr_accessor :type
1661
-
1662
- def initialize(amount: nil, rate: nil, type: nil)
1663
- @amount = amount
1664
- @rate = rate
1665
- @type = type
1666
- end
1667
- end
1668
- # Indicates whether the transaction is tax exempt.
1669
- attr_accessor :tax_exempt_indicator
1670
- # Tax details.
1671
- attr_accessor :taxes
1672
-
1673
- def initialize(tax_exempt_indicator: nil, taxes: nil)
1674
- @tax_exempt_indicator = tax_exempt_indicator
1675
- @taxes = taxes
1676
- end
1677
- end
1678
- # Total price of the lodging reservation in cents.
1679
- attr_accessor :amount
1680
- # Cash advances in cents.
1681
- attr_accessor :cash_advances
1682
- # Currency of the total amount.
1683
- attr_accessor :currency
1684
- # Discount details for the lodging.
1685
- attr_accessor :discounts
1686
- # Additional charges for the lodging.
1687
- attr_accessor :extra_charges
1688
- # Prepaid amount in cents.
1689
- attr_accessor :prepaid_amount
1690
- # Tax breakdown for the lodging reservation.
1691
- attr_accessor :tax
1692
-
1693
- def initialize(
1694
- amount: nil,
1695
- cash_advances: nil,
1696
- currency: nil,
1697
- discounts: nil,
1698
- extra_charges: nil,
1699
- prepaid_amount: nil,
1700
- tax: nil
1701
- )
1702
- @amount = amount
1703
- @cash_advances = cash_advances
1704
- @currency = currency
1705
- @discounts = discounts
1706
- @extra_charges = extra_charges
1707
- @prepaid_amount = prepaid_amount
1708
- @tax = tax
1709
- end
1710
- end
1711
- # Accommodation details for the lodging.
1712
- attr_accessor :accommodation
1713
- # Affiliate details if applicable.
1714
- attr_accessor :affiliate
1715
- # Booking confirmation number for the lodging.
1716
- attr_accessor :booking_number
1717
- # Check-in date.
1718
- attr_accessor :checkin_at
1719
- # Check-out date.
1720
- attr_accessor :checkout_at
1721
- # Customer service phone number for the lodging company.
1722
- attr_accessor :customer_service_phone_number
1723
- # Whether the lodging is compliant with any hotel fire safety regulations.
1724
- attr_accessor :fire_safety_act_compliance_indicator
1725
- # List of guests for the lodging.
1726
- attr_accessor :guests
1727
- # Host details for the lodging.
1728
- attr_accessor :host
1729
- # List of insurances for the lodging.
1730
- attr_accessor :insurances
1731
- # Whether the renter is a no-show.
1732
- attr_accessor :no_show_indicator
1733
- # Renter ID number for the lodging.
1734
- attr_accessor :renter_id_number
1735
- # Renter name for the lodging.
1736
- attr_accessor :renter_name
1737
- # Total details for the lodging.
1738
- attr_accessor :total
1739
-
1740
- def initialize(
1741
- accommodation: nil,
1742
- affiliate: nil,
1743
- booking_number: nil,
1744
- checkin_at: nil,
1745
- checkout_at: nil,
1746
- customer_service_phone_number: nil,
1747
- fire_safety_act_compliance_indicator: nil,
1748
- guests: nil,
1749
- host: nil,
1750
- insurances: nil,
1751
- no_show_indicator: nil,
1752
- renter_id_number: nil,
1753
- renter_name: nil,
1754
- total: nil
1755
- )
1756
- @accommodation = accommodation
1757
- @affiliate = affiliate
1758
- @booking_number = booking_number
1759
- @checkin_at = checkin_at
1760
- @checkout_at = checkout_at
1761
- @customer_service_phone_number = customer_service_phone_number
1762
- @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1763
- @guests = guests
1764
- @host = host
1765
- @insurances = insurances
1766
- @no_show_indicator = no_show_indicator
1767
- @renter_id_number = renter_id_number
1768
- @renter_name = renter_name
1769
- @total = total
1770
- end
1771
- end
1772
-
1773
- class Subscription < ::Stripe::RequestParams
1774
- class Affiliate < ::Stripe::RequestParams
1775
- # The name of the affiliate that originated the purchase.
1776
- attr_accessor :name
1777
-
1778
- def initialize(name: nil)
1779
- @name = name
1780
- end
1781
- end
1782
-
1783
- class BillingInterval < ::Stripe::RequestParams
1784
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1785
- attr_accessor :count
1786
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1787
- attr_accessor :interval
1788
-
1789
- def initialize(count: nil, interval: nil)
1790
- @count = count
1791
- @interval = interval
1792
- end
1793
- end
1794
- # Affiliate details for this purchase.
1795
- attr_accessor :affiliate
1796
- # Info whether the subscription will be auto renewed upon expiry.
1797
- attr_accessor :auto_renewal
1798
- # Subscription billing details for this purchase.
1799
- attr_accessor :billing_interval
1800
- # Subscription end time. Measured in seconds since the Unix epoch.
1801
- attr_accessor :ends_at
1802
- # Name of the product on subscription. e.g. Apple Music Subscription
1803
- attr_accessor :name
1804
- # Subscription start time. Measured in seconds since the Unix epoch.
1805
- attr_accessor :starts_at
1806
-
1807
- def initialize(
1808
- affiliate: nil,
1809
- auto_renewal: nil,
1810
- billing_interval: nil,
1811
- ends_at: nil,
1812
- name: nil,
1813
- starts_at: nil
1814
- )
1815
- @affiliate = affiliate
1816
- @auto_renewal = auto_renewal
1817
- @billing_interval = billing_interval
1818
- @ends_at = ends_at
1819
- @name = name
1820
- @starts_at = starts_at
1821
- end
1822
- end
1823
- # Car rental details for this PaymentIntent.
1824
- attr_accessor :car_rental
1825
- # Car rental data for this PaymentIntent.
1826
- attr_accessor :car_rental_data
1827
216
  # A unique value to identify the customer. This field is available only for card payments.
1828
217
  #
1829
218
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1830
219
  attr_accessor :customer_reference
1831
- # Event details for this PaymentIntent
1832
- attr_accessor :event_details
1833
- # Flight reservation details for this PaymentIntent
1834
- attr_accessor :flight
1835
- # Flight data for this PaymentIntent.
1836
- attr_accessor :flight_data
1837
- # Lodging reservation details for this PaymentIntent
1838
- attr_accessor :lodging
1839
- # Lodging data for this PaymentIntent.
1840
- attr_accessor :lodging_data
1841
220
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1842
221
  #
1843
222
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1844
223
  attr_accessor :order_reference
1845
- # Subscription details for this PaymentIntent
1846
- attr_accessor :subscription
1847
224
 
1848
- def initialize(
1849
- car_rental: nil,
1850
- car_rental_data: nil,
1851
- customer_reference: nil,
1852
- event_details: nil,
1853
- flight: nil,
1854
- flight_data: nil,
1855
- lodging: nil,
1856
- lodging_data: nil,
1857
- order_reference: nil,
1858
- subscription: nil
1859
- )
1860
- @car_rental = car_rental
1861
- @car_rental_data = car_rental_data
225
+ def initialize(customer_reference: nil, order_reference: nil)
1862
226
  @customer_reference = customer_reference
1863
- @event_details = event_details
1864
- @flight = flight
1865
- @flight_data = flight_data
1866
- @lodging = lodging
1867
- @lodging_data = lodging_data
1868
227
  @order_reference = order_reference
1869
- @subscription = subscription
1870
228
  end
1871
229
  end
1872
230