stripe 15.6.0.pre.beta.1 → 16.0.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/stripe/api_requestor.rb +5 -34
- data/lib/stripe/api_resource.rb +3 -0
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -60
- data/lib/stripe/event_types.rb +20 -108
- data/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +35 -12
- data/lib/stripe/object_types.rb +2 -54
- data/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/lib/stripe/params/account_create_params.rb +2083 -0
- data/lib/stripe/params/account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/lib/stripe/params/account_link_create_params.rb +52 -0
- data/lib/stripe/params/account_list_params.rb +42 -0
- data/lib/stripe/params/account_login_link_create_params.rb +13 -0
- data/lib/stripe/params/account_person_create_params.rb +435 -0
- data/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/lib/stripe/params/account_person_list_params.rb +61 -0
- data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_person_update_params.rb +435 -0
- data/lib/stripe/params/account_persons_params.rb +61 -0
- data/lib/stripe/params/account_reject_params.rb +16 -0
- data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_session_create_params.rb +598 -0
- data/lib/stripe/params/account_update_params.rb +2030 -0
- data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/lib/stripe/{services/quote_line_service.rb → params/apps/secret_list_params.rb} +17 -14
- data/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_update_params.rb +67 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
- data/lib/stripe/params/charge_capture_params.rb +57 -0
- data/lib/stripe/params/charge_create_params.rb +172 -0
- data/lib/stripe/params/charge_list_params.rb +60 -0
- data/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/lib/stripe/params/charge_search_params.rb +22 -0
- data/lib/stripe/params/charge_update_params.rb +102 -0
- data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
- data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/lib/stripe/{services/quote_preview_subscription_schedule_service.rb → params/checkout/session_line_item_list_params.rb} +2 -13
- data/lib/stripe/{services/order_line_item_service.rb → params/checkout/session_list_line_items_params.rb} +2 -13
- data/lib/stripe/params/checkout/session_list_params.rb +83 -0
- data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/checkout/session_update_params.rb +179 -0
- data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/lib/stripe/params/climate/order_create_params.rb +49 -0
- data/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_create_params.rb +80 -0
- data/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/lib/stripe/params/coupon_list_params.rb +42 -0
- data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_update_params.rb +30 -0
- data/lib/stripe/params/credit_note_create_params.rb +144 -0
- data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/lib/stripe/params/credit_note_list_params.rb +56 -0
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_params.rb +144 -0
- data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/lib/stripe/params/customer_create_params.rb +259 -0
- data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/lib/stripe/params/customer_delete_params.rb +6 -0
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/lib/stripe/params/customer_list_params.rb +56 -0
- data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/lib/stripe/params/customer_search_params.rb +22 -0
- data/lib/stripe/params/customer_session_create_params.rb +100 -0
- data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_update_params.rb +243 -0
- data/lib/stripe/params/dispute_close_params.rb +13 -0
- data/lib/stripe/params/dispute_list_params.rb +56 -0
- data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/lib/stripe/params/dispute_update_params.rb +308 -0
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/lib/stripe/params/event_list_params.rb +60 -0
- data/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_create_params.rb +36 -0
- data/lib/stripe/params/file_link_create_params.rb +22 -0
- data/lib/stripe/params/file_link_list_params.rb +56 -0
- data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_link_update_params.rb +19 -0
- data/lib/stripe/params/file_list_params.rb +52 -0
- data/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_create_params.rb +589 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
- data/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +145 -0
- data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_item_list_params.rb +60 -0
- data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_item_update_params.rb +129 -0
- data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
- data/lib/stripe/params/invoice_list_params.rb +86 -0
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_search_params.rb +22 -0
- data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_update_params.rb +557 -0
- data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
- data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
- data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/lib/stripe/params/issuing/card_create_params.rb +213 -0
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_update_params.rb +181 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
- data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
- data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
- data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
- data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
- data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
- data/lib/stripe/params/payment_intent_list_params.rb +52 -0
- data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/payment_link_create_params.rb +776 -0
- data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_link_update_params.rb +564 -0
- data/lib/stripe/params/payment_method_attach_params.rb +16 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
- data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
- data/lib/stripe/params/payment_method_create_params.rb +583 -0
- data/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/lib/stripe/params/payment_method_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_update_params.rb +120 -0
- data/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/lib/stripe/params/payout_create_params.rb +51 -0
- data/lib/stripe/params/payout_list_params.rb +78 -0
- data/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/lib/stripe/params/payout_update_params.rb +16 -0
- data/lib/stripe/params/plan_create_params.rb +158 -0
- data/lib/stripe/params/plan_delete_params.rb +6 -0
- data/lib/stripe/params/plan_list_params.rb +56 -0
- data/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/plan_update_params.rb +35 -0
- data/lib/stripe/params/price_create_params.rb +278 -0
- data/lib/stripe/params/price_list_params.rb +87 -0
- data/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_search_params.rb +22 -0
- data/lib/stripe/params/price_update_params.rb +113 -0
- data/lib/stripe/params/product_create_params.rb +243 -0
- data/lib/stripe/params/product_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_list_params.rb +68 -0
- data/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_search_params.rb +22 -0
- data/lib/stripe/params/product_update_params.rb +96 -0
- data/lib/stripe/params/promotion_code_create_params.rb +91 -0
- data/lib/stripe/params/promotion_code_list_params.rb +64 -0
- data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/lib/stripe/params/quote_accept_params.rb +13 -0
- data/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/lib/stripe/params/quote_create_params.rb +301 -0
- data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +39 -0
- data/lib/stripe/params/quote_pdf_params.rb +13 -0
- data/lib/stripe/params/quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +263 -0
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/lib/stripe/params/refund_create_params.rb +59 -0
- data/lib/stripe/params/refund_expire_params.rb +13 -0
- data/lib/stripe/params/refund_list_params.rb +56 -0
- data/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/refund_update_params.rb +16 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
- data/lib/stripe/params/review_approve_params.rb +13 -0
- data/lib/stripe/params/review_list_params.rb +42 -0
- data/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
- data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
- data/lib/stripe/params/setup_intent_list_params.rb +62 -0
- data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/source_create_params.rb +317 -0
- data/lib/stripe/params/source_detach_params.rb +13 -0
- data/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/lib/stripe/params/source_update_params.rb +259 -0
- data/lib/stripe/params/source_verify_params.rb +16 -0
- data/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/lib/stripe/params/subscription_create_params.rb +704 -0
- data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/lib/stripe/params/subscription_item_create_params.rb +134 -0
- data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
- data/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_item_update_params.rb +134 -0
- data/lib/stripe/params/subscription_list_params.rb +129 -0
- data/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
- data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
- data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
- data/lib/stripe/params/subscription_search_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +683 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/lib/stripe/{services/quote_preview_invoice_service.rb → params/tax/calculation_list_line_items_params.rb} +2 -13
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
- data/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/lib/stripe/{services/payment_intent_amount_details_line_item_service.rb → params/tax/transaction_list_line_items_params.rb} +2 -13
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_id_create_params.rb +36 -0
- data/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/tax_id_list_params.rb +39 -0
- data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
- data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
- data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
- data/lib/stripe/params/token_create_params.rb +1191 -0
- data/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/lib/stripe/params/topup_create_params.rb +43 -0
- data/lib/stripe/params/topup_list_params.rb +74 -0
- data/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_update_params.rb +19 -0
- data/lib/stripe/params/transfer_create_params.rb +47 -0
- data/lib/stripe/params/transfer_list_params.rb +56 -0
- data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/lib/stripe/params/transfer_update_params.rb +19 -0
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/lib/stripe/params.rb +588 -0
- data/lib/stripe/request_options.rb +14 -5
- data/lib/stripe/resources/account.rb +437 -4906
- data/lib/stripe/resources/account_link.rb +8 -47
- data/lib/stripe/resources/account_session.rb +338 -910
- data/lib/stripe/resources/apple_pay_domain.rb +8 -40
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +12 -44
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +12 -112
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +40 -60
- data/lib/stripe/resources/balance_transaction.rb +12 -56
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +20 -100
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +48 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +73 -33
- data/lib/stripe/resources/billing/credit_grant.rb +42 -161
- data/lib/stripe/resources/billing/meter.rb +40 -116
- data/lib/stripe/resources/billing/meter_event.rb +8 -20
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +12 -22
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +120 -473
- data/lib/stripe/resources/billing_portal/session.rb +98 -176
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/card.rb +17 -3
- data/lib/stripe/resources/cash_balance.rb +16 -2
- data/lib/stripe/resources/charge.rb +949 -1945
- data/lib/stripe/resources/checkout/session.rb +1038 -2991
- data/lib/stripe/resources/climate/order.rb +28 -89
- data/lib/stripe/resources/climate/product.rb +13 -15
- data/lib/stripe/resources/climate/supplier.rb +13 -15
- data/lib/stripe/resources/confirmation_token.rb +883 -841
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +29 -15
- data/lib/stripe/resources/coupon.rb +19 -166
- data/lib/stripe/resources/credit_note.rb +66 -510
- data/lib/stripe/resources/credit_note_line_item.rb +43 -8
- data/lib/stripe/resources/customer.rb +81 -677
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -2
- data/lib/stripe/resources/customer_session.rb +49 -98
- data/lib/stripe/resources/discount.rb +24 -6
- data/lib/stripe/resources/dispute.rb +159 -376
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -26
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -66
- data/lib/stripe/resources/ephemeral_key.rb +8 -8
- data/lib/stripe/resources/event.rb +16 -79
- data/lib/stripe/resources/exchange_rate.rb +18 -17
- data/lib/stripe/resources/file.rb +8 -79
- data/lib/stripe/resources/file_link.rb +8 -84
- data/lib/stripe/resources/financial_connections/account.rb +65 -130
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/session.rb +20 -115
- data/lib/stripe/resources/financial_connections/transaction.rb +12 -57
- data/lib/stripe/resources/forwarding/request.rb +48 -93
- data/lib/stripe/resources/funding_instructions.rb +217 -24
- data/lib/stripe/resources/identity/verification_report.rb +165 -56
- data/lib/stripe/resources/identity/verification_session.rb +124 -247
- data/lib/stripe/resources/invoice.rb +500 -4017
- data/lib/stripe/resources/invoice_item.rb +69 -385
- data/lib/stripe/resources/invoice_line_item.rb +124 -251
- data/lib/stripe/resources/invoice_payment.rb +20 -47
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -38
- data/lib/stripe/resources/issuing/authorization.rb +173 -836
- data/lib/stripe/resources/issuing/card.rb +98 -499
- data/lib/stripe/resources/issuing/cardholder.rb +108 -515
- data/lib/stripe/resources/issuing/dispute.rb +93 -620
- data/lib/stripe/resources/issuing/personalization_design.rb +32 -221
- data/lib/stripe/resources/issuing/physical_bundle.rb +13 -28
- data/lib/stripe/resources/issuing/token.rb +57 -60
- data/lib/stripe/resources/issuing/transaction.rb +147 -702
- data/lib/stripe/resources/line_item.rb +22 -35
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +219 -94
- data/lib/stripe/resources/payment_intent.rb +1241 -13361
- data/lib/stripe/resources/payment_link.rb +333 -1357
- data/lib/stripe/resources/payment_method.rb +796 -966
- data/lib/stripe/resources/payment_method_configuration.rb +862 -2528
- data/lib/stripe/resources/payment_method_domain.rb +107 -63
- data/lib/stripe/resources/payout.rb +12 -150
- data/lib/stripe/resources/person.rb +184 -4
- data/lib/stripe/resources/plan.rb +20 -235
- data/lib/stripe/resources/price.rb +65 -509
- data/lib/stripe/resources/product.rb +23 -411
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +40 -182
- data/lib/stripe/resources/quote.rb +280 -2743
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -51
- data/lib/stripe/resources/radar/value_list.rb +8 -92
- data/lib/stripe/resources/radar/value_list_item.rb +8 -68
- data/lib/stripe/resources/refund.rb +365 -159
- data/lib/stripe/resources/reporting/report_run.rb +12 -93
- data/lib/stripe/resources/reporting/report_type.rb +8 -8
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +20 -43
- data/lib/stripe/resources/setup_attempt.rb +284 -87
- data/lib/stripe/resources/setup_intent.rb +358 -4143
- data/lib/stripe/resources/shipping_rate.rb +44 -187
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +13 -15
- data/lib/stripe/resources/source.rb +267 -611
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +266 -1931
- data/lib/stripe/resources/subscription_item.rb +12 -379
- data/lib/stripe/resources/subscription_schedule.rb +230 -2273
- data/lib/stripe/resources/tax/calculation.rb +111 -220
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/registration.rb +1274 -2096
- data/lib/stripe/resources/tax/settings.rb +61 -64
- data/lib/stripe/resources/tax/transaction.rb +95 -122
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -17
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +20 -75
- data/lib/stripe/resources/tax_rate.rb +12 -142
- data/lib/stripe/resources/terminal/configuration.rb +301 -1205
- data/lib/stripe/resources/terminal/connection_token.rb +8 -11
- data/lib/stripe/resources/terminal/location.rb +72 -126
- data/lib/stripe/resources/terminal/reader.rb +237 -509
- data/lib/stripe/resources/test_helpers/test_clock.rb +20 -43
- data/lib/stripe/resources/token.rb +8 -1191
- data/lib/stripe/resources/topup.rb +8 -132
- data/lib/stripe/resources/transfer.rb +8 -115
- data/lib/stripe/resources/treasury/credit_reversal.rb +12 -46
- data/lib/stripe/resources/treasury/debit_reversal.rb +20 -50
- data/lib/stripe/resources/treasury/financial_account.rb +55 -658
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +67 -115
- data/lib/stripe/resources/treasury/outbound_payment.rb +104 -334
- data/lib/stripe/resources/treasury/outbound_transfer.rb +93 -235
- data/lib/stripe/resources/treasury/received_credit.rb +76 -136
- data/lib/stripe/resources/treasury/received_debit.rb +68 -126
- data/lib/stripe/resources/treasury/transaction.rb +32 -82
- data/lib/stripe/resources/treasury/transaction_entry.rb +20 -74
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/core/event.rb +67 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
- data/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -85
- data/lib/stripe/resources.rb +3 -110
- data/lib/stripe/services/account_capability_service.rb +0 -32
- data/lib/stripe/services/account_external_account_service.rb +0 -249
- data/lib/stripe/services/account_link_service.rb +0 -48
- data/lib/stripe/services/account_login_link_service.rb +0 -9
- data/lib/stripe/services/account_person_service.rb +0 -958
- data/lib/stripe/services/account_service.rb +0 -4710
- data/lib/stripe/services/account_session_service.rb +0 -862
- data/lib/stripe/services/apple_pay_domain_service.rb +0 -50
- data/lib/stripe/services/application_fee_refund_service.rb +0 -54
- data/lib/stripe/services/application_fee_service.rb +0 -57
- data/lib/stripe/services/apps/secret_service.rb +0 -116
- data/lib/stripe/services/balance_service.rb +0 -9
- data/lib/stripe/services/balance_settings_service.rb +0 -69
- data/lib/stripe/services/balance_transaction_service.rb +0 -69
- data/lib/stripe/services/billing/alert_service.rb +0 -113
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +0 -51
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -44
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -174
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +0 -26
- data/lib/stripe/services/billing/meter_event_service.rb +0 -21
- data/lib/stripe/services/billing/meter_event_summary_service.rb +0 -39
- data/lib/stripe/services/billing/meter_service.rb +0 -130
- data/lib/stripe/services/billing_portal/configuration_service.rb +0 -486
- data/lib/stripe/services/billing_portal/session_service.rb +0 -177
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/charge_service.rb +0 -1820
- data/lib/stripe/services/checkout/session_line_item_service.rb +0 -18
- data/lib/stripe/services/checkout/session_service.rb +0 -2882
- data/lib/stripe/services/climate/order_service.rb +0 -102
- data/lib/stripe/services/climate/product_service.rb +0 -27
- data/lib/stripe/services/climate/supplier_service.rb +0 -27
- data/lib/stripe/services/confirmation_token_service.rb +0 -9
- data/lib/stripe/services/country_spec_service.rb +0 -27
- data/lib/stripe/services/coupon_service.rb +0 -167
- data/lib/stripe/services/credit_note_line_item_service.rb +0 -18
- data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -152
- data/lib/stripe/services/credit_note_service.rb +0 -369
- data/lib/stripe/services/customer_balance_transaction_service.rb +0 -63
- data/lib/stripe/services/customer_cash_balance_service.rb +0 -29
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +0 -27
- data/lib/stripe/services/customer_funding_instructions_service.rb +0 -42
- data/lib/stripe/services/customer_payment_method_service.rb +0 -40
- data/lib/stripe/services/customer_payment_source_service.rb +0 -179
- data/lib/stripe/services/customer_service.rb +0 -575
- data/lib/stripe/services/customer_session_service.rb +0 -99
- data/lib/stripe/services/customer_tax_id_service.rb +0 -44
- data/lib/stripe/services/dispute_service.rb +0 -374
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +0 -36
- data/lib/stripe/services/entitlements/feature_service.rb +0 -76
- data/lib/stripe/services/ephemeral_key_service.rb +0 -36
- data/lib/stripe/services/event_service.rb +0 -65
- data/lib/stripe/services/exchange_rate_service.rb +4 -27
- data/lib/stripe/services/file_link_service.rb +0 -94
- data/lib/stripe/services/file_service.rb +0 -89
- data/lib/stripe/services/financial_connections/account_owner_service.rb +0 -27
- data/lib/stripe/services/financial_connections/account_service.rb +1 -102
- data/lib/stripe/services/financial_connections/session_service.rb +0 -100
- data/lib/stripe/services/financial_connections/transaction_service.rb +0 -70
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/forwarding/request_service.rb +0 -106
- data/lib/stripe/services/identity/verification_report_service.rb +0 -65
- data/lib/stripe/services/identity/verification_session_service.rb +0 -255
- data/lib/stripe/services/invoice_item_service.rb +0 -405
- data/lib/stripe/services/invoice_line_item_service.rb +0 -253
- data/lib/stripe/services/invoice_payment_service.rb +0 -58
- data/lib/stripe/services/invoice_rendering_template_service.rb +0 -51
- data/lib/stripe/services/invoice_service.rb +0 -3836
- data/lib/stripe/services/issuing/authorization_service.rb +0 -104
- data/lib/stripe/services/issuing/card_service.rb +0 -463
- data/lib/stripe/services/issuing/cardholder_service.rb +0 -526
- data/lib/stripe/services/issuing/dispute_service.rb +0 -633
- data/lib/stripe/services/issuing/personalization_design_service.rb +0 -193
- data/lib/stripe/services/issuing/physical_bundle_service.rb +0 -40
- data/lib/stripe/services/issuing/token_service.rb +0 -73
- data/lib/stripe/services/issuing/transaction_service.rb +0 -81
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -49
- data/lib/stripe/services/payment_intent_service.rb +0 -12747
- data/lib/stripe/services/payment_link_line_item_service.rb +0 -18
- data/lib/stripe/services/payment_link_service.rb +0 -1352
- data/lib/stripe/services/payment_method_configuration_service.rb +0 -2466
- data/lib/stripe/services/payment_method_domain_service.rb +0 -76
- data/lib/stripe/services/payment_method_service.rb +0 -881
- data/lib/stripe/services/payout_service.rb +0 -163
- data/lib/stripe/services/plan_service.rb +0 -248
- data/lib/stripe/services/price_service.rb +0 -512
- data/lib/stripe/services/product_feature_service.rb +0 -41
- data/lib/stripe/services/product_service.rb +0 -424
- data/lib/stripe/services/promotion_code_service.rb +1 -187
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +0 -18
- data/lib/stripe/services/quote_line_item_service.rb +0 -18
- data/lib/stripe/services/quote_service.rb +1 -2344
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +0 -61
- data/lib/stripe/services/radar/value_list_item_service.rb +0 -78
- data/lib/stripe/services/radar/value_list_service.rb +0 -102
- data/lib/stripe/services/refund_service.rb +0 -137
- data/lib/stripe/services/reporting/report_run_service.rb +0 -106
- data/lib/stripe/services/reporting/report_type_service.rb +0 -18
- data/lib/stripe/services/review_service.rb +0 -56
- data/lib/stripe/services/setup_attempt_service.rb +0 -51
- data/lib/stripe/services/setup_intent_service.rb +0 -3957
- data/lib/stripe/services/shipping_rate_service.rb +0 -200
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +0 -27
- data/lib/stripe/services/source_service.rb +0 -601
- data/lib/stripe/services/source_transaction_service.rb +0 -18
- data/lib/stripe/services/subscription_item_service.rb +0 -383
- data/lib/stripe/services/subscription_schedule_service.rb +0 -2196
- data/lib/stripe/services/subscription_service.rb +0 -1894
- data/lib/stripe/services/tax/calculation_line_item_service.rb +0 -18
- data/lib/stripe/services/tax/calculation_service.rb +0 -209
- data/lib/stripe/services/tax/registration_service.rb +0 -2063
- data/lib/stripe/services/tax/settings_service.rb +0 -74
- data/lib/stripe/services/tax/transaction_line_item_service.rb +0 -18
- data/lib/stripe/services/tax/transaction_service.rb +0 -111
- data/lib/stripe/services/tax_code_service.rb +0 -27
- data/lib/stripe/services/tax_id_service.rb +0 -84
- data/lib/stripe/services/tax_rate_service.rb +0 -155
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +0 -1212
- data/lib/stripe/services/terminal/connection_token_service.rb +0 -12
- data/lib/stripe/services/terminal/location_service.rb +0 -143
- data/lib/stripe/services/terminal/reader_service.rb +0 -427
- data/lib/stripe/services/terminal_service.rb +1 -3
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -738
- data/lib/stripe/services/test_helpers/customer_service.rb +0 -18
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +0 -745
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +0 -45
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +0 -41
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +0 -632
- data/lib/stripe/services/test_helpers/refund_service.rb +0 -9
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -87
- data/lib/stripe/services/test_helpers/test_clock_service.rb +0 -56
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +0 -38
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +0 -87
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +0 -87
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +0 -84
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -84
- data/lib/stripe/services/token_service.rb +0 -1201
- data/lib/stripe/services/topup_service.rb +0 -142
- data/lib/stripe/services/transfer_reversal_service.rb +0 -66
- data/lib/stripe/services/transfer_service.rb +0 -123
- data/lib/stripe/services/treasury/credit_reversal_service.rb +0 -59
- data/lib/stripe/services/treasury/debit_reversal_service.rb +0 -63
- data/lib/stripe/services/treasury/financial_account_features_service.rb +0 -169
- data/lib/stripe/services/treasury/financial_account_service.rb +0 -502
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +0 -88
- data/lib/stripe/services/treasury/outbound_payment_service.rb +0 -258
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -148
- data/lib/stripe/services/treasury/received_credit_service.rb +0 -52
- data/lib/stripe/services/treasury/received_debit_service.rb +0 -40
- data/lib/stripe/services/treasury/transaction_entry_service.rb +0 -87
- data/lib/stripe/services/treasury/transaction_service.rb +0 -95
- data/lib/stripe/services/v1_services.rb +1 -10
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +0 -23
- data/lib/stripe/services/v2/billing/meter_event_service.rb +0 -25
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +0 -2
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +0 -33
- data/lib/stripe/services/v2/core/event_destination_service.rb +0 -137
- data/lib/stripe/services/v2/core/event_service.rb +0 -16
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +1 -4
- data/lib/stripe/services/webhook_endpoint_service.rb +0 -95
- data/lib/stripe/services.rb +0 -54
- data/lib/stripe/stripe_client.rb +8 -5
- data/lib/stripe/stripe_configuration.rb +2 -9
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +34 -10
- data/lib/stripe/util.rb +25 -20
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +3 -54
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +121931 -190301
- metadata +599 -189
- data/API_VERSION +0 -1
- data/CHANGELOG.md +0 -2780
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTING.md +0 -25
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -41
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -22
- data/OPENAPI_VERSION +0 -1
- data/README.md +0 -424
- data/Rakefile +0 -34
- data/VERSION +0 -1
- data/examples/README.md +0 -16
- data/examples/example_template.rb +0 -36
- data/examples/meter_event_stream.rb +0 -57
- data/examples/thinevent_webhook_handler.rb +0 -39
- data/justfile +0 -43
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -13
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -22
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -21
- data/lib/stripe/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/billing/meter_usage.rb +0 -23
- data/lib/stripe/resources/billing/meter_usage_row.rb +0 -28
- data/lib/stripe/resources/capital/financing_offer.rb +0 -179
- data/lib/stripe/resources/capital/financing_summary.rb +0 -55
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -92
- data/lib/stripe/resources/fx_quote.rb +0 -186
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
- data/lib/stripe/resources/issuing/settlement.rb +0 -53
- data/lib/stripe/resources/margin.rb +0 -115
- data/lib/stripe/resources/order.rb +0 -2958
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1181
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -72
- data/lib/stripe/resources/payment_record.rb +0 -1727
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -298
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -33
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -680
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -395
- data/lib/stripe/resources/tax/association.rb +0 -66
- data/lib/stripe/resources/tax/form.rb +0 -211
- data/lib/stripe/resources/terminal/onboarding_link.rb +0 -84
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
- data/lib/stripe/resources/v2/core/account.rb +0 -1938
- data/lib/stripe/resources/v2/core/account_link.rb +0 -72
- data/lib/stripe/resources/v2/core/person.rb +0 -276
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
- data/lib/stripe/resources/v2/event.rb +0 -41
- data/lib/stripe/resources/v2/event_destination.rb +0 -73
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -79
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -77
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -122
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -84
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -80
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -70
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -89
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/billing/meter_usage_service.rb +0 -76
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -317
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
- data/lib/stripe/services/fx_quote_service.rb +0 -123
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_service.rb +0 -2388
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -52
- data/lib/stripe/services/payment_record_service.rb +0 -562
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -240
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -37
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -56
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/lib/stripe/services/v2/core/account_link_service.rb +0 -114
- data/lib/stripe/services/v2/core/account_service.rb +0 -4536
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1045
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -130
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -107
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -74
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -119
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -82
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -125
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -95
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -199
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -235
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -172
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -90
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -43
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -69
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -73
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -152
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -53
- data/lib/stripe/thin_event.rb +0 -37
- data/stripe.gemspec +0 -47
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :account
|
23
23
|
# Type of the account referenced.
|
24
24
|
attr_reader :type
|
25
|
+
|
26
|
+
def self.inner_class_types
|
27
|
+
@inner_class_types = {}
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.field_remappings
|
31
|
+
@field_remappings = {}
|
32
|
+
end
|
25
33
|
end
|
26
34
|
# If Stripe disabled automatic tax, this enum describes why.
|
27
35
|
attr_reader :disabled_reason
|
@@ -29,6 +37,14 @@ module Stripe
|
|
29
37
|
attr_reader :enabled
|
30
38
|
# 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.
|
31
39
|
attr_reader :liability
|
40
|
+
|
41
|
+
def self.inner_class_types
|
42
|
+
@inner_class_types = { liability: Liability }
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.field_remappings
|
46
|
+
@field_remappings = {}
|
47
|
+
end
|
32
48
|
end
|
33
49
|
|
34
50
|
class BillingCycleAnchorConfig < Stripe::StripeObject
|
@@ -42,13 +58,43 @@ module Stripe
|
|
42
58
|
attr_reader :month
|
43
59
|
# The second of the minute of the billing_cycle_anchor.
|
44
60
|
attr_reader :second
|
61
|
+
|
62
|
+
def self.inner_class_types
|
63
|
+
@inner_class_types = {}
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.field_remappings
|
67
|
+
@field_remappings = {}
|
68
|
+
end
|
45
69
|
end
|
46
70
|
|
47
71
|
class BillingMode < Stripe::StripeObject
|
72
|
+
class Flexible < Stripe::StripeObject
|
73
|
+
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
74
|
+
attr_reader :proration_discounts
|
75
|
+
|
76
|
+
def self.inner_class_types
|
77
|
+
@inner_class_types = {}
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.field_remappings
|
81
|
+
@field_remappings = {}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
# Configure behavior for flexible billing mode
|
85
|
+
attr_reader :flexible
|
48
86
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
49
87
|
attr_reader :type
|
50
88
|
# Details on when the current billing_mode was adopted.
|
51
89
|
attr_reader :updated_at
|
90
|
+
|
91
|
+
def self.inner_class_types
|
92
|
+
@inner_class_types = { flexible: Flexible }
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.field_remappings
|
96
|
+
@field_remappings = {}
|
97
|
+
end
|
52
98
|
end
|
53
99
|
|
54
100
|
class BillingThresholds < Stripe::StripeObject
|
@@ -56,6 +102,14 @@ module Stripe
|
|
56
102
|
attr_reader :amount_gte
|
57
103
|
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
|
58
104
|
attr_reader :reset_billing_cycle_anchor
|
105
|
+
|
106
|
+
def self.inner_class_types
|
107
|
+
@inner_class_types = {}
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.field_remappings
|
111
|
+
@field_remappings = {}
|
112
|
+
end
|
59
113
|
end
|
60
114
|
|
61
115
|
class CancellationDetails < Stripe::StripeObject
|
@@ -65,6 +119,14 @@ module Stripe
|
|
65
119
|
attr_reader :feedback
|
66
120
|
# Why this subscription was canceled.
|
67
121
|
attr_reader :reason
|
122
|
+
|
123
|
+
def self.inner_class_types
|
124
|
+
@inner_class_types = {}
|
125
|
+
end
|
126
|
+
|
127
|
+
def self.field_remappings
|
128
|
+
@field_remappings = {}
|
129
|
+
end
|
68
130
|
end
|
69
131
|
|
70
132
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -73,26 +135,27 @@ module Stripe
|
|
73
135
|
attr_reader :account
|
74
136
|
# Type of the account referenced.
|
75
137
|
attr_reader :type
|
138
|
+
|
139
|
+
def self.inner_class_types
|
140
|
+
@inner_class_types = {}
|
141
|
+
end
|
142
|
+
|
143
|
+
def self.field_remappings
|
144
|
+
@field_remappings = {}
|
145
|
+
end
|
76
146
|
end
|
77
147
|
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
78
148
|
attr_reader :account_tax_ids
|
79
149
|
# Attribute for field issuer
|
80
150
|
attr_reader :issuer
|
81
|
-
end
|
82
151
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
152
|
+
def self.inner_class_types
|
153
|
+
@inner_class_types = { issuer: Issuer }
|
154
|
+
end
|
155
|
+
|
156
|
+
def self.field_remappings
|
157
|
+
@field_remappings = {}
|
89
158
|
end
|
90
|
-
# The time at which the price migration encountered an error.
|
91
|
-
attr_reader :errored_at
|
92
|
-
# The involved price pairs in each failed transition.
|
93
|
-
attr_reader :failed_transitions
|
94
|
-
# The type of error encountered by the price migration.
|
95
|
-
attr_reader :type
|
96
159
|
end
|
97
160
|
|
98
161
|
class PauseCollection < Stripe::StripeObject
|
@@ -100,6 +163,14 @@ module Stripe
|
|
100
163
|
attr_reader :behavior
|
101
164
|
# The time after which the subscription will resume collecting payments.
|
102
165
|
attr_reader :resumes_at
|
166
|
+
|
167
|
+
def self.inner_class_types
|
168
|
+
@inner_class_types = {}
|
169
|
+
end
|
170
|
+
|
171
|
+
def self.field_remappings
|
172
|
+
@field_remappings = {}
|
173
|
+
end
|
103
174
|
end
|
104
175
|
|
105
176
|
class PaymentSettings < Stripe::StripeObject
|
@@ -108,16 +179,40 @@ module Stripe
|
|
108
179
|
class MandateOptions < Stripe::StripeObject
|
109
180
|
# Transaction type of the mandate.
|
110
181
|
attr_reader :transaction_type
|
182
|
+
|
183
|
+
def self.inner_class_types
|
184
|
+
@inner_class_types = {}
|
185
|
+
end
|
186
|
+
|
187
|
+
def self.field_remappings
|
188
|
+
@field_remappings = {}
|
189
|
+
end
|
111
190
|
end
|
112
191
|
# Attribute for field mandate_options
|
113
192
|
attr_reader :mandate_options
|
114
193
|
# Bank account verification method.
|
115
194
|
attr_reader :verification_method
|
195
|
+
|
196
|
+
def self.inner_class_types
|
197
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
198
|
+
end
|
199
|
+
|
200
|
+
def self.field_remappings
|
201
|
+
@field_remappings = {}
|
202
|
+
end
|
116
203
|
end
|
117
204
|
|
118
205
|
class Bancontact < Stripe::StripeObject
|
119
206
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
120
207
|
attr_reader :preferred_language
|
208
|
+
|
209
|
+
def self.inner_class_types
|
210
|
+
@inner_class_types = {}
|
211
|
+
end
|
212
|
+
|
213
|
+
def self.field_remappings
|
214
|
+
@field_remappings = {}
|
215
|
+
end
|
121
216
|
end
|
122
217
|
|
123
218
|
class Card < Stripe::StripeObject
|
@@ -128,6 +223,14 @@ module Stripe
|
|
128
223
|
attr_reader :amount_type
|
129
224
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
130
225
|
attr_reader :description
|
226
|
+
|
227
|
+
def self.inner_class_types
|
228
|
+
@inner_class_types = {}
|
229
|
+
end
|
230
|
+
|
231
|
+
def self.field_remappings
|
232
|
+
@field_remappings = {}
|
233
|
+
end
|
131
234
|
end
|
132
235
|
# Attribute for field mandate_options
|
133
236
|
attr_reader :mandate_options
|
@@ -135,6 +238,14 @@ module Stripe
|
|
135
238
|
attr_reader :network
|
136
239
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
137
240
|
attr_reader :request_three_d_secure
|
241
|
+
|
242
|
+
def self.inner_class_types
|
243
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
244
|
+
end
|
245
|
+
|
246
|
+
def self.field_remappings
|
247
|
+
@field_remappings = {}
|
248
|
+
end
|
138
249
|
end
|
139
250
|
|
140
251
|
class CustomerBalance < Stripe::StripeObject
|
@@ -142,35 +253,60 @@ module Stripe
|
|
142
253
|
class EuBankTransfer < Stripe::StripeObject
|
143
254
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
144
255
|
attr_reader :country
|
256
|
+
|
257
|
+
def self.inner_class_types
|
258
|
+
@inner_class_types = {}
|
259
|
+
end
|
260
|
+
|
261
|
+
def self.field_remappings
|
262
|
+
@field_remappings = {}
|
263
|
+
end
|
145
264
|
end
|
146
265
|
# Attribute for field eu_bank_transfer
|
147
266
|
attr_reader :eu_bank_transfer
|
148
267
|
# The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
149
268
|
attr_reader :type
|
269
|
+
|
270
|
+
def self.inner_class_types
|
271
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
272
|
+
end
|
273
|
+
|
274
|
+
def self.field_remappings
|
275
|
+
@field_remappings = {}
|
276
|
+
end
|
150
277
|
end
|
151
278
|
# Attribute for field bank_transfer
|
152
279
|
attr_reader :bank_transfer
|
153
280
|
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
154
281
|
attr_reader :funding_type
|
282
|
+
|
283
|
+
def self.inner_class_types
|
284
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
285
|
+
end
|
286
|
+
|
287
|
+
def self.field_remappings
|
288
|
+
@field_remappings = {}
|
289
|
+
end
|
155
290
|
end
|
156
291
|
|
157
|
-
class
|
158
|
-
|
159
|
-
|
292
|
+
class Konbini < Stripe::StripeObject
|
293
|
+
def self.inner_class_types
|
294
|
+
@inner_class_types = {}
|
295
|
+
end
|
160
296
|
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
297
|
+
def self.field_remappings
|
298
|
+
@field_remappings = {}
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
class SepaDebit < Stripe::StripeObject
|
303
|
+
def self.inner_class_types
|
304
|
+
@inner_class_types = {}
|
305
|
+
end
|
306
|
+
|
307
|
+
def self.field_remappings
|
308
|
+
@field_remappings = {}
|
171
309
|
end
|
172
|
-
# Attribute for field mandate_options
|
173
|
-
attr_reader :mandate_options
|
174
310
|
end
|
175
311
|
|
176
312
|
class UsBankAccount < Stripe::StripeObject
|
@@ -178,8 +314,14 @@ module Stripe
|
|
178
314
|
class Filters < Stripe::StripeObject
|
179
315
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
180
316
|
attr_reader :account_subcategories
|
181
|
-
|
182
|
-
|
317
|
+
|
318
|
+
def self.inner_class_types
|
319
|
+
@inner_class_types = {}
|
320
|
+
end
|
321
|
+
|
322
|
+
def self.field_remappings
|
323
|
+
@field_remappings = {}
|
324
|
+
end
|
183
325
|
end
|
184
326
|
# Attribute for field filters
|
185
327
|
attr_reader :filters
|
@@ -187,11 +329,27 @@ module Stripe
|
|
187
329
|
attr_reader :permissions
|
188
330
|
# Data features requested to be retrieved upon account creation.
|
189
331
|
attr_reader :prefetch
|
332
|
+
|
333
|
+
def self.inner_class_types
|
334
|
+
@inner_class_types = { filters: Filters }
|
335
|
+
end
|
336
|
+
|
337
|
+
def self.field_remappings
|
338
|
+
@field_remappings = {}
|
339
|
+
end
|
190
340
|
end
|
191
341
|
# Attribute for field financial_connections
|
192
342
|
attr_reader :financial_connections
|
193
343
|
# Bank account verification method.
|
194
344
|
attr_reader :verification_method
|
345
|
+
|
346
|
+
def self.inner_class_types
|
347
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
348
|
+
end
|
349
|
+
|
350
|
+
def self.field_remappings
|
351
|
+
@field_remappings = {}
|
352
|
+
end
|
195
353
|
end
|
196
354
|
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription.
|
197
355
|
attr_reader :acss_debit
|
@@ -201,16 +359,28 @@ module Stripe
|
|
201
359
|
attr_reader :card
|
202
360
|
# This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
|
203
361
|
attr_reader :customer_balance
|
204
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
205
|
-
attr_reader :id_bank_transfer
|
206
362
|
# This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
207
363
|
attr_reader :konbini
|
208
364
|
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription.
|
209
365
|
attr_reader :sepa_debit
|
210
|
-
# This sub-hash contains details about the UPI payment method options to pass to invoices created by the subscription.
|
211
|
-
attr_reader :upi
|
212
366
|
# This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
|
213
367
|
attr_reader :us_bank_account
|
368
|
+
|
369
|
+
def self.inner_class_types
|
370
|
+
@inner_class_types = {
|
371
|
+
acss_debit: AcssDebit,
|
372
|
+
bancontact: Bancontact,
|
373
|
+
card: Card,
|
374
|
+
customer_balance: CustomerBalance,
|
375
|
+
konbini: Konbini,
|
376
|
+
sepa_debit: SepaDebit,
|
377
|
+
us_bank_account: UsBankAccount,
|
378
|
+
}
|
379
|
+
end
|
380
|
+
|
381
|
+
def self.field_remappings
|
382
|
+
@field_remappings = {}
|
383
|
+
end
|
214
384
|
end
|
215
385
|
# Payment-method-specific configuration to provide to invoices created by the subscription.
|
216
386
|
attr_reader :payment_method_options
|
@@ -218,6 +388,14 @@ module Stripe
|
|
218
388
|
attr_reader :payment_method_types
|
219
389
|
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`.
|
220
390
|
attr_reader :save_default_payment_method
|
391
|
+
|
392
|
+
def self.inner_class_types
|
393
|
+
@inner_class_types = { payment_method_options: PaymentMethodOptions }
|
394
|
+
end
|
395
|
+
|
396
|
+
def self.field_remappings
|
397
|
+
@field_remappings = {}
|
398
|
+
end
|
221
399
|
end
|
222
400
|
|
223
401
|
class PendingInvoiceItemInterval < Stripe::StripeObject
|
@@ -225,6 +403,14 @@ module Stripe
|
|
225
403
|
attr_reader :interval
|
226
404
|
# The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
|
227
405
|
attr_reader :interval_count
|
406
|
+
|
407
|
+
def self.inner_class_types
|
408
|
+
@inner_class_types = {}
|
409
|
+
end
|
410
|
+
|
411
|
+
def self.field_remappings
|
412
|
+
@field_remappings = {}
|
413
|
+
end
|
228
414
|
end
|
229
415
|
|
230
416
|
class PendingUpdate < Stripe::StripeObject
|
@@ -232,25 +418,20 @@ module Stripe
|
|
232
418
|
attr_reader :billing_cycle_anchor
|
233
419
|
# The point after which the changes reflected by this update will be discarded and no longer applied.
|
234
420
|
attr_reader :expires_at
|
235
|
-
# The number of iterations of prebilling to apply.
|
236
|
-
attr_reader :prebilling_iterations
|
237
421
|
# List of subscription items, each with an attached plan, that will be set if the update is applied.
|
238
422
|
attr_reader :subscription_items
|
239
423
|
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
|
240
424
|
attr_reader :trial_end
|
241
425
|
# Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
242
426
|
attr_reader :trial_from_plan
|
243
|
-
end
|
244
427
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
253
|
-
attr_reader :update_behavior
|
428
|
+
def self.inner_class_types
|
429
|
+
@inner_class_types = {}
|
430
|
+
end
|
431
|
+
|
432
|
+
def self.field_remappings
|
433
|
+
@field_remappings = {}
|
434
|
+
end
|
254
435
|
end
|
255
436
|
|
256
437
|
class TransferData < Stripe::StripeObject
|
@@ -258,1899 +439,38 @@ module Stripe
|
|
258
439
|
attr_reader :amount_percent
|
259
440
|
# The account where funds from the payment will be transferred to upon payment success.
|
260
441
|
attr_reader :destination
|
261
|
-
end
|
262
|
-
|
263
|
-
class TrialSettings < Stripe::StripeObject
|
264
|
-
class EndBehavior < Stripe::StripeObject
|
265
|
-
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
266
|
-
attr_reader :missing_payment_method
|
267
|
-
end
|
268
|
-
# Defines how a subscription behaves when a free trial ends.
|
269
|
-
attr_reader :end_behavior
|
270
|
-
end
|
271
|
-
|
272
|
-
class CancelParams < Stripe::RequestParams
|
273
|
-
class CancellationDetails < Stripe::RequestParams
|
274
|
-
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
|
275
|
-
attr_accessor :comment
|
276
|
-
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
|
277
|
-
attr_accessor :feedback
|
278
|
-
|
279
|
-
def initialize(comment: nil, feedback: nil)
|
280
|
-
@comment = comment
|
281
|
-
@feedback = feedback
|
282
|
-
end
|
283
|
-
end
|
284
|
-
# Details about why this subscription was cancelled
|
285
|
-
attr_accessor :cancellation_details
|
286
|
-
# Specifies which fields in the response should be expanded.
|
287
|
-
attr_accessor :expand
|
288
|
-
# Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `false`.
|
289
|
-
attr_accessor :invoice_now
|
290
|
-
# Will generate a proration invoice item that credits remaining unused time until the subscription period end. Defaults to `false`.
|
291
|
-
attr_accessor :prorate
|
292
|
-
|
293
|
-
def initialize(cancellation_details: nil, expand: nil, invoice_now: nil, prorate: nil)
|
294
|
-
@cancellation_details = cancellation_details
|
295
|
-
@expand = expand
|
296
|
-
@invoice_now = invoice_now
|
297
|
-
@prorate = prorate
|
298
|
-
end
|
299
|
-
end
|
300
|
-
|
301
|
-
class UpdateParams < Stripe::RequestParams
|
302
|
-
class AddInvoiceItem < Stripe::RequestParams
|
303
|
-
class Discount < Stripe::RequestParams
|
304
|
-
class DiscountEnd < Stripe::RequestParams
|
305
|
-
class Duration < Stripe::RequestParams
|
306
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
307
|
-
attr_accessor :interval
|
308
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
309
|
-
attr_accessor :interval_count
|
310
|
-
|
311
|
-
def initialize(interval: nil, interval_count: nil)
|
312
|
-
@interval = interval
|
313
|
-
@interval_count = interval_count
|
314
|
-
end
|
315
|
-
end
|
316
|
-
# Time span for the redeemed discount.
|
317
|
-
attr_accessor :duration
|
318
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
319
|
-
attr_accessor :timestamp
|
320
|
-
# The type of calculation made to determine when the discount ends.
|
321
|
-
attr_accessor :type
|
322
|
-
|
323
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
324
|
-
@duration = duration
|
325
|
-
@timestamp = timestamp
|
326
|
-
@type = type
|
327
|
-
end
|
328
|
-
end
|
329
|
-
# ID of the coupon to create a new discount for.
|
330
|
-
attr_accessor :coupon
|
331
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
332
|
-
attr_accessor :discount
|
333
|
-
# Details to determine how long the discount should be applied for.
|
334
|
-
attr_accessor :discount_end
|
335
|
-
# ID of the promotion code to create a new discount for.
|
336
|
-
attr_accessor :promotion_code
|
337
|
-
|
338
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
339
|
-
@coupon = coupon
|
340
|
-
@discount = discount
|
341
|
-
@discount_end = discount_end
|
342
|
-
@promotion_code = promotion_code
|
343
|
-
end
|
344
|
-
end
|
345
|
-
|
346
|
-
class Period < Stripe::RequestParams
|
347
|
-
class End < Stripe::RequestParams
|
348
|
-
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
349
|
-
attr_accessor :timestamp
|
350
|
-
# Select how to calculate the end of the invoice item period.
|
351
|
-
attr_accessor :type
|
352
|
-
|
353
|
-
def initialize(timestamp: nil, type: nil)
|
354
|
-
@timestamp = timestamp
|
355
|
-
@type = type
|
356
|
-
end
|
357
|
-
end
|
358
|
-
|
359
|
-
class Start < Stripe::RequestParams
|
360
|
-
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
361
|
-
attr_accessor :timestamp
|
362
|
-
# Select how to calculate the start of the invoice item period.
|
363
|
-
attr_accessor :type
|
364
|
-
|
365
|
-
def initialize(timestamp: nil, type: nil)
|
366
|
-
@timestamp = timestamp
|
367
|
-
@type = type
|
368
|
-
end
|
369
|
-
end
|
370
|
-
# End of the invoice item period.
|
371
|
-
attr_accessor :end
|
372
|
-
# Start of the invoice item period.
|
373
|
-
attr_accessor :start
|
374
|
-
|
375
|
-
def initialize(end_: nil, start: nil)
|
376
|
-
@end = end_
|
377
|
-
@start = start
|
378
|
-
end
|
379
|
-
end
|
380
|
-
|
381
|
-
class PriceData < Stripe::RequestParams
|
382
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
383
|
-
attr_accessor :currency
|
384
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
385
|
-
attr_accessor :product
|
386
|
-
# Only required if a [default tax behavior](https://stripe.com/docs/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.
|
387
|
-
attr_accessor :tax_behavior
|
388
|
-
# 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.
|
389
|
-
attr_accessor :unit_amount
|
390
|
-
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
391
|
-
attr_accessor :unit_amount_decimal
|
392
|
-
|
393
|
-
def initialize(
|
394
|
-
currency: nil,
|
395
|
-
product: nil,
|
396
|
-
tax_behavior: nil,
|
397
|
-
unit_amount: nil,
|
398
|
-
unit_amount_decimal: nil
|
399
|
-
)
|
400
|
-
@currency = currency
|
401
|
-
@product = product
|
402
|
-
@tax_behavior = tax_behavior
|
403
|
-
@unit_amount = unit_amount
|
404
|
-
@unit_amount_decimal = unit_amount_decimal
|
405
|
-
end
|
406
|
-
end
|
407
|
-
# The coupons to redeem into discounts for the item.
|
408
|
-
attr_accessor :discounts
|
409
|
-
# 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`.
|
410
|
-
attr_accessor :metadata
|
411
|
-
# The period associated with this invoice item. Defaults to the current period of the subscription.
|
412
|
-
attr_accessor :period
|
413
|
-
# The ID of the price object. One of `price` or `price_data` is required.
|
414
|
-
attr_accessor :price
|
415
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
416
|
-
attr_accessor :price_data
|
417
|
-
# Quantity for this item. Defaults to 1.
|
418
|
-
attr_accessor :quantity
|
419
|
-
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
420
|
-
attr_accessor :tax_rates
|
421
|
-
|
422
|
-
def initialize(
|
423
|
-
discounts: nil,
|
424
|
-
metadata: nil,
|
425
|
-
period: nil,
|
426
|
-
price: nil,
|
427
|
-
price_data: nil,
|
428
|
-
quantity: nil,
|
429
|
-
tax_rates: nil
|
430
|
-
)
|
431
|
-
@discounts = discounts
|
432
|
-
@metadata = metadata
|
433
|
-
@period = period
|
434
|
-
@price = price
|
435
|
-
@price_data = price_data
|
436
|
-
@quantity = quantity
|
437
|
-
@tax_rates = tax_rates
|
438
|
-
end
|
439
|
-
end
|
440
|
-
|
441
|
-
class AutomaticTax < Stripe::RequestParams
|
442
|
-
class Liability < Stripe::RequestParams
|
443
|
-
# The connected account being referenced when `type` is `account`.
|
444
|
-
attr_accessor :account
|
445
|
-
# Type of the account referenced in the request.
|
446
|
-
attr_accessor :type
|
447
|
-
|
448
|
-
def initialize(account: nil, type: nil)
|
449
|
-
@account = account
|
450
|
-
@type = type
|
451
|
-
end
|
452
|
-
end
|
453
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
454
|
-
attr_accessor :enabled
|
455
|
-
# 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.
|
456
|
-
attr_accessor :liability
|
457
|
-
|
458
|
-
def initialize(enabled: nil, liability: nil)
|
459
|
-
@enabled = enabled
|
460
|
-
@liability = liability
|
461
|
-
end
|
462
|
-
end
|
463
|
-
|
464
|
-
class BillingThresholds < Stripe::RequestParams
|
465
|
-
# Monetary threshold that triggers the subscription to advance to a new billing period
|
466
|
-
attr_accessor :amount_gte
|
467
|
-
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
468
|
-
attr_accessor :reset_billing_cycle_anchor
|
469
|
-
|
470
|
-
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
471
|
-
@amount_gte = amount_gte
|
472
|
-
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
473
|
-
end
|
474
|
-
end
|
475
|
-
|
476
|
-
class CancellationDetails < Stripe::RequestParams
|
477
|
-
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
|
478
|
-
attr_accessor :comment
|
479
|
-
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
|
480
|
-
attr_accessor :feedback
|
481
|
-
|
482
|
-
def initialize(comment: nil, feedback: nil)
|
483
|
-
@comment = comment
|
484
|
-
@feedback = feedback
|
485
|
-
end
|
486
|
-
end
|
487
|
-
|
488
|
-
class Discount < Stripe::RequestParams
|
489
|
-
class DiscountEnd < Stripe::RequestParams
|
490
|
-
class Duration < Stripe::RequestParams
|
491
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
492
|
-
attr_accessor :interval
|
493
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
494
|
-
attr_accessor :interval_count
|
495
|
-
|
496
|
-
def initialize(interval: nil, interval_count: nil)
|
497
|
-
@interval = interval
|
498
|
-
@interval_count = interval_count
|
499
|
-
end
|
500
|
-
end
|
501
|
-
# Time span for the redeemed discount.
|
502
|
-
attr_accessor :duration
|
503
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
504
|
-
attr_accessor :timestamp
|
505
|
-
# The type of calculation made to determine when the discount ends.
|
506
|
-
attr_accessor :type
|
507
|
-
|
508
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
509
|
-
@duration = duration
|
510
|
-
@timestamp = timestamp
|
511
|
-
@type = type
|
512
|
-
end
|
513
|
-
end
|
514
|
-
# ID of the coupon to create a new discount for.
|
515
|
-
attr_accessor :coupon
|
516
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
517
|
-
attr_accessor :discount
|
518
|
-
# Details to determine how long the discount should be applied for.
|
519
|
-
attr_accessor :discount_end
|
520
|
-
# ID of the promotion code to create a new discount for.
|
521
|
-
attr_accessor :promotion_code
|
522
|
-
|
523
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
524
|
-
@coupon = coupon
|
525
|
-
@discount = discount
|
526
|
-
@discount_end = discount_end
|
527
|
-
@promotion_code = promotion_code
|
528
|
-
end
|
529
|
-
end
|
530
|
-
|
531
|
-
class InvoiceSettings < Stripe::RequestParams
|
532
|
-
class Issuer < Stripe::RequestParams
|
533
|
-
# The connected account being referenced when `type` is `account`.
|
534
|
-
attr_accessor :account
|
535
|
-
# Type of the account referenced in the request.
|
536
|
-
attr_accessor :type
|
537
|
-
|
538
|
-
def initialize(account: nil, type: nil)
|
539
|
-
@account = account
|
540
|
-
@type = type
|
541
|
-
end
|
542
|
-
end
|
543
|
-
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
544
|
-
attr_accessor :account_tax_ids
|
545
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
546
|
-
attr_accessor :issuer
|
547
|
-
|
548
|
-
def initialize(account_tax_ids: nil, issuer: nil)
|
549
|
-
@account_tax_ids = account_tax_ids
|
550
|
-
@issuer = issuer
|
551
|
-
end
|
552
|
-
end
|
553
|
-
|
554
|
-
class Item < Stripe::RequestParams
|
555
|
-
class BillingThresholds < Stripe::RequestParams
|
556
|
-
# 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/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
557
|
-
attr_accessor :usage_gte
|
558
|
-
|
559
|
-
def initialize(usage_gte: nil)
|
560
|
-
@usage_gte = usage_gte
|
561
|
-
end
|
562
|
-
end
|
563
|
-
|
564
|
-
class Discount < Stripe::RequestParams
|
565
|
-
class DiscountEnd < Stripe::RequestParams
|
566
|
-
class Duration < Stripe::RequestParams
|
567
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
568
|
-
attr_accessor :interval
|
569
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
570
|
-
attr_accessor :interval_count
|
571
|
-
|
572
|
-
def initialize(interval: nil, interval_count: nil)
|
573
|
-
@interval = interval
|
574
|
-
@interval_count = interval_count
|
575
|
-
end
|
576
|
-
end
|
577
|
-
# Time span for the redeemed discount.
|
578
|
-
attr_accessor :duration
|
579
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
580
|
-
attr_accessor :timestamp
|
581
|
-
# The type of calculation made to determine when the discount ends.
|
582
|
-
attr_accessor :type
|
583
|
-
|
584
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
585
|
-
@duration = duration
|
586
|
-
@timestamp = timestamp
|
587
|
-
@type = type
|
588
|
-
end
|
589
|
-
end
|
590
|
-
# ID of the coupon to create a new discount for.
|
591
|
-
attr_accessor :coupon
|
592
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
593
|
-
attr_accessor :discount
|
594
|
-
# Details to determine how long the discount should be applied for.
|
595
|
-
attr_accessor :discount_end
|
596
|
-
# ID of the promotion code to create a new discount for.
|
597
|
-
attr_accessor :promotion_code
|
598
|
-
|
599
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
600
|
-
@coupon = coupon
|
601
|
-
@discount = discount
|
602
|
-
@discount_end = discount_end
|
603
|
-
@promotion_code = promotion_code
|
604
|
-
end
|
605
|
-
end
|
606
|
-
|
607
|
-
class PriceData < Stripe::RequestParams
|
608
|
-
class Recurring < Stripe::RequestParams
|
609
|
-
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
610
|
-
attr_accessor :interval
|
611
|
-
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
612
|
-
attr_accessor :interval_count
|
613
|
-
|
614
|
-
def initialize(interval: nil, interval_count: nil)
|
615
|
-
@interval = interval
|
616
|
-
@interval_count = interval_count
|
617
|
-
end
|
618
|
-
end
|
619
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
620
|
-
attr_accessor :currency
|
621
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
622
|
-
attr_accessor :product
|
623
|
-
# The recurring components of a price such as `interval` and `interval_count`.
|
624
|
-
attr_accessor :recurring
|
625
|
-
# Only required if a [default tax behavior](https://stripe.com/docs/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.
|
626
|
-
attr_accessor :tax_behavior
|
627
|
-
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
628
|
-
attr_accessor :unit_amount
|
629
|
-
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
630
|
-
attr_accessor :unit_amount_decimal
|
631
|
-
|
632
|
-
def initialize(
|
633
|
-
currency: nil,
|
634
|
-
product: nil,
|
635
|
-
recurring: nil,
|
636
|
-
tax_behavior: nil,
|
637
|
-
unit_amount: nil,
|
638
|
-
unit_amount_decimal: nil
|
639
|
-
)
|
640
|
-
@currency = currency
|
641
|
-
@product = product
|
642
|
-
@recurring = recurring
|
643
|
-
@tax_behavior = tax_behavior
|
644
|
-
@unit_amount = unit_amount
|
645
|
-
@unit_amount_decimal = unit_amount_decimal
|
646
|
-
end
|
647
|
-
end
|
648
|
-
# 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.
|
649
|
-
attr_accessor :billing_thresholds
|
650
|
-
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
651
|
-
attr_accessor :clear_usage
|
652
|
-
# A flag that, if set to `true`, will delete the specified item.
|
653
|
-
attr_accessor :deleted
|
654
|
-
# The coupons to redeem into discounts for the subscription item.
|
655
|
-
attr_accessor :discounts
|
656
|
-
# Subscription item to update.
|
657
|
-
attr_accessor :id
|
658
|
-
# 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`.
|
659
|
-
attr_accessor :metadata
|
660
|
-
# Plan ID for this item, as a string.
|
661
|
-
attr_accessor :plan
|
662
|
-
# 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.
|
663
|
-
attr_accessor :price
|
664
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
665
|
-
attr_accessor :price_data
|
666
|
-
# Quantity for this item.
|
667
|
-
attr_accessor :quantity
|
668
|
-
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
669
|
-
attr_accessor :tax_rates
|
670
|
-
|
671
|
-
def initialize(
|
672
|
-
billing_thresholds: nil,
|
673
|
-
clear_usage: nil,
|
674
|
-
deleted: nil,
|
675
|
-
discounts: nil,
|
676
|
-
id: nil,
|
677
|
-
metadata: nil,
|
678
|
-
plan: nil,
|
679
|
-
price: nil,
|
680
|
-
price_data: nil,
|
681
|
-
quantity: nil,
|
682
|
-
tax_rates: nil
|
683
|
-
)
|
684
|
-
@billing_thresholds = billing_thresholds
|
685
|
-
@clear_usage = clear_usage
|
686
|
-
@deleted = deleted
|
687
|
-
@discounts = discounts
|
688
|
-
@id = id
|
689
|
-
@metadata = metadata
|
690
|
-
@plan = plan
|
691
|
-
@price = price
|
692
|
-
@price_data = price_data
|
693
|
-
@quantity = quantity
|
694
|
-
@tax_rates = tax_rates
|
695
|
-
end
|
696
|
-
end
|
697
|
-
|
698
|
-
class PauseCollection < Stripe::RequestParams
|
699
|
-
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
700
|
-
attr_accessor :behavior
|
701
|
-
# The time after which the subscription will resume collecting payments.
|
702
|
-
attr_accessor :resumes_at
|
703
|
-
|
704
|
-
def initialize(behavior: nil, resumes_at: nil)
|
705
|
-
@behavior = behavior
|
706
|
-
@resumes_at = resumes_at
|
707
|
-
end
|
708
|
-
end
|
709
|
-
|
710
|
-
class PaymentSettings < Stripe::RequestParams
|
711
|
-
class PaymentMethodOptions < Stripe::RequestParams
|
712
|
-
class AcssDebit < Stripe::RequestParams
|
713
|
-
class MandateOptions < Stripe::RequestParams
|
714
|
-
# Transaction type of the mandate.
|
715
|
-
attr_accessor :transaction_type
|
716
|
-
|
717
|
-
def initialize(transaction_type: nil)
|
718
|
-
@transaction_type = transaction_type
|
719
|
-
end
|
720
|
-
end
|
721
|
-
# Additional fields for Mandate creation
|
722
|
-
attr_accessor :mandate_options
|
723
|
-
# Verification method for the intent
|
724
|
-
attr_accessor :verification_method
|
725
|
-
|
726
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
727
|
-
@mandate_options = mandate_options
|
728
|
-
@verification_method = verification_method
|
729
|
-
end
|
730
|
-
end
|
731
|
-
|
732
|
-
class Bancontact < Stripe::RequestParams
|
733
|
-
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
734
|
-
attr_accessor :preferred_language
|
735
|
-
|
736
|
-
def initialize(preferred_language: nil)
|
737
|
-
@preferred_language = preferred_language
|
738
|
-
end
|
739
|
-
end
|
740
|
-
|
741
|
-
class Card < Stripe::RequestParams
|
742
|
-
class MandateOptions < Stripe::RequestParams
|
743
|
-
# Amount to be charged for future payments.
|
744
|
-
attr_accessor :amount
|
745
|
-
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
746
|
-
attr_accessor :amount_type
|
747
|
-
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
748
|
-
attr_accessor :description
|
749
|
-
|
750
|
-
def initialize(amount: nil, amount_type: nil, description: nil)
|
751
|
-
@amount = amount
|
752
|
-
@amount_type = amount_type
|
753
|
-
@description = description
|
754
|
-
end
|
755
|
-
end
|
756
|
-
# Configuration options for setting up an eMandate for cards issued in India.
|
757
|
-
attr_accessor :mandate_options
|
758
|
-
# Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.
|
759
|
-
attr_accessor :network
|
760
|
-
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
761
|
-
attr_accessor :request_three_d_secure
|
762
|
-
|
763
|
-
def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil)
|
764
|
-
@mandate_options = mandate_options
|
765
|
-
@network = network
|
766
|
-
@request_three_d_secure = request_three_d_secure
|
767
|
-
end
|
768
|
-
end
|
769
|
-
|
770
|
-
class CustomerBalance < Stripe::RequestParams
|
771
|
-
class BankTransfer < Stripe::RequestParams
|
772
|
-
class EuBankTransfer < Stripe::RequestParams
|
773
|
-
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
774
|
-
attr_accessor :country
|
775
|
-
|
776
|
-
def initialize(country: nil)
|
777
|
-
@country = country
|
778
|
-
end
|
779
|
-
end
|
780
|
-
# Configuration for eu_bank_transfer funding type.
|
781
|
-
attr_accessor :eu_bank_transfer
|
782
|
-
# The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
783
|
-
attr_accessor :type
|
784
|
-
|
785
|
-
def initialize(eu_bank_transfer: nil, type: nil)
|
786
|
-
@eu_bank_transfer = eu_bank_transfer
|
787
|
-
@type = type
|
788
|
-
end
|
789
|
-
end
|
790
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
791
|
-
attr_accessor :bank_transfer
|
792
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
793
|
-
attr_accessor :funding_type
|
794
|
-
|
795
|
-
def initialize(bank_transfer: nil, funding_type: nil)
|
796
|
-
@bank_transfer = bank_transfer
|
797
|
-
@funding_type = funding_type
|
798
|
-
end
|
799
|
-
end
|
800
|
-
|
801
|
-
class IdBankTransfer < Stripe::RequestParams; end
|
802
|
-
class Konbini < Stripe::RequestParams; end
|
803
|
-
class SepaDebit < Stripe::RequestParams; end
|
804
|
-
|
805
|
-
class Upi < Stripe::RequestParams
|
806
|
-
class MandateOptions < Stripe::RequestParams
|
807
|
-
# Amount to be charged for future payments.
|
808
|
-
attr_accessor :amount
|
809
|
-
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
810
|
-
attr_accessor :amount_type
|
811
|
-
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
812
|
-
attr_accessor :description
|
813
|
-
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
814
|
-
attr_accessor :end_date
|
815
|
-
|
816
|
-
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
817
|
-
@amount = amount
|
818
|
-
@amount_type = amount_type
|
819
|
-
@description = description
|
820
|
-
@end_date = end_date
|
821
|
-
end
|
822
|
-
end
|
823
|
-
# Configuration options for setting up an eMandate
|
824
|
-
attr_accessor :mandate_options
|
825
|
-
|
826
|
-
def initialize(mandate_options: nil)
|
827
|
-
@mandate_options = mandate_options
|
828
|
-
end
|
829
|
-
end
|
830
|
-
|
831
|
-
class UsBankAccount < Stripe::RequestParams
|
832
|
-
class FinancialConnections < Stripe::RequestParams
|
833
|
-
class Filters < Stripe::RequestParams
|
834
|
-
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
835
|
-
attr_accessor :account_subcategories
|
836
|
-
# ID of the institution to use to filter for selectable accounts.
|
837
|
-
attr_accessor :institution
|
838
|
-
|
839
|
-
def initialize(account_subcategories: nil, institution: nil)
|
840
|
-
@account_subcategories = account_subcategories
|
841
|
-
@institution = institution
|
842
|
-
end
|
843
|
-
end
|
844
|
-
# Provide filters for the linked accounts that the customer can select for the payment method.
|
845
|
-
attr_accessor :filters
|
846
|
-
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
847
|
-
attr_accessor :permissions
|
848
|
-
# List of data features that you would like to retrieve upon account creation.
|
849
|
-
attr_accessor :prefetch
|
850
|
-
|
851
|
-
def initialize(filters: nil, permissions: nil, prefetch: nil)
|
852
|
-
@filters = filters
|
853
|
-
@permissions = permissions
|
854
|
-
@prefetch = prefetch
|
855
|
-
end
|
856
|
-
end
|
857
|
-
# Additional fields for Financial Connections Session creation
|
858
|
-
attr_accessor :financial_connections
|
859
|
-
# Verification method for the intent
|
860
|
-
attr_accessor :verification_method
|
861
|
-
|
862
|
-
def initialize(financial_connections: nil, verification_method: nil)
|
863
|
-
@financial_connections = financial_connections
|
864
|
-
@verification_method = verification_method
|
865
|
-
end
|
866
|
-
end
|
867
|
-
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
|
868
|
-
attr_accessor :acss_debit
|
869
|
-
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
|
870
|
-
attr_accessor :bancontact
|
871
|
-
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
|
872
|
-
attr_accessor :card
|
873
|
-
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
874
|
-
attr_accessor :customer_balance
|
875
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
876
|
-
attr_accessor :id_bank_transfer
|
877
|
-
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
878
|
-
attr_accessor :konbini
|
879
|
-
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
880
|
-
attr_accessor :sepa_debit
|
881
|
-
# This sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
882
|
-
attr_accessor :upi
|
883
|
-
# This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
884
|
-
attr_accessor :us_bank_account
|
885
|
-
|
886
|
-
def initialize(
|
887
|
-
acss_debit: nil,
|
888
|
-
bancontact: nil,
|
889
|
-
card: nil,
|
890
|
-
customer_balance: nil,
|
891
|
-
id_bank_transfer: nil,
|
892
|
-
konbini: nil,
|
893
|
-
sepa_debit: nil,
|
894
|
-
upi: nil,
|
895
|
-
us_bank_account: nil
|
896
|
-
)
|
897
|
-
@acss_debit = acss_debit
|
898
|
-
@bancontact = bancontact
|
899
|
-
@card = card
|
900
|
-
@customer_balance = customer_balance
|
901
|
-
@id_bank_transfer = id_bank_transfer
|
902
|
-
@konbini = konbini
|
903
|
-
@sepa_debit = sepa_debit
|
904
|
-
@upi = upi
|
905
|
-
@us_bank_account = us_bank_account
|
906
|
-
end
|
907
|
-
end
|
908
|
-
# Payment-method-specific configuration to provide to invoices created by the subscription.
|
909
|
-
attr_accessor :payment_method_options
|
910
|
-
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
|
911
|
-
attr_accessor :payment_method_types
|
912
|
-
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
|
913
|
-
attr_accessor :save_default_payment_method
|
914
|
-
|
915
|
-
def initialize(
|
916
|
-
payment_method_options: nil,
|
917
|
-
payment_method_types: nil,
|
918
|
-
save_default_payment_method: nil
|
919
|
-
)
|
920
|
-
@payment_method_options = payment_method_options
|
921
|
-
@payment_method_types = payment_method_types
|
922
|
-
@save_default_payment_method = save_default_payment_method
|
923
|
-
end
|
924
|
-
end
|
925
|
-
|
926
|
-
class PendingInvoiceItemInterval < Stripe::RequestParams
|
927
|
-
# Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
|
928
|
-
attr_accessor :interval
|
929
|
-
# The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
|
930
|
-
attr_accessor :interval_count
|
931
|
-
|
932
|
-
def initialize(interval: nil, interval_count: nil)
|
933
|
-
@interval = interval
|
934
|
-
@interval_count = interval_count
|
935
|
-
end
|
936
|
-
end
|
937
|
-
|
938
|
-
class Prebilling < Stripe::RequestParams
|
939
|
-
# This is used to determine the number of billing cycles to prebill.
|
940
|
-
attr_accessor :iterations
|
941
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
942
|
-
attr_accessor :update_behavior
|
943
442
|
|
944
|
-
|
945
|
-
|
946
|
-
@update_behavior = update_behavior
|
947
|
-
end
|
443
|
+
def self.inner_class_types
|
444
|
+
@inner_class_types = {}
|
948
445
|
end
|
949
446
|
|
950
|
-
|
951
|
-
|
952
|
-
attr_accessor :amount_percent
|
953
|
-
# ID of an existing, connected Stripe account.
|
954
|
-
attr_accessor :destination
|
955
|
-
|
956
|
-
def initialize(amount_percent: nil, destination: nil)
|
957
|
-
@amount_percent = amount_percent
|
958
|
-
@destination = destination
|
959
|
-
end
|
960
|
-
end
|
961
|
-
|
962
|
-
class TrialSettings < Stripe::RequestParams
|
963
|
-
class EndBehavior < Stripe::RequestParams
|
964
|
-
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
965
|
-
attr_accessor :missing_payment_method
|
966
|
-
|
967
|
-
def initialize(missing_payment_method: nil)
|
968
|
-
@missing_payment_method = missing_payment_method
|
969
|
-
end
|
970
|
-
end
|
971
|
-
# Defines how the subscription should behave when the user's free trial ends.
|
972
|
-
attr_accessor :end_behavior
|
973
|
-
|
974
|
-
def initialize(end_behavior: nil)
|
975
|
-
@end_behavior = end_behavior
|
976
|
-
end
|
977
|
-
end
|
978
|
-
# A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
|
979
|
-
attr_accessor :add_invoice_items
|
980
|
-
# 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).
|
981
|
-
attr_accessor :application_fee_percent
|
982
|
-
# Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
|
983
|
-
attr_accessor :automatic_tax
|
984
|
-
# Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
985
|
-
attr_accessor :billing_cycle_anchor
|
986
|
-
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
987
|
-
attr_accessor :billing_thresholds
|
988
|
-
# 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.
|
989
|
-
attr_accessor :cancel_at
|
990
|
-
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
991
|
-
attr_accessor :cancel_at_period_end
|
992
|
-
# Details about why this subscription was cancelled
|
993
|
-
attr_accessor :cancellation_details
|
994
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
|
995
|
-
attr_accessor :collection_method
|
996
|
-
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
|
997
|
-
attr_accessor :days_until_due
|
998
|
-
# ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
|
999
|
-
attr_accessor :default_payment_method
|
1000
|
-
# ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
|
1001
|
-
attr_accessor :default_source
|
1002
|
-
# The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. Pass an empty string to remove previously-defined tax rates.
|
1003
|
-
attr_accessor :default_tax_rates
|
1004
|
-
# The subscription's 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.
|
1005
|
-
attr_accessor :description
|
1006
|
-
# The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.
|
1007
|
-
attr_accessor :discounts
|
1008
|
-
# Specifies which fields in the response should be expanded.
|
1009
|
-
attr_accessor :expand
|
1010
|
-
# All invoices will be billed using the specified settings.
|
1011
|
-
attr_accessor :invoice_settings
|
1012
|
-
# A list of up to 20 subscription items, each with an attached price.
|
1013
|
-
attr_accessor :items
|
1014
|
-
# 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`.
|
1015
|
-
attr_accessor :metadata
|
1016
|
-
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
|
1017
|
-
attr_accessor :off_session
|
1018
|
-
# The account on behalf of which to charge, for each of the subscription's invoices.
|
1019
|
-
attr_accessor :on_behalf_of
|
1020
|
-
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
1021
|
-
attr_accessor :pause_collection
|
1022
|
-
# Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.
|
1023
|
-
#
|
1024
|
-
# Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method.
|
1025
|
-
#
|
1026
|
-
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
|
1027
|
-
#
|
1028
|
-
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
|
1029
|
-
attr_accessor :payment_behavior
|
1030
|
-
# Payment settings to pass to invoices created by the subscription.
|
1031
|
-
attr_accessor :payment_settings
|
1032
|
-
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
|
1033
|
-
attr_accessor :pending_invoice_item_interval
|
1034
|
-
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
1035
|
-
attr_accessor :prebilling
|
1036
|
-
# 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`.
|
1037
|
-
attr_accessor :proration_behavior
|
1038
|
-
# If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
|
1039
|
-
attr_accessor :proration_date
|
1040
|
-
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.
|
1041
|
-
attr_accessor :transfer_data
|
1042
|
-
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, `trial_end` will override the default trial period of the plan the customer is being subscribed to. The `billing_cycle_anchor` will be updated to the `trial_end` value. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.
|
1043
|
-
attr_accessor :trial_end
|
1044
|
-
# Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
1045
|
-
attr_accessor :trial_from_plan
|
1046
|
-
# Settings related to subscription trials.
|
1047
|
-
attr_accessor :trial_settings
|
1048
|
-
|
1049
|
-
def initialize(
|
1050
|
-
add_invoice_items: nil,
|
1051
|
-
application_fee_percent: nil,
|
1052
|
-
automatic_tax: nil,
|
1053
|
-
billing_cycle_anchor: nil,
|
1054
|
-
billing_thresholds: nil,
|
1055
|
-
cancel_at: nil,
|
1056
|
-
cancel_at_period_end: nil,
|
1057
|
-
cancellation_details: nil,
|
1058
|
-
collection_method: nil,
|
1059
|
-
days_until_due: nil,
|
1060
|
-
default_payment_method: nil,
|
1061
|
-
default_source: nil,
|
1062
|
-
default_tax_rates: nil,
|
1063
|
-
description: nil,
|
1064
|
-
discounts: nil,
|
1065
|
-
expand: nil,
|
1066
|
-
invoice_settings: nil,
|
1067
|
-
items: nil,
|
1068
|
-
metadata: nil,
|
1069
|
-
off_session: nil,
|
1070
|
-
on_behalf_of: nil,
|
1071
|
-
pause_collection: nil,
|
1072
|
-
payment_behavior: nil,
|
1073
|
-
payment_settings: nil,
|
1074
|
-
pending_invoice_item_interval: nil,
|
1075
|
-
prebilling: nil,
|
1076
|
-
proration_behavior: nil,
|
1077
|
-
proration_date: nil,
|
1078
|
-
transfer_data: nil,
|
1079
|
-
trial_end: nil,
|
1080
|
-
trial_from_plan: nil,
|
1081
|
-
trial_settings: nil
|
1082
|
-
)
|
1083
|
-
@add_invoice_items = add_invoice_items
|
1084
|
-
@application_fee_percent = application_fee_percent
|
1085
|
-
@automatic_tax = automatic_tax
|
1086
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
1087
|
-
@billing_thresholds = billing_thresholds
|
1088
|
-
@cancel_at = cancel_at
|
1089
|
-
@cancel_at_period_end = cancel_at_period_end
|
1090
|
-
@cancellation_details = cancellation_details
|
1091
|
-
@collection_method = collection_method
|
1092
|
-
@days_until_due = days_until_due
|
1093
|
-
@default_payment_method = default_payment_method
|
1094
|
-
@default_source = default_source
|
1095
|
-
@default_tax_rates = default_tax_rates
|
1096
|
-
@description = description
|
1097
|
-
@discounts = discounts
|
1098
|
-
@expand = expand
|
1099
|
-
@invoice_settings = invoice_settings
|
1100
|
-
@items = items
|
1101
|
-
@metadata = metadata
|
1102
|
-
@off_session = off_session
|
1103
|
-
@on_behalf_of = on_behalf_of
|
1104
|
-
@pause_collection = pause_collection
|
1105
|
-
@payment_behavior = payment_behavior
|
1106
|
-
@payment_settings = payment_settings
|
1107
|
-
@pending_invoice_item_interval = pending_invoice_item_interval
|
1108
|
-
@prebilling = prebilling
|
1109
|
-
@proration_behavior = proration_behavior
|
1110
|
-
@proration_date = proration_date
|
1111
|
-
@transfer_data = transfer_data
|
1112
|
-
@trial_end = trial_end
|
1113
|
-
@trial_from_plan = trial_from_plan
|
1114
|
-
@trial_settings = trial_settings
|
447
|
+
def self.field_remappings
|
448
|
+
@field_remappings = {}
|
1115
449
|
end
|
1116
450
|
end
|
1117
451
|
|
1118
|
-
class
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
1123
|
-
attr_accessor :enabled
|
1124
|
-
|
1125
|
-
def initialize(enabled: nil)
|
1126
|
-
@enabled = enabled
|
1127
|
-
end
|
1128
|
-
end
|
1129
|
-
|
1130
|
-
class Created < Stripe::RequestParams
|
1131
|
-
# Minimum value to filter by (exclusive)
|
1132
|
-
attr_accessor :gt
|
1133
|
-
# Minimum value to filter by (inclusive)
|
1134
|
-
attr_accessor :gte
|
1135
|
-
# Maximum value to filter by (exclusive)
|
1136
|
-
attr_accessor :lt
|
1137
|
-
# Maximum value to filter by (inclusive)
|
1138
|
-
attr_accessor :lte
|
1139
|
-
|
1140
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
1141
|
-
@gt = gt
|
1142
|
-
@gte = gte
|
1143
|
-
@lt = lt
|
1144
|
-
@lte = lte
|
1145
|
-
end
|
1146
|
-
end
|
1147
|
-
|
1148
|
-
class CurrentPeriodEnd < Stripe::RequestParams
|
1149
|
-
# Minimum value to filter by (exclusive)
|
1150
|
-
attr_accessor :gt
|
1151
|
-
# Minimum value to filter by (inclusive)
|
1152
|
-
attr_accessor :gte
|
1153
|
-
# Maximum value to filter by (exclusive)
|
1154
|
-
attr_accessor :lt
|
1155
|
-
# Maximum value to filter by (inclusive)
|
1156
|
-
attr_accessor :lte
|
1157
|
-
|
1158
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
1159
|
-
@gt = gt
|
1160
|
-
@gte = gte
|
1161
|
-
@lt = lt
|
1162
|
-
@lte = lte
|
1163
|
-
end
|
1164
|
-
end
|
1165
|
-
|
1166
|
-
class CurrentPeriodStart < Stripe::RequestParams
|
1167
|
-
# Minimum value to filter by (exclusive)
|
1168
|
-
attr_accessor :gt
|
1169
|
-
# Minimum value to filter by (inclusive)
|
1170
|
-
attr_accessor :gte
|
1171
|
-
# Maximum value to filter by (exclusive)
|
1172
|
-
attr_accessor :lt
|
1173
|
-
# Maximum value to filter by (inclusive)
|
1174
|
-
attr_accessor :lte
|
1175
|
-
|
1176
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
1177
|
-
@gt = gt
|
1178
|
-
@gte = gte
|
1179
|
-
@lt = lt
|
1180
|
-
@lte = lte
|
1181
|
-
end
|
1182
|
-
end
|
1183
|
-
# Filter subscriptions by their automatic tax settings.
|
1184
|
-
attr_accessor :automatic_tax
|
1185
|
-
# The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
|
1186
|
-
attr_accessor :collection_method
|
1187
|
-
# Only return subscriptions that were created during the given date interval.
|
1188
|
-
attr_accessor :created
|
1189
|
-
# Only return subscriptions whose minimum item current_period_end falls within the given date interval.
|
1190
|
-
attr_accessor :current_period_end
|
1191
|
-
# Only return subscriptions whose maximum item current_period_start falls within the given date interval.
|
1192
|
-
attr_accessor :current_period_start
|
1193
|
-
# The ID of the customer whose subscriptions will be retrieved.
|
1194
|
-
attr_accessor :customer
|
1195
|
-
# The ID of the account whose subscriptions will be retrieved.
|
1196
|
-
attr_accessor :customer_account
|
1197
|
-
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
1198
|
-
attr_accessor :ending_before
|
1199
|
-
# Specifies which fields in the response should be expanded.
|
1200
|
-
attr_accessor :expand
|
1201
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1202
|
-
attr_accessor :limit
|
1203
|
-
# The ID of the plan whose subscriptions will be retrieved.
|
1204
|
-
attr_accessor :plan
|
1205
|
-
# Filter for subscriptions that contain this recurring price ID.
|
1206
|
-
attr_accessor :price
|
1207
|
-
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
1208
|
-
attr_accessor :starting_after
|
1209
|
-
# The status of the subscriptions to retrieve. Passing in a value of `canceled` will return all canceled subscriptions, including those belonging to deleted customers. Pass `ended` to find subscriptions that are canceled and subscriptions that are expired due to [incomplete payment](https://stripe.com/docs/billing/subscriptions/overview#subscription-statuses). Passing in a value of `all` will return subscriptions of all statuses. If no value is supplied, all subscriptions that have not been canceled are returned.
|
1210
|
-
attr_accessor :status
|
1211
|
-
# Filter for subscriptions that are associated with the specified test clock. The response will not include subscriptions with test clocks if this and the customer parameter is not set.
|
1212
|
-
attr_accessor :test_clock
|
1213
|
-
|
1214
|
-
def initialize(
|
1215
|
-
automatic_tax: nil,
|
1216
|
-
collection_method: nil,
|
1217
|
-
created: nil,
|
1218
|
-
current_period_end: nil,
|
1219
|
-
current_period_start: nil,
|
1220
|
-
customer: nil,
|
1221
|
-
customer_account: nil,
|
1222
|
-
ending_before: nil,
|
1223
|
-
expand: nil,
|
1224
|
-
limit: nil,
|
1225
|
-
plan: nil,
|
1226
|
-
price: nil,
|
1227
|
-
starting_after: nil,
|
1228
|
-
status: nil,
|
1229
|
-
test_clock: nil
|
1230
|
-
)
|
1231
|
-
@automatic_tax = automatic_tax
|
1232
|
-
@collection_method = collection_method
|
1233
|
-
@created = created
|
1234
|
-
@current_period_end = current_period_end
|
1235
|
-
@current_period_start = current_period_start
|
1236
|
-
@customer = customer
|
1237
|
-
@customer_account = customer_account
|
1238
|
-
@ending_before = ending_before
|
1239
|
-
@expand = expand
|
1240
|
-
@limit = limit
|
1241
|
-
@plan = plan
|
1242
|
-
@price = price
|
1243
|
-
@starting_after = starting_after
|
1244
|
-
@status = status
|
1245
|
-
@test_clock = test_clock
|
1246
|
-
end
|
1247
|
-
end
|
1248
|
-
|
1249
|
-
class CreateParams < Stripe::RequestParams
|
1250
|
-
class AddInvoiceItem < Stripe::RequestParams
|
1251
|
-
class Discount < Stripe::RequestParams
|
1252
|
-
class DiscountEnd < Stripe::RequestParams
|
1253
|
-
class Duration < Stripe::RequestParams
|
1254
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
1255
|
-
attr_accessor :interval
|
1256
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
1257
|
-
attr_accessor :interval_count
|
1258
|
-
|
1259
|
-
def initialize(interval: nil, interval_count: nil)
|
1260
|
-
@interval = interval
|
1261
|
-
@interval_count = interval_count
|
1262
|
-
end
|
1263
|
-
end
|
1264
|
-
# Time span for the redeemed discount.
|
1265
|
-
attr_accessor :duration
|
1266
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
1267
|
-
attr_accessor :timestamp
|
1268
|
-
# The type of calculation made to determine when the discount ends.
|
1269
|
-
attr_accessor :type
|
1270
|
-
|
1271
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
1272
|
-
@duration = duration
|
1273
|
-
@timestamp = timestamp
|
1274
|
-
@type = type
|
1275
|
-
end
|
1276
|
-
end
|
1277
|
-
# ID of the coupon to create a new discount for.
|
1278
|
-
attr_accessor :coupon
|
1279
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1280
|
-
attr_accessor :discount
|
1281
|
-
# Details to determine how long the discount should be applied for.
|
1282
|
-
attr_accessor :discount_end
|
1283
|
-
# ID of the promotion code to create a new discount for.
|
1284
|
-
attr_accessor :promotion_code
|
1285
|
-
|
1286
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
1287
|
-
@coupon = coupon
|
1288
|
-
@discount = discount
|
1289
|
-
@discount_end = discount_end
|
1290
|
-
@promotion_code = promotion_code
|
1291
|
-
end
|
1292
|
-
end
|
1293
|
-
|
1294
|
-
class Period < Stripe::RequestParams
|
1295
|
-
class End < Stripe::RequestParams
|
1296
|
-
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
1297
|
-
attr_accessor :timestamp
|
1298
|
-
# Select how to calculate the end of the invoice item period.
|
1299
|
-
attr_accessor :type
|
1300
|
-
|
1301
|
-
def initialize(timestamp: nil, type: nil)
|
1302
|
-
@timestamp = timestamp
|
1303
|
-
@type = type
|
1304
|
-
end
|
1305
|
-
end
|
1306
|
-
|
1307
|
-
class Start < Stripe::RequestParams
|
1308
|
-
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
1309
|
-
attr_accessor :timestamp
|
1310
|
-
# Select how to calculate the start of the invoice item period.
|
1311
|
-
attr_accessor :type
|
1312
|
-
|
1313
|
-
def initialize(timestamp: nil, type: nil)
|
1314
|
-
@timestamp = timestamp
|
1315
|
-
@type = type
|
1316
|
-
end
|
1317
|
-
end
|
1318
|
-
# End of the invoice item period.
|
1319
|
-
attr_accessor :end
|
1320
|
-
# Start of the invoice item period.
|
1321
|
-
attr_accessor :start
|
1322
|
-
|
1323
|
-
def initialize(end_: nil, start: nil)
|
1324
|
-
@end = end_
|
1325
|
-
@start = start
|
1326
|
-
end
|
1327
|
-
end
|
1328
|
-
|
1329
|
-
class PriceData < Stripe::RequestParams
|
1330
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
1331
|
-
attr_accessor :currency
|
1332
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
1333
|
-
attr_accessor :product
|
1334
|
-
# Only required if a [default tax behavior](https://stripe.com/docs/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.
|
1335
|
-
attr_accessor :tax_behavior
|
1336
|
-
# 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.
|
1337
|
-
attr_accessor :unit_amount
|
1338
|
-
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
1339
|
-
attr_accessor :unit_amount_decimal
|
1340
|
-
|
1341
|
-
def initialize(
|
1342
|
-
currency: nil,
|
1343
|
-
product: nil,
|
1344
|
-
tax_behavior: nil,
|
1345
|
-
unit_amount: nil,
|
1346
|
-
unit_amount_decimal: nil
|
1347
|
-
)
|
1348
|
-
@currency = currency
|
1349
|
-
@product = product
|
1350
|
-
@tax_behavior = tax_behavior
|
1351
|
-
@unit_amount = unit_amount
|
1352
|
-
@unit_amount_decimal = unit_amount_decimal
|
1353
|
-
end
|
1354
|
-
end
|
1355
|
-
# The coupons to redeem into discounts for the item.
|
1356
|
-
attr_accessor :discounts
|
1357
|
-
# 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`.
|
1358
|
-
attr_accessor :metadata
|
1359
|
-
# The period associated with this invoice item. Defaults to the current period of the subscription.
|
1360
|
-
attr_accessor :period
|
1361
|
-
# The ID of the price object. One of `price` or `price_data` is required.
|
1362
|
-
attr_accessor :price
|
1363
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
1364
|
-
attr_accessor :price_data
|
1365
|
-
# Quantity for this item. Defaults to 1.
|
1366
|
-
attr_accessor :quantity
|
1367
|
-
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
1368
|
-
attr_accessor :tax_rates
|
1369
|
-
|
1370
|
-
def initialize(
|
1371
|
-
discounts: nil,
|
1372
|
-
metadata: nil,
|
1373
|
-
period: nil,
|
1374
|
-
price: nil,
|
1375
|
-
price_data: nil,
|
1376
|
-
quantity: nil,
|
1377
|
-
tax_rates: nil
|
1378
|
-
)
|
1379
|
-
@discounts = discounts
|
1380
|
-
@metadata = metadata
|
1381
|
-
@period = period
|
1382
|
-
@price = price
|
1383
|
-
@price_data = price_data
|
1384
|
-
@quantity = quantity
|
1385
|
-
@tax_rates = tax_rates
|
1386
|
-
end
|
1387
|
-
end
|
1388
|
-
|
1389
|
-
class AutomaticTax < Stripe::RequestParams
|
1390
|
-
class Liability < Stripe::RequestParams
|
1391
|
-
# The connected account being referenced when `type` is `account`.
|
1392
|
-
attr_accessor :account
|
1393
|
-
# Type of the account referenced in the request.
|
1394
|
-
attr_accessor :type
|
1395
|
-
|
1396
|
-
def initialize(account: nil, type: nil)
|
1397
|
-
@account = account
|
1398
|
-
@type = type
|
1399
|
-
end
|
1400
|
-
end
|
1401
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
1402
|
-
attr_accessor :enabled
|
1403
|
-
# 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.
|
1404
|
-
attr_accessor :liability
|
1405
|
-
|
1406
|
-
def initialize(enabled: nil, liability: nil)
|
1407
|
-
@enabled = enabled
|
1408
|
-
@liability = liability
|
1409
|
-
end
|
1410
|
-
end
|
1411
|
-
|
1412
|
-
class BillingCycleAnchorConfig < Stripe::RequestParams
|
1413
|
-
# The day of the month the anchor should be. Ranges from 1 to 31.
|
1414
|
-
attr_accessor :day_of_month
|
1415
|
-
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
1416
|
-
attr_accessor :hour
|
1417
|
-
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
1418
|
-
attr_accessor :minute
|
1419
|
-
# The month to start full cycle periods. Ranges from 1 to 12.
|
1420
|
-
attr_accessor :month
|
1421
|
-
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
1422
|
-
attr_accessor :second
|
1423
|
-
|
1424
|
-
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|
1425
|
-
@day_of_month = day_of_month
|
1426
|
-
@hour = hour
|
1427
|
-
@minute = minute
|
1428
|
-
@month = month
|
1429
|
-
@second = second
|
1430
|
-
end
|
1431
|
-
end
|
1432
|
-
|
1433
|
-
class BillingMode < Stripe::RequestParams
|
1434
|
-
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
|
1435
|
-
attr_accessor :type
|
1436
|
-
|
1437
|
-
def initialize(type: nil)
|
1438
|
-
@type = type
|
1439
|
-
end
|
1440
|
-
end
|
1441
|
-
|
1442
|
-
class BillingThresholds < Stripe::RequestParams
|
1443
|
-
# Monetary threshold that triggers the subscription to advance to a new billing period
|
1444
|
-
attr_accessor :amount_gte
|
1445
|
-
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
1446
|
-
attr_accessor :reset_billing_cycle_anchor
|
1447
|
-
|
1448
|
-
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
1449
|
-
@amount_gte = amount_gte
|
1450
|
-
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
1451
|
-
end
|
1452
|
-
end
|
1453
|
-
|
1454
|
-
class Discount < Stripe::RequestParams
|
1455
|
-
class DiscountEnd < Stripe::RequestParams
|
1456
|
-
class Duration < Stripe::RequestParams
|
1457
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
1458
|
-
attr_accessor :interval
|
1459
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
1460
|
-
attr_accessor :interval_count
|
1461
|
-
|
1462
|
-
def initialize(interval: nil, interval_count: nil)
|
1463
|
-
@interval = interval
|
1464
|
-
@interval_count = interval_count
|
1465
|
-
end
|
1466
|
-
end
|
1467
|
-
# Time span for the redeemed discount.
|
1468
|
-
attr_accessor :duration
|
1469
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
1470
|
-
attr_accessor :timestamp
|
1471
|
-
# The type of calculation made to determine when the discount ends.
|
1472
|
-
attr_accessor :type
|
1473
|
-
|
1474
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
1475
|
-
@duration = duration
|
1476
|
-
@timestamp = timestamp
|
1477
|
-
@type = type
|
1478
|
-
end
|
1479
|
-
end
|
1480
|
-
# ID of the coupon to create a new discount for.
|
1481
|
-
attr_accessor :coupon
|
1482
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1483
|
-
attr_accessor :discount
|
1484
|
-
# Details to determine how long the discount should be applied for.
|
1485
|
-
attr_accessor :discount_end
|
1486
|
-
# ID of the promotion code to create a new discount for.
|
1487
|
-
attr_accessor :promotion_code
|
1488
|
-
|
1489
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
1490
|
-
@coupon = coupon
|
1491
|
-
@discount = discount
|
1492
|
-
@discount_end = discount_end
|
1493
|
-
@promotion_code = promotion_code
|
1494
|
-
end
|
1495
|
-
end
|
1496
|
-
|
1497
|
-
class InvoiceSettings < Stripe::RequestParams
|
1498
|
-
class Issuer < Stripe::RequestParams
|
1499
|
-
# The connected account being referenced when `type` is `account`.
|
1500
|
-
attr_accessor :account
|
1501
|
-
# Type of the account referenced in the request.
|
1502
|
-
attr_accessor :type
|
1503
|
-
|
1504
|
-
def initialize(account: nil, type: nil)
|
1505
|
-
@account = account
|
1506
|
-
@type = type
|
1507
|
-
end
|
1508
|
-
end
|
1509
|
-
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
1510
|
-
attr_accessor :account_tax_ids
|
1511
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
1512
|
-
attr_accessor :issuer
|
1513
|
-
|
1514
|
-
def initialize(account_tax_ids: nil, issuer: nil)
|
1515
|
-
@account_tax_ids = account_tax_ids
|
1516
|
-
@issuer = issuer
|
1517
|
-
end
|
1518
|
-
end
|
1519
|
-
|
1520
|
-
class Item < Stripe::RequestParams
|
1521
|
-
class BillingThresholds < Stripe::RequestParams
|
1522
|
-
# 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/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
1523
|
-
attr_accessor :usage_gte
|
1524
|
-
|
1525
|
-
def initialize(usage_gte: nil)
|
1526
|
-
@usage_gte = usage_gte
|
1527
|
-
end
|
1528
|
-
end
|
1529
|
-
|
1530
|
-
class Discount < Stripe::RequestParams
|
1531
|
-
class DiscountEnd < Stripe::RequestParams
|
1532
|
-
class Duration < Stripe::RequestParams
|
1533
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
1534
|
-
attr_accessor :interval
|
1535
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
1536
|
-
attr_accessor :interval_count
|
1537
|
-
|
1538
|
-
def initialize(interval: nil, interval_count: nil)
|
1539
|
-
@interval = interval
|
1540
|
-
@interval_count = interval_count
|
1541
|
-
end
|
1542
|
-
end
|
1543
|
-
# Time span for the redeemed discount.
|
1544
|
-
attr_accessor :duration
|
1545
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
1546
|
-
attr_accessor :timestamp
|
1547
|
-
# The type of calculation made to determine when the discount ends.
|
1548
|
-
attr_accessor :type
|
1549
|
-
|
1550
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
1551
|
-
@duration = duration
|
1552
|
-
@timestamp = timestamp
|
1553
|
-
@type = type
|
1554
|
-
end
|
1555
|
-
end
|
1556
|
-
# ID of the coupon to create a new discount for.
|
1557
|
-
attr_accessor :coupon
|
1558
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1559
|
-
attr_accessor :discount
|
1560
|
-
# Details to determine how long the discount should be applied for.
|
1561
|
-
attr_accessor :discount_end
|
1562
|
-
# ID of the promotion code to create a new discount for.
|
1563
|
-
attr_accessor :promotion_code
|
1564
|
-
|
1565
|
-
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
1566
|
-
@coupon = coupon
|
1567
|
-
@discount = discount
|
1568
|
-
@discount_end = discount_end
|
1569
|
-
@promotion_code = promotion_code
|
1570
|
-
end
|
1571
|
-
end
|
1572
|
-
|
1573
|
-
class PriceData < Stripe::RequestParams
|
1574
|
-
class Recurring < Stripe::RequestParams
|
1575
|
-
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
1576
|
-
attr_accessor :interval
|
1577
|
-
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
1578
|
-
attr_accessor :interval_count
|
1579
|
-
|
1580
|
-
def initialize(interval: nil, interval_count: nil)
|
1581
|
-
@interval = interval
|
1582
|
-
@interval_count = interval_count
|
1583
|
-
end
|
1584
|
-
end
|
1585
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
1586
|
-
attr_accessor :currency
|
1587
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
1588
|
-
attr_accessor :product
|
1589
|
-
# The recurring components of a price such as `interval` and `interval_count`.
|
1590
|
-
attr_accessor :recurring
|
1591
|
-
# Only required if a [default tax behavior](https://stripe.com/docs/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.
|
1592
|
-
attr_accessor :tax_behavior
|
1593
|
-
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
1594
|
-
attr_accessor :unit_amount
|
1595
|
-
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
1596
|
-
attr_accessor :unit_amount_decimal
|
1597
|
-
|
1598
|
-
def initialize(
|
1599
|
-
currency: nil,
|
1600
|
-
product: nil,
|
1601
|
-
recurring: nil,
|
1602
|
-
tax_behavior: nil,
|
1603
|
-
unit_amount: nil,
|
1604
|
-
unit_amount_decimal: nil
|
1605
|
-
)
|
1606
|
-
@currency = currency
|
1607
|
-
@product = product
|
1608
|
-
@recurring = recurring
|
1609
|
-
@tax_behavior = tax_behavior
|
1610
|
-
@unit_amount = unit_amount
|
1611
|
-
@unit_amount_decimal = unit_amount_decimal
|
1612
|
-
end
|
1613
|
-
end
|
1614
|
-
|
1615
|
-
class Trial < Stripe::RequestParams
|
1616
|
-
# 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.
|
1617
|
-
attr_accessor :converts_to
|
1618
|
-
# Determines the type of trial for this item.
|
1619
|
-
attr_accessor :type
|
1620
|
-
|
1621
|
-
def initialize(converts_to: nil, type: nil)
|
1622
|
-
@converts_to = converts_to
|
1623
|
-
@type = type
|
1624
|
-
end
|
1625
|
-
end
|
1626
|
-
# 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.
|
1627
|
-
attr_accessor :billing_thresholds
|
1628
|
-
# The coupons to redeem into discounts for the subscription item.
|
1629
|
-
attr_accessor :discounts
|
1630
|
-
# 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`.
|
1631
|
-
attr_accessor :metadata
|
1632
|
-
# Plan ID for this item, as a string.
|
1633
|
-
attr_accessor :plan
|
1634
|
-
# The ID of the price object.
|
1635
|
-
attr_accessor :price
|
1636
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
|
1637
|
-
attr_accessor :price_data
|
1638
|
-
# Quantity for this item.
|
1639
|
-
attr_accessor :quantity
|
1640
|
-
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
1641
|
-
attr_accessor :tax_rates
|
1642
|
-
# Define options to configure the trial on the subscription item.
|
1643
|
-
attr_accessor :trial
|
1644
|
-
|
1645
|
-
def initialize(
|
1646
|
-
billing_thresholds: nil,
|
1647
|
-
discounts: nil,
|
1648
|
-
metadata: nil,
|
1649
|
-
plan: nil,
|
1650
|
-
price: nil,
|
1651
|
-
price_data: nil,
|
1652
|
-
quantity: nil,
|
1653
|
-
tax_rates: nil,
|
1654
|
-
trial: nil
|
1655
|
-
)
|
1656
|
-
@billing_thresholds = billing_thresholds
|
1657
|
-
@discounts = discounts
|
1658
|
-
@metadata = metadata
|
1659
|
-
@plan = plan
|
1660
|
-
@price = price
|
1661
|
-
@price_data = price_data
|
1662
|
-
@quantity = quantity
|
1663
|
-
@tax_rates = tax_rates
|
1664
|
-
@trial = trial
|
1665
|
-
end
|
1666
|
-
end
|
1667
|
-
|
1668
|
-
class PaymentSettings < Stripe::RequestParams
|
1669
|
-
class PaymentMethodOptions < Stripe::RequestParams
|
1670
|
-
class AcssDebit < Stripe::RequestParams
|
1671
|
-
class MandateOptions < Stripe::RequestParams
|
1672
|
-
# Transaction type of the mandate.
|
1673
|
-
attr_accessor :transaction_type
|
1674
|
-
|
1675
|
-
def initialize(transaction_type: nil)
|
1676
|
-
@transaction_type = transaction_type
|
1677
|
-
end
|
1678
|
-
end
|
1679
|
-
# Additional fields for Mandate creation
|
1680
|
-
attr_accessor :mandate_options
|
1681
|
-
# Verification method for the intent
|
1682
|
-
attr_accessor :verification_method
|
1683
|
-
|
1684
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
1685
|
-
@mandate_options = mandate_options
|
1686
|
-
@verification_method = verification_method
|
1687
|
-
end
|
1688
|
-
end
|
1689
|
-
|
1690
|
-
class Bancontact < Stripe::RequestParams
|
1691
|
-
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
1692
|
-
attr_accessor :preferred_language
|
1693
|
-
|
1694
|
-
def initialize(preferred_language: nil)
|
1695
|
-
@preferred_language = preferred_language
|
1696
|
-
end
|
1697
|
-
end
|
1698
|
-
|
1699
|
-
class Card < Stripe::RequestParams
|
1700
|
-
class MandateOptions < Stripe::RequestParams
|
1701
|
-
# Amount to be charged for future payments.
|
1702
|
-
attr_accessor :amount
|
1703
|
-
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
1704
|
-
attr_accessor :amount_type
|
1705
|
-
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
1706
|
-
attr_accessor :description
|
1707
|
-
|
1708
|
-
def initialize(amount: nil, amount_type: nil, description: nil)
|
1709
|
-
@amount = amount
|
1710
|
-
@amount_type = amount_type
|
1711
|
-
@description = description
|
1712
|
-
end
|
1713
|
-
end
|
1714
|
-
# Configuration options for setting up an eMandate for cards issued in India.
|
1715
|
-
attr_accessor :mandate_options
|
1716
|
-
# Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.
|
1717
|
-
attr_accessor :network
|
1718
|
-
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
1719
|
-
attr_accessor :request_three_d_secure
|
1720
|
-
|
1721
|
-
def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil)
|
1722
|
-
@mandate_options = mandate_options
|
1723
|
-
@network = network
|
1724
|
-
@request_three_d_secure = request_three_d_secure
|
1725
|
-
end
|
1726
|
-
end
|
1727
|
-
|
1728
|
-
class CustomerBalance < Stripe::RequestParams
|
1729
|
-
class BankTransfer < Stripe::RequestParams
|
1730
|
-
class EuBankTransfer < Stripe::RequestParams
|
1731
|
-
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
1732
|
-
attr_accessor :country
|
1733
|
-
|
1734
|
-
def initialize(country: nil)
|
1735
|
-
@country = country
|
1736
|
-
end
|
1737
|
-
end
|
1738
|
-
# Configuration for eu_bank_transfer funding type.
|
1739
|
-
attr_accessor :eu_bank_transfer
|
1740
|
-
# The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
1741
|
-
attr_accessor :type
|
1742
|
-
|
1743
|
-
def initialize(eu_bank_transfer: nil, type: nil)
|
1744
|
-
@eu_bank_transfer = eu_bank_transfer
|
1745
|
-
@type = type
|
1746
|
-
end
|
1747
|
-
end
|
1748
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
1749
|
-
attr_accessor :bank_transfer
|
1750
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
1751
|
-
attr_accessor :funding_type
|
1752
|
-
|
1753
|
-
def initialize(bank_transfer: nil, funding_type: nil)
|
1754
|
-
@bank_transfer = bank_transfer
|
1755
|
-
@funding_type = funding_type
|
1756
|
-
end
|
1757
|
-
end
|
1758
|
-
|
1759
|
-
class IdBankTransfer < Stripe::RequestParams; end
|
1760
|
-
class Konbini < Stripe::RequestParams; end
|
1761
|
-
class SepaDebit < Stripe::RequestParams; end
|
1762
|
-
|
1763
|
-
class Upi < Stripe::RequestParams
|
1764
|
-
class MandateOptions < Stripe::RequestParams
|
1765
|
-
# Amount to be charged for future payments.
|
1766
|
-
attr_accessor :amount
|
1767
|
-
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
1768
|
-
attr_accessor :amount_type
|
1769
|
-
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
1770
|
-
attr_accessor :description
|
1771
|
-
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
1772
|
-
attr_accessor :end_date
|
1773
|
-
|
1774
|
-
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
1775
|
-
@amount = amount
|
1776
|
-
@amount_type = amount_type
|
1777
|
-
@description = description
|
1778
|
-
@end_date = end_date
|
1779
|
-
end
|
1780
|
-
end
|
1781
|
-
# Configuration options for setting up an eMandate
|
1782
|
-
attr_accessor :mandate_options
|
1783
|
-
|
1784
|
-
def initialize(mandate_options: nil)
|
1785
|
-
@mandate_options = mandate_options
|
1786
|
-
end
|
1787
|
-
end
|
1788
|
-
|
1789
|
-
class UsBankAccount < Stripe::RequestParams
|
1790
|
-
class FinancialConnections < Stripe::RequestParams
|
1791
|
-
class Filters < Stripe::RequestParams
|
1792
|
-
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1793
|
-
attr_accessor :account_subcategories
|
1794
|
-
# ID of the institution to use to filter for selectable accounts.
|
1795
|
-
attr_accessor :institution
|
1796
|
-
|
1797
|
-
def initialize(account_subcategories: nil, institution: nil)
|
1798
|
-
@account_subcategories = account_subcategories
|
1799
|
-
@institution = institution
|
1800
|
-
end
|
1801
|
-
end
|
1802
|
-
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1803
|
-
attr_accessor :filters
|
1804
|
-
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
1805
|
-
attr_accessor :permissions
|
1806
|
-
# List of data features that you would like to retrieve upon account creation.
|
1807
|
-
attr_accessor :prefetch
|
1808
|
-
|
1809
|
-
def initialize(filters: nil, permissions: nil, prefetch: nil)
|
1810
|
-
@filters = filters
|
1811
|
-
@permissions = permissions
|
1812
|
-
@prefetch = prefetch
|
1813
|
-
end
|
1814
|
-
end
|
1815
|
-
# Additional fields for Financial Connections Session creation
|
1816
|
-
attr_accessor :financial_connections
|
1817
|
-
# Verification method for the intent
|
1818
|
-
attr_accessor :verification_method
|
1819
|
-
|
1820
|
-
def initialize(financial_connections: nil, verification_method: nil)
|
1821
|
-
@financial_connections = financial_connections
|
1822
|
-
@verification_method = verification_method
|
1823
|
-
end
|
1824
|
-
end
|
1825
|
-
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
|
1826
|
-
attr_accessor :acss_debit
|
1827
|
-
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
|
1828
|
-
attr_accessor :bancontact
|
1829
|
-
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
|
1830
|
-
attr_accessor :card
|
1831
|
-
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
1832
|
-
attr_accessor :customer_balance
|
1833
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
1834
|
-
attr_accessor :id_bank_transfer
|
1835
|
-
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
1836
|
-
attr_accessor :konbini
|
1837
|
-
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
1838
|
-
attr_accessor :sepa_debit
|
1839
|
-
# This sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
1840
|
-
attr_accessor :upi
|
1841
|
-
# This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
1842
|
-
attr_accessor :us_bank_account
|
1843
|
-
|
1844
|
-
def initialize(
|
1845
|
-
acss_debit: nil,
|
1846
|
-
bancontact: nil,
|
1847
|
-
card: nil,
|
1848
|
-
customer_balance: nil,
|
1849
|
-
id_bank_transfer: nil,
|
1850
|
-
konbini: nil,
|
1851
|
-
sepa_debit: nil,
|
1852
|
-
upi: nil,
|
1853
|
-
us_bank_account: nil
|
1854
|
-
)
|
1855
|
-
@acss_debit = acss_debit
|
1856
|
-
@bancontact = bancontact
|
1857
|
-
@card = card
|
1858
|
-
@customer_balance = customer_balance
|
1859
|
-
@id_bank_transfer = id_bank_transfer
|
1860
|
-
@konbini = konbini
|
1861
|
-
@sepa_debit = sepa_debit
|
1862
|
-
@upi = upi
|
1863
|
-
@us_bank_account = us_bank_account
|
1864
|
-
end
|
1865
|
-
end
|
1866
|
-
# Payment-method-specific configuration to provide to invoices created by the subscription.
|
1867
|
-
attr_accessor :payment_method_options
|
1868
|
-
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
|
1869
|
-
attr_accessor :payment_method_types
|
1870
|
-
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
|
1871
|
-
attr_accessor :save_default_payment_method
|
1872
|
-
|
1873
|
-
def initialize(
|
1874
|
-
payment_method_options: nil,
|
1875
|
-
payment_method_types: nil,
|
1876
|
-
save_default_payment_method: nil
|
1877
|
-
)
|
1878
|
-
@payment_method_options = payment_method_options
|
1879
|
-
@payment_method_types = payment_method_types
|
1880
|
-
@save_default_payment_method = save_default_payment_method
|
1881
|
-
end
|
1882
|
-
end
|
1883
|
-
|
1884
|
-
class PendingInvoiceItemInterval < Stripe::RequestParams
|
1885
|
-
# Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
|
1886
|
-
attr_accessor :interval
|
1887
|
-
# The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
|
1888
|
-
attr_accessor :interval_count
|
1889
|
-
|
1890
|
-
def initialize(interval: nil, interval_count: nil)
|
1891
|
-
@interval = interval
|
1892
|
-
@interval_count = interval_count
|
1893
|
-
end
|
1894
|
-
end
|
1895
|
-
|
1896
|
-
class Prebilling < Stripe::RequestParams
|
1897
|
-
# This is used to determine the number of billing cycles to prebill.
|
1898
|
-
attr_accessor :iterations
|
1899
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
1900
|
-
attr_accessor :update_behavior
|
1901
|
-
|
1902
|
-
def initialize(iterations: nil, update_behavior: nil)
|
1903
|
-
@iterations = iterations
|
1904
|
-
@update_behavior = update_behavior
|
1905
|
-
end
|
1906
|
-
end
|
1907
|
-
|
1908
|
-
class TransferData < Stripe::RequestParams
|
1909
|
-
# 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 destination account. By default, the entire amount is transferred to the destination.
|
1910
|
-
attr_accessor :amount_percent
|
1911
|
-
# ID of an existing, connected Stripe account.
|
1912
|
-
attr_accessor :destination
|
1913
|
-
|
1914
|
-
def initialize(amount_percent: nil, destination: nil)
|
1915
|
-
@amount_percent = amount_percent
|
1916
|
-
@destination = destination
|
1917
|
-
end
|
1918
|
-
end
|
1919
|
-
|
1920
|
-
class TrialSettings < Stripe::RequestParams
|
1921
|
-
class EndBehavior < Stripe::RequestParams
|
1922
|
-
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
1923
|
-
attr_accessor :missing_payment_method
|
1924
|
-
|
1925
|
-
def initialize(missing_payment_method: nil)
|
1926
|
-
@missing_payment_method = missing_payment_method
|
1927
|
-
end
|
1928
|
-
end
|
1929
|
-
# Defines how the subscription should behave when the user's free trial ends.
|
1930
|
-
attr_accessor :end_behavior
|
452
|
+
class TrialSettings < Stripe::StripeObject
|
453
|
+
class EndBehavior < Stripe::StripeObject
|
454
|
+
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
455
|
+
attr_reader :missing_payment_method
|
1931
456
|
|
1932
|
-
def
|
1933
|
-
@
|
457
|
+
def self.inner_class_types
|
458
|
+
@inner_class_types = {}
|
1934
459
|
end
|
1935
|
-
end
|
1936
|
-
# A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
|
1937
|
-
attr_accessor :add_invoice_items
|
1938
|
-
# 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).
|
1939
|
-
attr_accessor :application_fee_percent
|
1940
|
-
# Automatic tax settings for this subscription.
|
1941
|
-
attr_accessor :automatic_tax
|
1942
|
-
# A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
|
1943
|
-
attr_accessor :backdate_start_date
|
1944
|
-
# A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
|
1945
|
-
attr_accessor :billing_cycle_anchor
|
1946
|
-
# Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.
|
1947
|
-
attr_accessor :billing_cycle_anchor_config
|
1948
|
-
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
1949
|
-
attr_accessor :billing_mode
|
1950
|
-
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
1951
|
-
attr_accessor :billing_thresholds
|
1952
|
-
# 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.
|
1953
|
-
attr_accessor :cancel_at
|
1954
|
-
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
1955
|
-
attr_accessor :cancel_at_period_end
|
1956
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
|
1957
|
-
attr_accessor :collection_method
|
1958
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
1959
|
-
attr_accessor :currency
|
1960
|
-
# The identifier of the customer to subscribe.
|
1961
|
-
attr_accessor :customer
|
1962
|
-
# The identifier of the account to subscribe.
|
1963
|
-
attr_accessor :customer_account
|
1964
|
-
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
|
1965
|
-
attr_accessor :days_until_due
|
1966
|
-
# ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
|
1967
|
-
attr_accessor :default_payment_method
|
1968
|
-
# ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
|
1969
|
-
attr_accessor :default_source
|
1970
|
-
# The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription.
|
1971
|
-
attr_accessor :default_tax_rates
|
1972
|
-
# The subscription's 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.
|
1973
|
-
attr_accessor :description
|
1974
|
-
# The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.
|
1975
|
-
attr_accessor :discounts
|
1976
|
-
# Specifies which fields in the response should be expanded.
|
1977
|
-
attr_accessor :expand
|
1978
|
-
# All invoices will be billed using the specified settings.
|
1979
|
-
attr_accessor :invoice_settings
|
1980
|
-
# A list of up to 20 subscription items, each with an attached price.
|
1981
|
-
attr_accessor :items
|
1982
|
-
# 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`.
|
1983
|
-
attr_accessor :metadata
|
1984
|
-
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
|
1985
|
-
attr_accessor :off_session
|
1986
|
-
# The account on behalf of which to charge, for each of the subscription's invoices.
|
1987
|
-
attr_accessor :on_behalf_of
|
1988
|
-
# Only applies to subscriptions with `collection_method=charge_automatically`.
|
1989
|
-
#
|
1990
|
-
# Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.
|
1991
|
-
#
|
1992
|
-
# Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription’s invoice, such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state.
|
1993
|
-
#
|
1994
|
-
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
|
1995
|
-
#
|
1996
|
-
# `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription.
|
1997
|
-
#
|
1998
|
-
# Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
|
1999
|
-
attr_accessor :payment_behavior
|
2000
|
-
# Payment settings to pass to invoices created by the subscription.
|
2001
|
-
attr_accessor :payment_settings
|
2002
|
-
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
|
2003
|
-
attr_accessor :pending_invoice_item_interval
|
2004
|
-
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
2005
|
-
attr_accessor :prebilling
|
2006
|
-
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
2007
|
-
attr_accessor :proration_behavior
|
2008
|
-
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
|
2009
|
-
attr_accessor :transfer_data
|
2010
|
-
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
2011
|
-
attr_accessor :trial_end
|
2012
|
-
# Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
2013
|
-
attr_accessor :trial_from_plan
|
2014
|
-
# Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
2015
|
-
attr_accessor :trial_period_days
|
2016
|
-
# Settings related to subscription trials.
|
2017
|
-
attr_accessor :trial_settings
|
2018
|
-
|
2019
|
-
def initialize(
|
2020
|
-
add_invoice_items: nil,
|
2021
|
-
application_fee_percent: nil,
|
2022
|
-
automatic_tax: nil,
|
2023
|
-
backdate_start_date: nil,
|
2024
|
-
billing_cycle_anchor: nil,
|
2025
|
-
billing_cycle_anchor_config: nil,
|
2026
|
-
billing_mode: nil,
|
2027
|
-
billing_thresholds: nil,
|
2028
|
-
cancel_at: nil,
|
2029
|
-
cancel_at_period_end: nil,
|
2030
|
-
collection_method: nil,
|
2031
|
-
currency: nil,
|
2032
|
-
customer: nil,
|
2033
|
-
customer_account: nil,
|
2034
|
-
days_until_due: nil,
|
2035
|
-
default_payment_method: nil,
|
2036
|
-
default_source: nil,
|
2037
|
-
default_tax_rates: nil,
|
2038
|
-
description: nil,
|
2039
|
-
discounts: nil,
|
2040
|
-
expand: nil,
|
2041
|
-
invoice_settings: nil,
|
2042
|
-
items: nil,
|
2043
|
-
metadata: nil,
|
2044
|
-
off_session: nil,
|
2045
|
-
on_behalf_of: nil,
|
2046
|
-
payment_behavior: nil,
|
2047
|
-
payment_settings: nil,
|
2048
|
-
pending_invoice_item_interval: nil,
|
2049
|
-
prebilling: nil,
|
2050
|
-
proration_behavior: nil,
|
2051
|
-
transfer_data: nil,
|
2052
|
-
trial_end: nil,
|
2053
|
-
trial_from_plan: nil,
|
2054
|
-
trial_period_days: nil,
|
2055
|
-
trial_settings: nil
|
2056
|
-
)
|
2057
|
-
@add_invoice_items = add_invoice_items
|
2058
|
-
@application_fee_percent = application_fee_percent
|
2059
|
-
@automatic_tax = automatic_tax
|
2060
|
-
@backdate_start_date = backdate_start_date
|
2061
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
2062
|
-
@billing_cycle_anchor_config = billing_cycle_anchor_config
|
2063
|
-
@billing_mode = billing_mode
|
2064
|
-
@billing_thresholds = billing_thresholds
|
2065
|
-
@cancel_at = cancel_at
|
2066
|
-
@cancel_at_period_end = cancel_at_period_end
|
2067
|
-
@collection_method = collection_method
|
2068
|
-
@currency = currency
|
2069
|
-
@customer = customer
|
2070
|
-
@customer_account = customer_account
|
2071
|
-
@days_until_due = days_until_due
|
2072
|
-
@default_payment_method = default_payment_method
|
2073
|
-
@default_source = default_source
|
2074
|
-
@default_tax_rates = default_tax_rates
|
2075
|
-
@description = description
|
2076
|
-
@discounts = discounts
|
2077
|
-
@expand = expand
|
2078
|
-
@invoice_settings = invoice_settings
|
2079
|
-
@items = items
|
2080
|
-
@metadata = metadata
|
2081
|
-
@off_session = off_session
|
2082
|
-
@on_behalf_of = on_behalf_of
|
2083
|
-
@payment_behavior = payment_behavior
|
2084
|
-
@payment_settings = payment_settings
|
2085
|
-
@pending_invoice_item_interval = pending_invoice_item_interval
|
2086
|
-
@prebilling = prebilling
|
2087
|
-
@proration_behavior = proration_behavior
|
2088
|
-
@transfer_data = transfer_data
|
2089
|
-
@trial_end = trial_end
|
2090
|
-
@trial_from_plan = trial_from_plan
|
2091
|
-
@trial_period_days = trial_period_days
|
2092
|
-
@trial_settings = trial_settings
|
2093
|
-
end
|
2094
|
-
end
|
2095
460
|
|
2096
|
-
|
2097
|
-
|
2098
|
-
attr_accessor :expand
|
2099
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
2100
|
-
attr_accessor :limit
|
2101
|
-
# A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
|
2102
|
-
attr_accessor :page
|
2103
|
-
# The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for subscriptions](https://stripe.com/docs/search#query-fields-for-subscriptions).
|
2104
|
-
attr_accessor :query
|
2105
|
-
|
2106
|
-
def initialize(expand: nil, limit: nil, page: nil, query: nil)
|
2107
|
-
@expand = expand
|
2108
|
-
@limit = limit
|
2109
|
-
@page = page
|
2110
|
-
@query = query
|
2111
|
-
end
|
2112
|
-
end
|
2113
|
-
|
2114
|
-
class MigrateParams < Stripe::RequestParams
|
2115
|
-
class BillingMode < Stripe::RequestParams
|
2116
|
-
# Attribute for param field type
|
2117
|
-
attr_accessor :type
|
2118
|
-
|
2119
|
-
def initialize(type: nil)
|
2120
|
-
@type = type
|
461
|
+
def self.field_remappings
|
462
|
+
@field_remappings = {}
|
2121
463
|
end
|
2122
464
|
end
|
2123
|
-
#
|
2124
|
-
|
2125
|
-
# Specifies which fields in the response should be expanded.
|
2126
|
-
attr_accessor :expand
|
465
|
+
# Defines how a subscription behaves when a free trial ends.
|
466
|
+
attr_reader :end_behavior
|
2127
467
|
|
2128
|
-
def
|
2129
|
-
@
|
2130
|
-
@expand = expand
|
468
|
+
def self.inner_class_types
|
469
|
+
@inner_class_types = { end_behavior: EndBehavior }
|
2131
470
|
end
|
2132
|
-
end
|
2133
471
|
|
2134
|
-
|
2135
|
-
|
2136
|
-
attr_accessor :billing_cycle_anchor
|
2137
|
-
# Specifies which fields in the response should be expanded.
|
2138
|
-
attr_accessor :expand
|
2139
|
-
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor` being `unchanged`. When the `billing_cycle_anchor` is set to `now` (default value), no prorations are generated. If no value is passed, the default is `create_prorations`.
|
2140
|
-
attr_accessor :proration_behavior
|
2141
|
-
# If set, prorations will be calculated as though the subscription was resumed at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint.
|
2142
|
-
attr_accessor :proration_date
|
2143
|
-
|
2144
|
-
def initialize(
|
2145
|
-
billing_cycle_anchor: nil,
|
2146
|
-
expand: nil,
|
2147
|
-
proration_behavior: nil,
|
2148
|
-
proration_date: nil
|
2149
|
-
)
|
2150
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
2151
|
-
@expand = expand
|
2152
|
-
@proration_behavior = proration_behavior
|
2153
|
-
@proration_date = proration_date
|
472
|
+
def self.field_remappings
|
473
|
+
@field_remappings = {}
|
2154
474
|
end
|
2155
475
|
end
|
2156
476
|
# ID of the Connect Application that created the subscription.
|
@@ -2183,8 +503,6 @@ module Stripe
|
|
2183
503
|
attr_reader :currency
|
2184
504
|
# ID of the customer who owns the subscription.
|
2185
505
|
attr_reader :customer
|
2186
|
-
# ID of the account who owns the subscription.
|
2187
|
-
attr_reader :customer_account
|
2188
506
|
# Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`.
|
2189
507
|
attr_reader :days_until_due
|
2190
508
|
# ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
|
@@ -2205,8 +523,6 @@ module Stripe
|
|
2205
523
|
attr_reader :invoice_settings
|
2206
524
|
# List of subscription items, each with an attached price.
|
2207
525
|
attr_reader :items
|
2208
|
-
# Details of the most recent price migration that failed for the subscription.
|
2209
|
-
attr_reader :last_price_migration_error
|
2210
526
|
# The most recent invoice this subscription has generated.
|
2211
527
|
attr_reader :latest_invoice
|
2212
528
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
@@ -2229,8 +545,6 @@ module Stripe
|
|
2229
545
|
attr_reader :pending_setup_intent
|
2230
546
|
# If specified, [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
2231
547
|
attr_reader :pending_update
|
2232
|
-
# Time period and invoice for a Subscription billed in advance.
|
2233
|
-
attr_reader :prebilling
|
2234
548
|
# The schedule attached to the subscription
|
2235
549
|
attr_reader :schedule
|
2236
550
|
# Date when the subscription was first created. The date might differ from the `created` date due to backdating.
|
@@ -2406,5 +720,26 @@ module Stripe
|
|
2406
720
|
end
|
2407
721
|
|
2408
722
|
save_nested_resource :source
|
723
|
+
|
724
|
+
def self.inner_class_types
|
725
|
+
@inner_class_types = {
|
726
|
+
automatic_tax: AutomaticTax,
|
727
|
+
billing_cycle_anchor_config: BillingCycleAnchorConfig,
|
728
|
+
billing_mode: BillingMode,
|
729
|
+
billing_thresholds: BillingThresholds,
|
730
|
+
cancellation_details: CancellationDetails,
|
731
|
+
invoice_settings: InvoiceSettings,
|
732
|
+
pause_collection: PauseCollection,
|
733
|
+
payment_settings: PaymentSettings,
|
734
|
+
pending_invoice_item_interval: PendingInvoiceItemInterval,
|
735
|
+
pending_update: PendingUpdate,
|
736
|
+
transfer_data: TransferData,
|
737
|
+
trial_settings: TrialSettings,
|
738
|
+
}
|
739
|
+
end
|
740
|
+
|
741
|
+
def self.field_remappings
|
742
|
+
@field_remappings = {}
|
743
|
+
end
|
2409
744
|
end
|
2410
745
|
end
|