stripe 19.2.0.pre.beta.2 → 19.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -36
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -87
  5. data/lib/stripe/event_types.rb +0 -228
  6. data/lib/stripe/object_types.rb +0 -61
  7. data/lib/stripe/params/account_create_params.rb +17 -364
  8. data/lib/stripe/params/account_session_create_params.rb +1 -226
  9. data/lib/stripe/params/account_update_params.rb +16 -326
  10. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  11. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  12. data/lib/stripe/params/charge_create_params.rb +4 -1
  13. data/lib/stripe/params/charge_update_params.rb +0 -1646
  14. data/lib/stripe/params/checkout/session_create_params.rb +31 -141
  15. data/lib/stripe/params/checkout/session_update_params.rb +1 -176
  16. data/lib/stripe/params/confirmation_token_create_params.rb +11 -79
  17. data/lib/stripe/params/coupon_create_params.rb +1 -17
  18. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  19. data/lib/stripe/params/dispute_update_params.rb +1 -10
  20. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
  21. data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
  22. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  23. data/lib/stripe/params/invoice_create_params.rb +2 -70
  24. data/lib/stripe/params/invoice_create_preview_params.rb +13 -790
  25. data/lib/stripe/params/invoice_item_create_params.rb +1 -33
  26. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  27. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
  28. data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
  29. data/lib/stripe/params/invoice_update_params.rb +2 -70
  30. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  31. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  32. data/lib/stripe/params/payment_intent_capture_params.rb +3 -1645
  33. data/lib/stripe/params/payment_intent_confirm_params.rb +136 -3038
  34. data/lib/stripe/params/payment_intent_create_params.rb +167 -3043
  35. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -39
  36. data/lib/stripe/params/payment_intent_update_params.rb +121 -3034
  37. data/lib/stripe/params/payment_link_create_params.rb +30 -16
  38. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  39. data/lib/stripe/params/payment_method_configuration_create_params.rb +24 -87
  40. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  41. data/lib/stripe/params/payment_method_configuration_update_params.rb +24 -87
  42. data/lib/stripe/params/payment_method_create_params.rb +11 -75
  43. data/lib/stripe/params/payout_create_params.rb +1 -1
  44. data/lib/stripe/params/plan_create_params.rb +0 -15
  45. data/lib/stripe/params/price_create_params.rb +0 -15
  46. data/lib/stripe/params/price_update_params.rb +0 -19
  47. data/lib/stripe/params/product_create_params.rb +0 -16
  48. data/lib/stripe/params/product_update_params.rb +0 -16
  49. data/lib/stripe/params/quote_create_params.rb +3 -809
  50. data/lib/stripe/params/quote_list_params.rb +0 -4
  51. data/lib/stripe/params/quote_update_params.rb +4 -817
  52. data/lib/stripe/params/setup_intent_confirm_params.rb +21 -110
  53. data/lib/stripe/params/setup_intent_create_params.rb +21 -110
  54. data/lib/stripe/params/setup_intent_update_params.rb +21 -110
  55. data/lib/stripe/params/subscription_create_params.rb +11 -181
  56. data/lib/stripe/params/subscription_item_create_params.rb +3 -69
  57. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  58. data/lib/stripe/params/subscription_item_update_params.rb +2 -52
  59. data/lib/stripe/params/subscription_schedule_create_params.rb +9 -167
  60. data/lib/stripe/params/subscription_schedule_update_params.rb +9 -167
  61. data/lib/stripe/params/subscription_update_params.rb +11 -161
  62. data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
  63. data/lib/stripe/params/tax/registration_create_params.rb +0 -104
  64. data/lib/stripe/params/terminal/configuration_create_params.rb +52 -13
  65. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -13
  66. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -79
  67. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  68. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  69. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  70. data/lib/stripe/params/transfer_create_params.rb +0 -4
  71. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  72. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  73. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  74. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  75. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
  76. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  77. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  78. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  79. data/lib/stripe/params/v2/core/account_create_params.rb +33 -288
  80. data/lib/stripe/params/v2/core/account_token_create_params.rb +28 -18
  81. data/lib/stripe/params/v2/core/account_update_params.rb +33 -281
  82. data/lib/stripe/params.rb +1342 -795
  83. data/lib/stripe/railtie.rb +8 -0
  84. data/lib/stripe/resources/account.rb +5 -259
  85. data/lib/stripe/resources/account_session.rb +0 -81
  86. data/lib/stripe/resources/balance.rb +0 -83
  87. data/lib/stripe/resources/balance_settings.rb +42 -2
  88. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  89. data/lib/stripe/resources/card.rb +0 -2
  90. data/lib/stripe/resources/charge.rb +36 -211
  91. data/lib/stripe/resources/checkout/session.rb +26 -82
  92. data/lib/stripe/resources/confirmation_token.rb +20 -125
  93. data/lib/stripe/resources/coupon.rb +1 -26
  94. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  95. data/lib/stripe/resources/customer_session.rb +0 -36
  96. data/lib/stripe/resources/discount.rb +2 -2
  97. data/lib/stripe/resources/dispute.rb +0 -22
  98. data/lib/stripe/resources/event.rb +1 -64
  99. data/lib/stripe/resources/financial_connections/account.rb +0 -57
  100. data/lib/stripe/resources/financial_connections/session.rb +1 -125
  101. data/lib/stripe/resources/invoice.rb +3 -117
  102. data/lib/stripe/resources/invoice_item.rb +34 -3
  103. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  104. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  105. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  106. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  107. data/lib/stripe/resources/line_item.rb +0 -42
  108. data/lib/stripe/resources/mandate.rb +13 -12
  109. data/lib/stripe/resources/payment_attempt_record.rb +41 -187
  110. data/lib/stripe/resources/payment_intent.rb +96 -1583
  111. data/lib/stripe/resources/payment_link.rb +40 -0
  112. data/lib/stripe/resources/payment_method.rb +21 -130
  113. data/lib/stripe/resources/payment_method_configuration.rb +20 -122
  114. data/lib/stripe/resources/payment_record.rb +41 -187
  115. data/lib/stripe/resources/price.rb +0 -20
  116. data/lib/stripe/resources/product.rb +0 -18
  117. data/lib/stripe/resources/quote.rb +2 -569
  118. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  119. data/lib/stripe/resources/refund.rb +13 -18
  120. data/lib/stripe/resources/reserve/hold.rb +0 -7
  121. data/lib/stripe/resources/reserve/release.rb +0 -12
  122. data/lib/stripe/resources/setup_attempt.rb +4 -26
  123. data/lib/stripe/resources/setup_intent.rb +27 -22
  124. data/lib/stripe/resources/source.rb +0 -38
  125. data/lib/stripe/resources/subscription.rb +10 -107
  126. data/lib/stripe/resources/subscription_item.rb +1 -41
  127. data/lib/stripe/resources/subscription_schedule.rb +5 -198
  128. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  129. data/lib/stripe/resources/tax/registration.rb +0 -128
  130. data/lib/stripe/resources/tax_code.rb +1 -15
  131. data/lib/stripe/resources/terminal/configuration.rb +64 -16
  132. data/lib/stripe/resources/terminal/reader.rb +116 -8
  133. data/lib/stripe/resources/transfer.rb +0 -2
  134. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  135. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  136. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
  137. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  138. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  139. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  140. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +1 -1
  141. data/lib/stripe/resources/v2/core/account.rb +40 -607
  142. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  143. data/lib/stripe/resources/v2/core/event.rb +1 -0
  144. data/lib/stripe/resources.rb +500 -301
  145. data/lib/stripe/services/account_service.rb +0 -15
  146. data/lib/stripe/services/billing_service.rb +1 -2
  147. data/lib/stripe/services/credit_note_service.rb +0 -14
  148. data/lib/stripe/services/customer_service.rb +0 -15
  149. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  150. data/lib/stripe/services/financial_connections_service.rb +1 -3
  151. data/lib/stripe/services/invoice_service.rb +0 -41
  152. data/lib/stripe/services/issuing_service.rb +1 -5
  153. data/lib/stripe/services/mandate_service.rb +0 -5
  154. data/lib/stripe/services/payment_intent_service.rb +3 -38
  155. data/lib/stripe/services/promotion_code_service.rb +0 -29
  156. data/lib/stripe/services/quote_service.rb +1 -49
  157. data/lib/stripe/services/subscription_schedule_service.rb +0 -55
  158. data/lib/stripe/services/subscription_service.rb +2 -32
  159. data/lib/stripe/services/tax_service.rb +1 -3
  160. data/lib/stripe/services/terminal_service.rb +1 -2
  161. data/lib/stripe/services/test_helpers_service.rb +1 -2
  162. data/lib/stripe/services/v1_services.rb +1 -11
  163. data/lib/stripe/services/v2/billing_service.rb +1 -5
  164. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  165. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  166. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  167. data/lib/stripe/services/v2/core_service.rb +1 -3
  168. data/lib/stripe/services/v2_services.rb +1 -8
  169. data/lib/stripe/services.rb +469 -268
  170. data/lib/stripe/stripe_client.rb +1 -8
  171. data/lib/stripe/stripe_configuration.rb +1 -3
  172. data/lib/stripe/stripe_object.rb +1 -1
  173. data/lib/stripe/util.rb +1 -7
  174. data/lib/stripe/version.rb +1 -1
  175. data/lib/stripe.rb +25 -58
  176. data/rbi/stripe/stripe_client.rbi +0 -13
  177. data/rbi/stripe.rbi +53183 -118054
  178. metadata +5 -377
  179. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  180. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  181. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  182. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  183. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  184. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  185. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  186. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  187. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  188. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  189. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  190. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
  191. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  192. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
  193. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
  194. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
  195. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
  196. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
  197. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
  198. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  203. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  205. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  220. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  221. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  222. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
  223. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  224. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  225. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  226. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  227. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  228. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  229. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  230. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  231. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  232. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  233. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
  234. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  235. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
  236. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
  237. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
  238. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
  239. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  240. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  241. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  242. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  243. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  244. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  245. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  246. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  247. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  248. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  249. data/lib/stripe/params/external_account_create_params.rb +0 -134
  250. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  251. data/lib/stripe/params/external_account_list_params.rb +0 -25
  252. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  253. data/lib/stripe/params/external_account_update_params.rb +0 -91
  254. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  255. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  257. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  258. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  259. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  260. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  261. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  262. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  263. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  264. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  265. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  266. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  267. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  269. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  270. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  271. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  272. data/lib/stripe/params/mandate_list_params.rb +0 -39
  273. data/lib/stripe/params/margin_create_params.rb +0 -25
  274. data/lib/stripe/params/margin_list_params.rb +0 -25
  275. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  276. data/lib/stripe/params/margin_update_params.rb +0 -22
  277. data/lib/stripe/params/order_create_params.rb +0 -2083
  278. data/lib/stripe/params/order_list_params.rb +0 -25
  279. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  280. data/lib/stripe/params/order_submit_params.rb +0 -16
  281. data/lib/stripe/params/order_update_params.rb +0 -2087
  282. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  283. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  284. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  285. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  286. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  287. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  288. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  290. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  291. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  292. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
  293. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  294. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  295. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  296. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  297. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  298. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  299. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  300. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  301. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  302. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  303. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  304. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  305. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  307. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  308. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  309. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
  310. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  311. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  312. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  313. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  314. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  315. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  316. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  317. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  318. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  319. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  320. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  321. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  322. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  323. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  324. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  325. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  326. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  327. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  328. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  329. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  330. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  331. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  332. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  333. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
  334. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  335. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  336. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
  337. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  338. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  339. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  340. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  341. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  342. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  343. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
  344. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
  345. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
  346. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  347. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  348. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
  349. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  350. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  351. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  352. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  353. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  354. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
  355. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  356. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  357. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  358. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  359. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
  360. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
  361. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
  362. data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
  363. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
  364. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
  365. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
  366. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
  367. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  368. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  369. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  370. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  371. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  372. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  374. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  375. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  376. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  377. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  378. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  379. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  380. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  381. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
  382. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  383. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  384. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  385. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  386. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
  388. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  389. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  390. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -87
  391. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  392. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  393. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  394. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  395. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  396. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  397. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  398. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  399. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  400. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  401. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  402. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  403. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  404. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  405. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  406. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  407. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  408. data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
  409. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
  410. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
  411. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
  412. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
  413. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
  414. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
  415. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  416. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  417. data/lib/stripe/resources/account_notice.rb +0 -94
  418. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  419. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  420. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  421. data/lib/stripe/resources/capital/financing_summary.rb +0 -82
  422. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  423. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  424. data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
  425. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  426. data/lib/stripe/resources/fx_quote.rb +0 -147
  427. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  428. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  429. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  430. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  431. data/lib/stripe/resources/margin.rb +0 -64
  432. data/lib/stripe/resources/order.rb +0 -927
  433. data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
  434. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  435. data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
  436. data/lib/stripe/resources/quote_line.rb +0 -525
  437. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1181
  438. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -734
  439. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1766
  440. data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
  441. data/lib/stripe/resources/tax/form.rb +0 -264
  442. data/lib/stripe/resources/tax/location.rb +0 -72
  443. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  444. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  445. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
  446. data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
  447. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
  448. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
  449. data/lib/stripe/resources/v2/billing/profile.rb +0 -47
  450. data/lib/stripe/resources/v2/core/batch_job.rb +0 -492
  451. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
  452. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
  453. data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
  454. data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
  455. data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
  456. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
  457. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
  458. data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
  459. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  460. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  461. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
  462. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
  463. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
  464. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  465. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  466. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  467. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
  468. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
  469. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
  470. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  471. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
  472. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  473. data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
  474. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
  475. data/lib/stripe/services/account_notice_service.rb +0 -39
  476. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  477. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  478. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  479. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  480. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  481. data/lib/stripe/services/capital_service.rb +0 -15
  482. data/lib/stripe/services/external_account_service.rb +0 -68
  483. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  484. data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
  485. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  486. data/lib/stripe/services/fx_quote_service.rb +0 -27
  487. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  488. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  489. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  490. data/lib/stripe/services/margin_service.rb +0 -50
  491. data/lib/stripe/services/order_service.rb +0 -53
  492. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  493. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  494. data/lib/stripe/services/privacy_service.rb +0 -13
  495. data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
  496. data/lib/stripe/services/product_catalog_service.rb +0 -13
  497. data/lib/stripe/services/quote_line_service.rb +0 -17
  498. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  499. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  500. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  501. data/lib/stripe/services/reserve/plan_service.rb +0 -19
  502. data/lib/stripe/services/reserve/release_service.rb +0 -30
  503. data/lib/stripe/services/reserve_service.rb +0 -15
  504. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  505. data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
  506. data/lib/stripe/services/shared_payment_service.rb +0 -14
  507. data/lib/stripe/services/tax/form_service.rb +0 -37
  508. data/lib/stripe/services/tax/location_service.rb +0 -45
  509. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  510. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  511. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  512. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  513. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  514. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  515. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
  516. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  517. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  518. data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
  519. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  520. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  521. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  522. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
  523. data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
  524. data/lib/stripe/services/v2/datum_service.rb +0 -15
  525. data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
  526. data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
  527. data/lib/stripe/services/v2/extend_service.rb +0 -16
  528. data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -21
  529. data/lib/stripe/services/v2/iam_service.rb +0 -15
  530. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  531. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  532. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  533. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  534. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  535. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  536. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
  537. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  538. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -66
  539. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  540. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  541. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  542. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  543. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  544. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  545. data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
  546. data/lib/stripe/services/v2/network_service.rb +0 -15
  547. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
  548. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
  549. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  550. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
  551. data/lib/stripe/stripe_event_notification_handler.rb +0 -581
@@ -1,1181 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # Invoices are statements of amounts owed by a customer, and are either
6
- # generated one-off, or generated periodically from a subscription.
7
- #
8
- # They contain [invoice items](https://api.stripe.com#invoiceitems), and proration adjustments
9
- # that may be caused by subscription upgrades/downgrades (if necessary).
10
- #
11
- # If your invoice is configured to be billed through automatic charges,
12
- # Stripe automatically finalizes your invoice and attempts payment. Note
13
- # that finalizing the invoice,
14
- # [when automatic](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection), does
15
- # not happen immediately as the invoice is created. Stripe waits
16
- # until one hour after the last webhook was successfully sent (or the last
17
- # webhook timed out after failing). If you (and the platforms you may have
18
- # connected to) have no webhooks configured, Stripe waits one hour after
19
- # creation to finalize the invoice.
20
- #
21
- # If your invoice is configured to be billed by sending an email, then based on your
22
- # [email settings](https://dashboard.stripe.com/account/billing/automatic),
23
- # Stripe will email the invoice to your customer and await payment. These
24
- # emails can contain a link to a hosted page to pay the invoice.
25
- #
26
- # Stripe applies any customer credit on the account before determining the
27
- # amount due for the invoice (i.e., the amount that will be actually
28
- # charged). If the amount due for the invoice is less than Stripe's [minimum allowed charge
29
- # per currency](https://docs.stripe.com/docs/currencies#minimum-and-maximum-charge-amounts), the
30
- # invoice is automatically marked paid, and we add the amount due to the
31
- # customer's credit balance which is applied to the next invoice.
32
- #
33
- # More details on the customer's credit balance are
34
- # [here](https://docs.stripe.com/billing/customer/balance).
35
- #
36
- # Related guide: [Send invoices to customers](https://docs.stripe.com/billing/invoices/sending)
37
- class QuotePreviewInvoice < APIResource
38
- OBJECT_NAME = "quote_preview_invoice"
39
- def self.object_name
40
- "quote_preview_invoice"
41
- end
42
-
43
- class AmountsDue < ::Stripe::StripeObject
44
- # Incremental amount due for this payment in cents (or local equivalent).
45
- attr_reader :amount
46
- # The amount in cents (or local equivalent) that was paid for this payment.
47
- attr_reader :amount_paid
48
- # The difference between the payment’s amount and amount_paid, in cents (or local equivalent).
49
- attr_reader :amount_remaining
50
- # Number of days from when invoice is finalized until the payment is due.
51
- attr_reader :days_until_due
52
- # An arbitrary string attached to the object. Often useful for displaying to users.
53
- attr_reader :description
54
- # Date on which a payment plan’s payment is due.
55
- attr_reader :due_date
56
- # Timestamp when the payment was paid.
57
- attr_reader :paid_at
58
- # The status of the payment, one of `open`, `paid`, or `past_due`
59
- attr_reader :status
60
-
61
- def self.inner_class_types
62
- @inner_class_types = {}
63
- end
64
-
65
- def self.field_remappings
66
- @field_remappings = {}
67
- end
68
- end
69
-
70
- class AppliesTo < ::Stripe::StripeObject
71
- # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
72
- attr_reader :new_reference
73
- # The ID of the schedule the line applies to.
74
- attr_reader :subscription_schedule
75
- # Describes whether the quote line is affecting a new schedule or an existing schedule.
76
- attr_reader :type
77
-
78
- def self.inner_class_types
79
- @inner_class_types = {}
80
- end
81
-
82
- def self.field_remappings
83
- @field_remappings = {}
84
- end
85
- end
86
-
87
- class AutomaticTax < ::Stripe::StripeObject
88
- class Liability < ::Stripe::StripeObject
89
- # The connected account being referenced when `type` is `account`.
90
- attr_reader :account
91
- # Type of the account referenced.
92
- attr_reader :type
93
-
94
- def self.inner_class_types
95
- @inner_class_types = {}
96
- end
97
-
98
- def self.field_remappings
99
- @field_remappings = {}
100
- end
101
- end
102
- # If Stripe disabled automatic tax, this enum describes why.
103
- attr_reader :disabled_reason
104
- # Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
105
- attr_reader :enabled
106
- # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
107
- attr_reader :liability
108
- # The tax provider powering automatic tax.
109
- attr_reader :provider
110
- # The status of the most recent automated tax calculation for this invoice.
111
- attr_reader :status
112
-
113
- def self.inner_class_types
114
- @inner_class_types = { liability: Liability }
115
- end
116
-
117
- def self.field_remappings
118
- @field_remappings = {}
119
- end
120
- end
121
-
122
- class ConfirmationSecret < ::Stripe::StripeObject
123
- # The client_secret of the payment that Stripe creates for the invoice after finalization.
124
- attr_reader :client_secret
125
- # The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
126
- attr_reader :type
127
-
128
- def self.inner_class_types
129
- @inner_class_types = {}
130
- end
131
-
132
- def self.field_remappings
133
- @field_remappings = {}
134
- end
135
- end
136
-
137
- class CustomField < ::Stripe::StripeObject
138
- # The name of the custom field.
139
- attr_reader :name
140
- # The value of the custom field.
141
- attr_reader :value
142
-
143
- def self.inner_class_types
144
- @inner_class_types = {}
145
- end
146
-
147
- def self.field_remappings
148
- @field_remappings = {}
149
- end
150
- end
151
-
152
- class CustomerAddress < ::Stripe::StripeObject
153
- # City, district, suburb, town, or village.
154
- attr_reader :city
155
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
156
- attr_reader :country
157
- # Address line 1, such as the street, PO Box, or company name.
158
- attr_reader :line1
159
- # Address line 2, such as the apartment, suite, unit, or building.
160
- attr_reader :line2
161
- # ZIP or postal code.
162
- attr_reader :postal_code
163
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
164
- attr_reader :state
165
-
166
- def self.inner_class_types
167
- @inner_class_types = {}
168
- end
169
-
170
- def self.field_remappings
171
- @field_remappings = {}
172
- end
173
- end
174
-
175
- class CustomerShipping < ::Stripe::StripeObject
176
- class Address < ::Stripe::StripeObject
177
- # City, district, suburb, town, or village.
178
- attr_reader :city
179
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
180
- attr_reader :country
181
- # Address line 1, such as the street, PO Box, or company name.
182
- attr_reader :line1
183
- # Address line 2, such as the apartment, suite, unit, or building.
184
- attr_reader :line2
185
- # ZIP or postal code.
186
- attr_reader :postal_code
187
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
188
- attr_reader :state
189
-
190
- def self.inner_class_types
191
- @inner_class_types = {}
192
- end
193
-
194
- def self.field_remappings
195
- @field_remappings = {}
196
- end
197
- end
198
- # Attribute for field address
199
- attr_reader :address
200
- # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
201
- attr_reader :carrier
202
- # Recipient name.
203
- attr_reader :name
204
- # Recipient phone (including extension).
205
- attr_reader :phone
206
- # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
207
- attr_reader :tracking_number
208
-
209
- def self.inner_class_types
210
- @inner_class_types = { address: Address }
211
- end
212
-
213
- def self.field_remappings
214
- @field_remappings = {}
215
- end
216
- end
217
-
218
- class CustomerTaxId < ::Stripe::StripeObject
219
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
220
- attr_reader :type
221
- # The value of the tax ID.
222
- attr_reader :value
223
-
224
- def self.inner_class_types
225
- @inner_class_types = {}
226
- end
227
-
228
- def self.field_remappings
229
- @field_remappings = {}
230
- end
231
- end
232
-
233
- class FromInvoice < ::Stripe::StripeObject
234
- # The relation between this invoice and the cloned invoice
235
- attr_reader :action
236
- # The invoice that was cloned.
237
- attr_reader :invoice
238
-
239
- def self.inner_class_types
240
- @inner_class_types = {}
241
- end
242
-
243
- def self.field_remappings
244
- @field_remappings = {}
245
- end
246
- end
247
-
248
- class Issuer < ::Stripe::StripeObject
249
- # The connected account being referenced when `type` is `account`.
250
- attr_reader :account
251
- # Type of the account referenced.
252
- attr_reader :type
253
-
254
- def self.inner_class_types
255
- @inner_class_types = {}
256
- end
257
-
258
- def self.field_remappings
259
- @field_remappings = {}
260
- end
261
- end
262
-
263
- class LastFinalizationError < ::Stripe::StripeObject
264
- # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
265
- attr_reader :advice_code
266
- # For card errors, the ID of the failed charge.
267
- attr_reader :charge
268
- # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
269
- attr_reader :code
270
- # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
271
- attr_reader :decline_code
272
- # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
273
- attr_reader :doc_url
274
- # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
275
- attr_reader :message
276
- # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
277
- attr_reader :network_advice_code
278
- # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
279
- attr_reader :network_decline_code
280
- # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
281
- attr_reader :param
282
- # A PaymentIntent guides you through the process of collecting a payment from your customer.
283
- # We recommend that you create exactly one PaymentIntent for each order or
284
- # customer session in your system. You can reference the PaymentIntent later to
285
- # see the history of payment attempts for a particular session.
286
- #
287
- # A PaymentIntent transitions through
288
- # [multiple statuses](/payments/paymentintents/lifecycle)
289
- # throughout its lifetime as it interfaces with Stripe.js to perform
290
- # authentication flows and ultimately creates at most one successful charge.
291
- #
292
- # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
293
- attr_reader :payment_intent
294
- # PaymentMethod objects represent your customer's payment instruments.
295
- # You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
296
- # Customer objects to store instrument details for future payments.
297
- #
298
- # Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
299
- attr_reader :payment_method
300
- # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
301
- attr_reader :payment_method_type
302
- # A URL to the request log entry in your dashboard.
303
- attr_reader :request_log_url
304
- # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
305
- # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
306
- # Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
307
- #
308
- # Create a SetupIntent when you're ready to collect your customer's payment credentials.
309
- # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
310
- # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
311
- # you through the setup process.
312
- #
313
- # Successful SetupIntents result in payment credentials that are optimized for future payments.
314
- # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
315
- # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
316
- # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
317
- # If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
318
- # it automatically attaches the resulting payment method to that Customer after successful setup.
319
- # We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
320
- # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
321
- #
322
- # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
323
- #
324
- # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
325
- attr_reader :setup_intent
326
- # Attribute for field source
327
- attr_reader :source
328
- # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
329
- attr_reader :type
330
-
331
- def self.inner_class_types
332
- @inner_class_types = {}
333
- end
334
-
335
- def self.field_remappings
336
- @field_remappings = {}
337
- end
338
- end
339
-
340
- class Parent < ::Stripe::StripeObject
341
- class QuoteDetails < ::Stripe::StripeObject
342
- # The quote that generated this invoice
343
- attr_reader :quote
344
-
345
- def self.inner_class_types
346
- @inner_class_types = {}
347
- end
348
-
349
- def self.field_remappings
350
- @field_remappings = {}
351
- end
352
- end
353
-
354
- class SubscriptionDetails < ::Stripe::StripeObject
355
- class PauseCollection < ::Stripe::StripeObject
356
- # The payment collection behavior for this subscription while paused.
357
- attr_reader :behavior
358
- # The time after which the subscription will resume collecting payments.
359
- attr_reader :resumes_at
360
-
361
- def self.inner_class_types
362
- @inner_class_types = {}
363
- end
364
-
365
- def self.field_remappings
366
- @field_remappings = {}
367
- end
368
- end
369
- # Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
370
- # *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
371
- attr_reader :metadata
372
- # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
373
- attr_reader :pause_collection
374
- # The subscription that generated this invoice
375
- attr_reader :subscription
376
- # Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
377
- attr_reader :subscription_proration_date
378
-
379
- def self.inner_class_types
380
- @inner_class_types = { pause_collection: PauseCollection }
381
- end
382
-
383
- def self.field_remappings
384
- @field_remappings = {}
385
- end
386
- end
387
- # Details about the quote that generated this invoice
388
- attr_reader :quote_details
389
- # Details about the subscription that generated this invoice
390
- attr_reader :subscription_details
391
- # The type of parent that generated this invoice
392
- attr_reader :type
393
-
394
- def self.inner_class_types
395
- @inner_class_types = {
396
- quote_details: QuoteDetails,
397
- subscription_details: SubscriptionDetails,
398
- }
399
- end
400
-
401
- def self.field_remappings
402
- @field_remappings = {}
403
- end
404
- end
405
-
406
- class PaymentSettings < ::Stripe::StripeObject
407
- class PaymentMethodOptions < ::Stripe::StripeObject
408
- class AcssDebit < ::Stripe::StripeObject
409
- class MandateOptions < ::Stripe::StripeObject
410
- # Transaction type of the mandate.
411
- attr_reader :transaction_type
412
-
413
- def self.inner_class_types
414
- @inner_class_types = {}
415
- end
416
-
417
- def self.field_remappings
418
- @field_remappings = {}
419
- end
420
- end
421
- # Attribute for field mandate_options
422
- attr_reader :mandate_options
423
- # Bank account verification method. The default value is `automatic`.
424
- attr_reader :verification_method
425
-
426
- def self.inner_class_types
427
- @inner_class_types = { mandate_options: MandateOptions }
428
- end
429
-
430
- def self.field_remappings
431
- @field_remappings = {}
432
- end
433
- end
434
-
435
- class Bancontact < ::Stripe::StripeObject
436
- # Preferred language of the Bancontact authorization page that the customer is redirected to.
437
- attr_reader :preferred_language
438
-
439
- def self.inner_class_types
440
- @inner_class_types = {}
441
- end
442
-
443
- def self.field_remappings
444
- @field_remappings = {}
445
- end
446
- end
447
-
448
- class Blik < ::Stripe::StripeObject
449
- def self.inner_class_types
450
- @inner_class_types = {}
451
- end
452
-
453
- def self.field_remappings
454
- @field_remappings = {}
455
- end
456
- end
457
-
458
- class Card < ::Stripe::StripeObject
459
- class Installments < ::Stripe::StripeObject
460
- # Whether Installments are enabled for this Invoice.
461
- attr_reader :enabled
462
-
463
- def self.inner_class_types
464
- @inner_class_types = {}
465
- end
466
-
467
- def self.field_remappings
468
- @field_remappings = {}
469
- end
470
- end
471
- # Attribute for field installments
472
- attr_reader :installments
473
- # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
474
- attr_reader :request_three_d_secure
475
-
476
- def self.inner_class_types
477
- @inner_class_types = { installments: Installments }
478
- end
479
-
480
- def self.field_remappings
481
- @field_remappings = {}
482
- end
483
- end
484
-
485
- class CustomerBalance < ::Stripe::StripeObject
486
- class BankTransfer < ::Stripe::StripeObject
487
- class EuBankTransfer < ::Stripe::StripeObject
488
- # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
489
- attr_reader :country
490
-
491
- def self.inner_class_types
492
- @inner_class_types = {}
493
- end
494
-
495
- def self.field_remappings
496
- @field_remappings = {}
497
- end
498
- end
499
- # Attribute for field eu_bank_transfer
500
- attr_reader :eu_bank_transfer
501
- # The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
502
- attr_reader :type
503
-
504
- def self.inner_class_types
505
- @inner_class_types = { eu_bank_transfer: EuBankTransfer }
506
- end
507
-
508
- def self.field_remappings
509
- @field_remappings = {}
510
- end
511
- end
512
- # Attribute for field bank_transfer
513
- attr_reader :bank_transfer
514
- # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
515
- attr_reader :funding_type
516
-
517
- def self.inner_class_types
518
- @inner_class_types = { bank_transfer: BankTransfer }
519
- end
520
-
521
- def self.field_remappings
522
- @field_remappings = {}
523
- end
524
- end
525
-
526
- class IdBankTransfer < ::Stripe::StripeObject
527
- def self.inner_class_types
528
- @inner_class_types = {}
529
- end
530
-
531
- def self.field_remappings
532
- @field_remappings = {}
533
- end
534
- end
535
-
536
- class Konbini < ::Stripe::StripeObject
537
- def self.inner_class_types
538
- @inner_class_types = {}
539
- end
540
-
541
- def self.field_remappings
542
- @field_remappings = {}
543
- end
544
- end
545
-
546
- class Payto < ::Stripe::StripeObject
547
- class MandateOptions < ::Stripe::StripeObject
548
- # The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
549
- attr_reader :amount
550
- # Only `maximum` is supported.
551
- attr_reader :amount_type
552
- # The purpose for which payments are made. Has a default value based on your merchant category code.
553
- attr_reader :purpose
554
-
555
- def self.inner_class_types
556
- @inner_class_types = {}
557
- end
558
-
559
- def self.field_remappings
560
- @field_remappings = {}
561
- end
562
- end
563
- # Attribute for field mandate_options
564
- attr_reader :mandate_options
565
-
566
- def self.inner_class_types
567
- @inner_class_types = { mandate_options: MandateOptions }
568
- end
569
-
570
- def self.field_remappings
571
- @field_remappings = {}
572
- end
573
- end
574
-
575
- class Pix < ::Stripe::StripeObject
576
- # Determines if the amount includes the IOF tax.
577
- attr_reader :amount_includes_iof
578
- # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
579
- attr_reader :expires_after_seconds
580
-
581
- def self.inner_class_types
582
- @inner_class_types = {}
583
- end
584
-
585
- def self.field_remappings
586
- @field_remappings = {}
587
- end
588
- end
589
-
590
- class SepaDebit < ::Stripe::StripeObject
591
- def self.inner_class_types
592
- @inner_class_types = {}
593
- end
594
-
595
- def self.field_remappings
596
- @field_remappings = {}
597
- end
598
- end
599
-
600
- class Upi < ::Stripe::StripeObject
601
- class MandateOptions < ::Stripe::StripeObject
602
- # Amount to be charged for future payments.
603
- attr_reader :amount
604
- # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
605
- attr_reader :amount_type
606
- # A description of the mandate or subscription that is meant to be displayed to the customer.
607
- attr_reader :description
608
- # End date of the mandate or subscription.
609
- attr_reader :end_date
610
-
611
- def self.inner_class_types
612
- @inner_class_types = {}
613
- end
614
-
615
- def self.field_remappings
616
- @field_remappings = {}
617
- end
618
- end
619
- # Attribute for field mandate_options
620
- attr_reader :mandate_options
621
-
622
- def self.inner_class_types
623
- @inner_class_types = { mandate_options: MandateOptions }
624
- end
625
-
626
- def self.field_remappings
627
- @field_remappings = {}
628
- end
629
- end
630
-
631
- class UsBankAccount < ::Stripe::StripeObject
632
- class FinancialConnections < ::Stripe::StripeObject
633
- class Filters < ::Stripe::StripeObject
634
- # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
635
- attr_reader :account_subcategories
636
- # The institution to use to filter for possible accounts to link.
637
- attr_reader :institution
638
-
639
- def self.inner_class_types
640
- @inner_class_types = {}
641
- end
642
-
643
- def self.field_remappings
644
- @field_remappings = {}
645
- end
646
- end
647
- # Attribute for field filters
648
- attr_reader :filters
649
- # The list of permissions to request. The `payment_method` permission must be included.
650
- attr_reader :permissions
651
- # Data features requested to be retrieved upon account creation.
652
- attr_reader :prefetch
653
-
654
- def self.inner_class_types
655
- @inner_class_types = { filters: Filters }
656
- end
657
-
658
- def self.field_remappings
659
- @field_remappings = {}
660
- end
661
- end
662
- # Attribute for field financial_connections
663
- attr_reader :financial_connections
664
- # Bank account verification method. The default value is `automatic`.
665
- attr_reader :verification_method
666
-
667
- def self.inner_class_types
668
- @inner_class_types = { financial_connections: FinancialConnections }
669
- end
670
-
671
- def self.field_remappings
672
- @field_remappings = {}
673
- end
674
- end
675
- # If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
676
- attr_reader :acss_debit
677
- # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
678
- attr_reader :bancontact
679
- # If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.
680
- attr_reader :blik
681
- # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
682
- attr_reader :card
683
- # If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
684
- attr_reader :customer_balance
685
- # If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
686
- attr_reader :id_bank_transfer
687
- # If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
688
- attr_reader :konbini
689
- # If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
690
- attr_reader :payto
691
- # If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
692
- attr_reader :pix
693
- # If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
694
- attr_reader :sepa_debit
695
- # If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
696
- attr_reader :upi
697
- # If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
698
- attr_reader :us_bank_account
699
-
700
- def self.inner_class_types
701
- @inner_class_types = {
702
- acss_debit: AcssDebit,
703
- bancontact: Bancontact,
704
- blik: Blik,
705
- card: Card,
706
- customer_balance: CustomerBalance,
707
- id_bank_transfer: IdBankTransfer,
708
- konbini: Konbini,
709
- payto: Payto,
710
- pix: Pix,
711
- sepa_debit: SepaDebit,
712
- upi: Upi,
713
- us_bank_account: UsBankAccount,
714
- }
715
- end
716
-
717
- def self.field_remappings
718
- @field_remappings = {}
719
- end
720
- end
721
- # ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
722
- attr_reader :default_mandate
723
- # Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
724
- attr_reader :payment_method_options
725
- # The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
726
- attr_reader :payment_method_types
727
-
728
- def self.inner_class_types
729
- @inner_class_types = { payment_method_options: PaymentMethodOptions }
730
- end
731
-
732
- def self.field_remappings
733
- @field_remappings = {}
734
- end
735
- end
736
-
737
- class Rendering < ::Stripe::StripeObject
738
- class Pdf < ::Stripe::StripeObject
739
- # Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
740
- attr_reader :page_size
741
-
742
- def self.inner_class_types
743
- @inner_class_types = {}
744
- end
745
-
746
- def self.field_remappings
747
- @field_remappings = {}
748
- end
749
- end
750
- # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
751
- attr_reader :amount_tax_display
752
- # Invoice pdf rendering options
753
- attr_reader :pdf
754
- # ID of the rendering template that the invoice is formatted by.
755
- attr_reader :template
756
- # Version of the rendering template that the invoice is using.
757
- attr_reader :template_version
758
-
759
- def self.inner_class_types
760
- @inner_class_types = { pdf: Pdf }
761
- end
762
-
763
- def self.field_remappings
764
- @field_remappings = {}
765
- end
766
- end
767
-
768
- class ShippingCost < ::Stripe::StripeObject
769
- class Tax < ::Stripe::StripeObject
770
- # Amount of tax applied for this rate.
771
- attr_reader :amount
772
- # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
773
- #
774
- # Related guide: [Tax rates](/billing/taxes/tax-rates)
775
- attr_reader :rate
776
- # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
777
- attr_reader :taxability_reason
778
- # The amount on which tax is calculated, in cents (or local equivalent).
779
- attr_reader :taxable_amount
780
-
781
- def self.inner_class_types
782
- @inner_class_types = {}
783
- end
784
-
785
- def self.field_remappings
786
- @field_remappings = {}
787
- end
788
- end
789
- # Total shipping cost before any taxes are applied.
790
- attr_reader :amount_subtotal
791
- # Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
792
- attr_reader :amount_tax
793
- # Total shipping cost after taxes are applied.
794
- attr_reader :amount_total
795
- # The ID of the ShippingRate for this invoice.
796
- attr_reader :shipping_rate
797
- # The taxes applied to the shipping rate.
798
- attr_reader :taxes
799
-
800
- def self.inner_class_types
801
- @inner_class_types = { taxes: Tax }
802
- end
803
-
804
- def self.field_remappings
805
- @field_remappings = {}
806
- end
807
- end
808
-
809
- class ShippingDetails < ::Stripe::StripeObject
810
- class Address < ::Stripe::StripeObject
811
- # City, district, suburb, town, or village.
812
- attr_reader :city
813
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
814
- attr_reader :country
815
- # Address line 1, such as the street, PO Box, or company name.
816
- attr_reader :line1
817
- # Address line 2, such as the apartment, suite, unit, or building.
818
- attr_reader :line2
819
- # ZIP or postal code.
820
- attr_reader :postal_code
821
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
822
- attr_reader :state
823
-
824
- def self.inner_class_types
825
- @inner_class_types = {}
826
- end
827
-
828
- def self.field_remappings
829
- @field_remappings = {}
830
- end
831
- end
832
- # Attribute for field address
833
- attr_reader :address
834
- # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
835
- attr_reader :carrier
836
- # Recipient name.
837
- attr_reader :name
838
- # Recipient phone (including extension).
839
- attr_reader :phone
840
- # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
841
- attr_reader :tracking_number
842
-
843
- def self.inner_class_types
844
- @inner_class_types = { address: Address }
845
- end
846
-
847
- def self.field_remappings
848
- @field_remappings = {}
849
- end
850
- end
851
-
852
- class StatusTransitions < ::Stripe::StripeObject
853
- # The time that the invoice draft was finalized.
854
- attr_reader :finalized_at
855
- # The time that the invoice was marked uncollectible.
856
- attr_reader :marked_uncollectible_at
857
- # The time that the invoice was paid.
858
- attr_reader :paid_at
859
- # The time that the invoice was voided.
860
- attr_reader :voided_at
861
-
862
- def self.inner_class_types
863
- @inner_class_types = {}
864
- end
865
-
866
- def self.field_remappings
867
- @field_remappings = {}
868
- end
869
- end
870
-
871
- class ThresholdReason < ::Stripe::StripeObject
872
- class ItemReason < ::Stripe::StripeObject
873
- # The IDs of the line items that triggered the threshold invoice.
874
- attr_reader :line_item_ids
875
- # The quantity threshold boundary that applied to the given line item.
876
- attr_reader :usage_gte
877
-
878
- def self.inner_class_types
879
- @inner_class_types = {}
880
- end
881
-
882
- def self.field_remappings
883
- @field_remappings = {}
884
- end
885
- end
886
- # The total invoice amount threshold boundary if it triggered the threshold invoice.
887
- attr_reader :amount_gte
888
- # Indicates which line items triggered a threshold invoice.
889
- attr_reader :item_reasons
890
-
891
- def self.inner_class_types
892
- @inner_class_types = { item_reasons: ItemReason }
893
- end
894
-
895
- def self.field_remappings
896
- @field_remappings = {}
897
- end
898
- end
899
-
900
- class TotalDiscountAmount < ::Stripe::StripeObject
901
- # The amount, in cents (or local equivalent), of the discount.
902
- attr_reader :amount
903
- # The discount that was applied to get this discount amount.
904
- attr_reader :discount
905
-
906
- def self.inner_class_types
907
- @inner_class_types = {}
908
- end
909
-
910
- def self.field_remappings
911
- @field_remappings = {}
912
- end
913
- end
914
-
915
- class TotalMarginAmount < ::Stripe::StripeObject
916
- # The amount, in cents (or local equivalent), of the reduction in line item amount.
917
- attr_reader :amount
918
- # The margin that was applied to get this margin amount.
919
- attr_reader :margin
920
-
921
- def self.inner_class_types
922
- @inner_class_types = {}
923
- end
924
-
925
- def self.field_remappings
926
- @field_remappings = {}
927
- end
928
- end
929
-
930
- class TotalPretaxCreditAmount < ::Stripe::StripeObject
931
- # The amount, in cents (or local equivalent), of the pretax credit amount.
932
- attr_reader :amount
933
- # The credit balance transaction that was applied to get this pretax credit amount.
934
- attr_reader :credit_balance_transaction
935
- # The discount that was applied to get this pretax credit amount.
936
- attr_reader :discount
937
- # The margin that was applied to get this pretax credit amount.
938
- attr_reader :margin
939
- # Type of the pretax credit amount referenced.
940
- attr_reader :type
941
-
942
- def self.inner_class_types
943
- @inner_class_types = {}
944
- end
945
-
946
- def self.field_remappings
947
- @field_remappings = {}
948
- end
949
- end
950
-
951
- class TotalTax < ::Stripe::StripeObject
952
- class TaxRateDetails < ::Stripe::StripeObject
953
- # ID of the tax rate
954
- attr_reader :tax_rate
955
-
956
- def self.inner_class_types
957
- @inner_class_types = {}
958
- end
959
-
960
- def self.field_remappings
961
- @field_remappings = {}
962
- end
963
- end
964
- # The amount of the tax, in cents (or local equivalent).
965
- attr_reader :amount
966
- # Whether this tax is inclusive or exclusive.
967
- attr_reader :tax_behavior
968
- # Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
969
- attr_reader :tax_rate_details
970
- # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
971
- attr_reader :taxability_reason
972
- # The amount on which tax is calculated, in cents (or local equivalent).
973
- attr_reader :taxable_amount
974
- # The type of tax information.
975
- attr_reader :type
976
-
977
- def self.inner_class_types
978
- @inner_class_types = { tax_rate_details: TaxRateDetails }
979
- end
980
-
981
- def self.field_remappings
982
- @field_remappings = {}
983
- end
984
- end
985
- # The country of the business associated with this invoice, most often the business creating the invoice.
986
- attr_reader :account_country
987
- # The public name of the business associated with this invoice, most often the business creating the invoice.
988
- attr_reader :account_name
989
- # The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
990
- attr_reader :account_tax_ids
991
- # Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.
992
- attr_reader :amount_due
993
- # Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.
994
- attr_reader :amount_overpaid
995
- # The amount, in cents (or local equivalent), that was paid.
996
- attr_reader :amount_paid
997
- # The difference between amount_due and amount_paid, in cents (or local equivalent).
998
- attr_reader :amount_remaining
999
- # This is the sum of all the shipping amounts.
1000
- attr_reader :amount_shipping
1001
- # List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
1002
- attr_reader :amounts_due
1003
- # ID of the Connect Application that created the invoice.
1004
- attr_reader :application
1005
- # Attribute for field applies_to
1006
- attr_reader :applies_to
1007
- # Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
1008
- attr_reader :attempt_count
1009
- # Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.
1010
- attr_reader :attempted
1011
- # Attribute for field automatic_tax
1012
- attr_reader :automatic_tax
1013
- # The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
1014
- attr_reader :automatically_finalizes_at
1015
- # Indicates the reason why the invoice was created.
1016
- #
1017
- # * `manual`: Unrelated to a subscription, for example, created via the invoice editor.
1018
- # * `subscription`: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.
1019
- # * `subscription_create`: A new subscription was created.
1020
- # * `subscription_cycle`: A subscription advanced into a new period.
1021
- # * `subscription_threshold`: A subscription reached a billing threshold.
1022
- # * `subscription_update`: A subscription was updated.
1023
- # * `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription.
1024
- attr_reader :billing_reason
1025
- # Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
1026
- attr_reader :collection_method
1027
- # The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.
1028
- attr_reader :confirmation_secret
1029
- # Time at which the object was created. Measured in seconds since the Unix epoch.
1030
- attr_reader :created
1031
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1032
- attr_reader :currency
1033
- # Custom fields displayed on the invoice.
1034
- attr_reader :custom_fields
1035
- # The ID of the account representing the customer to bill.
1036
- attr_reader :customer_account
1037
- # The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
1038
- attr_reader :customer_address
1039
- # The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
1040
- attr_reader :customer_email
1041
- # The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.
1042
- attr_reader :customer_name
1043
- # The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.
1044
- attr_reader :customer_phone
1045
- # The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.
1046
- attr_reader :customer_shipping
1047
- # The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.
1048
- attr_reader :customer_tax_exempt
1049
- # The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
1050
- attr_reader :customer_tax_ids
1051
- # The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
1052
- attr_reader :default_margins
1053
- # ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
1054
- attr_reader :default_payment_method
1055
- # ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
1056
- attr_reader :default_source
1057
- # The tax rates applied to this invoice, if any.
1058
- attr_reader :default_tax_rates
1059
- # An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
1060
- attr_reader :description
1061
- # The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
1062
- attr_reader :discounts
1063
- # The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.
1064
- attr_reader :due_date
1065
- # The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
1066
- attr_reader :effective_at
1067
- # Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
1068
- attr_reader :ending_balance
1069
- # Footer displayed on the invoice.
1070
- attr_reader :footer
1071
- # Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
1072
- attr_reader :from_invoice
1073
- # Unique identifier for the object. For preview invoices created using the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint, this id will be prefixed with `upcoming_in`.
1074
- attr_reader :id
1075
- # Attribute for field issuer
1076
- attr_reader :issuer
1077
- # The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
1078
- attr_reader :last_finalization_error
1079
- # The ID of the most recent non-draft revision of this invoice
1080
- attr_reader :latest_revision
1081
- # The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
1082
- attr_reader :lines
1083
- # If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
1084
- attr_reader :livemode
1085
- # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1086
- attr_reader :metadata
1087
- # The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.
1088
- attr_reader :next_payment_attempt
1089
- # A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
1090
- attr_reader :number
1091
- # String representing the object's type. Objects of the same type share the same value.
1092
- attr_reader :object
1093
- # The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
1094
- attr_reader :on_behalf_of
1095
- # The parent that generated this invoice
1096
- attr_reader :parent
1097
- # Attribute for field payment_settings
1098
- attr_reader :payment_settings
1099
- # Payments for this invoice. Use [invoice payment](/api/invoice-payment) to get more details.
1100
- attr_reader :payments
1101
- # The latest timestamp at which invoice items can be associated with this invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
1102
- attr_reader :period_end
1103
- # The earliest timestamp at which invoice items can be associated with this invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
1104
- attr_reader :period_start
1105
- # Total amount of all post-payment credit notes issued for this invoice.
1106
- attr_reader :post_payment_credit_notes_amount
1107
- # Total amount of all pre-payment credit notes issued for this invoice.
1108
- attr_reader :pre_payment_credit_notes_amount
1109
- # This is the transaction number that appears on email receipts sent for this invoice.
1110
- attr_reader :receipt_number
1111
- # The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
1112
- attr_reader :rendering
1113
- # The details of the cost of shipping, including the ShippingRate applied on the invoice.
1114
- attr_reader :shipping_cost
1115
- # Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
1116
- attr_reader :shipping_details
1117
- # Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
1118
- attr_reader :starting_balance
1119
- # Extra information about an invoice for the customer's credit card statement.
1120
- attr_reader :statement_descriptor
1121
- # The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
1122
- attr_reader :status
1123
- # Attribute for field status_transitions
1124
- attr_reader :status_transitions
1125
- # Attribute for field subscription
1126
- attr_reader :subscription
1127
- # Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
1128
- attr_reader :subtotal
1129
- # The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
1130
- attr_reader :subtotal_excluding_tax
1131
- # ID of the test clock this invoice belongs to.
1132
- attr_reader :test_clock
1133
- # Attribute for field threshold_reason
1134
- attr_reader :threshold_reason
1135
- # Total after discounts and taxes.
1136
- attr_reader :total
1137
- # The aggregate amounts calculated per discount across all line items.
1138
- attr_reader :total_discount_amounts
1139
- # The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
1140
- attr_reader :total_excluding_tax
1141
- # The aggregate amounts calculated per margin across all line items.
1142
- attr_reader :total_margin_amounts
1143
- # Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
1144
- attr_reader :total_pretax_credit_amounts
1145
- # The aggregate tax information of all line items.
1146
- attr_reader :total_taxes
1147
- # Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://docs.stripe.com/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
1148
- attr_reader :webhooks_delivered_at
1149
-
1150
- def self.inner_class_types
1151
- @inner_class_types = {
1152
- amounts_due: AmountsDue,
1153
- applies_to: AppliesTo,
1154
- automatic_tax: AutomaticTax,
1155
- confirmation_secret: ConfirmationSecret,
1156
- custom_fields: CustomField,
1157
- customer_address: CustomerAddress,
1158
- customer_shipping: CustomerShipping,
1159
- customer_tax_ids: CustomerTaxId,
1160
- from_invoice: FromInvoice,
1161
- issuer: Issuer,
1162
- last_finalization_error: LastFinalizationError,
1163
- parent: Parent,
1164
- payment_settings: PaymentSettings,
1165
- rendering: Rendering,
1166
- shipping_cost: ShippingCost,
1167
- shipping_details: ShippingDetails,
1168
- status_transitions: StatusTransitions,
1169
- threshold_reason: ThresholdReason,
1170
- total_discount_amounts: TotalDiscountAmount,
1171
- total_margin_amounts: TotalMarginAmount,
1172
- total_pretax_credit_amounts: TotalPretaxCreditAmount,
1173
- total_taxes: TotalTax,
1174
- }
1175
- end
1176
-
1177
- def self.field_remappings
1178
- @field_remappings = {}
1179
- end
1180
- end
1181
- end