stripe 18.1.0.pre.alpha.4 → 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 -513
- data/lib/stripe/object_types.rb +0 -83
- data/lib/stripe/params/account_create_params.rb +48 -361
- 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 -42
- data/lib/stripe/params/account_person_update_params.rb +10 -42
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +47 -323
- 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/alert_create_params.rb +1 -121
- data/lib/stripe/params/billing/alert_list_params.rb +0 -4
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +3 -15
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -31
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_create_params.rb +0 -4
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
- 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 +42 -247
- 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_report_list_params.rb +0 -4
- 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 +43 -975
- 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 -6
- 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 +150 -3144
- data/lib/stripe/params/payment_intent_create_params.rb +167 -3174
- 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 +205 -3230
- 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 -1025
- data/lib/stripe/params/quote_list_params.rb +2 -6
- data/lib/stripe/params/quote_update_params.rb +8 -1033
- 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 -193
- data/lib/stripe/params/setup_intent_create_params.rb +15 -199
- data/lib/stripe/params/setup_intent_update_params.rb +12 -196
- 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 -280
- data/lib/stripe/params/subscription_item_create_params.rb +12 -72
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +12 -56
- 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 +22 -248
- data/lib/stripe/params/subscription_schedule_update_params.rb +22 -248
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +37 -262
- 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 -86
- 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 -11
- 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 +25 -967
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +10 -258
- data/lib/stripe/params/v2/core/account_update_params.rb +30 -951
- 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/v2/core/event_list_params.rb +1 -4
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -8
- 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 -247
- 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 -110
- data/lib/stripe/resources/application_fee.rb +0 -2
- 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 -85
- 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 +2 -106
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
- data/lib/stripe/resources/billing/credit_grant.rb +4 -60
- data/lib/stripe/resources/billing/meter.rb +0 -2
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
- 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 +3 -22
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +46 -266
- data/lib/stripe/resources/checkout/session.rb +23 -215
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -162
- 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 -5
- 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 -13
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +49 -182
- data/lib/stripe/resources/invoice_item.rb +8 -114
- data/lib/stripe/resources/invoice_line_item.rb +7 -151
- 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 -811
- 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 -186
- 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 -59
- 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 -818
- 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 -147
- 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 -240
- data/lib/stripe/resources/subscription_item.rb +8 -50
- data/lib/stripe/resources/subscription_schedule.rb +11 -298
- 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 -11
- 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 +159 -1904
- 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/v2/core/event.rb +1 -50
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +0 -214
- 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/identity_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -6
- 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 -12
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/radar_service.rb +1 -2
- 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/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -11
- data/lib/stripe/services/v2/billing_service.rb +1 -18
- 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 -3
- data/lib/stripe/services/v2_services.rb +1 -5
- data/lib/stripe/services.rb +0 -88
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +12 -4
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe.rbi +74214 -150917
- metadata +4 -553
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
- 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_card_creator_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_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_claimable_sandbox_claimed_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -68
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -68
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -78
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -91
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -93
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +0 -20
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +0 -38
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +0 -20
- 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_recipient_verification_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_recipient_verification_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/events/v2_payments_off_session_payment_attempt_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -48
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_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/balance_transfer_create_params.rb +0 -66
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -69
- data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
- 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_refill_params.rb +0 -37
- 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/delegated_checkout/requested_session_confirm_params.rb +0 -55
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
- 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/identity/blocklist_entry_create_params.rb +0 -29
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
- 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/issuing/program_create_params.rb +0 -21
- data/lib/stripe/params/issuing/program_list_params.rb +0 -24
- data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_update_params.rb +0 -21
- 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/payment_method_check_balance_params.rb +0 -13
- 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/product_catalog/trial_offer_create_params.rb +0 -60
- 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/radar/account_evaluation_create_params.rb +0 -81
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +0 -15
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +0 -18
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -609
- 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/test_helpers/capital/financing_offer_create_params.rb +0 -39
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
- 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 -17
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -257
- 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 -78
- 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/custom_pricing_unit_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -355
- data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/pricing_plans/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/billing/rate_card_create_params.rb +0 -49
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -278
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +0 -10
- 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/currency_conversion_create_params.rb +0 -68
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/currency_conversion_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 -31
- 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 -62
- 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 -114
- 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 -79
- 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 -103
- 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 -93
- 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/recipient_verification_acknowledge_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/recipient_verification_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/payments/off_session_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -57
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -161
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -34
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/balance_transfer.rb +0 -139
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -40
- data/lib/stripe/resources/capital/financing_offer.rb +0 -183
- data/lib/stripe/resources/capital/financing_summary.rb +0 -79
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -426
- 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/identity/blocklist_entry.rb +0 -116
- 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/program.rb +0 -69
- 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/payment_method_balance.rb +0 -68
- 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/product_catalog/trial_offer.rb +0 -101
- data/lib/stripe/resources/quote_line.rb +0 -527
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1166
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -826
- data/lib/stripe/resources/radar/account_evaluation.rb +0 -116
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/transit_balance.rb +0 -45
- 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 -655
- 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/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -274
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
- 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 -44
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -82
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +0 -94
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -188
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -197
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -263
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -202
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -242
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -137
- 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 -278
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -208
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -180
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -153
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -186
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/balance_transfer_service.rb +0 -17
- 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/delegated_checkout/requested_session_service.rb +0 -63
- data/lib/stripe/services/delegated_checkout_service.rb +0 -13
- 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/identity/blocklist_entry_service.rb +0 -71
- 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/issuing/program_service.rb +0 -52
- 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/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_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/radar/account_evaluation_service.rb +0 -41
- 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/test_helpers/capital/financing_offer_service.rb +0 -32
- data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
- 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/custom_pricing_unit_service.rb +0 -54
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
- 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/currency_conversion_service.rb +0 -45
- 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/recipient_verification_service.rb +0 -43
- 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 -35
- data/lib/stripe/services/v2/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -38
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/test_helper_service.rb +0 -16
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
@type = type
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
|
-
# Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/
|
|
18
|
+
# 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.
|
|
19
19
|
attr_accessor :enabled
|
|
20
20
|
# 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.
|
|
21
21
|
attr_accessor :liability
|
|
@@ -38,7 +38,7 @@ module Stripe
|
|
|
38
38
|
attr_accessor :line2
|
|
39
39
|
# ZIP or postal code.
|
|
40
40
|
attr_accessor :postal_code
|
|
41
|
-
# State, county, province, or region.
|
|
41
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
42
42
|
attr_accessor :state
|
|
43
43
|
|
|
44
44
|
def initialize(
|
|
@@ -70,7 +70,7 @@ module Stripe
|
|
|
70
70
|
attr_accessor :line2
|
|
71
71
|
# ZIP or postal code.
|
|
72
72
|
attr_accessor :postal_code
|
|
73
|
-
# State, county, province, or region.
|
|
73
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
74
74
|
attr_accessor :state
|
|
75
75
|
|
|
76
76
|
def initialize(
|
|
@@ -123,7 +123,7 @@ module Stripe
|
|
|
123
123
|
@value = value
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
|
-
# The customer's address.
|
|
126
|
+
# The customer's address. Learn about [country-specific requirements for calculating tax](/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).
|
|
127
127
|
attr_accessor :address
|
|
128
128
|
# The customer's shipping information. Appears on invoices emailed to this customer.
|
|
129
129
|
attr_accessor :shipping
|
|
@@ -144,88 +144,32 @@ module Stripe
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
class Discount < ::Stripe::RequestParams
|
|
147
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
148
|
-
class Duration < ::Stripe::RequestParams
|
|
149
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
150
|
-
attr_accessor :interval
|
|
151
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
152
|
-
attr_accessor :interval_count
|
|
153
|
-
|
|
154
|
-
def initialize(interval: nil, interval_count: nil)
|
|
155
|
-
@interval = interval
|
|
156
|
-
@interval_count = interval_count
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
# Time span for the redeemed discount.
|
|
160
|
-
attr_accessor :duration
|
|
161
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
162
|
-
attr_accessor :timestamp
|
|
163
|
-
# The type of calculation made to determine when the discount ends.
|
|
164
|
-
attr_accessor :type
|
|
165
|
-
|
|
166
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
167
|
-
@duration = duration
|
|
168
|
-
@timestamp = timestamp
|
|
169
|
-
@type = type
|
|
170
|
-
end
|
|
171
|
-
end
|
|
172
147
|
# ID of the coupon to create a new discount for.
|
|
173
148
|
attr_accessor :coupon
|
|
174
149
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
175
150
|
attr_accessor :discount
|
|
176
|
-
# Details to determine how long the discount should be applied for.
|
|
177
|
-
attr_accessor :discount_end
|
|
178
151
|
# ID of the promotion code to create a new discount for.
|
|
179
152
|
attr_accessor :promotion_code
|
|
180
153
|
|
|
181
|
-
def initialize(coupon: nil, discount: nil,
|
|
154
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
182
155
|
@coupon = coupon
|
|
183
156
|
@discount = discount
|
|
184
|
-
@discount_end = discount_end
|
|
185
157
|
@promotion_code = promotion_code
|
|
186
158
|
end
|
|
187
159
|
end
|
|
188
160
|
|
|
189
161
|
class InvoiceItem < ::Stripe::RequestParams
|
|
190
162
|
class Discount < ::Stripe::RequestParams
|
|
191
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
192
|
-
class Duration < ::Stripe::RequestParams
|
|
193
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
194
|
-
attr_accessor :interval
|
|
195
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
196
|
-
attr_accessor :interval_count
|
|
197
|
-
|
|
198
|
-
def initialize(interval: nil, interval_count: nil)
|
|
199
|
-
@interval = interval
|
|
200
|
-
@interval_count = interval_count
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
|
-
# Time span for the redeemed discount.
|
|
204
|
-
attr_accessor :duration
|
|
205
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
206
|
-
attr_accessor :timestamp
|
|
207
|
-
# The type of calculation made to determine when the discount ends.
|
|
208
|
-
attr_accessor :type
|
|
209
|
-
|
|
210
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
211
|
-
@duration = duration
|
|
212
|
-
@timestamp = timestamp
|
|
213
|
-
@type = type
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
163
|
# ID of the coupon to create a new discount for.
|
|
217
164
|
attr_accessor :coupon
|
|
218
165
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
219
166
|
attr_accessor :discount
|
|
220
|
-
# Details to determine how long the discount should be applied for.
|
|
221
|
-
attr_accessor :discount_end
|
|
222
167
|
# ID of the promotion code to create a new discount for.
|
|
223
168
|
attr_accessor :promotion_code
|
|
224
169
|
|
|
225
|
-
def initialize(coupon: nil, discount: nil,
|
|
170
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
226
171
|
@coupon = coupon
|
|
227
172
|
@discount = discount
|
|
228
|
-
@discount_end = discount_end
|
|
229
173
|
@promotion_code = promotion_code
|
|
230
174
|
end
|
|
231
175
|
end
|
|
@@ -247,7 +191,7 @@ module Stripe
|
|
|
247
191
|
attr_accessor :currency
|
|
248
192
|
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
249
193
|
attr_accessor :product
|
|
250
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
194
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
251
195
|
attr_accessor :tax_behavior
|
|
252
196
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
253
197
|
attr_accessor :unit_amount
|
|
@@ -280,19 +224,19 @@ module Stripe
|
|
|
280
224
|
attr_accessor :discounts
|
|
281
225
|
# The ID of the invoice item to update in preview. If not specified, a new invoice item will be added to the preview of the upcoming invoice.
|
|
282
226
|
attr_accessor :invoiceitem
|
|
283
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
227
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
284
228
|
attr_accessor :metadata
|
|
285
|
-
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/
|
|
229
|
+
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
286
230
|
attr_accessor :period
|
|
287
231
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
288
232
|
attr_accessor :price
|
|
289
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
233
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
290
234
|
attr_accessor :price_data
|
|
291
235
|
# Non-negative integer. The quantity of units for the invoice item.
|
|
292
236
|
attr_accessor :quantity
|
|
293
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
237
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
294
238
|
attr_accessor :tax_behavior
|
|
295
|
-
# A [tax code](https://stripe.com/
|
|
239
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
296
240
|
attr_accessor :tax_code
|
|
297
241
|
# The tax rates that apply to the item. When set, any `default_tax_rates` do not apply to this item.
|
|
298
242
|
attr_accessor :tax_rates
|
|
@@ -351,497 +295,6 @@ module Stripe
|
|
|
351
295
|
end
|
|
352
296
|
|
|
353
297
|
class ScheduleDetails < ::Stripe::RequestParams
|
|
354
|
-
class Amendment < ::Stripe::RequestParams
|
|
355
|
-
class AmendmentEnd < ::Stripe::RequestParams
|
|
356
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
357
|
-
# The ID of a specific discount.
|
|
358
|
-
attr_accessor :discount
|
|
359
|
-
|
|
360
|
-
def initialize(discount: nil)
|
|
361
|
-
@discount = discount
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
class Duration < ::Stripe::RequestParams
|
|
366
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
367
|
-
attr_accessor :interval
|
|
368
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
369
|
-
attr_accessor :interval_count
|
|
370
|
-
|
|
371
|
-
def initialize(interval: nil, interval_count: nil)
|
|
372
|
-
@interval = interval
|
|
373
|
-
@interval_count = interval_count
|
|
374
|
-
end
|
|
375
|
-
end
|
|
376
|
-
# Use the `end` time of a given discount.
|
|
377
|
-
attr_accessor :discount_end
|
|
378
|
-
# Time span for the amendment starting from the `amendment_start`.
|
|
379
|
-
attr_accessor :duration
|
|
380
|
-
# A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
381
|
-
attr_accessor :timestamp
|
|
382
|
-
# Select one of three ways to pass the `amendment_end`.
|
|
383
|
-
attr_accessor :type
|
|
384
|
-
|
|
385
|
-
def initialize(discount_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
386
|
-
@discount_end = discount_end
|
|
387
|
-
@duration = duration
|
|
388
|
-
@timestamp = timestamp
|
|
389
|
-
@type = type
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
class AmendmentStart < ::Stripe::RequestParams
|
|
394
|
-
class AmendmentEnd < ::Stripe::RequestParams
|
|
395
|
-
# The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
|
|
396
|
-
attr_accessor :index
|
|
397
|
-
|
|
398
|
-
def initialize(index: nil)
|
|
399
|
-
@index = index
|
|
400
|
-
end
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
404
|
-
# The ID of a specific discount.
|
|
405
|
-
attr_accessor :discount
|
|
406
|
-
|
|
407
|
-
def initialize(discount: nil)
|
|
408
|
-
@discount = discount
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
# Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
412
|
-
attr_accessor :amendment_end
|
|
413
|
-
# Use the `end` time of a given discount.
|
|
414
|
-
attr_accessor :discount_end
|
|
415
|
-
# A precise Unix timestamp for the amendment to start.
|
|
416
|
-
attr_accessor :timestamp
|
|
417
|
-
# Select one of three ways to pass the `amendment_start`.
|
|
418
|
-
attr_accessor :type
|
|
419
|
-
|
|
420
|
-
def initialize(amendment_end: nil, discount_end: nil, timestamp: nil, type: nil)
|
|
421
|
-
@amendment_end = amendment_end
|
|
422
|
-
@discount_end = discount_end
|
|
423
|
-
@timestamp = timestamp
|
|
424
|
-
@type = type
|
|
425
|
-
end
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
class BillingSchedulesAction < ::Stripe::RequestParams
|
|
429
|
-
class AppliesTo < ::Stripe::RequestParams
|
|
430
|
-
# The ID of the price object.
|
|
431
|
-
attr_accessor :price
|
|
432
|
-
# Controls which subscription items the billing schedule applies to.
|
|
433
|
-
attr_accessor :type
|
|
434
|
-
|
|
435
|
-
def initialize(price: nil, type: nil)
|
|
436
|
-
@price = price
|
|
437
|
-
@type = type
|
|
438
|
-
end
|
|
439
|
-
end
|
|
440
|
-
# Specify which subscription items the billing schedule applies to.
|
|
441
|
-
attr_accessor :applies_to
|
|
442
|
-
# Select the action.
|
|
443
|
-
attr_accessor :type
|
|
444
|
-
|
|
445
|
-
def initialize(applies_to: nil, type: nil)
|
|
446
|
-
@applies_to = applies_to
|
|
447
|
-
@type = type
|
|
448
|
-
end
|
|
449
|
-
end
|
|
450
|
-
|
|
451
|
-
class DiscountAction < ::Stripe::RequestParams
|
|
452
|
-
class Add < ::Stripe::RequestParams
|
|
453
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
454
|
-
# The type of calculation made to determine when the discount ends.
|
|
455
|
-
attr_accessor :type
|
|
456
|
-
|
|
457
|
-
def initialize(type: nil)
|
|
458
|
-
@type = type
|
|
459
|
-
end
|
|
460
|
-
end
|
|
461
|
-
# The coupon code to redeem.
|
|
462
|
-
attr_accessor :coupon
|
|
463
|
-
# An ID of an existing discount for a coupon that was already redeemed.
|
|
464
|
-
attr_accessor :discount
|
|
465
|
-
# Details to determine how long the discount should be applied for.
|
|
466
|
-
attr_accessor :discount_end
|
|
467
|
-
# The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
|
|
468
|
-
attr_accessor :index
|
|
469
|
-
# The promotion code to redeem.
|
|
470
|
-
attr_accessor :promotion_code
|
|
471
|
-
|
|
472
|
-
def initialize(
|
|
473
|
-
coupon: nil,
|
|
474
|
-
discount: nil,
|
|
475
|
-
discount_end: nil,
|
|
476
|
-
index: nil,
|
|
477
|
-
promotion_code: nil
|
|
478
|
-
)
|
|
479
|
-
@coupon = coupon
|
|
480
|
-
@discount = discount
|
|
481
|
-
@discount_end = discount_end
|
|
482
|
-
@index = index
|
|
483
|
-
@promotion_code = promotion_code
|
|
484
|
-
end
|
|
485
|
-
end
|
|
486
|
-
|
|
487
|
-
class Remove < ::Stripe::RequestParams
|
|
488
|
-
# The coupon code to remove from the `discounts` array.
|
|
489
|
-
attr_accessor :coupon
|
|
490
|
-
# The ID of a discount to remove from the `discounts` array.
|
|
491
|
-
attr_accessor :discount
|
|
492
|
-
# The ID of a promotion code to remove from the `discounts` array.
|
|
493
|
-
attr_accessor :promotion_code
|
|
494
|
-
|
|
495
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
496
|
-
@coupon = coupon
|
|
497
|
-
@discount = discount
|
|
498
|
-
@promotion_code = promotion_code
|
|
499
|
-
end
|
|
500
|
-
end
|
|
501
|
-
|
|
502
|
-
class Set < ::Stripe::RequestParams
|
|
503
|
-
# The coupon code to replace the `discounts` array with.
|
|
504
|
-
attr_accessor :coupon
|
|
505
|
-
# An ID of an existing discount to replace the `discounts` array with.
|
|
506
|
-
attr_accessor :discount
|
|
507
|
-
# An ID of an existing promotion code to replace the `discounts` array with.
|
|
508
|
-
attr_accessor :promotion_code
|
|
509
|
-
|
|
510
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
511
|
-
@coupon = coupon
|
|
512
|
-
@discount = discount
|
|
513
|
-
@promotion_code = promotion_code
|
|
514
|
-
end
|
|
515
|
-
end
|
|
516
|
-
# Details of the discount to add.
|
|
517
|
-
attr_accessor :add
|
|
518
|
-
# Details of the discount to remove.
|
|
519
|
-
attr_accessor :remove
|
|
520
|
-
# Details of the discount to replace the existing discounts with.
|
|
521
|
-
attr_accessor :set
|
|
522
|
-
# Determines the type of discount action.
|
|
523
|
-
attr_accessor :type
|
|
524
|
-
|
|
525
|
-
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
526
|
-
@add = add
|
|
527
|
-
@remove = remove
|
|
528
|
-
@set = set
|
|
529
|
-
@type = type
|
|
530
|
-
end
|
|
531
|
-
end
|
|
532
|
-
|
|
533
|
-
class ItemAction < ::Stripe::RequestParams
|
|
534
|
-
class Add < ::Stripe::RequestParams
|
|
535
|
-
class Discount < ::Stripe::RequestParams
|
|
536
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
537
|
-
class Duration < ::Stripe::RequestParams
|
|
538
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
539
|
-
attr_accessor :interval
|
|
540
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
541
|
-
attr_accessor :interval_count
|
|
542
|
-
|
|
543
|
-
def initialize(interval: nil, interval_count: nil)
|
|
544
|
-
@interval = interval
|
|
545
|
-
@interval_count = interval_count
|
|
546
|
-
end
|
|
547
|
-
end
|
|
548
|
-
# Time span for the redeemed discount.
|
|
549
|
-
attr_accessor :duration
|
|
550
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
551
|
-
attr_accessor :timestamp
|
|
552
|
-
# The type of calculation made to determine when the discount ends.
|
|
553
|
-
attr_accessor :type
|
|
554
|
-
|
|
555
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
556
|
-
@duration = duration
|
|
557
|
-
@timestamp = timestamp
|
|
558
|
-
@type = type
|
|
559
|
-
end
|
|
560
|
-
end
|
|
561
|
-
# ID of the coupon to create a new discount for.
|
|
562
|
-
attr_accessor :coupon
|
|
563
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
564
|
-
attr_accessor :discount
|
|
565
|
-
# Details to determine how long the discount should be applied for.
|
|
566
|
-
attr_accessor :discount_end
|
|
567
|
-
# ID of the promotion code to create a new discount for.
|
|
568
|
-
attr_accessor :promotion_code
|
|
569
|
-
|
|
570
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
571
|
-
@coupon = coupon
|
|
572
|
-
@discount = discount
|
|
573
|
-
@discount_end = discount_end
|
|
574
|
-
@promotion_code = promotion_code
|
|
575
|
-
end
|
|
576
|
-
end
|
|
577
|
-
|
|
578
|
-
class Trial < ::Stripe::RequestParams
|
|
579
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
580
|
-
attr_accessor :converts_to
|
|
581
|
-
# Determines the type of trial for this item.
|
|
582
|
-
attr_accessor :type
|
|
583
|
-
|
|
584
|
-
def initialize(converts_to: nil, type: nil)
|
|
585
|
-
@converts_to = converts_to
|
|
586
|
-
@type = type
|
|
587
|
-
end
|
|
588
|
-
end
|
|
589
|
-
# The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
590
|
-
attr_accessor :discounts
|
|
591
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
592
|
-
attr_accessor :metadata
|
|
593
|
-
# The ID of the price object.
|
|
594
|
-
attr_accessor :price
|
|
595
|
-
# Quantity for this item.
|
|
596
|
-
attr_accessor :quantity
|
|
597
|
-
# The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
598
|
-
attr_accessor :tax_rates
|
|
599
|
-
# Options that configure the trial on the subscription item.
|
|
600
|
-
attr_accessor :trial
|
|
601
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
602
|
-
attr_accessor :trial_offer
|
|
603
|
-
|
|
604
|
-
def initialize(
|
|
605
|
-
discounts: nil,
|
|
606
|
-
metadata: nil,
|
|
607
|
-
price: nil,
|
|
608
|
-
quantity: nil,
|
|
609
|
-
tax_rates: nil,
|
|
610
|
-
trial: nil,
|
|
611
|
-
trial_offer: nil
|
|
612
|
-
)
|
|
613
|
-
@discounts = discounts
|
|
614
|
-
@metadata = metadata
|
|
615
|
-
@price = price
|
|
616
|
-
@quantity = quantity
|
|
617
|
-
@tax_rates = tax_rates
|
|
618
|
-
@trial = trial
|
|
619
|
-
@trial_offer = trial_offer
|
|
620
|
-
end
|
|
621
|
-
end
|
|
622
|
-
|
|
623
|
-
class Remove < ::Stripe::RequestParams
|
|
624
|
-
# ID of a price to remove.
|
|
625
|
-
attr_accessor :price
|
|
626
|
-
|
|
627
|
-
def initialize(price: nil)
|
|
628
|
-
@price = price
|
|
629
|
-
end
|
|
630
|
-
end
|
|
631
|
-
|
|
632
|
-
class Set < ::Stripe::RequestParams
|
|
633
|
-
class Discount < ::Stripe::RequestParams
|
|
634
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
635
|
-
class Duration < ::Stripe::RequestParams
|
|
636
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
637
|
-
attr_accessor :interval
|
|
638
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
639
|
-
attr_accessor :interval_count
|
|
640
|
-
|
|
641
|
-
def initialize(interval: nil, interval_count: nil)
|
|
642
|
-
@interval = interval
|
|
643
|
-
@interval_count = interval_count
|
|
644
|
-
end
|
|
645
|
-
end
|
|
646
|
-
# Time span for the redeemed discount.
|
|
647
|
-
attr_accessor :duration
|
|
648
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
649
|
-
attr_accessor :timestamp
|
|
650
|
-
# The type of calculation made to determine when the discount ends.
|
|
651
|
-
attr_accessor :type
|
|
652
|
-
|
|
653
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
654
|
-
@duration = duration
|
|
655
|
-
@timestamp = timestamp
|
|
656
|
-
@type = type
|
|
657
|
-
end
|
|
658
|
-
end
|
|
659
|
-
# ID of the coupon to create a new discount for.
|
|
660
|
-
attr_accessor :coupon
|
|
661
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
662
|
-
attr_accessor :discount
|
|
663
|
-
# Details to determine how long the discount should be applied for.
|
|
664
|
-
attr_accessor :discount_end
|
|
665
|
-
# ID of the promotion code to create a new discount for.
|
|
666
|
-
attr_accessor :promotion_code
|
|
667
|
-
|
|
668
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
669
|
-
@coupon = coupon
|
|
670
|
-
@discount = discount
|
|
671
|
-
@discount_end = discount_end
|
|
672
|
-
@promotion_code = promotion_code
|
|
673
|
-
end
|
|
674
|
-
end
|
|
675
|
-
|
|
676
|
-
class Trial < ::Stripe::RequestParams
|
|
677
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
678
|
-
attr_accessor :converts_to
|
|
679
|
-
# Determines the type of trial for this item.
|
|
680
|
-
attr_accessor :type
|
|
681
|
-
|
|
682
|
-
def initialize(converts_to: nil, type: nil)
|
|
683
|
-
@converts_to = converts_to
|
|
684
|
-
@type = type
|
|
685
|
-
end
|
|
686
|
-
end
|
|
687
|
-
# If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
|
|
688
|
-
attr_accessor :discounts
|
|
689
|
-
# If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
|
|
690
|
-
attr_accessor :metadata
|
|
691
|
-
# The ID of the price object.
|
|
692
|
-
attr_accessor :price
|
|
693
|
-
# If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
|
|
694
|
-
attr_accessor :quantity
|
|
695
|
-
# If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
|
|
696
|
-
attr_accessor :tax_rates
|
|
697
|
-
# If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
698
|
-
attr_accessor :trial
|
|
699
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
700
|
-
attr_accessor :trial_offer
|
|
701
|
-
|
|
702
|
-
def initialize(
|
|
703
|
-
discounts: nil,
|
|
704
|
-
metadata: nil,
|
|
705
|
-
price: nil,
|
|
706
|
-
quantity: nil,
|
|
707
|
-
tax_rates: nil,
|
|
708
|
-
trial: nil,
|
|
709
|
-
trial_offer: nil
|
|
710
|
-
)
|
|
711
|
-
@discounts = discounts
|
|
712
|
-
@metadata = metadata
|
|
713
|
-
@price = price
|
|
714
|
-
@quantity = quantity
|
|
715
|
-
@tax_rates = tax_rates
|
|
716
|
-
@trial = trial
|
|
717
|
-
@trial_offer = trial_offer
|
|
718
|
-
end
|
|
719
|
-
end
|
|
720
|
-
# Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
721
|
-
attr_accessor :add
|
|
722
|
-
# Details of the subscription item to remove.
|
|
723
|
-
attr_accessor :remove
|
|
724
|
-
# Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
|
|
725
|
-
attr_accessor :set
|
|
726
|
-
# Determines the type of item action.
|
|
727
|
-
attr_accessor :type
|
|
728
|
-
|
|
729
|
-
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
730
|
-
@add = add
|
|
731
|
-
@remove = remove
|
|
732
|
-
@set = set
|
|
733
|
-
@type = type
|
|
734
|
-
end
|
|
735
|
-
end
|
|
736
|
-
|
|
737
|
-
class MetadataAction < ::Stripe::RequestParams
|
|
738
|
-
# Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
739
|
-
attr_accessor :add
|
|
740
|
-
# Keys to remove from schedule phase metadata.
|
|
741
|
-
attr_accessor :remove
|
|
742
|
-
# Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
743
|
-
attr_accessor :set
|
|
744
|
-
# Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
745
|
-
attr_accessor :type
|
|
746
|
-
|
|
747
|
-
def initialize(add: nil, remove: nil, set: nil, type: nil)
|
|
748
|
-
@add = add
|
|
749
|
-
@remove = remove
|
|
750
|
-
@set = set
|
|
751
|
-
@type = type
|
|
752
|
-
end
|
|
753
|
-
end
|
|
754
|
-
|
|
755
|
-
class SetPauseCollection < ::Stripe::RequestParams
|
|
756
|
-
class Set < ::Stripe::RequestParams
|
|
757
|
-
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
758
|
-
attr_accessor :behavior
|
|
759
|
-
|
|
760
|
-
def initialize(behavior: nil)
|
|
761
|
-
@behavior = behavior
|
|
762
|
-
end
|
|
763
|
-
end
|
|
764
|
-
# Details of the pause_collection behavior to apply to the amendment.
|
|
765
|
-
attr_accessor :set
|
|
766
|
-
# Determines the type of the pause_collection amendment.
|
|
767
|
-
attr_accessor :type
|
|
768
|
-
|
|
769
|
-
def initialize(set: nil, type: nil)
|
|
770
|
-
@set = set
|
|
771
|
-
@type = type
|
|
772
|
-
end
|
|
773
|
-
end
|
|
774
|
-
|
|
775
|
-
class TrialSettings < ::Stripe::RequestParams
|
|
776
|
-
class EndBehavior < ::Stripe::RequestParams
|
|
777
|
-
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
778
|
-
attr_accessor :prorate_up_front
|
|
779
|
-
|
|
780
|
-
def initialize(prorate_up_front: nil)
|
|
781
|
-
@prorate_up_front = prorate_up_front
|
|
782
|
-
end
|
|
783
|
-
end
|
|
784
|
-
# Defines how the subscription should behave when a trial ends.
|
|
785
|
-
attr_accessor :end_behavior
|
|
786
|
-
|
|
787
|
-
def initialize(end_behavior: nil)
|
|
788
|
-
@end_behavior = end_behavior
|
|
789
|
-
end
|
|
790
|
-
end
|
|
791
|
-
# Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
|
|
792
|
-
attr_accessor :amendment_end
|
|
793
|
-
# Details to identify the earliest timestamp where the proposed change should take effect.
|
|
794
|
-
attr_accessor :amendment_start
|
|
795
|
-
# For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
|
|
796
|
-
attr_accessor :billing_cycle_anchor
|
|
797
|
-
# Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
798
|
-
attr_accessor :discount_actions
|
|
799
|
-
# Changes to the subscription items during the amendment time span.
|
|
800
|
-
attr_accessor :item_actions
|
|
801
|
-
# Instructions for how to modify phase metadata
|
|
802
|
-
attr_accessor :metadata_actions
|
|
803
|
-
# Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
|
|
804
|
-
attr_accessor :proration_behavior
|
|
805
|
-
# Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
806
|
-
attr_accessor :set_pause_collection
|
|
807
|
-
# Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
808
|
-
attr_accessor :set_schedule_end
|
|
809
|
-
# Settings related to subscription trials.
|
|
810
|
-
attr_accessor :trial_settings
|
|
811
|
-
# Actions to apply to the billing schedules.
|
|
812
|
-
attr_accessor :billing_schedules_actions
|
|
813
|
-
# Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
814
|
-
attr_accessor :effective_at
|
|
815
|
-
|
|
816
|
-
def initialize(
|
|
817
|
-
amendment_end: nil,
|
|
818
|
-
amendment_start: nil,
|
|
819
|
-
billing_cycle_anchor: nil,
|
|
820
|
-
discount_actions: nil,
|
|
821
|
-
item_actions: nil,
|
|
822
|
-
metadata_actions: nil,
|
|
823
|
-
proration_behavior: nil,
|
|
824
|
-
set_pause_collection: nil,
|
|
825
|
-
set_schedule_end: nil,
|
|
826
|
-
trial_settings: nil,
|
|
827
|
-
billing_schedules_actions: nil,
|
|
828
|
-
effective_at: nil
|
|
829
|
-
)
|
|
830
|
-
@amendment_end = amendment_end
|
|
831
|
-
@amendment_start = amendment_start
|
|
832
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
|
833
|
-
@discount_actions = discount_actions
|
|
834
|
-
@item_actions = item_actions
|
|
835
|
-
@metadata_actions = metadata_actions
|
|
836
|
-
@proration_behavior = proration_behavior
|
|
837
|
-
@set_pause_collection = set_pause_collection
|
|
838
|
-
@set_schedule_end = set_schedule_end
|
|
839
|
-
@trial_settings = trial_settings
|
|
840
|
-
@billing_schedules_actions = billing_schedules_actions
|
|
841
|
-
@effective_at = effective_at
|
|
842
|
-
end
|
|
843
|
-
end
|
|
844
|
-
|
|
845
298
|
class BillingMode < ::Stripe::RequestParams
|
|
846
299
|
class Flexible < ::Stripe::RequestParams
|
|
847
300
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
@@ -862,99 +315,19 @@ module Stripe
|
|
|
862
315
|
end
|
|
863
316
|
end
|
|
864
317
|
|
|
865
|
-
class BillingSchedule < ::Stripe::RequestParams
|
|
866
|
-
class AppliesTo < ::Stripe::RequestParams
|
|
867
|
-
# The ID of the price object.
|
|
868
|
-
attr_accessor :price
|
|
869
|
-
# Controls which subscription items the billing schedule applies to.
|
|
870
|
-
attr_accessor :type
|
|
871
|
-
|
|
872
|
-
def initialize(price: nil, type: nil)
|
|
873
|
-
@price = price
|
|
874
|
-
@type = type
|
|
875
|
-
end
|
|
876
|
-
end
|
|
877
|
-
|
|
878
|
-
class BillUntil < ::Stripe::RequestParams
|
|
879
|
-
class Duration < ::Stripe::RequestParams
|
|
880
|
-
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
881
|
-
attr_accessor :interval
|
|
882
|
-
# The multiplier applied to the interval.
|
|
883
|
-
attr_accessor :interval_count
|
|
884
|
-
|
|
885
|
-
def initialize(interval: nil, interval_count: nil)
|
|
886
|
-
@interval = interval
|
|
887
|
-
@interval_count = interval_count
|
|
888
|
-
end
|
|
889
|
-
end
|
|
890
|
-
# Specifies the billing period.
|
|
891
|
-
attr_accessor :duration
|
|
892
|
-
# The end date of the billing schedule.
|
|
893
|
-
attr_accessor :timestamp
|
|
894
|
-
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
895
|
-
attr_accessor :type
|
|
896
|
-
|
|
897
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
898
|
-
@duration = duration
|
|
899
|
-
@timestamp = timestamp
|
|
900
|
-
@type = type
|
|
901
|
-
end
|
|
902
|
-
end
|
|
903
|
-
# Configure billing schedule differently for individual subscription items.
|
|
904
|
-
attr_accessor :applies_to
|
|
905
|
-
# The end date for the billing schedule.
|
|
906
|
-
attr_accessor :bill_until
|
|
907
|
-
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
908
|
-
attr_accessor :key
|
|
909
|
-
|
|
910
|
-
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
911
|
-
@applies_to = applies_to
|
|
912
|
-
@bill_until = bill_until
|
|
913
|
-
@key = key
|
|
914
|
-
end
|
|
915
|
-
end
|
|
916
|
-
|
|
917
318
|
class Phase < ::Stripe::RequestParams
|
|
918
319
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
919
320
|
class Discount < ::Stripe::RequestParams
|
|
920
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
921
|
-
class Duration < ::Stripe::RequestParams
|
|
922
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
923
|
-
attr_accessor :interval
|
|
924
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
925
|
-
attr_accessor :interval_count
|
|
926
|
-
|
|
927
|
-
def initialize(interval: nil, interval_count: nil)
|
|
928
|
-
@interval = interval
|
|
929
|
-
@interval_count = interval_count
|
|
930
|
-
end
|
|
931
|
-
end
|
|
932
|
-
# Time span for the redeemed discount.
|
|
933
|
-
attr_accessor :duration
|
|
934
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
935
|
-
attr_accessor :timestamp
|
|
936
|
-
# The type of calculation made to determine when the discount ends.
|
|
937
|
-
attr_accessor :type
|
|
938
|
-
|
|
939
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
940
|
-
@duration = duration
|
|
941
|
-
@timestamp = timestamp
|
|
942
|
-
@type = type
|
|
943
|
-
end
|
|
944
|
-
end
|
|
945
321
|
# ID of the coupon to create a new discount for.
|
|
946
322
|
attr_accessor :coupon
|
|
947
323
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
948
324
|
attr_accessor :discount
|
|
949
|
-
# Details to determine how long the discount should be applied for.
|
|
950
|
-
attr_accessor :discount_end
|
|
951
325
|
# ID of the promotion code to create a new discount for.
|
|
952
326
|
attr_accessor :promotion_code
|
|
953
327
|
|
|
954
|
-
def initialize(coupon: nil, discount: nil,
|
|
328
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
955
329
|
@coupon = coupon
|
|
956
330
|
@discount = discount
|
|
957
|
-
@discount_end = discount_end
|
|
958
331
|
@promotion_code = promotion_code
|
|
959
332
|
end
|
|
960
333
|
end
|
|
@@ -999,7 +372,7 @@ module Stripe
|
|
|
999
372
|
attr_accessor :currency
|
|
1000
373
|
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
1001
374
|
attr_accessor :product
|
|
1002
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
375
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1003
376
|
attr_accessor :tax_behavior
|
|
1004
377
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
|
|
1005
378
|
attr_accessor :unit_amount
|
|
@@ -1022,13 +395,13 @@ module Stripe
|
|
|
1022
395
|
end
|
|
1023
396
|
# The coupons to redeem into discounts for the item.
|
|
1024
397
|
attr_accessor :discounts
|
|
1025
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
398
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1026
399
|
attr_accessor :metadata
|
|
1027
400
|
# The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.
|
|
1028
401
|
attr_accessor :period
|
|
1029
402
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
1030
403
|
attr_accessor :price
|
|
1031
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
404
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
1032
405
|
attr_accessor :price_data
|
|
1033
406
|
# Quantity for this item. Defaults to 1.
|
|
1034
407
|
attr_accessor :quantity
|
|
@@ -1090,44 +463,16 @@ module Stripe
|
|
|
1090
463
|
end
|
|
1091
464
|
|
|
1092
465
|
class Discount < ::Stripe::RequestParams
|
|
1093
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
1094
|
-
class Duration < ::Stripe::RequestParams
|
|
1095
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1096
|
-
attr_accessor :interval
|
|
1097
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1098
|
-
attr_accessor :interval_count
|
|
1099
|
-
|
|
1100
|
-
def initialize(interval: nil, interval_count: nil)
|
|
1101
|
-
@interval = interval
|
|
1102
|
-
@interval_count = interval_count
|
|
1103
|
-
end
|
|
1104
|
-
end
|
|
1105
|
-
# Time span for the redeemed discount.
|
|
1106
|
-
attr_accessor :duration
|
|
1107
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1108
|
-
attr_accessor :timestamp
|
|
1109
|
-
# The type of calculation made to determine when the discount ends.
|
|
1110
|
-
attr_accessor :type
|
|
1111
|
-
|
|
1112
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1113
|
-
@duration = duration
|
|
1114
|
-
@timestamp = timestamp
|
|
1115
|
-
@type = type
|
|
1116
|
-
end
|
|
1117
|
-
end
|
|
1118
466
|
# ID of the coupon to create a new discount for.
|
|
1119
467
|
attr_accessor :coupon
|
|
1120
468
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1121
469
|
attr_accessor :discount
|
|
1122
|
-
# Details to determine how long the discount should be applied for.
|
|
1123
|
-
attr_accessor :discount_end
|
|
1124
470
|
# ID of the promotion code to create a new discount for.
|
|
1125
471
|
attr_accessor :promotion_code
|
|
1126
472
|
|
|
1127
|
-
def initialize(coupon: nil, discount: nil,
|
|
473
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1128
474
|
@coupon = coupon
|
|
1129
475
|
@discount = discount
|
|
1130
|
-
@discount_end = discount_end
|
|
1131
476
|
@promotion_code = promotion_code
|
|
1132
477
|
end
|
|
1133
478
|
end
|
|
@@ -1172,7 +517,7 @@ module Stripe
|
|
|
1172
517
|
|
|
1173
518
|
class Item < ::Stripe::RequestParams
|
|
1174
519
|
class BillingThresholds < ::Stripe::RequestParams
|
|
1175
|
-
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/
|
|
520
|
+
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
|
1176
521
|
attr_accessor :usage_gte
|
|
1177
522
|
|
|
1178
523
|
def initialize(usage_gte: nil)
|
|
@@ -1181,44 +526,16 @@ module Stripe
|
|
|
1181
526
|
end
|
|
1182
527
|
|
|
1183
528
|
class Discount < ::Stripe::RequestParams
|
|
1184
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
1185
|
-
class Duration < ::Stripe::RequestParams
|
|
1186
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1187
|
-
attr_accessor :interval
|
|
1188
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1189
|
-
attr_accessor :interval_count
|
|
1190
|
-
|
|
1191
|
-
def initialize(interval: nil, interval_count: nil)
|
|
1192
|
-
@interval = interval
|
|
1193
|
-
@interval_count = interval_count
|
|
1194
|
-
end
|
|
1195
|
-
end
|
|
1196
|
-
# Time span for the redeemed discount.
|
|
1197
|
-
attr_accessor :duration
|
|
1198
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1199
|
-
attr_accessor :timestamp
|
|
1200
|
-
# The type of calculation made to determine when the discount ends.
|
|
1201
|
-
attr_accessor :type
|
|
1202
|
-
|
|
1203
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1204
|
-
@duration = duration
|
|
1205
|
-
@timestamp = timestamp
|
|
1206
|
-
@type = type
|
|
1207
|
-
end
|
|
1208
|
-
end
|
|
1209
529
|
# ID of the coupon to create a new discount for.
|
|
1210
530
|
attr_accessor :coupon
|
|
1211
531
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1212
532
|
attr_accessor :discount
|
|
1213
|
-
# Details to determine how long the discount should be applied for.
|
|
1214
|
-
attr_accessor :discount_end
|
|
1215
533
|
# ID of the promotion code to create a new discount for.
|
|
1216
534
|
attr_accessor :promotion_code
|
|
1217
535
|
|
|
1218
|
-
def initialize(coupon: nil, discount: nil,
|
|
536
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1219
537
|
@coupon = coupon
|
|
1220
538
|
@discount = discount
|
|
1221
|
-
@discount_end = discount_end
|
|
1222
539
|
@promotion_code = promotion_code
|
|
1223
540
|
end
|
|
1224
541
|
end
|
|
@@ -1241,7 +558,7 @@ module Stripe
|
|
|
1241
558
|
attr_accessor :product
|
|
1242
559
|
# The recurring components of a price such as `interval` and `interval_count`.
|
|
1243
560
|
attr_accessor :recurring
|
|
1244
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
561
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1245
562
|
attr_accessor :tax_behavior
|
|
1246
563
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
1247
564
|
attr_accessor :unit_amount
|
|
@@ -1264,38 +581,22 @@ module Stripe
|
|
|
1264
581
|
@unit_amount_decimal = unit_amount_decimal
|
|
1265
582
|
end
|
|
1266
583
|
end
|
|
1267
|
-
|
|
1268
|
-
class Trial < ::Stripe::RequestParams
|
|
1269
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
1270
|
-
attr_accessor :converts_to
|
|
1271
|
-
# Determines the type of trial for this item.
|
|
1272
|
-
attr_accessor :type
|
|
1273
|
-
|
|
1274
|
-
def initialize(converts_to: nil, type: nil)
|
|
1275
|
-
@converts_to = converts_to
|
|
1276
|
-
@type = type
|
|
1277
|
-
end
|
|
1278
|
-
end
|
|
1279
584
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
1280
585
|
attr_accessor :billing_thresholds
|
|
1281
586
|
# The coupons to redeem into discounts for the subscription item.
|
|
1282
587
|
attr_accessor :discounts
|
|
1283
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
588
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
|
|
1284
589
|
attr_accessor :metadata
|
|
1285
590
|
# The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
|
|
1286
591
|
attr_accessor :plan
|
|
1287
592
|
# The ID of the price object.
|
|
1288
593
|
attr_accessor :price
|
|
1289
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
594
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
|
|
1290
595
|
attr_accessor :price_data
|
|
1291
596
|
# Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
|
|
1292
597
|
attr_accessor :quantity
|
|
1293
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
598
|
+
# A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
1294
599
|
attr_accessor :tax_rates
|
|
1295
|
-
# Options that configure the trial on the subscription item.
|
|
1296
|
-
attr_accessor :trial
|
|
1297
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
1298
|
-
attr_accessor :trial_offer
|
|
1299
600
|
|
|
1300
601
|
def initialize(
|
|
1301
602
|
billing_thresholds: nil,
|
|
@@ -1305,9 +606,7 @@ module Stripe
|
|
|
1305
606
|
price: nil,
|
|
1306
607
|
price_data: nil,
|
|
1307
608
|
quantity: nil,
|
|
1308
|
-
tax_rates: nil
|
|
1309
|
-
trial: nil,
|
|
1310
|
-
trial_offer: nil
|
|
609
|
+
tax_rates: nil
|
|
1311
610
|
)
|
|
1312
611
|
@billing_thresholds = billing_thresholds
|
|
1313
612
|
@discounts = discounts
|
|
@@ -1317,17 +616,6 @@ module Stripe
|
|
|
1317
616
|
@price_data = price_data
|
|
1318
617
|
@quantity = quantity
|
|
1319
618
|
@tax_rates = tax_rates
|
|
1320
|
-
@trial = trial
|
|
1321
|
-
@trial_offer = trial_offer
|
|
1322
|
-
end
|
|
1323
|
-
end
|
|
1324
|
-
|
|
1325
|
-
class PauseCollection < ::Stripe::RequestParams
|
|
1326
|
-
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
1327
|
-
attr_accessor :behavior
|
|
1328
|
-
|
|
1329
|
-
def initialize(behavior: nil)
|
|
1330
|
-
@behavior = behavior
|
|
1331
619
|
end
|
|
1332
620
|
end
|
|
1333
621
|
|
|
@@ -1342,30 +630,13 @@ module Stripe
|
|
|
1342
630
|
@destination = destination
|
|
1343
631
|
end
|
|
1344
632
|
end
|
|
1345
|
-
|
|
1346
|
-
class TrialSettings < ::Stripe::RequestParams
|
|
1347
|
-
class EndBehavior < ::Stripe::RequestParams
|
|
1348
|
-
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1349
|
-
attr_accessor :prorate_up_front
|
|
1350
|
-
|
|
1351
|
-
def initialize(prorate_up_front: nil)
|
|
1352
|
-
@prorate_up_front = prorate_up_front
|
|
1353
|
-
end
|
|
1354
|
-
end
|
|
1355
|
-
# Defines how the subscription should behave when a trial ends.
|
|
1356
|
-
attr_accessor :end_behavior
|
|
1357
|
-
|
|
1358
|
-
def initialize(end_behavior: nil)
|
|
1359
|
-
@end_behavior = end_behavior
|
|
1360
|
-
end
|
|
1361
|
-
end
|
|
1362
633
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
|
|
1363
634
|
attr_accessor :add_invoice_items
|
|
1364
635
|
# 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. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
|
|
1365
636
|
attr_accessor :application_fee_percent
|
|
1366
637
|
# Automatic tax settings for this phase.
|
|
1367
638
|
attr_accessor :automatic_tax
|
|
1368
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/
|
|
639
|
+
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
1369
640
|
attr_accessor :billing_cycle_anchor
|
|
1370
641
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
1371
642
|
attr_accessor :billing_thresholds
|
|
@@ -1375,7 +646,7 @@ module Stripe
|
|
|
1375
646
|
attr_accessor :currency
|
|
1376
647
|
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
|
1377
648
|
attr_accessor :default_payment_method
|
|
1378
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
649
|
+
# A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
|
|
1379
650
|
attr_accessor :default_tax_rates
|
|
1380
651
|
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
1381
652
|
attr_accessor :description
|
|
@@ -1383,19 +654,17 @@ module Stripe
|
|
|
1383
654
|
attr_accessor :discounts
|
|
1384
655
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
1385
656
|
attr_accessor :duration
|
|
1386
|
-
# The date at which this phase of the subscription schedule ends. If set, `
|
|
657
|
+
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
1387
658
|
attr_accessor :end_date
|
|
1388
659
|
# All invoices will be billed using the specified settings.
|
|
1389
660
|
attr_accessor :invoice_settings
|
|
1390
661
|
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
|
|
1391
662
|
attr_accessor :items
|
|
1392
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
663
|
+
# 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, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
|
1393
664
|
attr_accessor :metadata
|
|
1394
665
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
1395
666
|
attr_accessor :on_behalf_of
|
|
1396
|
-
#
|
|
1397
|
-
attr_accessor :pause_collection
|
|
1398
|
-
# Controls whether the subscription schedule should create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
667
|
+
# Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
1399
668
|
attr_accessor :proration_behavior
|
|
1400
669
|
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
|
1401
670
|
attr_accessor :start_date
|
|
@@ -1403,14 +672,8 @@ module Stripe
|
|
|
1403
672
|
attr_accessor :transfer_data
|
|
1404
673
|
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
1405
674
|
attr_accessor :trial
|
|
1406
|
-
# Specify trial behavior when crossing phase boundaries
|
|
1407
|
-
attr_accessor :trial_continuation
|
|
1408
675
|
# Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
1409
676
|
attr_accessor :trial_end
|
|
1410
|
-
# Settings related to subscription trials.
|
|
1411
|
-
attr_accessor :trial_settings
|
|
1412
|
-
# Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.
|
|
1413
|
-
attr_accessor :effective_at
|
|
1414
677
|
|
|
1415
678
|
def initialize(
|
|
1416
679
|
add_invoice_items: nil,
|
|
@@ -1430,15 +693,11 @@ module Stripe
|
|
|
1430
693
|
items: nil,
|
|
1431
694
|
metadata: nil,
|
|
1432
695
|
on_behalf_of: nil,
|
|
1433
|
-
pause_collection: nil,
|
|
1434
696
|
proration_behavior: nil,
|
|
1435
697
|
start_date: nil,
|
|
1436
698
|
transfer_data: nil,
|
|
1437
699
|
trial: nil,
|
|
1438
|
-
|
|
1439
|
-
trial_end: nil,
|
|
1440
|
-
trial_settings: nil,
|
|
1441
|
-
effective_at: nil
|
|
700
|
+
trial_end: nil
|
|
1442
701
|
)
|
|
1443
702
|
@add_invoice_items = add_invoice_items
|
|
1444
703
|
@application_fee_percent = application_fee_percent
|
|
@@ -1457,101 +716,27 @@ module Stripe
|
|
|
1457
716
|
@items = items
|
|
1458
717
|
@metadata = metadata
|
|
1459
718
|
@on_behalf_of = on_behalf_of
|
|
1460
|
-
@pause_collection = pause_collection
|
|
1461
719
|
@proration_behavior = proration_behavior
|
|
1462
720
|
@start_date = start_date
|
|
1463
721
|
@transfer_data = transfer_data
|
|
1464
722
|
@trial = trial
|
|
1465
|
-
@trial_continuation = trial_continuation
|
|
1466
723
|
@trial_end = trial_end
|
|
1467
|
-
@trial_settings = trial_settings
|
|
1468
|
-
@effective_at = effective_at
|
|
1469
724
|
end
|
|
1470
725
|
end
|
|
1471
|
-
|
|
1472
|
-
class Prebilling < ::Stripe::RequestParams
|
|
1473
|
-
class BillUntil < ::Stripe::RequestParams
|
|
1474
|
-
class AmendmentEnd < ::Stripe::RequestParams
|
|
1475
|
-
# The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
1476
|
-
attr_accessor :index
|
|
1477
|
-
|
|
1478
|
-
def initialize(index: nil)
|
|
1479
|
-
@index = index
|
|
1480
|
-
end
|
|
1481
|
-
end
|
|
1482
|
-
|
|
1483
|
-
class Duration < ::Stripe::RequestParams
|
|
1484
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1485
|
-
attr_accessor :interval
|
|
1486
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1487
|
-
attr_accessor :interval_count
|
|
1488
|
-
|
|
1489
|
-
def initialize(interval: nil, interval_count: nil)
|
|
1490
|
-
@interval = interval
|
|
1491
|
-
@interval_count = interval_count
|
|
1492
|
-
end
|
|
1493
|
-
end
|
|
1494
|
-
# End the prebilled period when a specified amendment ends.
|
|
1495
|
-
attr_accessor :amendment_end
|
|
1496
|
-
# Time span for prebilling, starting from `bill_from`.
|
|
1497
|
-
attr_accessor :duration
|
|
1498
|
-
# End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
1499
|
-
attr_accessor :timestamp
|
|
1500
|
-
# Select one of several ways to pass the `bill_until` value.
|
|
1501
|
-
attr_accessor :type
|
|
1502
|
-
|
|
1503
|
-
def initialize(amendment_end: nil, duration: nil, timestamp: nil, type: nil)
|
|
1504
|
-
@amendment_end = amendment_end
|
|
1505
|
-
@duration = duration
|
|
1506
|
-
@timestamp = timestamp
|
|
1507
|
-
@type = type
|
|
1508
|
-
end
|
|
1509
|
-
end
|
|
1510
|
-
# The end of the prebilled time period.
|
|
1511
|
-
attr_accessor :bill_until
|
|
1512
|
-
# This is used to determine the number of billing cycles to prebill.
|
|
1513
|
-
attr_accessor :iterations
|
|
1514
|
-
|
|
1515
|
-
def initialize(bill_until: nil, iterations: nil)
|
|
1516
|
-
@bill_until = bill_until
|
|
1517
|
-
@iterations = iterations
|
|
1518
|
-
end
|
|
1519
|
-
end
|
|
1520
|
-
# Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
1521
|
-
attr_accessor :amendments
|
|
1522
|
-
# 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.
|
|
1523
|
-
attr_accessor :billing_behavior
|
|
1524
726
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
1525
727
|
attr_accessor :billing_mode
|
|
1526
728
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
1527
729
|
attr_accessor :end_behavior
|
|
1528
730
|
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
1529
731
|
attr_accessor :phases
|
|
1530
|
-
# Provide any time periods to bill in advance.
|
|
1531
|
-
attr_accessor :prebilling
|
|
1532
732
|
# In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
1533
733
|
attr_accessor :proration_behavior
|
|
1534
|
-
# Sets the billing schedules for the subscription schedule.
|
|
1535
|
-
attr_accessor :billing_schedules
|
|
1536
734
|
|
|
1537
|
-
def initialize(
|
|
1538
|
-
amendments: nil,
|
|
1539
|
-
billing_behavior: nil,
|
|
1540
|
-
billing_mode: nil,
|
|
1541
|
-
end_behavior: nil,
|
|
1542
|
-
phases: nil,
|
|
1543
|
-
prebilling: nil,
|
|
1544
|
-
proration_behavior: nil,
|
|
1545
|
-
billing_schedules: nil
|
|
1546
|
-
)
|
|
1547
|
-
@amendments = amendments
|
|
1548
|
-
@billing_behavior = billing_behavior
|
|
735
|
+
def initialize(billing_mode: nil, end_behavior: nil, phases: nil, proration_behavior: nil)
|
|
1549
736
|
@billing_mode = billing_mode
|
|
1550
737
|
@end_behavior = end_behavior
|
|
1551
738
|
@phases = phases
|
|
1552
|
-
@prebilling = prebilling
|
|
1553
739
|
@proration_behavior = proration_behavior
|
|
1554
|
-
@billing_schedules = billing_schedules
|
|
1555
740
|
end
|
|
1556
741
|
end
|
|
1557
742
|
|
|
@@ -1576,61 +761,9 @@ module Stripe
|
|
|
1576
761
|
end
|
|
1577
762
|
end
|
|
1578
763
|
|
|
1579
|
-
class BillingSchedule < ::Stripe::RequestParams
|
|
1580
|
-
class AppliesTo < ::Stripe::RequestParams
|
|
1581
|
-
# The ID of the price object.
|
|
1582
|
-
attr_accessor :price
|
|
1583
|
-
# Controls which subscription items the billing schedule applies to.
|
|
1584
|
-
attr_accessor :type
|
|
1585
|
-
|
|
1586
|
-
def initialize(price: nil, type: nil)
|
|
1587
|
-
@price = price
|
|
1588
|
-
@type = type
|
|
1589
|
-
end
|
|
1590
|
-
end
|
|
1591
|
-
|
|
1592
|
-
class BillUntil < ::Stripe::RequestParams
|
|
1593
|
-
class Duration < ::Stripe::RequestParams
|
|
1594
|
-
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
1595
|
-
attr_accessor :interval
|
|
1596
|
-
# The multiplier applied to the interval.
|
|
1597
|
-
attr_accessor :interval_count
|
|
1598
|
-
|
|
1599
|
-
def initialize(interval: nil, interval_count: nil)
|
|
1600
|
-
@interval = interval
|
|
1601
|
-
@interval_count = interval_count
|
|
1602
|
-
end
|
|
1603
|
-
end
|
|
1604
|
-
# Specifies the billing period.
|
|
1605
|
-
attr_accessor :duration
|
|
1606
|
-
# The end date of the billing schedule.
|
|
1607
|
-
attr_accessor :timestamp
|
|
1608
|
-
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
1609
|
-
attr_accessor :type
|
|
1610
|
-
|
|
1611
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1612
|
-
@duration = duration
|
|
1613
|
-
@timestamp = timestamp
|
|
1614
|
-
@type = type
|
|
1615
|
-
end
|
|
1616
|
-
end
|
|
1617
|
-
# Configure billing schedule differently for individual subscription items.
|
|
1618
|
-
attr_accessor :applies_to
|
|
1619
|
-
# The end date for the billing schedule.
|
|
1620
|
-
attr_accessor :bill_until
|
|
1621
|
-
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
1622
|
-
attr_accessor :key
|
|
1623
|
-
|
|
1624
|
-
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
1625
|
-
@applies_to = applies_to
|
|
1626
|
-
@bill_until = bill_until
|
|
1627
|
-
@key = key
|
|
1628
|
-
end
|
|
1629
|
-
end
|
|
1630
|
-
|
|
1631
764
|
class Item < ::Stripe::RequestParams
|
|
1632
765
|
class BillingThresholds < ::Stripe::RequestParams
|
|
1633
|
-
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/
|
|
766
|
+
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
|
1634
767
|
attr_accessor :usage_gte
|
|
1635
768
|
|
|
1636
769
|
def initialize(usage_gte: nil)
|
|
@@ -1638,57 +771,17 @@ module Stripe
|
|
|
1638
771
|
end
|
|
1639
772
|
end
|
|
1640
773
|
|
|
1641
|
-
class CurrentTrial < ::Stripe::RequestParams
|
|
1642
|
-
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
1643
|
-
attr_accessor :trial_end
|
|
1644
|
-
# The ID of the trial offer to apply to the subscription item.
|
|
1645
|
-
attr_accessor :trial_offer
|
|
1646
|
-
|
|
1647
|
-
def initialize(trial_end: nil, trial_offer: nil)
|
|
1648
|
-
@trial_end = trial_end
|
|
1649
|
-
@trial_offer = trial_offer
|
|
1650
|
-
end
|
|
1651
|
-
end
|
|
1652
|
-
|
|
1653
774
|
class Discount < ::Stripe::RequestParams
|
|
1654
|
-
class DiscountEnd < ::Stripe::RequestParams
|
|
1655
|
-
class Duration < ::Stripe::RequestParams
|
|
1656
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1657
|
-
attr_accessor :interval
|
|
1658
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1659
|
-
attr_accessor :interval_count
|
|
1660
|
-
|
|
1661
|
-
def initialize(interval: nil, interval_count: nil)
|
|
1662
|
-
@interval = interval
|
|
1663
|
-
@interval_count = interval_count
|
|
1664
|
-
end
|
|
1665
|
-
end
|
|
1666
|
-
# Time span for the redeemed discount.
|
|
1667
|
-
attr_accessor :duration
|
|
1668
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1669
|
-
attr_accessor :timestamp
|
|
1670
|
-
# The type of calculation made to determine when the discount ends.
|
|
1671
|
-
attr_accessor :type
|
|
1672
|
-
|
|
1673
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
1674
|
-
@duration = duration
|
|
1675
|
-
@timestamp = timestamp
|
|
1676
|
-
@type = type
|
|
1677
|
-
end
|
|
1678
|
-
end
|
|
1679
775
|
# ID of the coupon to create a new discount for.
|
|
1680
776
|
attr_accessor :coupon
|
|
1681
777
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1682
778
|
attr_accessor :discount
|
|
1683
|
-
# Details to determine how long the discount should be applied for.
|
|
1684
|
-
attr_accessor :discount_end
|
|
1685
779
|
# ID of the promotion code to create a new discount for.
|
|
1686
780
|
attr_accessor :promotion_code
|
|
1687
781
|
|
|
1688
|
-
def initialize(coupon: nil, discount: nil,
|
|
782
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
1689
783
|
@coupon = coupon
|
|
1690
784
|
@discount = discount
|
|
1691
|
-
@discount_end = discount_end
|
|
1692
785
|
@promotion_code = promotion_code
|
|
1693
786
|
end
|
|
1694
787
|
end
|
|
@@ -1711,7 +804,7 @@ module Stripe
|
|
|
1711
804
|
attr_accessor :product
|
|
1712
805
|
# The recurring components of a price such as `interval` and `interval_count`.
|
|
1713
806
|
attr_accessor :recurring
|
|
1714
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
807
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
1715
808
|
attr_accessor :tax_behavior
|
|
1716
809
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
1717
810
|
attr_accessor :unit_amount
|
|
@@ -1744,20 +837,18 @@ module Stripe
|
|
|
1744
837
|
attr_accessor :discounts
|
|
1745
838
|
# Subscription item to update.
|
|
1746
839
|
attr_accessor :id
|
|
1747
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
840
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1748
841
|
attr_accessor :metadata
|
|
1749
842
|
# Plan ID for this item, as a string.
|
|
1750
843
|
attr_accessor :plan
|
|
1751
844
|
# The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
|
|
1752
845
|
attr_accessor :price
|
|
1753
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
846
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
1754
847
|
attr_accessor :price_data
|
|
1755
848
|
# Quantity for this item.
|
|
1756
849
|
attr_accessor :quantity
|
|
1757
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
850
|
+
# A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
1758
851
|
attr_accessor :tax_rates
|
|
1759
|
-
# The trial offer to apply to this subscription item.
|
|
1760
|
-
attr_accessor :current_trial
|
|
1761
852
|
|
|
1762
853
|
def initialize(
|
|
1763
854
|
billing_thresholds: nil,
|
|
@@ -1770,8 +861,7 @@ module Stripe
|
|
|
1770
861
|
price: nil,
|
|
1771
862
|
price_data: nil,
|
|
1772
863
|
quantity: nil,
|
|
1773
|
-
tax_rates: nil
|
|
1774
|
-
current_trial: nil
|
|
864
|
+
tax_rates: nil
|
|
1775
865
|
)
|
|
1776
866
|
@billing_thresholds = billing_thresholds
|
|
1777
867
|
@clear_usage = clear_usage
|
|
@@ -1784,24 +874,12 @@ module Stripe
|
|
|
1784
874
|
@price_data = price_data
|
|
1785
875
|
@quantity = quantity
|
|
1786
876
|
@tax_rates = tax_rates
|
|
1787
|
-
@current_trial = current_trial
|
|
1788
|
-
end
|
|
1789
|
-
end
|
|
1790
|
-
|
|
1791
|
-
class Prebilling < ::Stripe::RequestParams
|
|
1792
|
-
# This is used to determine the number of billing cycles to prebill.
|
|
1793
|
-
attr_accessor :iterations
|
|
1794
|
-
|
|
1795
|
-
def initialize(iterations: nil)
|
|
1796
|
-
@iterations = iterations
|
|
1797
877
|
end
|
|
1798
878
|
end
|
|
1799
|
-
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://stripe.com/
|
|
879
|
+
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.
|
|
1800
880
|
attr_accessor :billing_cycle_anchor
|
|
1801
881
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
1802
882
|
attr_accessor :billing_mode
|
|
1803
|
-
# Sets the billing schedules for the subscription.
|
|
1804
|
-
attr_accessor :billing_schedules
|
|
1805
883
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
|
1806
884
|
attr_accessor :cancel_at
|
|
1807
885
|
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
|
@@ -1812,9 +890,7 @@ module Stripe
|
|
|
1812
890
|
attr_accessor :default_tax_rates
|
|
1813
891
|
# A list of up to 20 subscription items, each with an attached price.
|
|
1814
892
|
attr_accessor :items
|
|
1815
|
-
#
|
|
1816
|
-
attr_accessor :prebilling
|
|
1817
|
-
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
893
|
+
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
1818
894
|
attr_accessor :proration_behavior
|
|
1819
895
|
# If previewing an update to a subscription, and doing proration, `subscription_details.proration_date` forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period and within the current phase of the schedule backing this subscription, if the schedule exists. If set, `subscription`, and one of `subscription_details.items`, or `subscription_details.trial_end` are required. Also, `subscription_details.proration_behavior` cannot be set to 'none'.
|
|
1820
896
|
attr_accessor :proration_date
|
|
@@ -1828,13 +904,11 @@ module Stripe
|
|
|
1828
904
|
def initialize(
|
|
1829
905
|
billing_cycle_anchor: nil,
|
|
1830
906
|
billing_mode: nil,
|
|
1831
|
-
billing_schedules: nil,
|
|
1832
907
|
cancel_at: nil,
|
|
1833
908
|
cancel_at_period_end: nil,
|
|
1834
909
|
cancel_now: nil,
|
|
1835
910
|
default_tax_rates: nil,
|
|
1836
911
|
items: nil,
|
|
1837
|
-
prebilling: nil,
|
|
1838
912
|
proration_behavior: nil,
|
|
1839
913
|
proration_date: nil,
|
|
1840
914
|
resume_at: nil,
|
|
@@ -1843,13 +917,11 @@ module Stripe
|
|
|
1843
917
|
)
|
|
1844
918
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
1845
919
|
@billing_mode = billing_mode
|
|
1846
|
-
@billing_schedules = billing_schedules
|
|
1847
920
|
@cancel_at = cancel_at
|
|
1848
921
|
@cancel_at_period_end = cancel_at_period_end
|
|
1849
922
|
@cancel_now = cancel_now
|
|
1850
923
|
@default_tax_rates = default_tax_rates
|
|
1851
924
|
@items = items
|
|
1852
|
-
@prebilling = prebilling
|
|
1853
925
|
@proration_behavior = proration_behavior
|
|
1854
926
|
@proration_date = proration_date
|
|
1855
927
|
@resume_at = resume_at
|
|
@@ -1859,13 +931,11 @@ module Stripe
|
|
|
1859
931
|
end
|
|
1860
932
|
# Settings for automatic tax lookup for this invoice preview.
|
|
1861
933
|
attr_accessor :automatic_tax
|
|
1862
|
-
# The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice.Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
|
|
1863
|
-
attr_accessor :billing_cadence
|
|
1864
934
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
1865
935
|
attr_accessor :currency
|
|
1866
|
-
# The identifier of the customer whose upcoming invoice you'
|
|
936
|
+
# The identifier of the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
1867
937
|
attr_accessor :customer
|
|
1868
|
-
# The identifier of the account whose upcoming invoice you'
|
|
938
|
+
# The identifier of the account representing the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_account`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
1869
939
|
attr_accessor :customer_account
|
|
1870
940
|
# Details about the customer you want to invoice or overrides for an existing customer. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
1871
941
|
attr_accessor :customer_details
|
|
@@ -1877,7 +947,7 @@ module Stripe
|
|
|
1877
947
|
attr_accessor :invoice_items
|
|
1878
948
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
1879
949
|
attr_accessor :issuer
|
|
1880
|
-
# 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/
|
|
950
|
+
# 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.
|
|
1881
951
|
attr_accessor :on_behalf_of
|
|
1882
952
|
# Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
|
|
1883
953
|
attr_accessor :preview_mode
|
|
@@ -1892,7 +962,6 @@ module Stripe
|
|
|
1892
962
|
|
|
1893
963
|
def initialize(
|
|
1894
964
|
automatic_tax: nil,
|
|
1895
|
-
billing_cadence: nil,
|
|
1896
965
|
currency: nil,
|
|
1897
966
|
customer: nil,
|
|
1898
967
|
customer_account: nil,
|
|
@@ -1909,7 +978,6 @@ module Stripe
|
|
|
1909
978
|
subscription_details: nil
|
|
1910
979
|
)
|
|
1911
980
|
@automatic_tax = automatic_tax
|
|
1912
|
-
@billing_cadence = billing_cadence
|
|
1913
981
|
@currency = currency
|
|
1914
982
|
@customer = customer
|
|
1915
983
|
@customer_account = customer_account
|