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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# A subscription schedule allows you to create and manage the lifecycle of a subscription by predefining expected changes.
|
|
6
6
|
#
|
|
7
|
-
# Related guide: [Subscription schedules](https://stripe.com/
|
|
7
|
+
# Related guide: [Subscription schedules](https://docs.stripe.com/billing/subscriptions/subscription-schedules)
|
|
8
8
|
class SubscriptionSchedule < APIResource
|
|
9
9
|
extend Stripe::APIOperations::Create
|
|
10
10
|
extend Stripe::APIOperations::List
|
|
@@ -155,7 +155,7 @@ module Stripe
|
|
|
155
155
|
attr_reader :application_fee_percent
|
|
156
156
|
# Attribute for field automatic_tax
|
|
157
157
|
attr_reader :automatic_tax
|
|
158
|
-
# Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/
|
|
158
|
+
# Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
159
159
|
attr_reader :billing_cycle_anchor
|
|
160
160
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
161
161
|
attr_reader :billing_thresholds
|
|
@@ -186,65 +186,18 @@ module Stripe
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
class LastPriceMigrationError < ::Stripe::StripeObject
|
|
190
|
-
class FailedTransition < ::Stripe::StripeObject
|
|
191
|
-
# The original price to be migrated.
|
|
192
|
-
attr_reader :source_price
|
|
193
|
-
# The intended resulting price of the migration.
|
|
194
|
-
attr_reader :target_price
|
|
195
|
-
|
|
196
|
-
def self.inner_class_types
|
|
197
|
-
@inner_class_types = {}
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
def self.field_remappings
|
|
201
|
-
@field_remappings = {}
|
|
202
|
-
end
|
|
203
|
-
end
|
|
204
|
-
# The time at which the price migration encountered an error.
|
|
205
|
-
attr_reader :errored_at
|
|
206
|
-
# The involved price pairs in each failed transition.
|
|
207
|
-
attr_reader :failed_transitions
|
|
208
|
-
# The type of error encountered by the price migration.
|
|
209
|
-
attr_reader :type
|
|
210
|
-
|
|
211
|
-
def self.inner_class_types
|
|
212
|
-
@inner_class_types = { failed_transitions: FailedTransition }
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
def self.field_remappings
|
|
216
|
-
@field_remappings = {}
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
189
|
class Phase < ::Stripe::StripeObject
|
|
221
190
|
class AddInvoiceItem < ::Stripe::StripeObject
|
|
222
191
|
class Discount < ::Stripe::StripeObject
|
|
223
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
224
|
-
# The discount end timestamp.
|
|
225
|
-
attr_reader :timestamp
|
|
226
|
-
# The discount end type.
|
|
227
|
-
attr_reader :type
|
|
228
|
-
|
|
229
|
-
def self.inner_class_types
|
|
230
|
-
@inner_class_types = {}
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
def self.field_remappings
|
|
234
|
-
@field_remappings = {}
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
192
|
# ID of the coupon to create a new discount for.
|
|
238
193
|
attr_reader :coupon
|
|
239
194
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
240
195
|
attr_reader :discount
|
|
241
|
-
# Details to determine how long the discount should be applied for.
|
|
242
|
-
attr_reader :discount_end
|
|
243
196
|
# ID of the promotion code to create a new discount for.
|
|
244
197
|
attr_reader :promotion_code
|
|
245
198
|
|
|
246
199
|
def self.inner_class_types
|
|
247
|
-
@inner_class_types = {
|
|
200
|
+
@inner_class_types = {}
|
|
248
201
|
end
|
|
249
202
|
|
|
250
203
|
def self.field_remappings
|
|
@@ -297,7 +250,7 @@ module Stripe
|
|
|
297
250
|
end
|
|
298
251
|
# The stackable discounts that will be applied to the item.
|
|
299
252
|
attr_reader :discounts
|
|
300
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
253
|
+
# 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.
|
|
301
254
|
attr_reader :metadata
|
|
302
255
|
# Attribute for field period
|
|
303
256
|
attr_reader :period
|
|
@@ -364,31 +317,15 @@ module Stripe
|
|
|
364
317
|
end
|
|
365
318
|
|
|
366
319
|
class Discount < ::Stripe::StripeObject
|
|
367
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
368
|
-
# The discount end timestamp.
|
|
369
|
-
attr_reader :timestamp
|
|
370
|
-
# The discount end type.
|
|
371
|
-
attr_reader :type
|
|
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
320
|
# ID of the coupon to create a new discount for.
|
|
382
321
|
attr_reader :coupon
|
|
383
322
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
384
323
|
attr_reader :discount
|
|
385
|
-
# Details to determine how long the discount should be applied for.
|
|
386
|
-
attr_reader :discount_end
|
|
387
324
|
# ID of the promotion code to create a new discount for.
|
|
388
325
|
attr_reader :promotion_code
|
|
389
326
|
|
|
390
327
|
def self.inner_class_types
|
|
391
|
-
@inner_class_types = {
|
|
328
|
+
@inner_class_types = {}
|
|
392
329
|
end
|
|
393
330
|
|
|
394
331
|
def self.field_remappings
|
|
@@ -442,44 +379,13 @@ module Stripe
|
|
|
442
379
|
end
|
|
443
380
|
|
|
444
381
|
class Discount < ::Stripe::StripeObject
|
|
445
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
446
|
-
# The discount end timestamp.
|
|
447
|
-
attr_reader :timestamp
|
|
448
|
-
# The discount end type.
|
|
449
|
-
attr_reader :type
|
|
450
|
-
|
|
451
|
-
def self.inner_class_types
|
|
452
|
-
@inner_class_types = {}
|
|
453
|
-
end
|
|
454
|
-
|
|
455
|
-
def self.field_remappings
|
|
456
|
-
@field_remappings = {}
|
|
457
|
-
end
|
|
458
|
-
end
|
|
459
382
|
# ID of the coupon to create a new discount for.
|
|
460
383
|
attr_reader :coupon
|
|
461
384
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
462
385
|
attr_reader :discount
|
|
463
|
-
# Details to determine how long the discount should be applied for.
|
|
464
|
-
attr_reader :discount_end
|
|
465
386
|
# ID of the promotion code to create a new discount for.
|
|
466
387
|
attr_reader :promotion_code
|
|
467
388
|
|
|
468
|
-
def self.inner_class_types
|
|
469
|
-
@inner_class_types = { discount_end: DiscountEnd }
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
def self.field_remappings
|
|
473
|
-
@field_remappings = {}
|
|
474
|
-
end
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
class Trial < ::Stripe::StripeObject
|
|
478
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
479
|
-
attr_reader :converts_to
|
|
480
|
-
# Determines the type of trial for this item.
|
|
481
|
-
attr_reader :type
|
|
482
|
-
|
|
483
389
|
def self.inner_class_types
|
|
484
390
|
@inner_class_types = {}
|
|
485
391
|
end
|
|
@@ -492,7 +398,7 @@ module Stripe
|
|
|
492
398
|
attr_reader :billing_thresholds
|
|
493
399
|
# The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
494
400
|
attr_reader :discounts
|
|
495
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
401
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
|
|
496
402
|
attr_reader :metadata
|
|
497
403
|
# ID of the plan to which the customer should be subscribed.
|
|
498
404
|
attr_reader :plan
|
|
@@ -502,28 +408,9 @@ module Stripe
|
|
|
502
408
|
attr_reader :quantity
|
|
503
409
|
# The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
|
504
410
|
attr_reader :tax_rates
|
|
505
|
-
# Options that configure the trial on the subscription item.
|
|
506
|
-
attr_reader :trial
|
|
507
411
|
|
|
508
412
|
def self.inner_class_types
|
|
509
|
-
@inner_class_types = {
|
|
510
|
-
billing_thresholds: BillingThresholds,
|
|
511
|
-
discounts: Discount,
|
|
512
|
-
trial: Trial,
|
|
513
|
-
}
|
|
514
|
-
end
|
|
515
|
-
|
|
516
|
-
def self.field_remappings
|
|
517
|
-
@field_remappings = {}
|
|
518
|
-
end
|
|
519
|
-
end
|
|
520
|
-
|
|
521
|
-
class PauseCollection < ::Stripe::StripeObject
|
|
522
|
-
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
523
|
-
attr_reader :behavior
|
|
524
|
-
|
|
525
|
-
def self.inner_class_types
|
|
526
|
-
@inner_class_types = {}
|
|
413
|
+
@inner_class_types = { billing_thresholds: BillingThresholds, discounts: Discount }
|
|
527
414
|
end
|
|
528
415
|
|
|
529
416
|
def self.field_remappings
|
|
@@ -545,38 +432,13 @@ module Stripe
|
|
|
545
432
|
@field_remappings = {}
|
|
546
433
|
end
|
|
547
434
|
end
|
|
548
|
-
|
|
549
|
-
class TrialSettings < ::Stripe::StripeObject
|
|
550
|
-
class EndBehavior < ::Stripe::StripeObject
|
|
551
|
-
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
552
|
-
attr_reader :prorate_up_front
|
|
553
|
-
|
|
554
|
-
def self.inner_class_types
|
|
555
|
-
@inner_class_types = {}
|
|
556
|
-
end
|
|
557
|
-
|
|
558
|
-
def self.field_remappings
|
|
559
|
-
@field_remappings = {}
|
|
560
|
-
end
|
|
561
|
-
end
|
|
562
|
-
# Defines how the subscription should behave when a trial ends.
|
|
563
|
-
attr_reader :end_behavior
|
|
564
|
-
|
|
565
|
-
def self.inner_class_types
|
|
566
|
-
@inner_class_types = { end_behavior: EndBehavior }
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
def self.field_remappings
|
|
570
|
-
@field_remappings = {}
|
|
571
|
-
end
|
|
572
|
-
end
|
|
573
435
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
|
574
436
|
attr_reader :add_invoice_items
|
|
575
437
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
|
|
576
438
|
attr_reader :application_fee_percent
|
|
577
439
|
# Attribute for field automatic_tax
|
|
578
440
|
attr_reader :automatic_tax
|
|
579
|
-
# Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/
|
|
441
|
+
# Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
580
442
|
attr_reader :billing_cycle_anchor
|
|
581
443
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
582
444
|
attr_reader :billing_thresholds
|
|
@@ -598,24 +460,18 @@ module Stripe
|
|
|
598
460
|
attr_reader :invoice_settings
|
|
599
461
|
# Subscription items to configure the subscription to during this phase of the subscription schedule.
|
|
600
462
|
attr_reader :items
|
|
601
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
463
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered. Updating the underlying subscription's `metadata` directly will not affect the current phase's `metadata`.
|
|
602
464
|
attr_reader :metadata
|
|
603
465
|
# The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
|
604
466
|
attr_reader :on_behalf_of
|
|
605
|
-
# 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).
|
|
606
|
-
attr_reader :pause_collection
|
|
607
467
|
# When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
608
468
|
attr_reader :proration_behavior
|
|
609
469
|
# The start of this phase of the subscription schedule.
|
|
610
470
|
attr_reader :start_date
|
|
611
471
|
# The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
|
612
472
|
attr_reader :transfer_data
|
|
613
|
-
# Specify behavior of the trial when crossing schedule phase boundaries
|
|
614
|
-
attr_reader :trial_continuation
|
|
615
473
|
# When the trial ends within the phase.
|
|
616
474
|
attr_reader :trial_end
|
|
617
|
-
# Settings related to any trials on the subscription during this phase.
|
|
618
|
-
attr_reader :trial_settings
|
|
619
475
|
|
|
620
476
|
def self.inner_class_types
|
|
621
477
|
@inner_class_types = {
|
|
@@ -625,9 +481,7 @@ module Stripe
|
|
|
625
481
|
discounts: Discount,
|
|
626
482
|
invoice_settings: InvoiceSettings,
|
|
627
483
|
items: Item,
|
|
628
|
-
pause_collection: PauseCollection,
|
|
629
484
|
transfer_data: TransferData,
|
|
630
|
-
trial_settings: TrialSettings,
|
|
631
485
|
}
|
|
632
486
|
end
|
|
633
487
|
|
|
@@ -635,29 +489,8 @@ module Stripe
|
|
|
635
489
|
@field_remappings = {}
|
|
636
490
|
end
|
|
637
491
|
end
|
|
638
|
-
|
|
639
|
-
class Prebilling < ::Stripe::StripeObject
|
|
640
|
-
# ID of the prebilling invoice.
|
|
641
|
-
attr_reader :invoice
|
|
642
|
-
# The end of the last period for which the invoice pre-bills.
|
|
643
|
-
attr_reader :period_end
|
|
644
|
-
# The start of the first period for which the invoice pre-bills.
|
|
645
|
-
attr_reader :period_start
|
|
646
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
647
|
-
attr_reader :update_behavior
|
|
648
|
-
|
|
649
|
-
def self.inner_class_types
|
|
650
|
-
@inner_class_types = {}
|
|
651
|
-
end
|
|
652
|
-
|
|
653
|
-
def self.field_remappings
|
|
654
|
-
@field_remappings = {}
|
|
655
|
-
end
|
|
656
|
-
end
|
|
657
492
|
# ID of the Connect Application that created the schedule.
|
|
658
493
|
attr_reader :application
|
|
659
|
-
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
660
|
-
attr_reader :billing_behavior
|
|
661
494
|
# The billing mode of the subscription.
|
|
662
495
|
attr_reader :billing_mode
|
|
663
496
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
|
@@ -678,49 +511,25 @@ module Stripe
|
|
|
678
511
|
attr_reader :end_behavior
|
|
679
512
|
# Unique identifier for the object.
|
|
680
513
|
attr_reader :id
|
|
681
|
-
# Details of the most recent price migration that failed for the subscription schedule.
|
|
682
|
-
attr_reader :last_price_migration_error
|
|
683
514
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
684
515
|
attr_reader :livemode
|
|
685
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
516
|
+
# 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.
|
|
686
517
|
attr_reader :metadata
|
|
687
518
|
# String representing the object's type. Objects of the same type share the same value.
|
|
688
519
|
attr_reader :object
|
|
689
520
|
# Configuration for the subscription schedule's phases.
|
|
690
521
|
attr_reader :phases
|
|
691
|
-
# Time period and invoice for a Subscription billed in advance.
|
|
692
|
-
attr_reader :prebilling
|
|
693
522
|
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
694
523
|
attr_reader :released_at
|
|
695
524
|
# ID of the subscription once managed by the subscription schedule (if it is released).
|
|
696
525
|
attr_reader :released_subscription
|
|
697
|
-
# The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://stripe.com/
|
|
526
|
+
# The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://docs.stripe.com/billing/subscriptions/subscription-schedules).
|
|
698
527
|
attr_reader :status
|
|
699
528
|
# ID of the subscription managed by the subscription schedule.
|
|
700
529
|
attr_reader :subscription
|
|
701
530
|
# ID of the test clock this subscription schedule belongs to.
|
|
702
531
|
attr_reader :test_clock
|
|
703
532
|
|
|
704
|
-
# Amends an existing subscription schedule.
|
|
705
|
-
def amend(params = {}, opts = {})
|
|
706
|
-
request_stripe_object(
|
|
707
|
-
method: :post,
|
|
708
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
|
709
|
-
params: params,
|
|
710
|
-
opts: opts
|
|
711
|
-
)
|
|
712
|
-
end
|
|
713
|
-
|
|
714
|
-
# Amends an existing subscription schedule.
|
|
715
|
-
def self.amend(schedule, params = {}, opts = {})
|
|
716
|
-
request_stripe_object(
|
|
717
|
-
method: :post,
|
|
718
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
719
|
-
params: params,
|
|
720
|
-
opts: opts
|
|
721
|
-
)
|
|
722
|
-
end
|
|
723
|
-
|
|
724
533
|
# Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
|
725
534
|
def cancel(params = {}, opts = {})
|
|
726
535
|
request_stripe_object(
|
|
@@ -796,9 +605,7 @@ module Stripe
|
|
|
796
605
|
billing_mode: BillingMode,
|
|
797
606
|
current_phase: CurrentPhase,
|
|
798
607
|
default_settings: DefaultSettings,
|
|
799
|
-
last_price_migration_error: LastPriceMigrationError,
|
|
800
608
|
phases: Phase,
|
|
801
|
-
prebilling: Prebilling,
|
|
802
609
|
}
|
|
803
610
|
end
|
|
804
611
|
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
|
|
13
13
|
class TaxTransactionAttempt < ::Stripe::StripeObject
|
|
14
14
|
class Committed < ::Stripe::StripeObject
|
|
15
|
-
# The [Tax Transaction](https://stripe.com/
|
|
15
|
+
# The [Tax Transaction](https://docs.stripe.com/api/tax/transaction/object)
|
|
16
16
|
attr_reader :transaction
|
|
17
17
|
|
|
18
18
|
def self.inner_class_types
|
|
@@ -53,13 +53,13 @@ module Stripe
|
|
|
53
53
|
@field_remappings = {}
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
|
-
# The [Tax Calculation](https://stripe.com/
|
|
56
|
+
# The [Tax Calculation](https://docs.stripe.com/api/tax/calculations/object) that was included in PaymentIntent.
|
|
57
57
|
attr_reader :calculation
|
|
58
58
|
# Unique identifier for the object.
|
|
59
59
|
attr_reader :id
|
|
60
60
|
# String representing the object's type. Objects of the same type share the same value.
|
|
61
61
|
attr_reader :object
|
|
62
|
-
# The [PaymentIntent](https://stripe.com/
|
|
62
|
+
# The [PaymentIntent](https://docs.stripe.com/api/payment_intents/object) that this Tax Association is tracking.
|
|
63
63
|
attr_reader :payment_intent
|
|
64
64
|
# Information about the tax transactions linked to this payment intent
|
|
65
65
|
attr_reader :tax_transaction_attempts
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
module Tax
|
|
6
6
|
# A Tax Calculation allows you to calculate the tax to collect from your customer.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Calculate tax in your custom payment flow](https://stripe.com/
|
|
8
|
+
# Related guide: [Calculate tax in your custom payment flow](https://docs.stripe.com/tax/custom)
|
|
9
9
|
class Calculation < APIResource
|
|
10
10
|
extend Stripe::APIOperations::Create
|
|
11
11
|
|
|
@@ -144,7 +144,7 @@ module Stripe
|
|
|
144
144
|
@field_remappings = {}
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
|
-
# The amount of tax, in the [smallest currency unit](https://stripe.com/
|
|
147
|
+
# The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
148
148
|
attr_reader :amount
|
|
149
149
|
# Attribute for field jurisdiction
|
|
150
150
|
attr_reader :jurisdiction
|
|
@@ -154,7 +154,7 @@ module Stripe
|
|
|
154
154
|
attr_reader :tax_rate_details
|
|
155
155
|
# 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.
|
|
156
156
|
attr_reader :taxability_reason
|
|
157
|
-
# The amount on which tax is calculated, in the [smallest currency unit](https://stripe.com/
|
|
157
|
+
# The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
158
158
|
attr_reader :taxable_amount
|
|
159
159
|
|
|
160
160
|
def self.inner_class_types
|
|
@@ -165,17 +165,17 @@ module Stripe
|
|
|
165
165
|
@field_remappings = {}
|
|
166
166
|
end
|
|
167
167
|
end
|
|
168
|
-
# The shipping amount in the [smallest currency unit](https://stripe.com/
|
|
168
|
+
# The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
|
|
169
169
|
attr_reader :amount
|
|
170
|
-
# The amount of tax calculated for shipping, in the [smallest currency unit](https://stripe.com/
|
|
170
|
+
# The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
171
171
|
attr_reader :amount_tax
|
|
172
|
-
# The ID of an existing [ShippingRate](https://stripe.com/
|
|
172
|
+
# The ID of an existing [ShippingRate](https://docs.stripe.com/api/shipping_rates/object).
|
|
173
173
|
attr_reader :shipping_rate
|
|
174
174
|
# Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes.
|
|
175
175
|
attr_reader :tax_behavior
|
|
176
176
|
# Detailed account of taxes relevant to shipping cost.
|
|
177
177
|
attr_reader :tax_breakdown
|
|
178
|
-
# The [tax code](https://stripe.com/
|
|
178
|
+
# The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for shipping.
|
|
179
179
|
attr_reader :tax_code
|
|
180
180
|
|
|
181
181
|
def self.inner_class_types
|
|
@@ -211,7 +211,7 @@ module Stripe
|
|
|
211
211
|
attr_reader :percentage_decimal
|
|
212
212
|
# Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
|
|
213
213
|
attr_reader :rate_type
|
|
214
|
-
# State, county, province, or region.
|
|
214
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
215
215
|
attr_reader :state
|
|
216
216
|
# The tax type, such as `vat` or `sales_tax`.
|
|
217
217
|
attr_reader :tax_type
|
|
@@ -224,7 +224,7 @@ module Stripe
|
|
|
224
224
|
@field_remappings = {}
|
|
225
225
|
end
|
|
226
226
|
end
|
|
227
|
-
# The amount of tax, in the [smallest currency unit](https://stripe.com/
|
|
227
|
+
# The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
228
228
|
attr_reader :amount
|
|
229
229
|
# Specifies whether the tax amount is included in the line item amount.
|
|
230
230
|
attr_reader :inclusive
|
|
@@ -232,7 +232,7 @@ module Stripe
|
|
|
232
232
|
attr_reader :tax_rate_details
|
|
233
233
|
# The reasoning behind this tax, for example, if the product is tax exempt. We might extend the possible values for this field to support new tax rules.
|
|
234
234
|
attr_reader :taxability_reason
|
|
235
|
-
# The amount on which tax is calculated, in the [smallest currency unit](https://stripe.com/
|
|
235
|
+
# The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
236
236
|
attr_reader :taxable_amount
|
|
237
237
|
|
|
238
238
|
def self.inner_class_types
|
|
@@ -243,11 +243,11 @@ module Stripe
|
|
|
243
243
|
@field_remappings = {}
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
|
-
# Total amount after taxes in the [smallest currency unit](https://stripe.com/
|
|
246
|
+
# Total amount after taxes in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
247
247
|
attr_reader :amount_total
|
|
248
248
|
# 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).
|
|
249
249
|
attr_reader :currency
|
|
250
|
-
# The ID of an existing [Customer](https://stripe.com/
|
|
250
|
+
# The ID of an existing [Customer](https://docs.stripe.com/api/customers/object) used for the resource.
|
|
251
251
|
attr_reader :customer
|
|
252
252
|
# Attribute for field customer_details
|
|
253
253
|
attr_reader :customer_details
|
|
@@ -45,7 +45,7 @@ module Stripe
|
|
|
45
45
|
@field_remappings = {}
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
|
-
# The amount of tax, in the [smallest currency unit](https://stripe.com/
|
|
48
|
+
# The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
49
49
|
attr_reader :amount
|
|
50
50
|
# Attribute for field jurisdiction
|
|
51
51
|
attr_reader :jurisdiction
|
|
@@ -55,7 +55,7 @@ module Stripe
|
|
|
55
55
|
attr_reader :tax_rate_details
|
|
56
56
|
# 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.
|
|
57
57
|
attr_reader :taxability_reason
|
|
58
|
-
# The amount on which tax is calculated, in the [smallest currency unit](https://stripe.com/
|
|
58
|
+
# The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
59
59
|
attr_reader :taxable_amount
|
|
60
60
|
|
|
61
61
|
def self.inner_class_types
|
|
@@ -66,19 +66,19 @@ module Stripe
|
|
|
66
66
|
@field_remappings = {}
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
|
-
# The line item amount in the [smallest currency unit](https://stripe.com/
|
|
69
|
+
# The line item amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
|
|
70
70
|
attr_reader :amount
|
|
71
|
-
# The amount of tax calculated for this line item, in the [smallest currency unit](https://stripe.com/
|
|
71
|
+
# The amount of tax calculated for this line item, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
72
72
|
attr_reader :amount_tax
|
|
73
73
|
# Unique identifier for the object.
|
|
74
74
|
attr_reader :id
|
|
75
75
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
76
76
|
attr_reader :livemode
|
|
77
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
77
|
+
# 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.
|
|
78
78
|
attr_reader :metadata
|
|
79
79
|
# String representing the object's type. Objects of the same type share the same value.
|
|
80
80
|
attr_reader :object
|
|
81
|
-
# The ID of an existing [Product](https://stripe.com/
|
|
81
|
+
# The ID of an existing [Product](https://docs.stripe.com/api/products/object).
|
|
82
82
|
attr_reader :product
|
|
83
83
|
# The number of units of the item being purchased. For reversals, this is the quantity reversed.
|
|
84
84
|
attr_reader :quantity
|
|
@@ -88,7 +88,7 @@ module Stripe
|
|
|
88
88
|
attr_reader :tax_behavior
|
|
89
89
|
# Detailed account of taxes relevant to this line item.
|
|
90
90
|
attr_reader :tax_breakdown
|
|
91
|
-
# The [tax code](https://stripe.com/
|
|
91
|
+
# The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for this resource.
|
|
92
92
|
attr_reader :tax_code
|
|
93
93
|
|
|
94
94
|
def self.inner_class_types
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Tax
|
|
6
|
-
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/
|
|
6
|
+
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://docs.stripe.com/tax).
|
|
7
7
|
#
|
|
8
|
-
# Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/
|
|
8
|
+
# Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://docs.stripe.com/tax/registering).
|
|
9
9
|
#
|
|
10
|
-
# Related guide: [Using the Registrations API](https://stripe.com/
|
|
10
|
+
# Related guide: [Using the Registrations API](https://docs.stripe.com/tax/registrations-api)
|
|
11
11
|
class Registration < APIResource
|
|
12
12
|
extend Stripe::APIOperations::Create
|
|
13
13
|
extend Stripe::APIOperations::List
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
module Tax
|
|
6
6
|
# You can use Tax `Settings` to manage configurations used by Stripe Tax calculations.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Using the Settings API](https://stripe.com/
|
|
8
|
+
# Related guide: [Using the Settings API](https://docs.stripe.com/tax/settings-api)
|
|
9
9
|
class Settings < SingletonAPIResource
|
|
10
10
|
include Stripe::APIOperations::SingletonSave
|
|
11
11
|
|
|
@@ -43,7 +43,7 @@ module Stripe
|
|
|
43
43
|
attr_reader :line2
|
|
44
44
|
# ZIP or postal code.
|
|
45
45
|
attr_reader :postal_code
|
|
46
|
-
# State, county, province, or region.
|
|
46
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
47
47
|
attr_reader :state
|
|
48
48
|
|
|
49
49
|
def self.inner_class_types
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
module Tax
|
|
6
6
|
# A Tax Transaction records the tax collected from or refunded to your customer.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Calculate tax in your custom payment flow](https://stripe.com/
|
|
8
|
+
# Related guide: [Calculate tax in your custom payment flow](https://docs.stripe.com/tax/custom#tax-transaction)
|
|
9
9
|
class Transaction < APIResource
|
|
10
10
|
OBJECT_NAME = "tax.transaction"
|
|
11
11
|
def self.object_name
|
|
@@ -155,7 +155,7 @@ module Stripe
|
|
|
155
155
|
@field_remappings = {}
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
|
-
# The amount of tax, in the [smallest currency unit](https://stripe.com/
|
|
158
|
+
# The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
159
159
|
attr_reader :amount
|
|
160
160
|
# Attribute for field jurisdiction
|
|
161
161
|
attr_reader :jurisdiction
|
|
@@ -165,7 +165,7 @@ module Stripe
|
|
|
165
165
|
attr_reader :tax_rate_details
|
|
166
166
|
# 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.
|
|
167
167
|
attr_reader :taxability_reason
|
|
168
|
-
# The amount on which tax is calculated, in the [smallest currency unit](https://stripe.com/
|
|
168
|
+
# The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
169
169
|
attr_reader :taxable_amount
|
|
170
170
|
|
|
171
171
|
def self.inner_class_types
|
|
@@ -176,17 +176,17 @@ module Stripe
|
|
|
176
176
|
@field_remappings = {}
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
|
-
# The shipping amount in the [smallest currency unit](https://stripe.com/
|
|
179
|
+
# The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
|
|
180
180
|
attr_reader :amount
|
|
181
|
-
# The amount of tax calculated for shipping, in the [smallest currency unit](https://stripe.com/
|
|
181
|
+
# The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
182
182
|
attr_reader :amount_tax
|
|
183
|
-
# The ID of an existing [ShippingRate](https://stripe.com/
|
|
183
|
+
# The ID of an existing [ShippingRate](https://docs.stripe.com/api/shipping_rates/object).
|
|
184
184
|
attr_reader :shipping_rate
|
|
185
185
|
# Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes.
|
|
186
186
|
attr_reader :tax_behavior
|
|
187
187
|
# Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.)
|
|
188
188
|
attr_reader :tax_breakdown
|
|
189
|
-
# The [tax code](https://stripe.com/
|
|
189
|
+
# The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for shipping.
|
|
190
190
|
attr_reader :tax_code
|
|
191
191
|
|
|
192
192
|
def self.inner_class_types
|
|
@@ -201,7 +201,7 @@ module Stripe
|
|
|
201
201
|
attr_reader :created
|
|
202
202
|
# 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).
|
|
203
203
|
attr_reader :currency
|
|
204
|
-
# The ID of an existing [Customer](https://stripe.com/
|
|
204
|
+
# The ID of an existing [Customer](https://docs.stripe.com/api/customers/object) used for the resource.
|
|
205
205
|
attr_reader :customer
|
|
206
206
|
# Attribute for field customer_details
|
|
207
207
|
attr_reader :customer_details
|
|
@@ -211,7 +211,7 @@ module Stripe
|
|
|
211
211
|
attr_reader :line_items
|
|
212
212
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
213
213
|
attr_reader :livemode
|
|
214
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
214
|
+
# 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.
|
|
215
215
|
attr_reader :metadata
|
|
216
216
|
# String representing the object's type. Objects of the same type share the same value.
|
|
217
217
|
attr_reader :object
|