stripe 18.2.0 → 18.3.0.pre.alpha.1

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 (771) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +37 -1
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +66 -0
  5. data/lib/stripe/event_types.rb +512 -0
  6. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  7. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  8. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  9. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  10. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  11. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  12. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  13. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  15. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  17. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  18. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  19. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  29. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  30. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  31. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  41. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  43. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  44. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  45. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  46. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  48. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  49. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  50. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  51. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  52. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
  53. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
  54. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
  55. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
  56. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  57. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  58. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  59. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
  60. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
  61. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
  62. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
  63. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
  64. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
  65. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
  66. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
  67. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
  68. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  69. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  70. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  71. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  72. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  73. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  74. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  75. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  76. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  77. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  78. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  79. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  80. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  81. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  82. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  83. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  84. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  85. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  86. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  87. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  88. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  89. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  90. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  91. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  92. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  93. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  94. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  95. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  96. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  97. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  98. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  99. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  100. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  101. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  102. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  103. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  104. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  105. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  106. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  107. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  108. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  109. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  110. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  111. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  112. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  113. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  114. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  115. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  116. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
  117. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  118. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  119. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  120. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  121. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  122. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  123. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  124. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  125. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  126. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  127. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  128. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  129. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  130. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  131. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  132. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  133. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  134. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  135. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  136. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  137. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  138. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  139. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  140. data/lib/stripe/object_types.rb +90 -0
  141. data/lib/stripe/params/account_create_params.rb +338 -3
  142. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  143. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  144. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  145. data/lib/stripe/params/account_person_create_params.rb +32 -0
  146. data/lib/stripe/params/account_person_update_params.rb +32 -0
  147. data/lib/stripe/params/account_session_create_params.rb +243 -1
  148. data/lib/stripe/params/account_update_params.rb +300 -2
  149. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  150. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  151. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  152. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  153. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  154. data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
  155. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  156. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  157. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  158. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  159. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  160. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  161. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  164. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  166. data/lib/stripe/params/charge_update_params.rb +1648 -0
  167. data/lib/stripe/params/checkout/session_create_params.rb +225 -5
  168. data/lib/stripe/params/checkout/session_update_params.rb +157 -2
  169. data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
  170. data/lib/stripe/params/coupon_create_params.rb +17 -1
  171. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  172. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
  173. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  174. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  175. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  176. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  177. data/lib/stripe/params/dispute_update_params.rb +10 -1
  178. data/lib/stripe/params/external_account_create_params.rb +134 -0
  179. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  180. data/lib/stripe/params/external_account_list_params.rb +25 -0
  181. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  182. data/lib/stripe/params/external_account_update_params.rb +91 -0
  183. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  184. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  185. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  186. data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
  187. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  188. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  189. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  190. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  191. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  192. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  193. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  194. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  195. data/lib/stripe/params/invoice_add_lines_params.rb +49 -2
  196. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  197. data/lib/stripe/params/invoice_create_params.rb +107 -2
  198. data/lib/stripe/params/invoice_create_preview_params.rb +941 -9
  199. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  200. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  201. data/lib/stripe/params/invoice_line_item_update_params.rb +49 -2
  202. data/lib/stripe/params/invoice_list_params.rb +4 -0
  203. data/lib/stripe/params/invoice_update_lines_params.rb +49 -2
  204. data/lib/stripe/params/invoice_update_params.rb +107 -2
  205. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  206. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  207. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  208. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  209. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  210. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  211. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  212. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  213. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  214. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  215. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  216. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  217. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  218. data/lib/stripe/params/issuing/program_list_params.rb +24 -0
  219. data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
  220. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  221. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  222. data/lib/stripe/params/mandate_list_params.rb +39 -0
  223. data/lib/stripe/params/margin_create_params.rb +25 -0
  224. data/lib/stripe/params/margin_list_params.rb +25 -0
  225. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  226. data/lib/stripe/params/margin_update_params.rb +22 -0
  227. data/lib/stripe/params/order_cancel_params.rb +13 -0
  228. data/lib/stripe/params/order_create_params.rb +2061 -0
  229. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  230. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  231. data/lib/stripe/params/order_list_params.rb +25 -0
  232. data/lib/stripe/params/order_reopen_params.rb +13 -0
  233. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  234. data/lib/stripe/params/order_submit_params.rb +16 -0
  235. data/lib/stripe/params/order_update_params.rb +2065 -0
  236. data/lib/stripe/params/payment_intent_capture_params.rb +1628 -2
  237. data/lib/stripe/params/payment_intent_confirm_params.rb +3143 -145
  238. data/lib/stripe/params/payment_intent_create_params.rb +3135 -124
  239. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  240. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +22 -1
  241. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  242. data/lib/stripe/params/payment_intent_update_params.rb +3186 -161
  243. data/lib/stripe/params/payment_link_create_params.rb +16 -1
  244. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  245. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  246. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  247. data/lib/stripe/params/payment_method_create_params.rb +77 -0
  248. data/lib/stripe/params/plan_create_params.rb +16 -1
  249. data/lib/stripe/params/price_create_params.rb +16 -1
  250. data/lib/stripe/params/price_update_params.rb +19 -0
  251. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  252. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  253. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  254. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  255. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  256. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  257. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  258. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  259. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  260. data/lib/stripe/params/product_create_params.rb +17 -1
  261. data/lib/stripe/params/product_update_params.rb +17 -1
  262. data/lib/stripe/params/quote_create_params.rb +1021 -3
  263. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  264. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  265. data/lib/stripe/params/quote_list_params.rb +4 -0
  266. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  267. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  268. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  269. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  270. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  271. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  272. data/lib/stripe/params/quote_update_params.rb +1029 -4
  273. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  274. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  275. data/lib/stripe/params/radar/account_evaluation_update_params.rb +41 -0
  276. data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
  277. data/lib/stripe/params/setup_intent_create_params.rb +187 -3
  278. data/lib/stripe/params/setup_intent_update_params.rb +188 -4
  279. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  280. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  281. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  282. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  283. data/lib/stripe/params/subscription_create_params.rb +270 -5
  284. data/lib/stripe/params/subscription_item_create_params.rb +62 -2
  285. data/lib/stripe/params/subscription_item_update_params.rb +45 -1
  286. data/lib/stripe/params/subscription_schedule_amend_params.rb +609 -0
  287. data/lib/stripe/params/subscription_schedule_create_params.rb +231 -5
  288. data/lib/stripe/params/subscription_schedule_update_params.rb +231 -5
  289. data/lib/stripe/params/subscription_update_params.rb +253 -4
  290. data/lib/stripe/params/tax/calculation_create_params.rb +5 -1
  291. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  292. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  293. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  294. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  295. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  296. data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
  297. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  298. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  299. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  300. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  301. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  302. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
  303. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  304. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  305. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  306. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  307. data/lib/stripe/params/token_create_params.rb +64 -0
  308. data/lib/stripe/params/transfer_create_params.rb +8 -0
  309. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  310. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  311. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  312. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  313. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  314. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  315. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  316. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  317. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  318. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  319. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  320. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  321. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  322. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  323. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  324. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  325. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  326. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  327. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  328. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  329. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  330. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  331. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  332. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  333. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  334. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  335. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  336. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  337. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  338. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  339. data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
  340. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  341. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  342. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  343. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  344. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  345. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  346. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  347. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  348. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  349. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  350. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  351. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  352. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  353. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  354. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  355. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  356. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  357. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  358. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  359. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  360. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  361. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  362. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  363. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  364. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  365. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  366. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  367. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  368. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  369. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  370. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  371. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  372. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  373. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  374. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  375. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  376. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  377. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  378. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  379. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  380. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  381. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  382. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  383. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  384. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  385. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  386. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  387. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  388. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  389. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  390. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  391. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  392. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  393. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  394. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  395. data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
  396. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  397. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  398. data/lib/stripe/params/v2/core/account_create_params.rb +959 -5
  399. data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
  400. data/lib/stripe/params/v2/core/account_update_params.rb +938 -5
  401. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  402. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  403. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  404. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  405. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  406. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  407. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  408. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  409. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  410. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  411. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  412. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  413. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  414. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  415. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  416. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  417. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  418. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  419. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  420. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  421. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  422. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  423. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  424. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  425. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  426. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  427. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  428. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  429. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  430. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  431. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +23 -0
  432. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  433. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  434. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  435. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  436. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  437. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  438. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  439. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  440. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  441. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +134 -0
  442. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  443. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +82 -0
  444. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  445. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  446. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  447. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  448. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  449. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  450. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  451. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  452. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
  453. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  454. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  455. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  456. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  457. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  458. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  459. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  460. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  461. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  462. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  463. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  464. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  465. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  466. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  467. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  468. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  469. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  470. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  471. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  472. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
  473. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
  474. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  475. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  476. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  477. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
  478. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  479. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  480. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
  481. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  482. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
  483. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  484. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  485. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  486. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  487. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
  488. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  489. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  490. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  491. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
  492. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  493. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  494. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  495. data/lib/stripe/params.rb +274 -0
  496. data/lib/stripe/resources/account.rb +182 -1
  497. data/lib/stripe/resources/account_notice.rb +94 -0
  498. data/lib/stripe/resources/account_session.rb +108 -0
  499. data/lib/stripe/resources/application_fee.rb +2 -0
  500. data/lib/stripe/resources/balance.rb +83 -0
  501. data/lib/stripe/resources/balance_transfer.rb +139 -0
  502. data/lib/stripe/resources/billing/alert.rb +105 -1
  503. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  504. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  505. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  506. data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
  507. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  508. data/lib/stripe/resources/billing/credit_grant.rb +58 -2
  509. data/lib/stripe/resources/billing/meter.rb +2 -0
  510. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  511. data/lib/stripe/resources/capital/financing_offer.rb +183 -0
  512. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  513. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  514. data/lib/stripe/resources/card.rb +20 -1
  515. data/lib/stripe/resources/charge.rb +233 -1
  516. data/lib/stripe/resources/checkout/session.rb +196 -4
  517. data/lib/stripe/resources/confirmation_token.rb +151 -0
  518. data/lib/stripe/resources/coupon.rb +26 -1
  519. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  520. data/lib/stripe/resources/customer_session.rb +36 -0
  521. data/lib/stripe/resources/delegated_checkout/requested_session.rb +509 -0
  522. data/lib/stripe/resources/discount.rb +2 -0
  523. data/lib/stripe/resources/dispute.rb +22 -0
  524. data/lib/stripe/resources/event.rb +64 -1
  525. data/lib/stripe/resources/financial_connections/account.rb +25 -0
  526. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  527. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  528. data/lib/stripe/resources/financial_connections/session.rb +65 -1
  529. data/lib/stripe/resources/fx_quote.rb +147 -0
  530. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  531. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  532. data/lib/stripe/resources/invoice.rb +168 -1
  533. data/lib/stripe/resources/invoice_item.rb +108 -2
  534. data/lib/stripe/resources/invoice_line_item.rb +147 -3
  535. data/lib/stripe/resources/issuing/card.rb +4 -0
  536. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  537. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  538. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  539. data/lib/stripe/resources/issuing/program.rb +69 -0
  540. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  541. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  542. data/lib/stripe/resources/line_item.rb +66 -1
  543. data/lib/stripe/resources/mandate.rb +43 -0
  544. data/lib/stripe/resources/margin.rb +64 -0
  545. data/lib/stripe/resources/order.rb +987 -0
  546. data/lib/stripe/resources/payment_attempt_record.rb +181 -1
  547. data/lib/stripe/resources/payment_intent.rb +800 -5
  548. data/lib/stripe/resources/payment_method.rb +173 -0
  549. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  550. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  551. data/lib/stripe/resources/payment_record.rb +181 -1
  552. data/lib/stripe/resources/person.rb +36 -0
  553. data/lib/stripe/resources/plan.rb +2 -0
  554. data/lib/stripe/resources/price.rb +22 -0
  555. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  556. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  557. data/lib/stripe/resources/product_catalog/trial_offer.rb +103 -0
  558. data/lib/stripe/resources/quote.rb +806 -2
  559. data/lib/stripe/resources/quote_line.rb +527 -0
  560. data/lib/stripe/resources/quote_preview_invoice.rb +1200 -0
  561. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
  562. data/lib/stripe/resources/radar/account_evaluation.rb +145 -0
  563. data/lib/stripe/resources/refund.rb +18 -0
  564. data/lib/stripe/resources/setup_attempt.rb +48 -0
  565. data/lib/stripe/resources/setup_intent.rb +128 -1
  566. data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
  567. data/lib/stripe/resources/source.rb +38 -0
  568. data/lib/stripe/resources/subscription.rb +249 -0
  569. data/lib/stripe/resources/subscription_item.rb +43 -1
  570. data/lib/stripe/resources/subscription_schedule.rb +290 -3
  571. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  572. data/lib/stripe/resources/tax/form.rb +264 -0
  573. data/lib/stripe/resources/tax/location.rb +72 -0
  574. data/lib/stripe/resources/tax/registration.rb +128 -0
  575. data/lib/stripe/resources/tax_code.rb +15 -1
  576. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  577. data/lib/stripe/resources/terminal/reader.rb +8 -0
  578. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  579. data/lib/stripe/resources/transfer.rb +6 -0
  580. data/lib/stripe/resources/transit_balance.rb +45 -0
  581. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  582. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  583. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  584. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  585. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  586. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  587. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  588. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  589. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  590. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  591. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  592. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  593. data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
  594. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  595. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  596. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  597. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  598. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  599. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  600. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  601. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  602. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  603. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  604. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  605. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  606. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  607. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  608. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  609. data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
  610. data/lib/stripe/resources/v2/core/account.rb +1688 -58
  611. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  612. data/lib/stripe/resources/v2/core/event.rb +50 -1
  613. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +134 -0
  614. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +103 -0
  615. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  616. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  617. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  618. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  619. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  620. data/lib/stripe/resources/v2/money_management/financial_account.rb +223 -0
  621. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  622. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  623. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +347 -0
  624. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +204 -0
  625. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  626. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
  627. data/lib/stripe/resources/v2/money_management/payout_method.rb +157 -0
  628. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  629. data/lib/stripe/resources/v2/money_management/received_credit.rb +280 -0
  630. data/lib/stripe/resources/v2/money_management/received_debit.rb +208 -0
  631. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  632. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  633. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  634. data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
  635. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
  636. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
  637. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  638. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  639. data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
  640. data/lib/stripe/resources.rb +218 -0
  641. data/lib/stripe/services/account_notice_service.rb +39 -0
  642. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  643. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  644. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  645. data/lib/stripe/services/billing_service.rb +2 -1
  646. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  647. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  648. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  649. data/lib/stripe/services/capital_service.rb +15 -0
  650. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  651. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  652. data/lib/stripe/services/external_account_service.rb +68 -0
  653. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  654. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  655. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  656. data/lib/stripe/services/financial_connections_service.rb +2 -1
  657. data/lib/stripe/services/fx_quote_service.rb +27 -0
  658. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  659. data/lib/stripe/services/identity_service.rb +2 -1
  660. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  661. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  662. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  663. data/lib/stripe/services/issuing/program_service.rb +52 -0
  664. data/lib/stripe/services/issuing_service.rb +6 -1
  665. data/lib/stripe/services/mandate_service.rb +5 -0
  666. data/lib/stripe/services/margin_service.rb +50 -0
  667. data/lib/stripe/services/order_line_item_service.rb +17 -0
  668. data/lib/stripe/services/order_service.rb +78 -0
  669. data/lib/stripe/services/payment_intent_service.rb +37 -0
  670. data/lib/stripe/services/payment_method_service.rb +11 -0
  671. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  672. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  673. data/lib/stripe/services/privacy_service.rb +13 -0
  674. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  675. data/lib/stripe/services/product_catalog_service.rb +13 -0
  676. data/lib/stripe/services/quote_line_service.rb +17 -0
  677. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  678. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  679. data/lib/stripe/services/quote_service.rb +49 -1
  680. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  681. data/lib/stripe/services/radar_service.rb +2 -1
  682. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  683. data/lib/stripe/services/shared_payment_service.rb +13 -0
  684. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  685. data/lib/stripe/services/subscription_service.rb +11 -0
  686. data/lib/stripe/services/tax/form_service.rb +37 -0
  687. data/lib/stripe/services/tax/location_service.rb +45 -0
  688. data/lib/stripe/services/tax_service.rb +3 -1
  689. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  690. data/lib/stripe/services/terminal_service.rb +2 -1
  691. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  692. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  693. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  694. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  695. data/lib/stripe/services/test_helpers_service.rb +3 -1
  696. data/lib/stripe/services/v1_services.rb +12 -1
  697. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  698. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  699. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  700. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  701. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  702. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  703. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  704. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  705. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  706. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  707. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  708. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  709. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  710. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  711. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  712. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  713. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  714. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  715. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  716. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  717. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  718. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  719. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  720. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  721. data/lib/stripe/services/v2/billing_service.rb +18 -1
  722. data/lib/stripe/services/v2/core/account_link_service.rb +2 -0
  723. data/lib/stripe/services/v2/core/account_service.rb +10 -0
  724. data/lib/stripe/services/v2/core/account_token_service.rb +4 -0
  725. data/lib/stripe/services/v2/core/accounts/person_service.rb +10 -0
  726. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +4 -0
  727. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  728. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  729. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  730. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  731. data/lib/stripe/services/v2/core_service.rb +3 -1
  732. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  733. data/lib/stripe/services/v2/iam_service.rb +15 -0
  734. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  735. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  736. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  737. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  738. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  739. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  740. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  741. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  742. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  743. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  744. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  745. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  746. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  747. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  748. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  749. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  750. data/lib/stripe/services/v2/money_management_service.rb +35 -0
  751. data/lib/stripe/services/v2/payment_service.rb +17 -0
  752. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  753. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
  754. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
  755. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  756. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  757. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  758. data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
  759. data/lib/stripe/services/v2/tax_service.rb +15 -0
  760. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  761. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  762. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  763. data/lib/stripe/services/v2_services.rb +7 -1
  764. data/lib/stripe/services.rb +99 -0
  765. data/lib/stripe/stripe_configuration.rb +3 -1
  766. data/lib/stripe/stripe_object.rb +1 -1
  767. data/lib/stripe/util.rb +16 -4
  768. data/lib/stripe/version.rb +1 -1
  769. data/lib/stripe.rb +53 -0
  770. data/rbi/stripe.rbi +129996 -49768
  771. metadata +595 -4
@@ -0,0 +1,1200 @@
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`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `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 BillingCadenceDetails < ::Stripe::StripeObject
342
+ # The billing cadence that generated this invoice
343
+ attr_reader :billing_cadence
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 QuoteDetails < ::Stripe::StripeObject
355
+ # The quote that generated this invoice
356
+ attr_reader :quote
357
+
358
+ def self.inner_class_types
359
+ @inner_class_types = {}
360
+ end
361
+
362
+ def self.field_remappings
363
+ @field_remappings = {}
364
+ end
365
+ end
366
+
367
+ class ScheduleDetails < ::Stripe::StripeObject
368
+ # The schedule that generated this invoice
369
+ attr_reader :schedule
370
+ # The subscription associated with this schedule
371
+ attr_reader :subscription
372
+
373
+ def self.inner_class_types
374
+ @inner_class_types = {}
375
+ end
376
+
377
+ def self.field_remappings
378
+ @field_remappings = {}
379
+ end
380
+ end
381
+
382
+ class SubscriptionDetails < ::Stripe::StripeObject
383
+ class PauseCollection < ::Stripe::StripeObject
384
+ # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
385
+ attr_reader :behavior
386
+ # The time after which the subscription will resume collecting payments.
387
+ attr_reader :resumes_at
388
+
389
+ def self.inner_class_types
390
+ @inner_class_types = {}
391
+ end
392
+
393
+ def self.field_remappings
394
+ @field_remappings = {}
395
+ end
396
+ end
397
+ # 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.
398
+ # *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
399
+ attr_reader :metadata
400
+ # 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).
401
+ attr_reader :pause_collection
402
+ # The subscription that generated this invoice
403
+ attr_reader :subscription
404
+ # Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
405
+ attr_reader :subscription_proration_date
406
+
407
+ def self.inner_class_types
408
+ @inner_class_types = { pause_collection: PauseCollection }
409
+ end
410
+
411
+ def self.field_remappings
412
+ @field_remappings = {}
413
+ end
414
+ end
415
+ # Details about the billing cadence that generated this invoice
416
+ attr_reader :billing_cadence_details
417
+ # Details about the quote that generated this invoice
418
+ attr_reader :quote_details
419
+ # Details about the schedule that generated this invoice
420
+ attr_reader :schedule_details
421
+ # Details about the subscription that generated this invoice
422
+ attr_reader :subscription_details
423
+ # The type of parent that generated this invoice
424
+ attr_reader :type
425
+
426
+ def self.inner_class_types
427
+ @inner_class_types = {
428
+ billing_cadence_details: BillingCadenceDetails,
429
+ quote_details: QuoteDetails,
430
+ schedule_details: ScheduleDetails,
431
+ subscription_details: SubscriptionDetails,
432
+ }
433
+ end
434
+
435
+ def self.field_remappings
436
+ @field_remappings = {}
437
+ end
438
+ end
439
+
440
+ class PaymentSettings < ::Stripe::StripeObject
441
+ class PaymentMethodOptions < ::Stripe::StripeObject
442
+ class AcssDebit < ::Stripe::StripeObject
443
+ class MandateOptions < ::Stripe::StripeObject
444
+ # Transaction type of the mandate.
445
+ attr_reader :transaction_type
446
+
447
+ def self.inner_class_types
448
+ @inner_class_types = {}
449
+ end
450
+
451
+ def self.field_remappings
452
+ @field_remappings = {}
453
+ end
454
+ end
455
+ # Attribute for field mandate_options
456
+ attr_reader :mandate_options
457
+ # Bank account verification method.
458
+ attr_reader :verification_method
459
+
460
+ def self.inner_class_types
461
+ @inner_class_types = { mandate_options: MandateOptions }
462
+ end
463
+
464
+ def self.field_remappings
465
+ @field_remappings = {}
466
+ end
467
+ end
468
+
469
+ class Bancontact < ::Stripe::StripeObject
470
+ # Preferred language of the Bancontact authorization page that the customer is redirected to.
471
+ attr_reader :preferred_language
472
+
473
+ def self.inner_class_types
474
+ @inner_class_types = {}
475
+ end
476
+
477
+ def self.field_remappings
478
+ @field_remappings = {}
479
+ end
480
+ end
481
+
482
+ class Card < ::Stripe::StripeObject
483
+ class Installments < ::Stripe::StripeObject
484
+ # Whether Installments are enabled for this Invoice.
485
+ attr_reader :enabled
486
+
487
+ def self.inner_class_types
488
+ @inner_class_types = {}
489
+ end
490
+
491
+ def self.field_remappings
492
+ @field_remappings = {}
493
+ end
494
+ end
495
+ # Attribute for field installments
496
+ attr_reader :installments
497
+ # 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.
498
+ attr_reader :request_three_d_secure
499
+
500
+ def self.inner_class_types
501
+ @inner_class_types = { installments: Installments }
502
+ end
503
+
504
+ def self.field_remappings
505
+ @field_remappings = {}
506
+ end
507
+ end
508
+
509
+ class CustomerBalance < ::Stripe::StripeObject
510
+ class BankTransfer < ::Stripe::StripeObject
511
+ class EuBankTransfer < ::Stripe::StripeObject
512
+ # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
513
+ attr_reader :country
514
+
515
+ def self.inner_class_types
516
+ @inner_class_types = {}
517
+ end
518
+
519
+ def self.field_remappings
520
+ @field_remappings = {}
521
+ end
522
+ end
523
+ # Attribute for field eu_bank_transfer
524
+ attr_reader :eu_bank_transfer
525
+ # 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`.
526
+ attr_reader :type
527
+
528
+ def self.inner_class_types
529
+ @inner_class_types = { eu_bank_transfer: EuBankTransfer }
530
+ end
531
+
532
+ def self.field_remappings
533
+ @field_remappings = {}
534
+ end
535
+ end
536
+ # Attribute for field bank_transfer
537
+ attr_reader :bank_transfer
538
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
539
+ attr_reader :funding_type
540
+
541
+ def self.inner_class_types
542
+ @inner_class_types = { bank_transfer: BankTransfer }
543
+ end
544
+
545
+ def self.field_remappings
546
+ @field_remappings = {}
547
+ end
548
+ end
549
+
550
+ class IdBankTransfer < ::Stripe::StripeObject
551
+ def self.inner_class_types
552
+ @inner_class_types = {}
553
+ end
554
+
555
+ def self.field_remappings
556
+ @field_remappings = {}
557
+ end
558
+ end
559
+
560
+ class Konbini < ::Stripe::StripeObject
561
+ def self.inner_class_types
562
+ @inner_class_types = {}
563
+ end
564
+
565
+ def self.field_remappings
566
+ @field_remappings = {}
567
+ end
568
+ end
569
+
570
+ class Payto < ::Stripe::StripeObject
571
+ class MandateOptions < ::Stripe::StripeObject
572
+ # The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
573
+ attr_reader :amount
574
+ # Only `maximum` is supported.
575
+ attr_reader :amount_type
576
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
577
+ attr_reader :purpose
578
+
579
+ def self.inner_class_types
580
+ @inner_class_types = {}
581
+ end
582
+
583
+ def self.field_remappings
584
+ @field_remappings = {}
585
+ end
586
+ end
587
+ # Attribute for field mandate_options
588
+ attr_reader :mandate_options
589
+
590
+ def self.inner_class_types
591
+ @inner_class_types = { mandate_options: MandateOptions }
592
+ end
593
+
594
+ def self.field_remappings
595
+ @field_remappings = {}
596
+ end
597
+ end
598
+
599
+ class Pix < ::Stripe::StripeObject
600
+ # Determines if the amount includes the IOF tax.
601
+ attr_reader :amount_includes_iof
602
+
603
+ def self.inner_class_types
604
+ @inner_class_types = {}
605
+ end
606
+
607
+ def self.field_remappings
608
+ @field_remappings = {}
609
+ end
610
+ end
611
+
612
+ class SepaDebit < ::Stripe::StripeObject
613
+ def self.inner_class_types
614
+ @inner_class_types = {}
615
+ end
616
+
617
+ def self.field_remappings
618
+ @field_remappings = {}
619
+ end
620
+ end
621
+
622
+ class Upi < ::Stripe::StripeObject
623
+ class MandateOptions < ::Stripe::StripeObject
624
+ # Amount to be charged for future payments.
625
+ attr_reader :amount
626
+ # 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.
627
+ attr_reader :amount_type
628
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
629
+ attr_reader :description
630
+ # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
631
+ attr_reader :end_date
632
+
633
+ def self.inner_class_types
634
+ @inner_class_types = {}
635
+ end
636
+
637
+ def self.field_remappings
638
+ @field_remappings = {}
639
+ end
640
+ end
641
+ # Attribute for field mandate_options
642
+ attr_reader :mandate_options
643
+
644
+ def self.inner_class_types
645
+ @inner_class_types = { mandate_options: MandateOptions }
646
+ end
647
+
648
+ def self.field_remappings
649
+ @field_remappings = {}
650
+ end
651
+ end
652
+
653
+ class UsBankAccount < ::Stripe::StripeObject
654
+ class FinancialConnections < ::Stripe::StripeObject
655
+ class Filters < ::Stripe::StripeObject
656
+ # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
657
+ attr_reader :account_subcategories
658
+ # The institution to use to filter for possible accounts to link.
659
+ attr_reader :institution
660
+
661
+ def self.inner_class_types
662
+ @inner_class_types = {}
663
+ end
664
+
665
+ def self.field_remappings
666
+ @field_remappings = {}
667
+ end
668
+ end
669
+ # Attribute for field filters
670
+ attr_reader :filters
671
+ # The list of permissions to request. The `payment_method` permission must be included.
672
+ attr_reader :permissions
673
+ # Data features requested to be retrieved upon account creation.
674
+ attr_reader :prefetch
675
+
676
+ def self.inner_class_types
677
+ @inner_class_types = { filters: Filters }
678
+ end
679
+
680
+ def self.field_remappings
681
+ @field_remappings = {}
682
+ end
683
+ end
684
+ # Attribute for field financial_connections
685
+ attr_reader :financial_connections
686
+ # Bank account verification method.
687
+ attr_reader :verification_method
688
+
689
+ def self.inner_class_types
690
+ @inner_class_types = { financial_connections: FinancialConnections }
691
+ end
692
+
693
+ def self.field_remappings
694
+ @field_remappings = {}
695
+ end
696
+ end
697
+ # 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.
698
+ attr_reader :acss_debit
699
+ # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
700
+ attr_reader :bancontact
701
+ # If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
702
+ attr_reader :card
703
+ # If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
704
+ attr_reader :customer_balance
705
+ # 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.
706
+ attr_reader :id_bank_transfer
707
+ # If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
708
+ attr_reader :konbini
709
+ # If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
710
+ attr_reader :payto
711
+ # If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
712
+ attr_reader :pix
713
+ # 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.
714
+ attr_reader :sepa_debit
715
+ # If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
716
+ attr_reader :upi
717
+ # 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.
718
+ attr_reader :us_bank_account
719
+
720
+ def self.inner_class_types
721
+ @inner_class_types = {
722
+ acss_debit: AcssDebit,
723
+ bancontact: Bancontact,
724
+ card: Card,
725
+ customer_balance: CustomerBalance,
726
+ id_bank_transfer: IdBankTransfer,
727
+ konbini: Konbini,
728
+ payto: Payto,
729
+ pix: Pix,
730
+ sepa_debit: SepaDebit,
731
+ upi: Upi,
732
+ us_bank_account: UsBankAccount,
733
+ }
734
+ end
735
+
736
+ def self.field_remappings
737
+ @field_remappings = {}
738
+ end
739
+ end
740
+ # 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.
741
+ attr_reader :default_mandate
742
+ # Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
743
+ attr_reader :payment_method_options
744
+ # 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).
745
+ attr_reader :payment_method_types
746
+
747
+ def self.inner_class_types
748
+ @inner_class_types = { payment_method_options: PaymentMethodOptions }
749
+ end
750
+
751
+ def self.field_remappings
752
+ @field_remappings = {}
753
+ end
754
+ end
755
+
756
+ class Rendering < ::Stripe::StripeObject
757
+ class Pdf < ::Stripe::StripeObject
758
+ # 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.
759
+ attr_reader :page_size
760
+
761
+ def self.inner_class_types
762
+ @inner_class_types = {}
763
+ end
764
+
765
+ def self.field_remappings
766
+ @field_remappings = {}
767
+ end
768
+ end
769
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
770
+ attr_reader :amount_tax_display
771
+ # Invoice pdf rendering options
772
+ attr_reader :pdf
773
+ # ID of the rendering template that the invoice is formatted by.
774
+ attr_reader :template
775
+ # Version of the rendering template that the invoice is using.
776
+ attr_reader :template_version
777
+
778
+ def self.inner_class_types
779
+ @inner_class_types = { pdf: Pdf }
780
+ end
781
+
782
+ def self.field_remappings
783
+ @field_remappings = {}
784
+ end
785
+ end
786
+
787
+ class ShippingCost < ::Stripe::StripeObject
788
+ class Tax < ::Stripe::StripeObject
789
+ # Amount of tax applied for this rate.
790
+ attr_reader :amount
791
+ # 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.
792
+ #
793
+ # Related guide: [Tax rates](/billing/taxes/tax-rates)
794
+ attr_reader :rate
795
+ # 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.
796
+ attr_reader :taxability_reason
797
+ # The amount on which tax is calculated, in cents (or local equivalent).
798
+ attr_reader :taxable_amount
799
+
800
+ def self.inner_class_types
801
+ @inner_class_types = {}
802
+ end
803
+
804
+ def self.field_remappings
805
+ @field_remappings = {}
806
+ end
807
+ end
808
+ # Total shipping cost before any taxes are applied.
809
+ attr_reader :amount_subtotal
810
+ # Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
811
+ attr_reader :amount_tax
812
+ # Total shipping cost after taxes are applied.
813
+ attr_reader :amount_total
814
+ # The ID of the ShippingRate for this invoice.
815
+ attr_reader :shipping_rate
816
+ # The taxes applied to the shipping rate.
817
+ attr_reader :taxes
818
+
819
+ def self.inner_class_types
820
+ @inner_class_types = { taxes: Tax }
821
+ end
822
+
823
+ def self.field_remappings
824
+ @field_remappings = {}
825
+ end
826
+ end
827
+
828
+ class ShippingDetails < ::Stripe::StripeObject
829
+ class Address < ::Stripe::StripeObject
830
+ # City, district, suburb, town, or village.
831
+ attr_reader :city
832
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
833
+ attr_reader :country
834
+ # Address line 1, such as the street, PO Box, or company name.
835
+ attr_reader :line1
836
+ # Address line 2, such as the apartment, suite, unit, or building.
837
+ attr_reader :line2
838
+ # ZIP or postal code.
839
+ attr_reader :postal_code
840
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
841
+ attr_reader :state
842
+
843
+ def self.inner_class_types
844
+ @inner_class_types = {}
845
+ end
846
+
847
+ def self.field_remappings
848
+ @field_remappings = {}
849
+ end
850
+ end
851
+ # Attribute for field address
852
+ attr_reader :address
853
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
854
+ attr_reader :carrier
855
+ # Recipient name.
856
+ attr_reader :name
857
+ # Recipient phone (including extension).
858
+ attr_reader :phone
859
+ # 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.
860
+ attr_reader :tracking_number
861
+
862
+ def self.inner_class_types
863
+ @inner_class_types = { address: Address }
864
+ end
865
+
866
+ def self.field_remappings
867
+ @field_remappings = {}
868
+ end
869
+ end
870
+
871
+ class StatusTransitions < ::Stripe::StripeObject
872
+ # The time that the invoice draft was finalized.
873
+ attr_reader :finalized_at
874
+ # The time that the invoice was marked uncollectible.
875
+ attr_reader :marked_uncollectible_at
876
+ # The time that the invoice was paid.
877
+ attr_reader :paid_at
878
+ # The time that the invoice was voided.
879
+ attr_reader :voided_at
880
+
881
+ def self.inner_class_types
882
+ @inner_class_types = {}
883
+ end
884
+
885
+ def self.field_remappings
886
+ @field_remappings = {}
887
+ end
888
+ end
889
+
890
+ class ThresholdReason < ::Stripe::StripeObject
891
+ class ItemReason < ::Stripe::StripeObject
892
+ # The IDs of the line items that triggered the threshold invoice.
893
+ attr_reader :line_item_ids
894
+ # The quantity threshold boundary that applied to the given line item.
895
+ attr_reader :usage_gte
896
+
897
+ def self.inner_class_types
898
+ @inner_class_types = {}
899
+ end
900
+
901
+ def self.field_remappings
902
+ @field_remappings = {}
903
+ end
904
+ end
905
+ # The total invoice amount threshold boundary if it triggered the threshold invoice.
906
+ attr_reader :amount_gte
907
+ # Indicates which line items triggered a threshold invoice.
908
+ attr_reader :item_reasons
909
+
910
+ def self.inner_class_types
911
+ @inner_class_types = { item_reasons: ItemReason }
912
+ end
913
+
914
+ def self.field_remappings
915
+ @field_remappings = {}
916
+ end
917
+ end
918
+
919
+ class TotalDiscountAmount < ::Stripe::StripeObject
920
+ # The amount, in cents (or local equivalent), of the discount.
921
+ attr_reader :amount
922
+ # The discount that was applied to get this discount amount.
923
+ attr_reader :discount
924
+
925
+ def self.inner_class_types
926
+ @inner_class_types = {}
927
+ end
928
+
929
+ def self.field_remappings
930
+ @field_remappings = {}
931
+ end
932
+ end
933
+
934
+ class TotalMarginAmount < ::Stripe::StripeObject
935
+ # The amount, in cents (or local equivalent), of the reduction in line item amount.
936
+ attr_reader :amount
937
+ # The margin that was applied to get this margin amount.
938
+ attr_reader :margin
939
+
940
+ def self.inner_class_types
941
+ @inner_class_types = {}
942
+ end
943
+
944
+ def self.field_remappings
945
+ @field_remappings = {}
946
+ end
947
+ end
948
+
949
+ class TotalPretaxCreditAmount < ::Stripe::StripeObject
950
+ # The amount, in cents (or local equivalent), of the pretax credit amount.
951
+ attr_reader :amount
952
+ # The credit balance transaction that was applied to get this pretax credit amount.
953
+ attr_reader :credit_balance_transaction
954
+ # The discount that was applied to get this pretax credit amount.
955
+ attr_reader :discount
956
+ # The margin that was applied to get this pretax credit amount.
957
+ attr_reader :margin
958
+ # Type of the pretax credit amount referenced.
959
+ attr_reader :type
960
+
961
+ def self.inner_class_types
962
+ @inner_class_types = {}
963
+ end
964
+
965
+ def self.field_remappings
966
+ @field_remappings = {}
967
+ end
968
+ end
969
+
970
+ class TotalTax < ::Stripe::StripeObject
971
+ class TaxRateDetails < ::Stripe::StripeObject
972
+ # ID of the tax rate
973
+ attr_reader :tax_rate
974
+
975
+ def self.inner_class_types
976
+ @inner_class_types = {}
977
+ end
978
+
979
+ def self.field_remappings
980
+ @field_remappings = {}
981
+ end
982
+ end
983
+ # The amount of the tax, in cents (or local equivalent).
984
+ attr_reader :amount
985
+ # Whether this tax is inclusive or exclusive.
986
+ attr_reader :tax_behavior
987
+ # Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
988
+ attr_reader :tax_rate_details
989
+ # 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.
990
+ attr_reader :taxability_reason
991
+ # The amount on which tax is calculated, in cents (or local equivalent).
992
+ attr_reader :taxable_amount
993
+ # The type of tax information.
994
+ attr_reader :type
995
+
996
+ def self.inner_class_types
997
+ @inner_class_types = { tax_rate_details: TaxRateDetails }
998
+ end
999
+
1000
+ def self.field_remappings
1001
+ @field_remappings = {}
1002
+ end
1003
+ end
1004
+ # The country of the business associated with this invoice, most often the business creating the invoice.
1005
+ attr_reader :account_country
1006
+ # The public name of the business associated with this invoice, most often the business creating the invoice.
1007
+ attr_reader :account_name
1008
+ # The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
1009
+ attr_reader :account_tax_ids
1010
+ # 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`.
1011
+ attr_reader :amount_due
1012
+ # Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.
1013
+ attr_reader :amount_overpaid
1014
+ # The amount, in cents (or local equivalent), that was paid.
1015
+ attr_reader :amount_paid
1016
+ # The difference between amount_due and amount_paid, in cents (or local equivalent).
1017
+ attr_reader :amount_remaining
1018
+ # This is the sum of all the shipping amounts.
1019
+ attr_reader :amount_shipping
1020
+ # List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
1021
+ attr_reader :amounts_due
1022
+ # ID of the Connect Application that created the invoice.
1023
+ attr_reader :application
1024
+ # Attribute for field applies_to
1025
+ attr_reader :applies_to
1026
+ # 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.
1027
+ attr_reader :attempt_count
1028
+ # 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.
1029
+ attr_reader :attempted
1030
+ # Attribute for field automatic_tax
1031
+ attr_reader :automatic_tax
1032
+ # 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.
1033
+ attr_reader :automatically_finalizes_at
1034
+ # Indicates the reason why the invoice was created.
1035
+ #
1036
+ # * `manual`: Unrelated to a subscription, for example, created via the invoice editor.
1037
+ # * `subscription`: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.
1038
+ # * `subscription_create`: A new subscription was created.
1039
+ # * `subscription_cycle`: A subscription advanced into a new period.
1040
+ # * `subscription_threshold`: A subscription reached a billing threshold.
1041
+ # * `subscription_update`: A subscription was updated.
1042
+ # * `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.
1043
+ attr_reader :billing_reason
1044
+ # 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.
1045
+ attr_reader :collection_method
1046
+ # The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.
1047
+ attr_reader :confirmation_secret
1048
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
1049
+ attr_reader :created
1050
+ # 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).
1051
+ attr_reader :currency
1052
+ # Custom fields displayed on the invoice.
1053
+ attr_reader :custom_fields
1054
+ # The ID of the account representing the customer to bill.
1055
+ attr_reader :customer_account
1056
+ # 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.
1057
+ attr_reader :customer_address
1058
+ # 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.
1059
+ attr_reader :customer_email
1060
+ # 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.
1061
+ attr_reader :customer_name
1062
+ # 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.
1063
+ attr_reader :customer_phone
1064
+ # 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.
1065
+ attr_reader :customer_shipping
1066
+ # 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.
1067
+ attr_reader :customer_tax_exempt
1068
+ # 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.
1069
+ attr_reader :customer_tax_ids
1070
+ # The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
1071
+ attr_reader :default_margins
1072
+ # 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.
1073
+ attr_reader :default_payment_method
1074
+ # 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.
1075
+ attr_reader :default_source
1076
+ # The tax rates applied to this invoice, if any.
1077
+ attr_reader :default_tax_rates
1078
+ # An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
1079
+ attr_reader :description
1080
+ # The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
1081
+ attr_reader :discounts
1082
+ # The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.
1083
+ attr_reader :due_date
1084
+ # 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.
1085
+ attr_reader :effective_at
1086
+ # 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.
1087
+ attr_reader :ending_balance
1088
+ # Footer displayed on the invoice.
1089
+ attr_reader :footer
1090
+ # Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
1091
+ attr_reader :from_invoice
1092
+ # 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`.
1093
+ attr_reader :id
1094
+ # Attribute for field issuer
1095
+ attr_reader :issuer
1096
+ # The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
1097
+ attr_reader :last_finalization_error
1098
+ # The ID of the most recent non-draft revision of this invoice
1099
+ attr_reader :latest_revision
1100
+ # 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.
1101
+ attr_reader :lines
1102
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1103
+ attr_reader :livemode
1104
+ # 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.
1105
+ attr_reader :metadata
1106
+ # The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.
1107
+ attr_reader :next_payment_attempt
1108
+ # 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.
1109
+ attr_reader :number
1110
+ # String representing the object's type. Objects of the same type share the same value.
1111
+ attr_reader :object
1112
+ # 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.
1113
+ attr_reader :on_behalf_of
1114
+ # The parent that generated this invoice
1115
+ attr_reader :parent
1116
+ # Attribute for field payment_settings
1117
+ attr_reader :payment_settings
1118
+ # Payments for this invoice
1119
+ attr_reader :payments
1120
+ # End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
1121
+ attr_reader :period_end
1122
+ # Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
1123
+ attr_reader :period_start
1124
+ # Total amount of all post-payment credit notes issued for this invoice.
1125
+ attr_reader :post_payment_credit_notes_amount
1126
+ # Total amount of all pre-payment credit notes issued for this invoice.
1127
+ attr_reader :pre_payment_credit_notes_amount
1128
+ # This is the transaction number that appears on email receipts sent for this invoice.
1129
+ attr_reader :receipt_number
1130
+ # The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
1131
+ attr_reader :rendering
1132
+ # The details of the cost of shipping, including the ShippingRate applied on the invoice.
1133
+ attr_reader :shipping_cost
1134
+ # 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.
1135
+ attr_reader :shipping_details
1136
+ # 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.
1137
+ attr_reader :starting_balance
1138
+ # Extra information about an invoice for the customer's credit card statement.
1139
+ attr_reader :statement_descriptor
1140
+ # The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
1141
+ attr_reader :status
1142
+ # Attribute for field status_transitions
1143
+ attr_reader :status_transitions
1144
+ # Attribute for field subscription
1145
+ attr_reader :subscription
1146
+ # 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
1147
+ attr_reader :subtotal
1148
+ # 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
1149
+ attr_reader :subtotal_excluding_tax
1150
+ # ID of the test clock this invoice belongs to.
1151
+ attr_reader :test_clock
1152
+ # Attribute for field threshold_reason
1153
+ attr_reader :threshold_reason
1154
+ # Total after discounts and taxes.
1155
+ attr_reader :total
1156
+ # The aggregate amounts calculated per discount across all line items.
1157
+ attr_reader :total_discount_amounts
1158
+ # The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
1159
+ attr_reader :total_excluding_tax
1160
+ # The aggregate amounts calculated per margin across all line items.
1161
+ attr_reader :total_margin_amounts
1162
+ # 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.
1163
+ attr_reader :total_pretax_credit_amounts
1164
+ # The aggregate tax information of all line items.
1165
+ attr_reader :total_taxes
1166
+ # 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.
1167
+ attr_reader :webhooks_delivered_at
1168
+
1169
+ def self.inner_class_types
1170
+ @inner_class_types = {
1171
+ amounts_due: AmountsDue,
1172
+ applies_to: AppliesTo,
1173
+ automatic_tax: AutomaticTax,
1174
+ confirmation_secret: ConfirmationSecret,
1175
+ custom_fields: CustomField,
1176
+ customer_address: CustomerAddress,
1177
+ customer_shipping: CustomerShipping,
1178
+ customer_tax_ids: CustomerTaxId,
1179
+ from_invoice: FromInvoice,
1180
+ issuer: Issuer,
1181
+ last_finalization_error: LastFinalizationError,
1182
+ parent: Parent,
1183
+ payment_settings: PaymentSettings,
1184
+ rendering: Rendering,
1185
+ shipping_cost: ShippingCost,
1186
+ shipping_details: ShippingDetails,
1187
+ status_transitions: StatusTransitions,
1188
+ threshold_reason: ThresholdReason,
1189
+ total_discount_amounts: TotalDiscountAmount,
1190
+ total_margin_amounts: TotalMarginAmount,
1191
+ total_pretax_credit_amounts: TotalPretaxCreditAmount,
1192
+ total_taxes: TotalTax,
1193
+ }
1194
+ end
1195
+
1196
+ def self.field_remappings
1197
+ @field_remappings = {}
1198
+ end
1199
+ end
1200
+ end