stripe 18.1.0.pre.beta.1 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +0 -34
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -63
- data/lib/stripe/event_types.rb +0 -209
- data/lib/stripe/object_types.rb +0 -49
- data/lib/stripe/params/account_create_params.rb +48 -329
- data/lib/stripe/params/account_external_account_create_params.rb +2 -2
- data/lib/stripe/params/account_external_account_update_params.rb +2 -2
- data/lib/stripe/params/account_person_create_params.rb +10 -10
- data/lib/stripe/params/account_person_update_params.rb +10 -10
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +47 -291
- data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
- data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
- data/lib/stripe/params/charge_capture_params.rb +2 -1650
- data/lib/stripe/params/charge_create_params.rb +12 -12
- data/lib/stripe/params/charge_search_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +3 -1651
- data/lib/stripe/params/checkout/session_create_params.rb +41 -167
- data/lib/stripe/params/checkout/session_update_params.rb +12 -152
- data/lib/stripe/params/climate/order_create_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +6 -83
- data/lib/stripe/params/coupon_create_params.rb +2 -18
- data/lib/stripe/params/coupon_update_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
- data/lib/stripe/params/customer_create_params.rb +5 -5
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
- data/lib/stripe/params/customer_search_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/customer_update_params.rb +7 -7
- data/lib/stripe/params/dispute_update_params.rb +4 -13
- data/lib/stripe/params/file_create_params.rb +3 -3
- data/lib/stripe/params/file_link_create_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/session_create_params.rb +4 -33
- data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
- data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
- data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
- data/lib/stripe/params/invoice_add_lines_params.rb +9 -41
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +29 -110
- data/lib/stripe/params/invoice_create_preview_params.rb +42 -855
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +9 -41
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +7 -39
- data/lib/stripe/params/invoice_line_item_update_params.rb +8 -40
- data/lib/stripe/params/invoice_list_params.rb +2 -2
- data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +9 -41
- data/lib/stripe/params/invoice_update_params.rb +26 -107
- data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +7 -7
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -12
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +13 -1639
- data/lib/stripe/params/payment_intent_confirm_params.rb +52 -3012
- data/lib/stripe/params/payment_intent_create_params.rb +68 -3028
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +11 -32
- data/lib/stripe/params/payment_intent_list_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +57 -3048
- data/lib/stripe/params/payment_link_create_params.rb +19 -19
- data/lib/stripe/params/payment_link_update_params.rb +9 -9
- data/lib/stripe/params/payment_method_attach_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +38 -143
- data/lib/stripe/params/payment_method_configuration_update_params.rb +38 -143
- data/lib/stripe/params/payment_method_create_params.rb +4 -81
- data/lib/stripe/params/payment_method_update_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
- data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +1 -1
- data/lib/stripe/params/payout_update_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +4 -4
- data/lib/stripe/params/plan_update_params.rb +2 -2
- data/lib/stripe/params/price_create_params.rb +6 -6
- data/lib/stripe/params/price_search_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +3 -22
- data/lib/stripe/params/product_create_params.rb +7 -7
- data/lib/stripe/params/product_feature_create_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +1 -1
- data/lib/stripe/params/product_update_params.rb +4 -4
- data/lib/stripe/params/promotion_code_create_params.rb +3 -3
- data/lib/stripe/params/promotion_code_list_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +7 -805
- data/lib/stripe/params/quote_list_params.rb +2 -6
- data/lib/stripe/params/quote_update_params.rb +8 -813
- data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +2 -2
- data/lib/stripe/params/refund_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +9 -164
- data/lib/stripe/params/setup_intent_create_params.rb +15 -170
- data/lib/stripe/params/setup_intent_update_params.rb +11 -166
- data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +3 -3
- data/lib/stripe/params/source_update_params.rb +3 -3
- data/lib/stripe/params/subscription_create_params.rb +39 -264
- data/lib/stripe/params/subscription_item_create_params.rb +12 -56
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +11 -39
- data/lib/stripe/params/subscription_list_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_create_params.rb +20 -178
- data/lib/stripe/params/subscription_schedule_update_params.rb +20 -178
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +36 -245
- data/lib/stripe/params/tax/association_find_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
- data/lib/stripe/params/tax/settings_update_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
- data/lib/stripe/params/tax_id_create_params.rb +2 -2
- data/lib/stripe/params/tax_id_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_create_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
- data/lib/stripe/params/terminal/location_create_params.rb +2 -2
- data/lib/stripe/params/terminal/location_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
- data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -83
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +2 -26
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +2 -26
- data/lib/stripe/params/token_create_params.rb +22 -22
- data/lib/stripe/params/topup_create_params.rb +2 -2
- data/lib/stripe/params/topup_update_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +3 -7
- data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
- data/lib/stripe/params/transfer_update_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_create_params.rb +2 -9
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +2 -9
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -27
- data/lib/stripe/params/treasury/received_credit_create_params.rb +2 -26
- data/lib/stripe/params/treasury/received_debit_create_params.rb +2 -26
- data/lib/stripe/params/v2/core/account_create_params.rb +46 -271
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +31 -21
- data/lib/stripe/params/v2/core/account_update_params.rb +50 -268
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
- data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +0 -146
- data/lib/stripe/resources/account.rb +27 -208
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_session.rb +2 -83
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +1 -1
- data/lib/stripe/resources/balance.rb +2 -2
- data/lib/stripe/resources/balance_settings.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +1 -1
- data/lib/stripe/resources/billing/credit_grant.rb +2 -2
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
- data/lib/stripe/resources/billing_portal/session.rb +6 -6
- data/lib/stripe/resources/capability.rb +16 -16
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +46 -248
- data/lib/stripe/resources/checkout/session.rb +23 -123
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -144
- data/lib/stripe/resources/coupon.rb +4 -29
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -19
- data/lib/stripe/resources/customer.rb +8 -8
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/discount.rb +3 -3
- data/lib/stripe/resources/dispute.rb +5 -27
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -65
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +3 -28
- data/lib/stripe/resources/financial_connections/session.rb +3 -67
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/verification_report.rb +9 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +49 -166
- data/lib/stripe/resources/invoice_item.rb +6 -8
- data/lib/stripe/resources/invoice_line_item.rb +6 -44
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -20
- data/lib/stripe/resources/issuing/card.rb +12 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +12 -14
- data/lib/stripe/resources/line_item.rb +4 -69
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/mandate.rb +0 -43
- data/lib/stripe/resources/payment_attempt_record.rb +79 -201
- data/lib/stripe/resources/payment_intent.rb +59 -751
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
- data/lib/stripe/resources/payment_link.rb +7 -7
- data/lib/stripe/resources/payment_method.rb +13 -148
- data/lib/stripe/resources/payment_method_configuration.rb +4 -174
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +81 -201
- data/lib/stripe/resources/payout.rb +7 -7
- data/lib/stripe/resources/person.rb +23 -23
- data/lib/stripe/resources/plan.rb +5 -5
- data/lib/stripe/resources/price.rb +6 -26
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +14 -581
- data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -1
- data/lib/stripe/resources/refund.rb +3 -21
- data/lib/stripe/resources/reporting/report_run.rb +3 -3
- data/lib/stripe/resources/reporting/report_type.rb +3 -3
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +17 -65
- data/lib/stripe/resources/setup_intent.rb +20 -107
- data/lib/stripe/resources/shipping_rate.rb +3 -3
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
- data/lib/stripe/resources/source.rb +8 -46
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +23 -221
- data/lib/stripe/resources/subscription_item.rb +8 -27
- data/lib/stripe/resources/subscription_schedule.rb +11 -204
- data/lib/stripe/resources/tax/association.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +12 -12
- data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
- data/lib/stripe/resources/tax/registration.rb +3 -3
- data/lib/stripe/resources/tax/settings.rb +2 -2
- data/lib/stripe/resources/tax/transaction.rb +9 -9
- data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
- data/lib/stripe/resources/tax_id.rb +4 -4
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -18
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +5 -7
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/financial_account.rb +1 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
- data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -35
- data/lib/stripe/resources/treasury/received_credit.rb +10 -40
- data/lib/stripe/resources/treasury/received_debit.rb +7 -39
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/core/account.rb +133 -789
- data/lib/stripe/resources/v2/core/account_link.rb +11 -11
- data/lib/stripe/resources/v2/core/account_person.rb +10 -10
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +0 -100
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +0 -4
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -51
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +31 -2
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe.rbi +17422 -76304
- metadata +4 -301
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_cancel_params.rb +0 -13
- data/lib/stripe/params/order_create_params.rb +0 -2061
- data/lib/stripe/params/order_line_item_list_params.rb +0 -22
- data/lib/stripe/params/order_list_line_items_params.rb +0 -22
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_reopen_params.rb +0 -13
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2065
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -79
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -147
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -987
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -521
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -81
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
|
@@ -5,13 +5,13 @@ module Stripe
|
|
|
5
5
|
# Invoices are statements of amounts owed by a customer, and are either
|
|
6
6
|
# generated one-off, or generated periodically from a subscription.
|
|
7
7
|
#
|
|
8
|
-
# They contain [invoice items](https://stripe.com
|
|
8
|
+
# They contain [invoice items](https://api.stripe.com#invoiceitems), and proration adjustments
|
|
9
9
|
# that may be caused by subscription upgrades/downgrades (if necessary).
|
|
10
10
|
#
|
|
11
11
|
# If your invoice is configured to be billed through automatic charges,
|
|
12
12
|
# Stripe automatically finalizes your invoice and attempts payment. Note
|
|
13
13
|
# that finalizing the invoice,
|
|
14
|
-
# [when automatic](https://stripe.com/
|
|
14
|
+
# [when automatic](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection), does
|
|
15
15
|
# not happen immediately as the invoice is created. Stripe waits
|
|
16
16
|
# until one hour after the last webhook was successfully sent (or the last
|
|
17
17
|
# webhook timed out after failing). If you (and the platforms you may have
|
|
@@ -31,9 +31,9 @@ module Stripe
|
|
|
31
31
|
# customer's credit balance which is applied to the next invoice.
|
|
32
32
|
#
|
|
33
33
|
# More details on the customer's credit balance are
|
|
34
|
-
# [here](https://stripe.com/
|
|
34
|
+
# [here](https://docs.stripe.com/billing/customer/balance).
|
|
35
35
|
#
|
|
36
|
-
# Related guide: [Send invoices to customers](https://stripe.com/
|
|
36
|
+
# Related guide: [Send invoices to customers](https://docs.stripe.com/billing/invoices/sending)
|
|
37
37
|
class Invoice < APIResource
|
|
38
38
|
extend Stripe::APIOperations::Create
|
|
39
39
|
include Stripe::APIOperations::Delete
|
|
@@ -49,33 +49,6 @@ module Stripe
|
|
|
49
49
|
|
|
50
50
|
nested_resource_class_methods :line, operations: %i[list]
|
|
51
51
|
|
|
52
|
-
class AmountsDue < ::Stripe::StripeObject
|
|
53
|
-
# Incremental amount due for this payment in cents (or local equivalent).
|
|
54
|
-
attr_reader :amount
|
|
55
|
-
# The amount in cents (or local equivalent) that was paid for this payment.
|
|
56
|
-
attr_reader :amount_paid
|
|
57
|
-
# The difference between the payment’s amount and amount_paid, in cents (or local equivalent).
|
|
58
|
-
attr_reader :amount_remaining
|
|
59
|
-
# Number of days from when invoice is finalized until the payment is due.
|
|
60
|
-
attr_reader :days_until_due
|
|
61
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
62
|
-
attr_reader :description
|
|
63
|
-
# Date on which a payment plan’s payment is due.
|
|
64
|
-
attr_reader :due_date
|
|
65
|
-
# Timestamp when the payment was paid.
|
|
66
|
-
attr_reader :paid_at
|
|
67
|
-
# The status of the payment, one of `open`, `paid`, or `past_due`
|
|
68
|
-
attr_reader :status
|
|
69
|
-
|
|
70
|
-
def self.inner_class_types
|
|
71
|
-
@inner_class_types = {}
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
def self.field_remappings
|
|
75
|
-
@field_remappings = {}
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
|
|
79
52
|
class AutomaticTax < ::Stripe::StripeObject
|
|
80
53
|
class Liability < ::Stripe::StripeObject
|
|
81
54
|
# The connected account being referenced when `type` is `account`.
|
|
@@ -93,7 +66,7 @@ module Stripe
|
|
|
93
66
|
end
|
|
94
67
|
# If Stripe disabled automatic tax, this enum describes why.
|
|
95
68
|
attr_reader :disabled_reason
|
|
96
|
-
# Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/
|
|
69
|
+
# 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.
|
|
97
70
|
attr_reader :enabled
|
|
98
71
|
# 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.
|
|
99
72
|
attr_reader :liability
|
|
@@ -152,7 +125,7 @@ module Stripe
|
|
|
152
125
|
attr_reader :line2
|
|
153
126
|
# ZIP or postal code.
|
|
154
127
|
attr_reader :postal_code
|
|
155
|
-
# State, county, province, or region.
|
|
128
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
156
129
|
attr_reader :state
|
|
157
130
|
|
|
158
131
|
def self.inner_class_types
|
|
@@ -176,7 +149,7 @@ module Stripe
|
|
|
176
149
|
attr_reader :line2
|
|
177
150
|
# ZIP or postal code.
|
|
178
151
|
attr_reader :postal_code
|
|
179
|
-
# State, county, province, or region.
|
|
152
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
180
153
|
attr_reader :state
|
|
181
154
|
|
|
182
155
|
def self.inner_class_types
|
|
@@ -253,15 +226,15 @@ module Stripe
|
|
|
253
226
|
end
|
|
254
227
|
|
|
255
228
|
class LastFinalizationError < ::Stripe::StripeObject
|
|
256
|
-
# For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/
|
|
229
|
+
# 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.
|
|
257
230
|
attr_reader :advice_code
|
|
258
231
|
# For card errors, the ID of the failed charge.
|
|
259
232
|
attr_reader :charge
|
|
260
|
-
# For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/
|
|
233
|
+
# For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
|
|
261
234
|
attr_reader :code
|
|
262
|
-
# For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/
|
|
235
|
+
# 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.
|
|
263
236
|
attr_reader :decline_code
|
|
264
|
-
# A URL to more information about the [error code](https://stripe.com/
|
|
237
|
+
# A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
265
238
|
attr_reader :doc_url
|
|
266
239
|
# A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
267
240
|
attr_reader :message
|
|
@@ -277,17 +250,17 @@ module Stripe
|
|
|
277
250
|
# see the history of payment attempts for a particular session.
|
|
278
251
|
#
|
|
279
252
|
# A PaymentIntent transitions through
|
|
280
|
-
# [multiple statuses](
|
|
253
|
+
# [multiple statuses](/payments/paymentintents/lifecycle)
|
|
281
254
|
# throughout its lifetime as it interfaces with Stripe.js to perform
|
|
282
255
|
# authentication flows and ultimately creates at most one successful charge.
|
|
283
256
|
#
|
|
284
|
-
# Related guide: [Payment Intents API](https://stripe.com/
|
|
257
|
+
# Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
|
|
285
258
|
attr_reader :payment_intent
|
|
286
259
|
# PaymentMethod objects represent your customer's payment instruments.
|
|
287
|
-
# You can use them with [PaymentIntents](https://stripe.com/
|
|
260
|
+
# You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
|
|
288
261
|
# Customer objects to store instrument details for future payments.
|
|
289
262
|
#
|
|
290
|
-
# Related guides: [Payment Methods](https://stripe.com/
|
|
263
|
+
# Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
|
|
291
264
|
attr_reader :payment_method
|
|
292
265
|
# 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.
|
|
293
266
|
attr_reader :payment_method_type
|
|
@@ -295,7 +268,7 @@ module Stripe
|
|
|
295
268
|
attr_reader :request_log_url
|
|
296
269
|
# A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
|
|
297
270
|
# For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
|
|
298
|
-
# Later, you can use [PaymentIntents](https://stripe.com
|
|
271
|
+
# Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
|
|
299
272
|
#
|
|
300
273
|
# Create a SetupIntent when you're ready to collect your customer's payment credentials.
|
|
301
274
|
# Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
|
|
@@ -306,9 +279,9 @@ module Stripe
|
|
|
306
279
|
# For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
|
|
307
280
|
# [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
|
|
308
281
|
# to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
|
|
309
|
-
# If you use the SetupIntent with a [Customer](https://stripe.com
|
|
282
|
+
# If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
|
|
310
283
|
# it automatically attaches the resulting payment method to that Customer after successful setup.
|
|
311
|
-
# We recommend using SetupIntents or [setup_future_usage](https://stripe.com
|
|
284
|
+
# We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
|
|
312
285
|
# PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
|
|
313
286
|
#
|
|
314
287
|
# By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
|
|
@@ -330,19 +303,6 @@ module Stripe
|
|
|
330
303
|
end
|
|
331
304
|
|
|
332
305
|
class Parent < ::Stripe::StripeObject
|
|
333
|
-
class BillingCadenceDetails < ::Stripe::StripeObject
|
|
334
|
-
# The billing cadence that generated this invoice
|
|
335
|
-
attr_reader :billing_cadence
|
|
336
|
-
|
|
337
|
-
def self.inner_class_types
|
|
338
|
-
@inner_class_types = {}
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
def self.field_remappings
|
|
342
|
-
@field_remappings = {}
|
|
343
|
-
end
|
|
344
|
-
end
|
|
345
|
-
|
|
346
306
|
class QuoteDetails < ::Stripe::StripeObject
|
|
347
307
|
# The quote that generated this invoice
|
|
348
308
|
attr_reader :quote
|
|
@@ -357,40 +317,22 @@ module Stripe
|
|
|
357
317
|
end
|
|
358
318
|
|
|
359
319
|
class SubscriptionDetails < ::Stripe::StripeObject
|
|
360
|
-
|
|
361
|
-
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
362
|
-
attr_reader :behavior
|
|
363
|
-
# The time after which the subscription will resume collecting payments.
|
|
364
|
-
attr_reader :resumes_at
|
|
365
|
-
|
|
366
|
-
def self.inner_class_types
|
|
367
|
-
@inner_class_types = {}
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
def self.field_remappings
|
|
371
|
-
@field_remappings = {}
|
|
372
|
-
end
|
|
373
|
-
end
|
|
374
|
-
# Set of [key-value pairs](https://stripe.com/docs/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.
|
|
320
|
+
# 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.
|
|
375
321
|
# *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
|
376
322
|
attr_reader :metadata
|
|
377
|
-
# 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://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
378
|
-
attr_reader :pause_collection
|
|
379
323
|
# The subscription that generated this invoice
|
|
380
324
|
attr_reader :subscription
|
|
381
325
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
|
382
326
|
attr_reader :subscription_proration_date
|
|
383
327
|
|
|
384
328
|
def self.inner_class_types
|
|
385
|
-
@inner_class_types = {
|
|
329
|
+
@inner_class_types = {}
|
|
386
330
|
end
|
|
387
331
|
|
|
388
332
|
def self.field_remappings
|
|
389
333
|
@field_remappings = {}
|
|
390
334
|
end
|
|
391
335
|
end
|
|
392
|
-
# Details about the billing cadence that generated this invoice
|
|
393
|
-
attr_reader :billing_cadence_details
|
|
394
336
|
# Details about the quote that generated this invoice
|
|
395
337
|
attr_reader :quote_details
|
|
396
338
|
# Details about the subscription that generated this invoice
|
|
@@ -400,7 +342,6 @@ module Stripe
|
|
|
400
342
|
|
|
401
343
|
def self.inner_class_types
|
|
402
344
|
@inner_class_types = {
|
|
403
|
-
billing_cadence_details: BillingCadenceDetails,
|
|
404
345
|
quote_details: QuoteDetails,
|
|
405
346
|
subscription_details: SubscriptionDetails,
|
|
406
347
|
}
|
|
@@ -468,7 +409,7 @@ module Stripe
|
|
|
468
409
|
end
|
|
469
410
|
# Attribute for field installments
|
|
470
411
|
attr_reader :installments
|
|
471
|
-
# 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://stripe.com/
|
|
412
|
+
# 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.
|
|
472
413
|
attr_reader :request_three_d_secure
|
|
473
414
|
|
|
474
415
|
def self.inner_class_types
|
|
@@ -521,16 +462,6 @@ module Stripe
|
|
|
521
462
|
end
|
|
522
463
|
end
|
|
523
464
|
|
|
524
|
-
class IdBankTransfer < ::Stripe::StripeObject
|
|
525
|
-
def self.inner_class_types
|
|
526
|
-
@inner_class_types = {}
|
|
527
|
-
end
|
|
528
|
-
|
|
529
|
-
def self.field_remappings
|
|
530
|
-
@field_remappings = {}
|
|
531
|
-
end
|
|
532
|
-
end
|
|
533
|
-
|
|
534
465
|
class Konbini < ::Stripe::StripeObject
|
|
535
466
|
def self.inner_class_types
|
|
536
467
|
@inner_class_types = {}
|
|
@@ -541,39 +472,14 @@ module Stripe
|
|
|
541
472
|
end
|
|
542
473
|
end
|
|
543
474
|
|
|
544
|
-
class
|
|
545
|
-
# Determines if the amount includes the IOF tax.
|
|
546
|
-
attr_reader :amount_includes_iof
|
|
547
|
-
|
|
548
|
-
def self.inner_class_types
|
|
549
|
-
@inner_class_types = {}
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
def self.field_remappings
|
|
553
|
-
@field_remappings = {}
|
|
554
|
-
end
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
class SepaDebit < ::Stripe::StripeObject
|
|
558
|
-
def self.inner_class_types
|
|
559
|
-
@inner_class_types = {}
|
|
560
|
-
end
|
|
561
|
-
|
|
562
|
-
def self.field_remappings
|
|
563
|
-
@field_remappings = {}
|
|
564
|
-
end
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
class Upi < ::Stripe::StripeObject
|
|
475
|
+
class Payto < ::Stripe::StripeObject
|
|
568
476
|
class MandateOptions < ::Stripe::StripeObject
|
|
569
|
-
#
|
|
477
|
+
# The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
|
|
570
478
|
attr_reader :amount
|
|
571
|
-
#
|
|
479
|
+
# Only `maximum` is supported.
|
|
572
480
|
attr_reader :amount_type
|
|
573
|
-
#
|
|
574
|
-
attr_reader :
|
|
575
|
-
# 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.
|
|
576
|
-
attr_reader :end_date
|
|
481
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
482
|
+
attr_reader :purpose
|
|
577
483
|
|
|
578
484
|
def self.inner_class_types
|
|
579
485
|
@inner_class_types = {}
|
|
@@ -595,13 +501,21 @@ module Stripe
|
|
|
595
501
|
end
|
|
596
502
|
end
|
|
597
503
|
|
|
504
|
+
class SepaDebit < ::Stripe::StripeObject
|
|
505
|
+
def self.inner_class_types
|
|
506
|
+
@inner_class_types = {}
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
def self.field_remappings
|
|
510
|
+
@field_remappings = {}
|
|
511
|
+
end
|
|
512
|
+
end
|
|
513
|
+
|
|
598
514
|
class UsBankAccount < ::Stripe::StripeObject
|
|
599
515
|
class FinancialConnections < ::Stripe::StripeObject
|
|
600
516
|
class Filters < ::Stripe::StripeObject
|
|
601
517
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
602
518
|
attr_reader :account_subcategories
|
|
603
|
-
# The institution to use to filter for possible accounts to link.
|
|
604
|
-
attr_reader :institution
|
|
605
519
|
|
|
606
520
|
def self.inner_class_types
|
|
607
521
|
@inner_class_types = {}
|
|
@@ -647,16 +561,12 @@ module Stripe
|
|
|
647
561
|
attr_reader :card
|
|
648
562
|
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
649
563
|
attr_reader :customer_balance
|
|
650
|
-
# 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.
|
|
651
|
-
attr_reader :id_bank_transfer
|
|
652
564
|
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
653
565
|
attr_reader :konbini
|
|
654
|
-
# If paying by `
|
|
655
|
-
attr_reader :
|
|
566
|
+
# If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
567
|
+
attr_reader :payto
|
|
656
568
|
# 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.
|
|
657
569
|
attr_reader :sepa_debit
|
|
658
|
-
# If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
|
659
|
-
attr_reader :upi
|
|
660
570
|
# 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.
|
|
661
571
|
attr_reader :us_bank_account
|
|
662
572
|
|
|
@@ -666,11 +576,9 @@ module Stripe
|
|
|
666
576
|
bancontact: Bancontact,
|
|
667
577
|
card: Card,
|
|
668
578
|
customer_balance: CustomerBalance,
|
|
669
|
-
id_bank_transfer: IdBankTransfer,
|
|
670
579
|
konbini: Konbini,
|
|
671
|
-
|
|
580
|
+
payto: Payto,
|
|
672
581
|
sepa_debit: SepaDebit,
|
|
673
|
-
upi: Upi,
|
|
674
582
|
us_bank_account: UsBankAccount,
|
|
675
583
|
}
|
|
676
584
|
end
|
|
@@ -779,7 +687,7 @@ module Stripe
|
|
|
779
687
|
attr_reader :line2
|
|
780
688
|
# ZIP or postal code.
|
|
781
689
|
attr_reader :postal_code
|
|
782
|
-
# State, county, province, or region.
|
|
690
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
783
691
|
attr_reader :state
|
|
784
692
|
|
|
785
693
|
def self.inner_class_types
|
|
@@ -873,21 +781,6 @@ module Stripe
|
|
|
873
781
|
end
|
|
874
782
|
end
|
|
875
783
|
|
|
876
|
-
class TotalMarginAmount < ::Stripe::StripeObject
|
|
877
|
-
# The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
878
|
-
attr_reader :amount
|
|
879
|
-
# The margin that was applied to get this margin amount.
|
|
880
|
-
attr_reader :margin
|
|
881
|
-
|
|
882
|
-
def self.inner_class_types
|
|
883
|
-
@inner_class_types = {}
|
|
884
|
-
end
|
|
885
|
-
|
|
886
|
-
def self.field_remappings
|
|
887
|
-
@field_remappings = {}
|
|
888
|
-
end
|
|
889
|
-
end
|
|
890
|
-
|
|
891
784
|
class TotalPretaxCreditAmount < ::Stripe::StripeObject
|
|
892
785
|
# The amount, in cents (or local equivalent), of the pretax credit amount.
|
|
893
786
|
attr_reader :amount
|
|
@@ -895,8 +788,6 @@ module Stripe
|
|
|
895
788
|
attr_reader :credit_balance_transaction
|
|
896
789
|
# The discount that was applied to get this pretax credit amount.
|
|
897
790
|
attr_reader :discount
|
|
898
|
-
# The margin that was applied to get this pretax credit amount.
|
|
899
|
-
attr_reader :margin
|
|
900
791
|
# Type of the pretax credit amount referenced.
|
|
901
792
|
attr_reader :type
|
|
902
793
|
|
|
@@ -911,7 +802,7 @@ module Stripe
|
|
|
911
802
|
|
|
912
803
|
class TotalTax < ::Stripe::StripeObject
|
|
913
804
|
class TaxRateDetails < ::Stripe::StripeObject
|
|
914
|
-
#
|
|
805
|
+
# ID of the tax rate
|
|
915
806
|
attr_reader :tax_rate
|
|
916
807
|
|
|
917
808
|
def self.inner_class_types
|
|
@@ -959,15 +850,13 @@ module Stripe
|
|
|
959
850
|
attr_reader :amount_remaining
|
|
960
851
|
# This is the sum of all the shipping amounts.
|
|
961
852
|
attr_reader :amount_shipping
|
|
962
|
-
# List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
|
|
963
|
-
attr_reader :amounts_due
|
|
964
853
|
# ID of the Connect Application that created the invoice.
|
|
965
854
|
attr_reader :application
|
|
966
855
|
# 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.
|
|
967
856
|
attr_reader :attempt_count
|
|
968
857
|
# 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.
|
|
969
858
|
attr_reader :attempted
|
|
970
|
-
# Controls whether Stripe performs [automatic collection](https://stripe.com/
|
|
859
|
+
# Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
|
|
971
860
|
attr_reader :auto_advance
|
|
972
861
|
# Attribute for field automatic_tax
|
|
973
862
|
attr_reader :automatic_tax
|
|
@@ -993,9 +882,9 @@ module Stripe
|
|
|
993
882
|
attr_reader :currency
|
|
994
883
|
# Custom fields displayed on the invoice.
|
|
995
884
|
attr_reader :custom_fields
|
|
996
|
-
# The ID of the customer
|
|
885
|
+
# The ID of the customer to bill.
|
|
997
886
|
attr_reader :customer
|
|
998
|
-
# The ID of the account
|
|
887
|
+
# The ID of the account representing the customer to bill.
|
|
999
888
|
attr_reader :customer_account
|
|
1000
889
|
# 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.
|
|
1001
890
|
attr_reader :customer_address
|
|
@@ -1011,8 +900,6 @@ module Stripe
|
|
|
1011
900
|
attr_reader :customer_tax_exempt
|
|
1012
901
|
# 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.
|
|
1013
902
|
attr_reader :customer_tax_ids
|
|
1014
|
-
# The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
|
|
1015
|
-
attr_reader :default_margins
|
|
1016
903
|
# 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.
|
|
1017
904
|
attr_reader :default_payment_method
|
|
1018
905
|
# 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.
|
|
@@ -1031,7 +918,7 @@ module Stripe
|
|
|
1031
918
|
attr_reader :ending_balance
|
|
1032
919
|
# Footer displayed on the invoice.
|
|
1033
920
|
attr_reader :footer
|
|
1034
|
-
# Details of the invoice that was cloned. See the [revision documentation](https://stripe.com/
|
|
921
|
+
# Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
|
|
1035
922
|
attr_reader :from_invoice
|
|
1036
923
|
# The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
|
|
1037
924
|
attr_reader :hosted_invoice_url
|
|
@@ -1049,7 +936,7 @@ module Stripe
|
|
|
1049
936
|
attr_reader :lines
|
|
1050
937
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
1051
938
|
attr_reader :livemode
|
|
1052
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
939
|
+
# 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.
|
|
1053
940
|
attr_reader :metadata
|
|
1054
941
|
# The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.
|
|
1055
942
|
attr_reader :next_payment_attempt
|
|
@@ -1057,7 +944,7 @@ module Stripe
|
|
|
1057
944
|
attr_reader :number
|
|
1058
945
|
# String representing the object's type. Objects of the same type share the same value.
|
|
1059
946
|
attr_reader :object
|
|
1060
|
-
# 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://stripe.com/
|
|
947
|
+
# 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.
|
|
1061
948
|
attr_reader :on_behalf_of
|
|
1062
949
|
# The parent that generated this invoice
|
|
1063
950
|
attr_reader :parent
|
|
@@ -1085,7 +972,7 @@ module Stripe
|
|
|
1085
972
|
attr_reader :starting_balance
|
|
1086
973
|
# Extra information about an invoice for the customer's credit card statement.
|
|
1087
974
|
attr_reader :statement_descriptor
|
|
1088
|
-
# The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/
|
|
975
|
+
# The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
|
|
1089
976
|
attr_reader :status
|
|
1090
977
|
# Attribute for field status_transitions
|
|
1091
978
|
attr_reader :status_transitions
|
|
@@ -1103,13 +990,11 @@ module Stripe
|
|
|
1103
990
|
attr_reader :total_discount_amounts
|
|
1104
991
|
# The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
|
|
1105
992
|
attr_reader :total_excluding_tax
|
|
1106
|
-
# The aggregate amounts calculated per margin across all line items.
|
|
1107
|
-
attr_reader :total_margin_amounts
|
|
1108
993
|
# 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.
|
|
1109
994
|
attr_reader :total_pretax_credit_amounts
|
|
1110
995
|
# The aggregate tax information of all line items.
|
|
1111
996
|
attr_reader :total_taxes
|
|
1112
|
-
# Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://stripe.com/
|
|
997
|
+
# 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.
|
|
1113
998
|
attr_reader :webhooks_delivered_at
|
|
1114
999
|
# Always true for a deleted object
|
|
1115
1000
|
attr_reader :deleted
|
|
@@ -1393,7 +1278,6 @@ module Stripe
|
|
|
1393
1278
|
|
|
1394
1279
|
def self.inner_class_types
|
|
1395
1280
|
@inner_class_types = {
|
|
1396
|
-
amounts_due: AmountsDue,
|
|
1397
1281
|
automatic_tax: AutomaticTax,
|
|
1398
1282
|
confirmation_secret: ConfirmationSecret,
|
|
1399
1283
|
custom_fields: CustomField,
|
|
@@ -1411,7 +1295,6 @@ module Stripe
|
|
|
1411
1295
|
status_transitions: StatusTransitions,
|
|
1412
1296
|
threshold_reason: ThresholdReason,
|
|
1413
1297
|
total_discount_amounts: TotalDiscountAmount,
|
|
1414
|
-
total_margin_amounts: TotalMarginAmount,
|
|
1415
1298
|
total_pretax_credit_amounts: TotalPretaxCreditAmount,
|
|
1416
1299
|
total_taxes: TotalTax,
|
|
1417
1300
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# Invoice Items represent the component lines of an [invoice](https://stripe.com/
|
|
5
|
+
# Invoice Items represent the component lines of an [invoice](https://docs.stripe.com/api/invoices). When you create an invoice item with an `invoice` field, it is attached to the specified invoice and included as [an invoice line item](https://docs.stripe.com/api/invoices/line_item) within [invoice.lines](https://docs.stripe.com/api/invoices/object#invoice_object-lines).
|
|
6
6
|
#
|
|
7
7
|
# Invoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined
|
|
8
|
-
# with a [subscription](https://stripe.com/
|
|
8
|
+
# with a [subscription](https://docs.stripe.com/api/subscriptions). Sometimes you want to add a charge or credit to a customer, but actually charge
|
|
9
9
|
# or credit the customer's card only at the end of a regular billing cycle. This is useful for combining several charges
|
|
10
10
|
# (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.
|
|
11
11
|
#
|
|
12
|
-
# Related guides: [Integrate with the Invoicing API](https://stripe.com/
|
|
12
|
+
# Related guides: [Integrate with the Invoicing API](https://docs.stripe.com/invoicing/integration), [Subscription Invoices](https://docs.stripe.com/billing/invoices/subscription#adding-upcoming-invoice-items).
|
|
13
13
|
class InvoiceItem < APIResource
|
|
14
14
|
extend Stripe::APIOperations::Create
|
|
15
15
|
include Stripe::APIOperations::Delete
|
|
@@ -126,9 +126,9 @@ module Stripe
|
|
|
126
126
|
attr_reader :amount
|
|
127
127
|
# 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).
|
|
128
128
|
attr_reader :currency
|
|
129
|
-
# The ID of the customer
|
|
129
|
+
# The ID of the customer to bill for this invoice item.
|
|
130
130
|
attr_reader :customer
|
|
131
|
-
# The ID of the account
|
|
131
|
+
# The ID of the account to bill for this invoice item.
|
|
132
132
|
attr_reader :customer_account
|
|
133
133
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
134
134
|
attr_reader :date
|
|
@@ -144,9 +144,7 @@ module Stripe
|
|
|
144
144
|
attr_reader :invoice
|
|
145
145
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
146
146
|
attr_reader :livemode
|
|
147
|
-
#
|
|
148
|
-
attr_reader :margins
|
|
149
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
147
|
+
# 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.
|
|
150
148
|
attr_reader :metadata
|
|
151
149
|
# The amount after discounts, but before credits and taxes. This field is `null` for `discountable=true` items.
|
|
152
150
|
attr_reader :net_amount
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# Invoice Line Items represent the individual lines within an [invoice](https://stripe.com/
|
|
5
|
+
# Invoice Line Items represent the individual lines within an [invoice](https://docs.stripe.com/api/invoices) and only exist within the context of an invoice.
|
|
6
6
|
#
|
|
7
|
-
# Each line item is backed by either an [invoice item](https://stripe.com/
|
|
7
|
+
# Each line item is backed by either an [invoice item](https://docs.stripe.com/api/invoiceitems) or a [subscription item](https://docs.stripe.com/api/subscription_items).
|
|
8
8
|
class InvoiceLineItem < APIResource
|
|
9
9
|
include Stripe::APIOperations::Save
|
|
10
10
|
|
|
@@ -28,21 +28,6 @@ module Stripe
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
class MarginAmount < ::Stripe::StripeObject
|
|
32
|
-
# The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
33
|
-
attr_reader :amount
|
|
34
|
-
# The margin that was applied to get this margin amount.
|
|
35
|
-
attr_reader :margin
|
|
36
|
-
|
|
37
|
-
def self.inner_class_types
|
|
38
|
-
@inner_class_types = {}
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
def self.field_remappings
|
|
42
|
-
@field_remappings = {}
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
31
|
class Parent < ::Stripe::StripeObject
|
|
47
32
|
class InvoiceItemDetails < ::Stripe::StripeObject
|
|
48
33
|
class ProrationDetails < ::Stripe::StripeObject
|
|
@@ -176,8 +161,6 @@ module Stripe
|
|
|
176
161
|
attr_reader :credit_balance_transaction
|
|
177
162
|
# The discount that was applied to get this pretax credit amount.
|
|
178
163
|
attr_reader :discount
|
|
179
|
-
# The margin that was applied to get this pretax credit amount.
|
|
180
|
-
attr_reader :margin
|
|
181
164
|
# Type of the pretax credit amount referenced.
|
|
182
165
|
attr_reader :type
|
|
183
166
|
|
|
@@ -221,24 +204,9 @@ module Stripe
|
|
|
221
204
|
end
|
|
222
205
|
end
|
|
223
206
|
|
|
224
|
-
class TaxCalculationReference < ::Stripe::StripeObject
|
|
225
|
-
# The calculation identifier for tax calculation response.
|
|
226
|
-
attr_reader :calculation_id
|
|
227
|
-
# The calculation identifier for tax calculation response line item.
|
|
228
|
-
attr_reader :calculation_item_id
|
|
229
|
-
|
|
230
|
-
def self.inner_class_types
|
|
231
|
-
@inner_class_types = {}
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def self.field_remappings
|
|
235
|
-
@field_remappings = {}
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
|
|
239
207
|
class Tax < ::Stripe::StripeObject
|
|
240
208
|
class TaxRateDetails < ::Stripe::StripeObject
|
|
241
|
-
#
|
|
209
|
+
# ID of the tax rate
|
|
242
210
|
attr_reader :tax_rate
|
|
243
211
|
|
|
244
212
|
def self.inner_class_types
|
|
@@ -288,11 +256,7 @@ module Stripe
|
|
|
288
256
|
attr_reader :invoice
|
|
289
257
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
290
258
|
attr_reader :livemode
|
|
291
|
-
#
|
|
292
|
-
attr_reader :margin_amounts
|
|
293
|
-
# The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.
|
|
294
|
-
attr_reader :margins
|
|
295
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items with `type=subscription`, `metadata` reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.
|
|
259
|
+
# 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. Note that for line items with `type=subscription`, `metadata` reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.
|
|
296
260
|
attr_reader :metadata
|
|
297
261
|
# String representing the object's type. Objects of the same type share the same value.
|
|
298
262
|
attr_reader :object
|
|
@@ -308,8 +272,8 @@ module Stripe
|
|
|
308
272
|
attr_reader :quantity
|
|
309
273
|
# Attribute for field subscription
|
|
310
274
|
attr_reader :subscription
|
|
311
|
-
# The
|
|
312
|
-
attr_reader :
|
|
275
|
+
# The subtotal of the line item, in cents (or local equivalent), before any discounts or taxes.
|
|
276
|
+
attr_reader :subtotal
|
|
313
277
|
# The tax information of the line item.
|
|
314
278
|
attr_reader :taxes
|
|
315
279
|
|
|
@@ -329,12 +293,10 @@ module Stripe
|
|
|
329
293
|
def self.inner_class_types
|
|
330
294
|
@inner_class_types = {
|
|
331
295
|
discount_amounts: DiscountAmount,
|
|
332
|
-
margin_amounts: MarginAmount,
|
|
333
296
|
parent: Parent,
|
|
334
297
|
period: Period,
|
|
335
298
|
pretax_credit_amounts: PretaxCreditAmount,
|
|
336
299
|
pricing: Pricing,
|
|
337
|
-
tax_calculation_reference: TaxCalculationReference,
|
|
338
300
|
taxes: Tax,
|
|
339
301
|
}
|
|
340
302
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# Invoice Payments represent payments made against invoices. Invoice Payments can
|
|
6
6
|
# be accessed in two ways:
|
|
7
|
-
# 1. By expanding the `payments` field on the [Invoice](https://stripe.com
|
|
7
|
+
# 1. By expanding the `payments` field on the [Invoice](https://api.stripe.com#invoice) resource.
|
|
8
8
|
# 2. By using the Invoice Payment retrieve and list endpoints.
|
|
9
9
|
#
|
|
10
10
|
# Invoice Payments include the mapping between payment objects, such as Payment Intent, and Invoices.
|