stripe 15.5.0 → 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 -2
- data/lib/stripe/api_resource.rb +3 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/event_types.rb +20 -6
- 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 +3 -2
- 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/params/apps/secret_list_params.rb +38 -0
- 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/params/checkout/session_line_item_list_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- 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/params/tax/calculation_list_line_items_params.rb +24 -0
- 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/params/tax/transaction_list_line_items_params.rb +24 -0
- 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 +448 -4265
- data/lib/stripe/resources/account_link.rb +8 -47
- data/lib/stripe/resources/account_session.rb +340 -657
- 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 +92 -0
- 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 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +73 -29
- data/lib/stripe/resources/billing/credit_grant.rb +42 -151
- 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 -170
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/card.rb +17 -1
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +958 -414
- data/lib/stripe/resources/checkout/session.rb +1039 -2501
- 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 +895 -683
- 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 -137
- data/lib/stripe/resources/credit_note.rb +66 -504
- data/lib/stripe/resources/credit_note_line_item.rb +44 -0
- data/lib/stripe/resources/customer.rb +81 -675
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +49 -93
- data/lib/stripe/resources/discount.rb +24 -4
- data/lib/stripe/resources/dispute.rb +159 -365
- 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 +20 -52
- 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 +66 -110
- 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 -55
- 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 -237
- data/lib/stripe/resources/invoice.rb +489 -2882
- data/lib/stripe/resources/invoice_item.rb +69 -309
- data/lib/stripe/resources/invoice_line_item.rb +126 -199
- data/lib/stripe/resources/invoice_payment.rb +20 -42
- 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 -514
- 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 -696
- data/lib/stripe/resources/line_item.rb +24 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +225 -12
- data/lib/stripe/resources/payment_intent.rb +1129 -7346
- data/lib/stripe/resources/payment_link.rb +333 -1357
- data/lib/stripe/resources/payment_method.rb +807 -784
- data/lib/stripe/resources/payment_method_configuration.rb +940 -2311
- 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 +66 -480
- 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 -172
- data/lib/stripe/resources/quote.rb +219 -651
- 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 +367 -152
- 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 +286 -65
- data/lib/stripe/resources/setup_intent.rb +336 -3359
- 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 +268 -583
- 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 +272 -1581
- data/lib/stripe/resources/subscription_item.rb +12 -298
- data/lib/stripe/resources/subscription_schedule.rb +236 -1282
- 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 -65
- data/lib/stripe/resources/tax_rate.rb +12 -142
- data/lib/stripe/resources/terminal/configuration.rb +302 -1173
- 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 -501
- 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 -109
- 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 -639
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- 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 +95 -200
- data/lib/stripe/resources/treasury/received_credit.rb +78 -101
- data/lib/stripe/resources/treasury/received_debit.rb +70 -89
- 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 +4 -2
- 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 -4149
- data/lib/stripe/services/account_session_service.rb +0 -637
- 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 +30 -0
- 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 -48
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -40
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -166
- 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 -173
- data/lib/stripe/services/charge_service.rb +0 -402
- data/lib/stripe/services/checkout/session_line_item_service.rb +0 -18
- data/lib/stripe/services/checkout/session_service.rb +0 -2494
- 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 -151
- 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 -365
- 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 -96
- 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 +0 -96
- data/lib/stripe/services/financial_connections/session_service.rb +0 -68
- data/lib/stripe/services/financial_connections/transaction_service.rb +0 -70
- 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 -247
- data/lib/stripe/services/invoice_item_service.rb +0 -333
- data/lib/stripe/services/invoice_line_item_service.rb +0 -221
- data/lib/stripe/services/invoice_payment_service.rb +0 -55
- data/lib/stripe/services/invoice_rendering_template_service.rb +0 -51
- data/lib/stripe/services/invoice_service.rb +0 -2778
- 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 -525
- 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 -77
- data/lib/stripe/services/mandate_service.rb +0 -9
- data/lib/stripe/services/payment_intent_service.rb +0 -7332
- 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 -2256
- data/lib/stripe/services/payment_method_domain_service.rb +0 -76
- data/lib/stripe/services/payment_method_service.rb +0 -762
- 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 -493
- 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 -179
- 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 +0 -628
- 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 -3275
- 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 -311
- data/lib/stripe/services/subscription_schedule_service.rb +0 -1295
- data/lib/stripe/services/subscription_service.rb +0 -1594
- 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 -78
- data/lib/stripe/services/tax_rate_service.rb +0 -155
- data/lib/stripe/services/terminal/configuration_service.rb +0 -1186
- 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/test_helpers/confirmation_token_service.rb +0 -641
- 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 -60
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -60
- 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 -119
- 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 -166
- data/lib/stripe/services/treasury/financial_account_service.rb +0 -488
- 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 -124
- 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 +2 -1
- 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/webhook_endpoint_service.rb +0 -95
- data/lib/stripe/services.rb +1 -0
- data/lib/stripe/stripe_client.rb +8 -5
- data/lib/stripe/stripe_configuration.rb +1 -6
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +33 -9
- data/lib/stripe/util.rb +24 -13
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +3 -1
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +132984 -0
- metadata +600 -345
- data/API_VERSION +0 -1
- data/CHANGELOG.md +0 -1769
- 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 -426
- 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/resources/v2/event.rb +0 -41
- data/lib/stripe/resources/v2/event_destination.rb +0 -73
- data/lib/stripe/thin_event.rb +0 -37
- data/rbi/stripe/resources/account.rbi +0 -4991
- data/rbi/stripe/resources/account_link.rbi +0 -76
- data/rbi/stripe/resources/account_session.rbi +0 -1173
- data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
- data/rbi/stripe/resources/application.rbi +0 -20
- data/rbi/stripe/resources/application_fee.rbi +0 -118
- data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
- data/rbi/stripe/resources/apps/secret.rbi +0 -195
- data/rbi/stripe/resources/balance.rbi +0 -230
- data/rbi/stripe/resources/balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/bank_account.rbi +0 -127
- data/rbi/stripe/resources/billing/alert.rbi +0 -201
- data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
- data/rbi/stripe/resources/billing/meter.rbi +0 -226
- data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
- data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
- data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
- data/rbi/stripe/resources/capability.rbi +0 -125
- data/rbi/stripe/resources/card.rbi +0 -125
- data/rbi/stripe/resources/cash_balance.rbi +0 -32
- data/rbi/stripe/resources/charge.rbi +0 -2136
- data/rbi/stripe/resources/checkout/session.rbi +0 -4105
- data/rbi/stripe/resources/climate/order.rbi +0 -245
- data/rbi/stripe/resources/climate/product.rbi +0 -75
- data/rbi/stripe/resources/climate/supplier.rbi +0 -72
- data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
- data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
- data/rbi/stripe/resources/country_spec.rbi +0 -85
- data/rbi/stripe/resources/coupon.rbi +0 -250
- data/rbi/stripe/resources/credit_note.rbi +0 -752
- data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
- data/rbi/stripe/resources/customer.rbi +0 -993
- data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
- data/rbi/stripe/resources/customer_session.rbi +0 -200
- data/rbi/stripe/resources/discount.rbi +0 -53
- data/rbi/stripe/resources/dispute.rbi +0 -761
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
- data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
- data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
- data/rbi/stripe/resources/event.rbi +0 -137
- data/rbi/stripe/resources/exchange_rate.rbi +0 -66
- data/rbi/stripe/resources/file.rbi +0 -143
- data/rbi/stripe/resources/file_link.rbi +0 -141
- data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
- data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
- data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
- data/rbi/stripe/resources/forwarding/request.rbi +0 -216
- data/rbi/stripe/resources/funding_instructions.rbi +0 -437
- data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
- data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
- data/rbi/stripe/resources/invoice.rbi +0 -3894
- data/rbi/stripe/resources/invoice_item.rbi +0 -470
- data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
- data/rbi/stripe/resources/invoice_payment.rbi +0 -121
- data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
- data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
- data/rbi/stripe/resources/issuing/card.rbi +0 -749
- data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
- data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
- data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
- data/rbi/stripe/resources/issuing/token.rbi +0 -226
- data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
- data/rbi/stripe/resources/line_item.rbi +0 -72
- data/rbi/stripe/resources/login_link.rbi +0 -19
- data/rbi/stripe/resources/mandate.rbi +0 -191
- data/rbi/stripe/resources/payment_intent.rbi +0 -10011
- data/rbi/stripe/resources/payment_link.rbi +0 -1891
- data/rbi/stripe/resources/payment_method.rbi +0 -1770
- data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
- data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
- data/rbi/stripe/resources/payout.rbi +0 -307
- data/rbi/stripe/resources/person.rbi +0 -401
- data/rbi/stripe/resources/plan.rbi +0 -371
- data/rbi/stripe/resources/price.rbi +0 -694
- data/rbi/stripe/resources/product.rbi +0 -553
- data/rbi/stripe/resources/product_feature.rbi +0 -26
- data/rbi/stripe/resources/promotion_code.rbi +0 -264
- data/rbi/stripe/resources/quote.rbi +0 -1137
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
- data/rbi/stripe/resources/radar/value_list.rbi +0 -168
- data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
- data/rbi/stripe/resources/refund.rbi +0 -523
- data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
- data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
- data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
- data/rbi/stripe/resources/reversal.rbi +0 -51
- data/rbi/stripe/resources/review.rbi +0 -154
- data/rbi/stripe/resources/setup_attempt.rbi +0 -477
- data/rbi/stripe/resources/setup_intent.rbi +0 -3974
- data/rbi/stripe/resources/shipping_rate.rbi +0 -305
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
- data/rbi/stripe/resources/source.rbi +0 -1496
- data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
- data/rbi/stripe/resources/source_transaction.rbi +0 -127
- data/rbi/stripe/resources/subscription.rbi +0 -2154
- data/rbi/stripe/resources/subscription_item.rbi +0 -404
- data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
- data/rbi/stripe/resources/tax/calculation.rbi +0 -478
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
- data/rbi/stripe/resources/tax/registration.rbi +0 -3216
- data/rbi/stripe/resources/tax/settings.rbi +0 -141
- data/rbi/stripe/resources/tax/transaction.rbi +0 -351
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
- data/rbi/stripe/resources/tax_code.rbi +0 -44
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
- data/rbi/stripe/resources/tax_id.rbi +0 -165
- data/rbi/stripe/resources/tax_rate.rbi +0 -239
- data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
- data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
- data/rbi/stripe/resources/terminal/location.rbi +0 -222
- data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
- data/rbi/stripe/resources/token.rbi +0 -1281
- data/rbi/stripe/resources/topup.rbi +0 -222
- data/rbi/stripe/resources/transfer.rbi +0 -199
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
- data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
- data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
- data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
- data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
- data/rbi/stripe/resources/v2/amount.rbi +0 -14
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
- data/rbi/stripe/resources/v2/event.rbi +0 -48
- data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
- data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
- data/rbi/stripe/services/account_capability_service.rbi +0 -51
- data/rbi/stripe/services/account_external_account_service.rbi +0 -304
- data/rbi/stripe/services/account_link_service.rbi +0 -60
- data/rbi/stripe/services/account_login_link_service.rbi +0 -22
- data/rbi/stripe/services/account_person_service.rbi +0 -1007
- data/rbi/stripe/services/account_service.rbi +0 -4281
- data/rbi/stripe/services/account_session_service.rbi +0 -748
- data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
- data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
- data/rbi/stripe/services/application_fee_service.rbi +0 -78
- data/rbi/stripe/services/apps/secret_service.rbi +0 -151
- data/rbi/stripe/services/apps_service.rbi +0 -9
- data/rbi/stripe/services/balance_service.rbi +0 -21
- data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
- data/rbi/stripe/services/billing/alert_service.rbi +0 -152
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
- data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
- data/rbi/stripe/services/billing/meter_service.rbi +0 -163
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
- data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
- data/rbi/stripe/services/billing_portal_service.rbi +0 -10
- data/rbi/stripe/services/billing_service.rbi +0 -15
- data/rbi/stripe/services/charge_service.rbi +0 -448
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
- data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
- data/rbi/stripe/services/checkout_service.rbi +0 -9
- data/rbi/stripe/services/climate/order_service.rbi +0 -142
- data/rbi/stripe/services/climate/product_service.rbi +0 -46
- data/rbi/stripe/services/climate/supplier_service.rbi +0 -46
- data/rbi/stripe/services/climate_service.rbi +0 -11
- data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
- data/rbi/stripe/services/country_spec_service.rbi +0 -44
- data/rbi/stripe/services/coupon_service.rbi +0 -194
- data/rbi/stripe/services/credit_note_line_item_service.rbi +0 -31
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
- data/rbi/stripe/services/credit_note_service.rbi +0 -415
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
- data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
- data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
- data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
- data/rbi/stripe/services/customer_service.rbi +0 -635
- data/rbi/stripe/services/customer_session_service.rbi +0 -116
- data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
- data/rbi/stripe/services/dispute_service.rbi +0 -424
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
- data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
- data/rbi/stripe/services/entitlements_service.rbi +0 -10
- data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
- data/rbi/stripe/services/event_service.rbi +0 -83
- data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
- data/rbi/stripe/services/file_link_service.rbi +0 -124
- data/rbi/stripe/services/file_service.rbi +0 -116
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
- data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
- data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
- data/rbi/stripe/services/financial_connections_service.rbi +0 -11
- data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
- data/rbi/stripe/services/forwarding_service.rbi +0 -9
- data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
- data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
- data/rbi/stripe/services/identity_service.rbi +0 -10
- data/rbi/stripe/services/invoice_item_service.rbi +0 -366
- data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
- data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
- data/rbi/stripe/services/invoice_service.rbi +0 -3073
- data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
- data/rbi/stripe/services/issuing/card_service.rbi +0 -503
- data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
- data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
- data/rbi/stripe/services/issuing/token_service.rbi +0 -99
- data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
- data/rbi/stripe/services/issuing_service.rbi +0 -16
- data/rbi/stripe/services/mandate_service.rbi +0 -20
- data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
- data/rbi/stripe/services/payment_link_line_item_service.rbi +0 -31
- data/rbi/stripe/services/payment_link_service.rbi +0 -1441
- data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
- data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
- data/rbi/stripe/services/payment_method_service.rbi +0 -781
- data/rbi/stripe/services/payout_service.rbi +0 -209
- data/rbi/stripe/services/plan_service.rbi +0 -282
- data/rbi/stripe/services/price_service.rbi +0 -546
- data/rbi/stripe/services/product_feature_service.rbi +0 -67
- data/rbi/stripe/services/product_service.rbi +0 -477
- data/rbi/stripe/services/promotion_code_service.rbi +0 -214
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
- data/rbi/stripe/services/quote_line_item_service.rbi +0 -31
- data/rbi/stripe/services/quote_service.rbi +0 -695
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
- data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
- data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
- data/rbi/stripe/services/radar_service.rbi +0 -11
- data/rbi/stripe/services/refund_service.rbi +0 -185
- data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
- data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
- data/rbi/stripe/services/reporting_service.rbi +0 -10
- data/rbi/stripe/services/review_service.rbi +0 -84
- data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
- data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
- data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
- data/rbi/stripe/services/sigma_service.rbi +0 -9
- data/rbi/stripe/services/source_service.rbi +0 -663
- data/rbi/stripe/services/source_transaction_service.rbi +0 -31
- data/rbi/stripe/services/subscription_item_service.rbi +0 -350
- data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
- data/rbi/stripe/services/subscription_service.rbi +0 -1768
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +0 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
- data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
- data/rbi/stripe/services/tax/settings_service.rbi +0 -93
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +0 -33
- data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
- data/rbi/stripe/services/tax_code_service.rbi +0 -44
- data/rbi/stripe/services/tax_id_service.rbi +0 -110
- data/rbi/stripe/services/tax_rate_service.rbi +0 -185
- data/rbi/stripe/services/tax_service.rbi +0 -12
- data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
- data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
- data/rbi/stripe/services/terminal/location_service.rbi +0 -182
- data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
- data/rbi/stripe/services/terminal_service.rbi +0 -12
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
- data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
- data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
- data/rbi/stripe/services/test_helpers_service.rbi +0 -15
- data/rbi/stripe/services/token_service.rbi +0 -1255
- data/rbi/stripe/services/topup_service.rbi +0 -176
- data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
- data/rbi/stripe/services/transfer_service.rbi +0 -152
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
- data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
- data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
- data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
- data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
- data/rbi/stripe/services/treasury_service.rbi +0 -18
- data/rbi/stripe/services/v1_services.rbi +0 -77
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
- data/rbi/stripe/services/v2/billing_service.rbi +0 -14
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
- data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
- data/rbi/stripe/services/v2/core_service.rbi +0 -12
- data/rbi/stripe/services/v2_services.rbi +0 -10
- data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
- data/stripe.gemspec +0 -44
@@ -16,10 +16,32 @@ module Stripe
|
|
16
16
|
end
|
17
17
|
|
18
18
|
class BillingMode < Stripe::StripeObject
|
19
|
+
class Flexible < Stripe::StripeObject
|
20
|
+
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
21
|
+
attr_reader :proration_discounts
|
22
|
+
|
23
|
+
def self.inner_class_types
|
24
|
+
@inner_class_types = {}
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.field_remappings
|
28
|
+
@field_remappings = {}
|
29
|
+
end
|
30
|
+
end
|
31
|
+
# Configure behavior for flexible billing mode
|
32
|
+
attr_reader :flexible
|
19
33
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
20
34
|
attr_reader :type
|
21
35
|
# Details on when the current billing_mode was adopted.
|
22
36
|
attr_reader :updated_at
|
37
|
+
|
38
|
+
def self.inner_class_types
|
39
|
+
@inner_class_types = { flexible: Flexible }
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.field_remappings
|
43
|
+
@field_remappings = {}
|
44
|
+
end
|
23
45
|
end
|
24
46
|
|
25
47
|
class CurrentPhase < Stripe::StripeObject
|
@@ -27,6 +49,14 @@ module Stripe
|
|
27
49
|
attr_reader :end_date
|
28
50
|
# The start of this phase of the subscription schedule.
|
29
51
|
attr_reader :start_date
|
52
|
+
|
53
|
+
def self.inner_class_types
|
54
|
+
@inner_class_types = {}
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.field_remappings
|
58
|
+
@field_remappings = {}
|
59
|
+
end
|
30
60
|
end
|
31
61
|
|
32
62
|
class DefaultSettings < Stripe::StripeObject
|
@@ -36,6 +66,14 @@ module Stripe
|
|
36
66
|
attr_reader :account
|
37
67
|
# Type of the account referenced.
|
38
68
|
attr_reader :type
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
39
77
|
end
|
40
78
|
# If Stripe disabled automatic tax, this enum describes why.
|
41
79
|
attr_reader :disabled_reason
|
@@ -43,6 +81,14 @@ module Stripe
|
|
43
81
|
attr_reader :enabled
|
44
82
|
# 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.
|
45
83
|
attr_reader :liability
|
84
|
+
|
85
|
+
def self.inner_class_types
|
86
|
+
@inner_class_types = { liability: Liability }
|
87
|
+
end
|
88
|
+
|
89
|
+
def self.field_remappings
|
90
|
+
@field_remappings = {}
|
91
|
+
end
|
46
92
|
end
|
47
93
|
|
48
94
|
class BillingThresholds < Stripe::StripeObject
|
@@ -50,6 +96,14 @@ module Stripe
|
|
50
96
|
attr_reader :amount_gte
|
51
97
|
# 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`.
|
52
98
|
attr_reader :reset_billing_cycle_anchor
|
99
|
+
|
100
|
+
def self.inner_class_types
|
101
|
+
@inner_class_types = {}
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.field_remappings
|
105
|
+
@field_remappings = {}
|
106
|
+
end
|
53
107
|
end
|
54
108
|
|
55
109
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -58,6 +112,14 @@ module Stripe
|
|
58
112
|
attr_reader :account
|
59
113
|
# Type of the account referenced.
|
60
114
|
attr_reader :type
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = {}
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
61
123
|
end
|
62
124
|
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
63
125
|
attr_reader :account_tax_ids
|
@@ -65,6 +127,14 @@ module Stripe
|
|
65
127
|
attr_reader :days_until_due
|
66
128
|
# Attribute for field issuer
|
67
129
|
attr_reader :issuer
|
130
|
+
|
131
|
+
def self.inner_class_types
|
132
|
+
@inner_class_types = { issuer: Issuer }
|
133
|
+
end
|
134
|
+
|
135
|
+
def self.field_remappings
|
136
|
+
@field_remappings = {}
|
137
|
+
end
|
68
138
|
end
|
69
139
|
|
70
140
|
class TransferData < Stripe::StripeObject
|
@@ -72,6 +142,14 @@ module Stripe
|
|
72
142
|
attr_reader :amount_percent
|
73
143
|
# The account where funds from the payment will be transferred to upon payment success.
|
74
144
|
attr_reader :destination
|
145
|
+
|
146
|
+
def self.inner_class_types
|
147
|
+
@inner_class_types = {}
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.field_remappings
|
151
|
+
@field_remappings = {}
|
152
|
+
end
|
75
153
|
end
|
76
154
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
|
77
155
|
attr_reader :application_fee_percent
|
@@ -93,6 +171,19 @@ module Stripe
|
|
93
171
|
attr_reader :on_behalf_of
|
94
172
|
# The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
95
173
|
attr_reader :transfer_data
|
174
|
+
|
175
|
+
def self.inner_class_types
|
176
|
+
@inner_class_types = {
|
177
|
+
automatic_tax: AutomaticTax,
|
178
|
+
billing_thresholds: BillingThresholds,
|
179
|
+
invoice_settings: InvoiceSettings,
|
180
|
+
transfer_data: TransferData,
|
181
|
+
}
|
182
|
+
end
|
183
|
+
|
184
|
+
def self.field_remappings
|
185
|
+
@field_remappings = {}
|
186
|
+
end
|
96
187
|
end
|
97
188
|
|
98
189
|
class Phase < Stripe::StripeObject
|
@@ -104,6 +195,14 @@ module Stripe
|
|
104
195
|
attr_reader :discount
|
105
196
|
# ID of the promotion code to create a new discount for.
|
106
197
|
attr_reader :promotion_code
|
198
|
+
|
199
|
+
def self.inner_class_types
|
200
|
+
@inner_class_types = {}
|
201
|
+
end
|
202
|
+
|
203
|
+
def self.field_remappings
|
204
|
+
@field_remappings = {}
|
205
|
+
end
|
107
206
|
end
|
108
207
|
|
109
208
|
class Period < Stripe::StripeObject
|
@@ -112,6 +211,14 @@ module Stripe
|
|
112
211
|
attr_reader :timestamp
|
113
212
|
# Select how to calculate the end of the invoice item period.
|
114
213
|
attr_reader :type
|
214
|
+
|
215
|
+
def self.inner_class_types
|
216
|
+
@inner_class_types = {}
|
217
|
+
end
|
218
|
+
|
219
|
+
def self.field_remappings
|
220
|
+
@field_remappings = {}
|
221
|
+
end
|
115
222
|
end
|
116
223
|
|
117
224
|
class Start < Stripe::StripeObject
|
@@ -119,11 +226,27 @@ module Stripe
|
|
119
226
|
attr_reader :timestamp
|
120
227
|
# Select how to calculate the start of the invoice item period.
|
121
228
|
attr_reader :type
|
229
|
+
|
230
|
+
def self.inner_class_types
|
231
|
+
@inner_class_types = {}
|
232
|
+
end
|
233
|
+
|
234
|
+
def self.field_remappings
|
235
|
+
@field_remappings = {}
|
236
|
+
end
|
122
237
|
end
|
123
238
|
# Attribute for field end
|
124
239
|
attr_reader :end
|
125
240
|
# Attribute for field start
|
126
241
|
attr_reader :start
|
242
|
+
|
243
|
+
def self.inner_class_types
|
244
|
+
@inner_class_types = { end: End, start: Start }
|
245
|
+
end
|
246
|
+
|
247
|
+
def self.field_remappings
|
248
|
+
@field_remappings = {}
|
249
|
+
end
|
127
250
|
end
|
128
251
|
# The stackable discounts that will be applied to the item.
|
129
252
|
attr_reader :discounts
|
@@ -137,6 +260,14 @@ module Stripe
|
|
137
260
|
attr_reader :quantity
|
138
261
|
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
139
262
|
attr_reader :tax_rates
|
263
|
+
|
264
|
+
def self.inner_class_types
|
265
|
+
@inner_class_types = { discounts: Discount, period: Period }
|
266
|
+
end
|
267
|
+
|
268
|
+
def self.field_remappings
|
269
|
+
@field_remappings = {}
|
270
|
+
end
|
140
271
|
end
|
141
272
|
|
142
273
|
class AutomaticTax < Stripe::StripeObject
|
@@ -145,6 +276,14 @@ module Stripe
|
|
145
276
|
attr_reader :account
|
146
277
|
# Type of the account referenced.
|
147
278
|
attr_reader :type
|
279
|
+
|
280
|
+
def self.inner_class_types
|
281
|
+
@inner_class_types = {}
|
282
|
+
end
|
283
|
+
|
284
|
+
def self.field_remappings
|
285
|
+
@field_remappings = {}
|
286
|
+
end
|
148
287
|
end
|
149
288
|
# If Stripe disabled automatic tax, this enum describes why.
|
150
289
|
attr_reader :disabled_reason
|
@@ -152,6 +291,14 @@ module Stripe
|
|
152
291
|
attr_reader :enabled
|
153
292
|
# 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.
|
154
293
|
attr_reader :liability
|
294
|
+
|
295
|
+
def self.inner_class_types
|
296
|
+
@inner_class_types = { liability: Liability }
|
297
|
+
end
|
298
|
+
|
299
|
+
def self.field_remappings
|
300
|
+
@field_remappings = {}
|
301
|
+
end
|
155
302
|
end
|
156
303
|
|
157
304
|
class BillingThresholds < Stripe::StripeObject
|
@@ -159,6 +306,14 @@ module Stripe
|
|
159
306
|
attr_reader :amount_gte
|
160
307
|
# 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`.
|
161
308
|
attr_reader :reset_billing_cycle_anchor
|
309
|
+
|
310
|
+
def self.inner_class_types
|
311
|
+
@inner_class_types = {}
|
312
|
+
end
|
313
|
+
|
314
|
+
def self.field_remappings
|
315
|
+
@field_remappings = {}
|
316
|
+
end
|
162
317
|
end
|
163
318
|
|
164
319
|
class Discount < Stripe::StripeObject
|
@@ -168,6 +323,14 @@ module Stripe
|
|
168
323
|
attr_reader :discount
|
169
324
|
# ID of the promotion code to create a new discount for.
|
170
325
|
attr_reader :promotion_code
|
326
|
+
|
327
|
+
def self.inner_class_types
|
328
|
+
@inner_class_types = {}
|
329
|
+
end
|
330
|
+
|
331
|
+
def self.field_remappings
|
332
|
+
@field_remappings = {}
|
333
|
+
end
|
171
334
|
end
|
172
335
|
|
173
336
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -176,6 +339,14 @@ module Stripe
|
|
176
339
|
attr_reader :account
|
177
340
|
# Type of the account referenced.
|
178
341
|
attr_reader :type
|
342
|
+
|
343
|
+
def self.inner_class_types
|
344
|
+
@inner_class_types = {}
|
345
|
+
end
|
346
|
+
|
347
|
+
def self.field_remappings
|
348
|
+
@field_remappings = {}
|
349
|
+
end
|
179
350
|
end
|
180
351
|
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
181
352
|
attr_reader :account_tax_ids
|
@@ -183,12 +354,28 @@ module Stripe
|
|
183
354
|
attr_reader :days_until_due
|
184
355
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
185
356
|
attr_reader :issuer
|
357
|
+
|
358
|
+
def self.inner_class_types
|
359
|
+
@inner_class_types = { issuer: Issuer }
|
360
|
+
end
|
361
|
+
|
362
|
+
def self.field_remappings
|
363
|
+
@field_remappings = {}
|
364
|
+
end
|
186
365
|
end
|
187
366
|
|
188
367
|
class Item < Stripe::StripeObject
|
189
368
|
class BillingThresholds < Stripe::StripeObject
|
190
369
|
# Usage threshold that triggers the subscription to create an invoice
|
191
370
|
attr_reader :usage_gte
|
371
|
+
|
372
|
+
def self.inner_class_types
|
373
|
+
@inner_class_types = {}
|
374
|
+
end
|
375
|
+
|
376
|
+
def self.field_remappings
|
377
|
+
@field_remappings = {}
|
378
|
+
end
|
192
379
|
end
|
193
380
|
|
194
381
|
class Discount < Stripe::StripeObject
|
@@ -198,6 +385,14 @@ module Stripe
|
|
198
385
|
attr_reader :discount
|
199
386
|
# ID of the promotion code to create a new discount for.
|
200
387
|
attr_reader :promotion_code
|
388
|
+
|
389
|
+
def self.inner_class_types
|
390
|
+
@inner_class_types = {}
|
391
|
+
end
|
392
|
+
|
393
|
+
def self.field_remappings
|
394
|
+
@field_remappings = {}
|
395
|
+
end
|
201
396
|
end
|
202
397
|
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
203
398
|
attr_reader :billing_thresholds
|
@@ -213,6 +408,14 @@ module Stripe
|
|
213
408
|
attr_reader :quantity
|
214
409
|
# The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
215
410
|
attr_reader :tax_rates
|
411
|
+
|
412
|
+
def self.inner_class_types
|
413
|
+
@inner_class_types = { billing_thresholds: BillingThresholds, discounts: Discount }
|
414
|
+
end
|
415
|
+
|
416
|
+
def self.field_remappings
|
417
|
+
@field_remappings = {}
|
418
|
+
end
|
216
419
|
end
|
217
420
|
|
218
421
|
class TransferData < Stripe::StripeObject
|
@@ -220,6 +423,14 @@ module Stripe
|
|
220
423
|
attr_reader :amount_percent
|
221
424
|
# The account where funds from the payment will be transferred to upon payment success.
|
222
425
|
attr_reader :destination
|
426
|
+
|
427
|
+
def self.inner_class_types
|
428
|
+
@inner_class_types = {}
|
429
|
+
end
|
430
|
+
|
431
|
+
def self.field_remappings
|
432
|
+
@field_remappings = {}
|
433
|
+
end
|
223
434
|
end
|
224
435
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
225
436
|
attr_reader :add_invoice_items
|
@@ -261,1291 +472,21 @@ module Stripe
|
|
261
472
|
attr_reader :transfer_data
|
262
473
|
# When the trial ends within the phase.
|
263
474
|
attr_reader :trial_end
|
264
|
-
end
|
265
|
-
|
266
|
-
class ListParams < Stripe::RequestParams
|
267
|
-
class CanceledAt < Stripe::RequestParams
|
268
|
-
# Minimum value to filter by (exclusive)
|
269
|
-
attr_accessor :gt
|
270
|
-
# Minimum value to filter by (inclusive)
|
271
|
-
attr_accessor :gte
|
272
|
-
# Maximum value to filter by (exclusive)
|
273
|
-
attr_accessor :lt
|
274
|
-
# Maximum value to filter by (inclusive)
|
275
|
-
attr_accessor :lte
|
276
|
-
|
277
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
278
|
-
@gt = gt
|
279
|
-
@gte = gte
|
280
|
-
@lt = lt
|
281
|
-
@lte = lte
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
|
-
class CompletedAt < Stripe::RequestParams
|
286
|
-
# Minimum value to filter by (exclusive)
|
287
|
-
attr_accessor :gt
|
288
|
-
# Minimum value to filter by (inclusive)
|
289
|
-
attr_accessor :gte
|
290
|
-
# Maximum value to filter by (exclusive)
|
291
|
-
attr_accessor :lt
|
292
|
-
# Maximum value to filter by (inclusive)
|
293
|
-
attr_accessor :lte
|
294
|
-
|
295
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
296
|
-
@gt = gt
|
297
|
-
@gte = gte
|
298
|
-
@lt = lt
|
299
|
-
@lte = lte
|
300
|
-
end
|
301
|
-
end
|
302
|
-
|
303
|
-
class Created < Stripe::RequestParams
|
304
|
-
# Minimum value to filter by (exclusive)
|
305
|
-
attr_accessor :gt
|
306
|
-
# Minimum value to filter by (inclusive)
|
307
|
-
attr_accessor :gte
|
308
|
-
# Maximum value to filter by (exclusive)
|
309
|
-
attr_accessor :lt
|
310
|
-
# Maximum value to filter by (inclusive)
|
311
|
-
attr_accessor :lte
|
312
|
-
|
313
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
314
|
-
@gt = gt
|
315
|
-
@gte = gte
|
316
|
-
@lt = lt
|
317
|
-
@lte = lte
|
318
|
-
end
|
319
|
-
end
|
320
|
-
|
321
|
-
class ReleasedAt < Stripe::RequestParams
|
322
|
-
# Minimum value to filter by (exclusive)
|
323
|
-
attr_accessor :gt
|
324
|
-
# Minimum value to filter by (inclusive)
|
325
|
-
attr_accessor :gte
|
326
|
-
# Maximum value to filter by (exclusive)
|
327
|
-
attr_accessor :lt
|
328
|
-
# Maximum value to filter by (inclusive)
|
329
|
-
attr_accessor :lte
|
330
|
-
|
331
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
332
|
-
@gt = gt
|
333
|
-
@gte = gte
|
334
|
-
@lt = lt
|
335
|
-
@lte = lte
|
336
|
-
end
|
337
|
-
end
|
338
|
-
# Only return subscription schedules that were created canceled the given date interval.
|
339
|
-
attr_accessor :canceled_at
|
340
|
-
# Only return subscription schedules that completed during the given date interval.
|
341
|
-
attr_accessor :completed_at
|
342
|
-
# Only return subscription schedules that were created during the given date interval.
|
343
|
-
attr_accessor :created
|
344
|
-
# Only return subscription schedules for the given customer.
|
345
|
-
attr_accessor :customer
|
346
|
-
# 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.
|
347
|
-
attr_accessor :ending_before
|
348
|
-
# Specifies which fields in the response should be expanded.
|
349
|
-
attr_accessor :expand
|
350
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
351
|
-
attr_accessor :limit
|
352
|
-
# Only return subscription schedules that were released during the given date interval.
|
353
|
-
attr_accessor :released_at
|
354
|
-
# Only return subscription schedules that have not started yet.
|
355
|
-
attr_accessor :scheduled
|
356
|
-
# 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.
|
357
|
-
attr_accessor :starting_after
|
358
|
-
|
359
|
-
def initialize(
|
360
|
-
canceled_at: nil,
|
361
|
-
completed_at: nil,
|
362
|
-
created: nil,
|
363
|
-
customer: nil,
|
364
|
-
ending_before: nil,
|
365
|
-
expand: nil,
|
366
|
-
limit: nil,
|
367
|
-
released_at: nil,
|
368
|
-
scheduled: nil,
|
369
|
-
starting_after: nil
|
370
|
-
)
|
371
|
-
@canceled_at = canceled_at
|
372
|
-
@completed_at = completed_at
|
373
|
-
@created = created
|
374
|
-
@customer = customer
|
375
|
-
@ending_before = ending_before
|
376
|
-
@expand = expand
|
377
|
-
@limit = limit
|
378
|
-
@released_at = released_at
|
379
|
-
@scheduled = scheduled
|
380
|
-
@starting_after = starting_after
|
381
|
-
end
|
382
|
-
end
|
383
|
-
|
384
|
-
class CreateParams < Stripe::RequestParams
|
385
|
-
class BillingMode < Stripe::RequestParams
|
386
|
-
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
|
387
|
-
attr_accessor :type
|
388
|
-
|
389
|
-
def initialize(type: nil)
|
390
|
-
@type = type
|
391
|
-
end
|
392
|
-
end
|
393
|
-
|
394
|
-
class DefaultSettings < Stripe::RequestParams
|
395
|
-
class AutomaticTax < Stripe::RequestParams
|
396
|
-
class Liability < Stripe::RequestParams
|
397
|
-
# The connected account being referenced when `type` is `account`.
|
398
|
-
attr_accessor :account
|
399
|
-
# Type of the account referenced in the request.
|
400
|
-
attr_accessor :type
|
401
|
-
|
402
|
-
def initialize(account: nil, type: nil)
|
403
|
-
@account = account
|
404
|
-
@type = type
|
405
|
-
end
|
406
|
-
end
|
407
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
408
|
-
attr_accessor :enabled
|
409
|
-
# 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.
|
410
|
-
attr_accessor :liability
|
411
|
-
|
412
|
-
def initialize(enabled: nil, liability: nil)
|
413
|
-
@enabled = enabled
|
414
|
-
@liability = liability
|
415
|
-
end
|
416
|
-
end
|
417
|
-
|
418
|
-
class BillingThresholds < Stripe::RequestParams
|
419
|
-
# Monetary threshold that triggers the subscription to advance to a new billing period
|
420
|
-
attr_accessor :amount_gte
|
421
|
-
# 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.
|
422
|
-
attr_accessor :reset_billing_cycle_anchor
|
423
|
-
|
424
|
-
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
425
|
-
@amount_gte = amount_gte
|
426
|
-
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
427
|
-
end
|
428
|
-
end
|
429
|
-
|
430
|
-
class InvoiceSettings < Stripe::RequestParams
|
431
|
-
class Issuer < Stripe::RequestParams
|
432
|
-
# The connected account being referenced when `type` is `account`.
|
433
|
-
attr_accessor :account
|
434
|
-
# Type of the account referenced in the request.
|
435
|
-
attr_accessor :type
|
436
|
-
|
437
|
-
def initialize(account: nil, type: nil)
|
438
|
-
@account = account
|
439
|
-
@type = type
|
440
|
-
end
|
441
|
-
end
|
442
|
-
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
443
|
-
attr_accessor :account_tax_ids
|
444
|
-
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
|
445
|
-
attr_accessor :days_until_due
|
446
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
447
|
-
attr_accessor :issuer
|
448
|
-
|
449
|
-
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil)
|
450
|
-
@account_tax_ids = account_tax_ids
|
451
|
-
@days_until_due = days_until_due
|
452
|
-
@issuer = issuer
|
453
|
-
end
|
454
|
-
end
|
455
|
-
|
456
|
-
class TransferData < Stripe::RequestParams
|
457
|
-
# 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.
|
458
|
-
attr_accessor :amount_percent
|
459
|
-
# ID of an existing, connected Stripe account.
|
460
|
-
attr_accessor :destination
|
461
|
-
|
462
|
-
def initialize(amount_percent: nil, destination: nil)
|
463
|
-
@amount_percent = amount_percent
|
464
|
-
@destination = destination
|
465
|
-
end
|
466
|
-
end
|
467
|
-
# 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).
|
468
|
-
attr_accessor :application_fee_percent
|
469
|
-
# Default settings for automatic tax computation.
|
470
|
-
attr_accessor :automatic_tax
|
471
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
472
|
-
attr_accessor :billing_cycle_anchor
|
473
|
-
# 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.
|
474
|
-
attr_accessor :billing_thresholds
|
475
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing 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` on creation.
|
476
|
-
attr_accessor :collection_method
|
477
|
-
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
478
|
-
attr_accessor :default_payment_method
|
479
|
-
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
480
|
-
attr_accessor :description
|
481
|
-
# All invoices will be billed using the specified settings.
|
482
|
-
attr_accessor :invoice_settings
|
483
|
-
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
484
|
-
attr_accessor :on_behalf_of
|
485
|
-
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
486
|
-
attr_accessor :transfer_data
|
487
|
-
|
488
|
-
def initialize(
|
489
|
-
application_fee_percent: nil,
|
490
|
-
automatic_tax: nil,
|
491
|
-
billing_cycle_anchor: nil,
|
492
|
-
billing_thresholds: nil,
|
493
|
-
collection_method: nil,
|
494
|
-
default_payment_method: nil,
|
495
|
-
description: nil,
|
496
|
-
invoice_settings: nil,
|
497
|
-
on_behalf_of: nil,
|
498
|
-
transfer_data: nil
|
499
|
-
)
|
500
|
-
@application_fee_percent = application_fee_percent
|
501
|
-
@automatic_tax = automatic_tax
|
502
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
503
|
-
@billing_thresholds = billing_thresholds
|
504
|
-
@collection_method = collection_method
|
505
|
-
@default_payment_method = default_payment_method
|
506
|
-
@description = description
|
507
|
-
@invoice_settings = invoice_settings
|
508
|
-
@on_behalf_of = on_behalf_of
|
509
|
-
@transfer_data = transfer_data
|
510
|
-
end
|
511
|
-
end
|
512
|
-
|
513
|
-
class Phase < Stripe::RequestParams
|
514
|
-
class AddInvoiceItem < Stripe::RequestParams
|
515
|
-
class Discount < Stripe::RequestParams
|
516
|
-
# ID of the coupon to create a new discount for.
|
517
|
-
attr_accessor :coupon
|
518
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
519
|
-
attr_accessor :discount
|
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, promotion_code: nil)
|
524
|
-
@coupon = coupon
|
525
|
-
@discount = discount
|
526
|
-
@promotion_code = promotion_code
|
527
|
-
end
|
528
|
-
end
|
529
|
-
|
530
|
-
class Period < Stripe::RequestParams
|
531
|
-
class End < Stripe::RequestParams
|
532
|
-
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
533
|
-
attr_accessor :timestamp
|
534
|
-
# Select how to calculate the end of the invoice item period.
|
535
|
-
attr_accessor :type
|
536
|
-
|
537
|
-
def initialize(timestamp: nil, type: nil)
|
538
|
-
@timestamp = timestamp
|
539
|
-
@type = type
|
540
|
-
end
|
541
|
-
end
|
542
|
-
|
543
|
-
class Start < Stripe::RequestParams
|
544
|
-
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
545
|
-
attr_accessor :timestamp
|
546
|
-
# Select how to calculate the start of the invoice item period.
|
547
|
-
attr_accessor :type
|
548
|
-
|
549
|
-
def initialize(timestamp: nil, type: nil)
|
550
|
-
@timestamp = timestamp
|
551
|
-
@type = type
|
552
|
-
end
|
553
|
-
end
|
554
|
-
# End of the invoice item period.
|
555
|
-
attr_accessor :end
|
556
|
-
# Start of the invoice item period.
|
557
|
-
attr_accessor :start
|
558
|
-
|
559
|
-
def initialize(end_: nil, start: nil)
|
560
|
-
@end = end_
|
561
|
-
@start = start
|
562
|
-
end
|
563
|
-
end
|
564
|
-
|
565
|
-
class PriceData < Stripe::RequestParams
|
566
|
-
# 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).
|
567
|
-
attr_accessor :currency
|
568
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
569
|
-
attr_accessor :product
|
570
|
-
# 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.
|
571
|
-
attr_accessor :tax_behavior
|
572
|
-
# 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.
|
573
|
-
attr_accessor :unit_amount
|
574
|
-
# 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.
|
575
|
-
attr_accessor :unit_amount_decimal
|
576
|
-
|
577
|
-
def initialize(
|
578
|
-
currency: nil,
|
579
|
-
product: nil,
|
580
|
-
tax_behavior: nil,
|
581
|
-
unit_amount: nil,
|
582
|
-
unit_amount_decimal: nil
|
583
|
-
)
|
584
|
-
@currency = currency
|
585
|
-
@product = product
|
586
|
-
@tax_behavior = tax_behavior
|
587
|
-
@unit_amount = unit_amount
|
588
|
-
@unit_amount_decimal = unit_amount_decimal
|
589
|
-
end
|
590
|
-
end
|
591
|
-
# The coupons to redeem into discounts for the item.
|
592
|
-
attr_accessor :discounts
|
593
|
-
# 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`.
|
594
|
-
attr_accessor :metadata
|
595
|
-
# The period associated with this invoice item. Defaults to the period of the underlying subscription that surrounds the start of the phase.
|
596
|
-
attr_accessor :period
|
597
|
-
# The ID of the price object. One of `price` or `price_data` is required.
|
598
|
-
attr_accessor :price
|
599
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
600
|
-
attr_accessor :price_data
|
601
|
-
# Quantity for this item. Defaults to 1.
|
602
|
-
attr_accessor :quantity
|
603
|
-
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
604
|
-
attr_accessor :tax_rates
|
605
|
-
|
606
|
-
def initialize(
|
607
|
-
discounts: nil,
|
608
|
-
metadata: nil,
|
609
|
-
period: nil,
|
610
|
-
price: nil,
|
611
|
-
price_data: nil,
|
612
|
-
quantity: nil,
|
613
|
-
tax_rates: nil
|
614
|
-
)
|
615
|
-
@discounts = discounts
|
616
|
-
@metadata = metadata
|
617
|
-
@period = period
|
618
|
-
@price = price
|
619
|
-
@price_data = price_data
|
620
|
-
@quantity = quantity
|
621
|
-
@tax_rates = tax_rates
|
622
|
-
end
|
623
|
-
end
|
624
|
-
|
625
|
-
class AutomaticTax < Stripe::RequestParams
|
626
|
-
class Liability < Stripe::RequestParams
|
627
|
-
# The connected account being referenced when `type` is `account`.
|
628
|
-
attr_accessor :account
|
629
|
-
# Type of the account referenced in the request.
|
630
|
-
attr_accessor :type
|
631
|
-
|
632
|
-
def initialize(account: nil, type: nil)
|
633
|
-
@account = account
|
634
|
-
@type = type
|
635
|
-
end
|
636
|
-
end
|
637
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
638
|
-
attr_accessor :enabled
|
639
|
-
# 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.
|
640
|
-
attr_accessor :liability
|
641
|
-
|
642
|
-
def initialize(enabled: nil, liability: nil)
|
643
|
-
@enabled = enabled
|
644
|
-
@liability = liability
|
645
|
-
end
|
646
|
-
end
|
647
|
-
|
648
|
-
class BillingThresholds < Stripe::RequestParams
|
649
|
-
# Monetary threshold that triggers the subscription to advance to a new billing period
|
650
|
-
attr_accessor :amount_gte
|
651
|
-
# 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.
|
652
|
-
attr_accessor :reset_billing_cycle_anchor
|
653
|
-
|
654
|
-
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
655
|
-
@amount_gte = amount_gte
|
656
|
-
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
657
|
-
end
|
658
|
-
end
|
659
|
-
|
660
|
-
class Discount < Stripe::RequestParams
|
661
|
-
# ID of the coupon to create a new discount for.
|
662
|
-
attr_accessor :coupon
|
663
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
664
|
-
attr_accessor :discount
|
665
|
-
# ID of the promotion code to create a new discount for.
|
666
|
-
attr_accessor :promotion_code
|
667
|
-
|
668
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
669
|
-
@coupon = coupon
|
670
|
-
@discount = discount
|
671
|
-
@promotion_code = promotion_code
|
672
|
-
end
|
673
|
-
end
|
674
|
-
|
675
|
-
class Duration < Stripe::RequestParams
|
676
|
-
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
|
677
|
-
attr_accessor :interval
|
678
|
-
# The multiplier applied to the interval.
|
679
|
-
attr_accessor :interval_count
|
680
|
-
|
681
|
-
def initialize(interval: nil, interval_count: nil)
|
682
|
-
@interval = interval
|
683
|
-
@interval_count = interval_count
|
684
|
-
end
|
685
|
-
end
|
686
475
|
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
end
|
698
|
-
end
|
699
|
-
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
700
|
-
attr_accessor :account_tax_ids
|
701
|
-
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
702
|
-
attr_accessor :days_until_due
|
703
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
704
|
-
attr_accessor :issuer
|
705
|
-
|
706
|
-
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil)
|
707
|
-
@account_tax_ids = account_tax_ids
|
708
|
-
@days_until_due = days_until_due
|
709
|
-
@issuer = issuer
|
710
|
-
end
|
711
|
-
end
|
712
|
-
|
713
|
-
class Item < Stripe::RequestParams
|
714
|
-
class BillingThresholds < Stripe::RequestParams
|
715
|
-
# 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))
|
716
|
-
attr_accessor :usage_gte
|
717
|
-
|
718
|
-
def initialize(usage_gte: nil)
|
719
|
-
@usage_gte = usage_gte
|
720
|
-
end
|
721
|
-
end
|
722
|
-
|
723
|
-
class Discount < Stripe::RequestParams
|
724
|
-
# ID of the coupon to create a new discount for.
|
725
|
-
attr_accessor :coupon
|
726
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
727
|
-
attr_accessor :discount
|
728
|
-
# ID of the promotion code to create a new discount for.
|
729
|
-
attr_accessor :promotion_code
|
730
|
-
|
731
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
732
|
-
@coupon = coupon
|
733
|
-
@discount = discount
|
734
|
-
@promotion_code = promotion_code
|
735
|
-
end
|
736
|
-
end
|
737
|
-
|
738
|
-
class PriceData < Stripe::RequestParams
|
739
|
-
class Recurring < Stripe::RequestParams
|
740
|
-
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
741
|
-
attr_accessor :interval
|
742
|
-
# 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).
|
743
|
-
attr_accessor :interval_count
|
744
|
-
|
745
|
-
def initialize(interval: nil, interval_count: nil)
|
746
|
-
@interval = interval
|
747
|
-
@interval_count = interval_count
|
748
|
-
end
|
749
|
-
end
|
750
|
-
# 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).
|
751
|
-
attr_accessor :currency
|
752
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
753
|
-
attr_accessor :product
|
754
|
-
# The recurring components of a price such as `interval` and `interval_count`.
|
755
|
-
attr_accessor :recurring
|
756
|
-
# 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.
|
757
|
-
attr_accessor :tax_behavior
|
758
|
-
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
759
|
-
attr_accessor :unit_amount
|
760
|
-
# 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.
|
761
|
-
attr_accessor :unit_amount_decimal
|
762
|
-
|
763
|
-
def initialize(
|
764
|
-
currency: nil,
|
765
|
-
product: nil,
|
766
|
-
recurring: nil,
|
767
|
-
tax_behavior: nil,
|
768
|
-
unit_amount: nil,
|
769
|
-
unit_amount_decimal: nil
|
770
|
-
)
|
771
|
-
@currency = currency
|
772
|
-
@product = product
|
773
|
-
@recurring = recurring
|
774
|
-
@tax_behavior = tax_behavior
|
775
|
-
@unit_amount = unit_amount
|
776
|
-
@unit_amount_decimal = unit_amount_decimal
|
777
|
-
end
|
778
|
-
end
|
779
|
-
# 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.
|
780
|
-
attr_accessor :billing_thresholds
|
781
|
-
# The coupons to redeem into discounts for the subscription item.
|
782
|
-
attr_accessor :discounts
|
783
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
|
784
|
-
attr_accessor :metadata
|
785
|
-
# The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
|
786
|
-
attr_accessor :plan
|
787
|
-
# The ID of the price object.
|
788
|
-
attr_accessor :price
|
789
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
|
790
|
-
attr_accessor :price_data
|
791
|
-
# Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
|
792
|
-
attr_accessor :quantity
|
793
|
-
# 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.
|
794
|
-
attr_accessor :tax_rates
|
795
|
-
|
796
|
-
def initialize(
|
797
|
-
billing_thresholds: nil,
|
798
|
-
discounts: nil,
|
799
|
-
metadata: nil,
|
800
|
-
plan: nil,
|
801
|
-
price: nil,
|
802
|
-
price_data: nil,
|
803
|
-
quantity: nil,
|
804
|
-
tax_rates: nil
|
805
|
-
)
|
806
|
-
@billing_thresholds = billing_thresholds
|
807
|
-
@discounts = discounts
|
808
|
-
@metadata = metadata
|
809
|
-
@plan = plan
|
810
|
-
@price = price
|
811
|
-
@price_data = price_data
|
812
|
-
@quantity = quantity
|
813
|
-
@tax_rates = tax_rates
|
814
|
-
end
|
815
|
-
end
|
816
|
-
|
817
|
-
class TransferData < Stripe::RequestParams
|
818
|
-
# 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.
|
819
|
-
attr_accessor :amount_percent
|
820
|
-
# ID of an existing, connected Stripe account.
|
821
|
-
attr_accessor :destination
|
822
|
-
|
823
|
-
def initialize(amount_percent: nil, destination: nil)
|
824
|
-
@amount_percent = amount_percent
|
825
|
-
@destination = destination
|
826
|
-
end
|
827
|
-
end
|
828
|
-
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
|
829
|
-
attr_accessor :add_invoice_items
|
830
|
-
# 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).
|
831
|
-
attr_accessor :application_fee_percent
|
832
|
-
# Automatic tax settings for this phase.
|
833
|
-
attr_accessor :automatic_tax
|
834
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
835
|
-
attr_accessor :billing_cycle_anchor
|
836
|
-
# 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.
|
837
|
-
attr_accessor :billing_thresholds
|
838
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing 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` on creation.
|
839
|
-
attr_accessor :collection_method
|
840
|
-
# 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).
|
841
|
-
attr_accessor :currency
|
842
|
-
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
843
|
-
attr_accessor :default_payment_method
|
844
|
-
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
|
845
|
-
attr_accessor :default_tax_rates
|
846
|
-
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
847
|
-
attr_accessor :description
|
848
|
-
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
|
849
|
-
attr_accessor :discounts
|
850
|
-
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
851
|
-
attr_accessor :duration
|
852
|
-
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
|
853
|
-
attr_accessor :end_date
|
854
|
-
# All invoices will be billed using the specified settings.
|
855
|
-
attr_accessor :invoice_settings
|
856
|
-
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
|
857
|
-
attr_accessor :items
|
858
|
-
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
|
859
|
-
attr_accessor :iterations
|
860
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
861
|
-
attr_accessor :metadata
|
862
|
-
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
863
|
-
attr_accessor :on_behalf_of
|
864
|
-
# Controls whether the subscription schedule should create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
865
|
-
attr_accessor :proration_behavior
|
866
|
-
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
867
|
-
attr_accessor :transfer_data
|
868
|
-
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
869
|
-
attr_accessor :trial
|
870
|
-
# Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
871
|
-
attr_accessor :trial_end
|
872
|
-
|
873
|
-
def initialize(
|
874
|
-
add_invoice_items: nil,
|
875
|
-
application_fee_percent: nil,
|
876
|
-
automatic_tax: nil,
|
877
|
-
billing_cycle_anchor: nil,
|
878
|
-
billing_thresholds: nil,
|
879
|
-
collection_method: nil,
|
880
|
-
currency: nil,
|
881
|
-
default_payment_method: nil,
|
882
|
-
default_tax_rates: nil,
|
883
|
-
description: nil,
|
884
|
-
discounts: nil,
|
885
|
-
duration: nil,
|
886
|
-
end_date: nil,
|
887
|
-
invoice_settings: nil,
|
888
|
-
items: nil,
|
889
|
-
iterations: nil,
|
890
|
-
metadata: nil,
|
891
|
-
on_behalf_of: nil,
|
892
|
-
proration_behavior: nil,
|
893
|
-
transfer_data: nil,
|
894
|
-
trial: nil,
|
895
|
-
trial_end: nil
|
896
|
-
)
|
897
|
-
@add_invoice_items = add_invoice_items
|
898
|
-
@application_fee_percent = application_fee_percent
|
899
|
-
@automatic_tax = automatic_tax
|
900
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
901
|
-
@billing_thresholds = billing_thresholds
|
902
|
-
@collection_method = collection_method
|
903
|
-
@currency = currency
|
904
|
-
@default_payment_method = default_payment_method
|
905
|
-
@default_tax_rates = default_tax_rates
|
906
|
-
@description = description
|
907
|
-
@discounts = discounts
|
908
|
-
@duration = duration
|
909
|
-
@end_date = end_date
|
910
|
-
@invoice_settings = invoice_settings
|
911
|
-
@items = items
|
912
|
-
@iterations = iterations
|
913
|
-
@metadata = metadata
|
914
|
-
@on_behalf_of = on_behalf_of
|
915
|
-
@proration_behavior = proration_behavior
|
916
|
-
@transfer_data = transfer_data
|
917
|
-
@trial = trial
|
918
|
-
@trial_end = trial_end
|
919
|
-
end
|
476
|
+
def self.inner_class_types
|
477
|
+
@inner_class_types = {
|
478
|
+
add_invoice_items: AddInvoiceItem,
|
479
|
+
automatic_tax: AutomaticTax,
|
480
|
+
billing_thresholds: BillingThresholds,
|
481
|
+
discounts: Discount,
|
482
|
+
invoice_settings: InvoiceSettings,
|
483
|
+
items: Item,
|
484
|
+
transfer_data: TransferData,
|
485
|
+
}
|
920
486
|
end
|
921
|
-
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
922
|
-
attr_accessor :billing_mode
|
923
|
-
# The identifier of the customer to create the subscription schedule for.
|
924
|
-
attr_accessor :customer
|
925
|
-
# Object representing the subscription schedule's default settings.
|
926
|
-
attr_accessor :default_settings
|
927
|
-
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
928
|
-
attr_accessor :end_behavior
|
929
|
-
# Specifies which fields in the response should be expanded.
|
930
|
-
attr_accessor :expand
|
931
|
-
# Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
|
932
|
-
attr_accessor :from_subscription
|
933
|
-
# 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`.
|
934
|
-
attr_accessor :metadata
|
935
|
-
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
936
|
-
attr_accessor :phases
|
937
|
-
# When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
|
938
|
-
attr_accessor :start_date
|
939
|
-
|
940
|
-
def initialize(
|
941
|
-
billing_mode: nil,
|
942
|
-
customer: nil,
|
943
|
-
default_settings: nil,
|
944
|
-
end_behavior: nil,
|
945
|
-
expand: nil,
|
946
|
-
from_subscription: nil,
|
947
|
-
metadata: nil,
|
948
|
-
phases: nil,
|
949
|
-
start_date: nil
|
950
|
-
)
|
951
|
-
@billing_mode = billing_mode
|
952
|
-
@customer = customer
|
953
|
-
@default_settings = default_settings
|
954
|
-
@end_behavior = end_behavior
|
955
|
-
@expand = expand
|
956
|
-
@from_subscription = from_subscription
|
957
|
-
@metadata = metadata
|
958
|
-
@phases = phases
|
959
|
-
@start_date = start_date
|
960
|
-
end
|
961
|
-
end
|
962
487
|
|
963
|
-
|
964
|
-
|
965
|
-
class AutomaticTax < Stripe::RequestParams
|
966
|
-
class Liability < Stripe::RequestParams
|
967
|
-
# The connected account being referenced when `type` is `account`.
|
968
|
-
attr_accessor :account
|
969
|
-
# Type of the account referenced in the request.
|
970
|
-
attr_accessor :type
|
971
|
-
|
972
|
-
def initialize(account: nil, type: nil)
|
973
|
-
@account = account
|
974
|
-
@type = type
|
975
|
-
end
|
976
|
-
end
|
977
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
978
|
-
attr_accessor :enabled
|
979
|
-
# 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.
|
980
|
-
attr_accessor :liability
|
981
|
-
|
982
|
-
def initialize(enabled: nil, liability: nil)
|
983
|
-
@enabled = enabled
|
984
|
-
@liability = liability
|
985
|
-
end
|
986
|
-
end
|
987
|
-
|
988
|
-
class BillingThresholds < Stripe::RequestParams
|
989
|
-
# Monetary threshold that triggers the subscription to advance to a new billing period
|
990
|
-
attr_accessor :amount_gte
|
991
|
-
# 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.
|
992
|
-
attr_accessor :reset_billing_cycle_anchor
|
993
|
-
|
994
|
-
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
995
|
-
@amount_gte = amount_gte
|
996
|
-
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
997
|
-
end
|
998
|
-
end
|
999
|
-
|
1000
|
-
class InvoiceSettings < Stripe::RequestParams
|
1001
|
-
class Issuer < Stripe::RequestParams
|
1002
|
-
# The connected account being referenced when `type` is `account`.
|
1003
|
-
attr_accessor :account
|
1004
|
-
# Type of the account referenced in the request.
|
1005
|
-
attr_accessor :type
|
1006
|
-
|
1007
|
-
def initialize(account: nil, type: nil)
|
1008
|
-
@account = account
|
1009
|
-
@type = type
|
1010
|
-
end
|
1011
|
-
end
|
1012
|
-
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
1013
|
-
attr_accessor :account_tax_ids
|
1014
|
-
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
|
1015
|
-
attr_accessor :days_until_due
|
1016
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
1017
|
-
attr_accessor :issuer
|
1018
|
-
|
1019
|
-
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil)
|
1020
|
-
@account_tax_ids = account_tax_ids
|
1021
|
-
@days_until_due = days_until_due
|
1022
|
-
@issuer = issuer
|
1023
|
-
end
|
1024
|
-
end
|
1025
|
-
|
1026
|
-
class TransferData < Stripe::RequestParams
|
1027
|
-
# 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.
|
1028
|
-
attr_accessor :amount_percent
|
1029
|
-
# ID of an existing, connected Stripe account.
|
1030
|
-
attr_accessor :destination
|
1031
|
-
|
1032
|
-
def initialize(amount_percent: nil, destination: nil)
|
1033
|
-
@amount_percent = amount_percent
|
1034
|
-
@destination = destination
|
1035
|
-
end
|
1036
|
-
end
|
1037
|
-
# 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).
|
1038
|
-
attr_accessor :application_fee_percent
|
1039
|
-
# Default settings for automatic tax computation.
|
1040
|
-
attr_accessor :automatic_tax
|
1041
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
1042
|
-
attr_accessor :billing_cycle_anchor
|
1043
|
-
# 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.
|
1044
|
-
attr_accessor :billing_thresholds
|
1045
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing 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` on creation.
|
1046
|
-
attr_accessor :collection_method
|
1047
|
-
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
1048
|
-
attr_accessor :default_payment_method
|
1049
|
-
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
1050
|
-
attr_accessor :description
|
1051
|
-
# All invoices will be billed using the specified settings.
|
1052
|
-
attr_accessor :invoice_settings
|
1053
|
-
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
1054
|
-
attr_accessor :on_behalf_of
|
1055
|
-
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
1056
|
-
attr_accessor :transfer_data
|
1057
|
-
|
1058
|
-
def initialize(
|
1059
|
-
application_fee_percent: nil,
|
1060
|
-
automatic_tax: nil,
|
1061
|
-
billing_cycle_anchor: nil,
|
1062
|
-
billing_thresholds: nil,
|
1063
|
-
collection_method: nil,
|
1064
|
-
default_payment_method: nil,
|
1065
|
-
description: nil,
|
1066
|
-
invoice_settings: nil,
|
1067
|
-
on_behalf_of: nil,
|
1068
|
-
transfer_data: nil
|
1069
|
-
)
|
1070
|
-
@application_fee_percent = application_fee_percent
|
1071
|
-
@automatic_tax = automatic_tax
|
1072
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
1073
|
-
@billing_thresholds = billing_thresholds
|
1074
|
-
@collection_method = collection_method
|
1075
|
-
@default_payment_method = default_payment_method
|
1076
|
-
@description = description
|
1077
|
-
@invoice_settings = invoice_settings
|
1078
|
-
@on_behalf_of = on_behalf_of
|
1079
|
-
@transfer_data = transfer_data
|
1080
|
-
end
|
1081
|
-
end
|
1082
|
-
|
1083
|
-
class Phase < Stripe::RequestParams
|
1084
|
-
class AddInvoiceItem < Stripe::RequestParams
|
1085
|
-
class Discount < Stripe::RequestParams
|
1086
|
-
# ID of the coupon to create a new discount for.
|
1087
|
-
attr_accessor :coupon
|
1088
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1089
|
-
attr_accessor :discount
|
1090
|
-
# ID of the promotion code to create a new discount for.
|
1091
|
-
attr_accessor :promotion_code
|
1092
|
-
|
1093
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
1094
|
-
@coupon = coupon
|
1095
|
-
@discount = discount
|
1096
|
-
@promotion_code = promotion_code
|
1097
|
-
end
|
1098
|
-
end
|
1099
|
-
|
1100
|
-
class Period < Stripe::RequestParams
|
1101
|
-
class End < Stripe::RequestParams
|
1102
|
-
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
1103
|
-
attr_accessor :timestamp
|
1104
|
-
# Select how to calculate the end of the invoice item period.
|
1105
|
-
attr_accessor :type
|
1106
|
-
|
1107
|
-
def initialize(timestamp: nil, type: nil)
|
1108
|
-
@timestamp = timestamp
|
1109
|
-
@type = type
|
1110
|
-
end
|
1111
|
-
end
|
1112
|
-
|
1113
|
-
class Start < Stripe::RequestParams
|
1114
|
-
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
1115
|
-
attr_accessor :timestamp
|
1116
|
-
# Select how to calculate the start of the invoice item period.
|
1117
|
-
attr_accessor :type
|
1118
|
-
|
1119
|
-
def initialize(timestamp: nil, type: nil)
|
1120
|
-
@timestamp = timestamp
|
1121
|
-
@type = type
|
1122
|
-
end
|
1123
|
-
end
|
1124
|
-
# End of the invoice item period.
|
1125
|
-
attr_accessor :end
|
1126
|
-
# Start of the invoice item period.
|
1127
|
-
attr_accessor :start
|
1128
|
-
|
1129
|
-
def initialize(end_: nil, start: nil)
|
1130
|
-
@end = end_
|
1131
|
-
@start = start
|
1132
|
-
end
|
1133
|
-
end
|
1134
|
-
|
1135
|
-
class PriceData < Stripe::RequestParams
|
1136
|
-
# 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).
|
1137
|
-
attr_accessor :currency
|
1138
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
1139
|
-
attr_accessor :product
|
1140
|
-
# 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.
|
1141
|
-
attr_accessor :tax_behavior
|
1142
|
-
# 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.
|
1143
|
-
attr_accessor :unit_amount
|
1144
|
-
# 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.
|
1145
|
-
attr_accessor :unit_amount_decimal
|
1146
|
-
|
1147
|
-
def initialize(
|
1148
|
-
currency: nil,
|
1149
|
-
product: nil,
|
1150
|
-
tax_behavior: nil,
|
1151
|
-
unit_amount: nil,
|
1152
|
-
unit_amount_decimal: nil
|
1153
|
-
)
|
1154
|
-
@currency = currency
|
1155
|
-
@product = product
|
1156
|
-
@tax_behavior = tax_behavior
|
1157
|
-
@unit_amount = unit_amount
|
1158
|
-
@unit_amount_decimal = unit_amount_decimal
|
1159
|
-
end
|
1160
|
-
end
|
1161
|
-
# The coupons to redeem into discounts for the item.
|
1162
|
-
attr_accessor :discounts
|
1163
|
-
# 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`.
|
1164
|
-
attr_accessor :metadata
|
1165
|
-
# The period associated with this invoice item. Defaults to the period of the underlying subscription that surrounds the start of the phase.
|
1166
|
-
attr_accessor :period
|
1167
|
-
# The ID of the price object. One of `price` or `price_data` is required.
|
1168
|
-
attr_accessor :price
|
1169
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
1170
|
-
attr_accessor :price_data
|
1171
|
-
# Quantity for this item. Defaults to 1.
|
1172
|
-
attr_accessor :quantity
|
1173
|
-
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
1174
|
-
attr_accessor :tax_rates
|
1175
|
-
|
1176
|
-
def initialize(
|
1177
|
-
discounts: nil,
|
1178
|
-
metadata: nil,
|
1179
|
-
period: nil,
|
1180
|
-
price: nil,
|
1181
|
-
price_data: nil,
|
1182
|
-
quantity: nil,
|
1183
|
-
tax_rates: nil
|
1184
|
-
)
|
1185
|
-
@discounts = discounts
|
1186
|
-
@metadata = metadata
|
1187
|
-
@period = period
|
1188
|
-
@price = price
|
1189
|
-
@price_data = price_data
|
1190
|
-
@quantity = quantity
|
1191
|
-
@tax_rates = tax_rates
|
1192
|
-
end
|
1193
|
-
end
|
1194
|
-
|
1195
|
-
class AutomaticTax < Stripe::RequestParams
|
1196
|
-
class Liability < Stripe::RequestParams
|
1197
|
-
# The connected account being referenced when `type` is `account`.
|
1198
|
-
attr_accessor :account
|
1199
|
-
# Type of the account referenced in the request.
|
1200
|
-
attr_accessor :type
|
1201
|
-
|
1202
|
-
def initialize(account: nil, type: nil)
|
1203
|
-
@account = account
|
1204
|
-
@type = type
|
1205
|
-
end
|
1206
|
-
end
|
1207
|
-
# Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
|
1208
|
-
attr_accessor :enabled
|
1209
|
-
# 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.
|
1210
|
-
attr_accessor :liability
|
1211
|
-
|
1212
|
-
def initialize(enabled: nil, liability: nil)
|
1213
|
-
@enabled = enabled
|
1214
|
-
@liability = liability
|
1215
|
-
end
|
1216
|
-
end
|
1217
|
-
|
1218
|
-
class BillingThresholds < Stripe::RequestParams
|
1219
|
-
# Monetary threshold that triggers the subscription to advance to a new billing period
|
1220
|
-
attr_accessor :amount_gte
|
1221
|
-
# 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.
|
1222
|
-
attr_accessor :reset_billing_cycle_anchor
|
1223
|
-
|
1224
|
-
def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil)
|
1225
|
-
@amount_gte = amount_gte
|
1226
|
-
@reset_billing_cycle_anchor = reset_billing_cycle_anchor
|
1227
|
-
end
|
1228
|
-
end
|
1229
|
-
|
1230
|
-
class Discount < Stripe::RequestParams
|
1231
|
-
# ID of the coupon to create a new discount for.
|
1232
|
-
attr_accessor :coupon
|
1233
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1234
|
-
attr_accessor :discount
|
1235
|
-
# ID of the promotion code to create a new discount for.
|
1236
|
-
attr_accessor :promotion_code
|
1237
|
-
|
1238
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
1239
|
-
@coupon = coupon
|
1240
|
-
@discount = discount
|
1241
|
-
@promotion_code = promotion_code
|
1242
|
-
end
|
1243
|
-
end
|
1244
|
-
|
1245
|
-
class Duration < Stripe::RequestParams
|
1246
|
-
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
|
1247
|
-
attr_accessor :interval
|
1248
|
-
# The multiplier applied to the interval.
|
1249
|
-
attr_accessor :interval_count
|
1250
|
-
|
1251
|
-
def initialize(interval: nil, interval_count: nil)
|
1252
|
-
@interval = interval
|
1253
|
-
@interval_count = interval_count
|
1254
|
-
end
|
1255
|
-
end
|
1256
|
-
|
1257
|
-
class InvoiceSettings < Stripe::RequestParams
|
1258
|
-
class Issuer < Stripe::RequestParams
|
1259
|
-
# The connected account being referenced when `type` is `account`.
|
1260
|
-
attr_accessor :account
|
1261
|
-
# Type of the account referenced in the request.
|
1262
|
-
attr_accessor :type
|
1263
|
-
|
1264
|
-
def initialize(account: nil, type: nil)
|
1265
|
-
@account = account
|
1266
|
-
@type = type
|
1267
|
-
end
|
1268
|
-
end
|
1269
|
-
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
1270
|
-
attr_accessor :account_tax_ids
|
1271
|
-
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
1272
|
-
attr_accessor :days_until_due
|
1273
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
1274
|
-
attr_accessor :issuer
|
1275
|
-
|
1276
|
-
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil)
|
1277
|
-
@account_tax_ids = account_tax_ids
|
1278
|
-
@days_until_due = days_until_due
|
1279
|
-
@issuer = issuer
|
1280
|
-
end
|
1281
|
-
end
|
1282
|
-
|
1283
|
-
class Item < Stripe::RequestParams
|
1284
|
-
class BillingThresholds < Stripe::RequestParams
|
1285
|
-
# 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))
|
1286
|
-
attr_accessor :usage_gte
|
1287
|
-
|
1288
|
-
def initialize(usage_gte: nil)
|
1289
|
-
@usage_gte = usage_gte
|
1290
|
-
end
|
1291
|
-
end
|
1292
|
-
|
1293
|
-
class Discount < Stripe::RequestParams
|
1294
|
-
# ID of the coupon to create a new discount for.
|
1295
|
-
attr_accessor :coupon
|
1296
|
-
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
1297
|
-
attr_accessor :discount
|
1298
|
-
# ID of the promotion code to create a new discount for.
|
1299
|
-
attr_accessor :promotion_code
|
1300
|
-
|
1301
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
1302
|
-
@coupon = coupon
|
1303
|
-
@discount = discount
|
1304
|
-
@promotion_code = promotion_code
|
1305
|
-
end
|
1306
|
-
end
|
1307
|
-
|
1308
|
-
class PriceData < Stripe::RequestParams
|
1309
|
-
class Recurring < Stripe::RequestParams
|
1310
|
-
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
1311
|
-
attr_accessor :interval
|
1312
|
-
# 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).
|
1313
|
-
attr_accessor :interval_count
|
1314
|
-
|
1315
|
-
def initialize(interval: nil, interval_count: nil)
|
1316
|
-
@interval = interval
|
1317
|
-
@interval_count = interval_count
|
1318
|
-
end
|
1319
|
-
end
|
1320
|
-
# 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).
|
1321
|
-
attr_accessor :currency
|
1322
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
1323
|
-
attr_accessor :product
|
1324
|
-
# The recurring components of a price such as `interval` and `interval_count`.
|
1325
|
-
attr_accessor :recurring
|
1326
|
-
# 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.
|
1327
|
-
attr_accessor :tax_behavior
|
1328
|
-
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
1329
|
-
attr_accessor :unit_amount
|
1330
|
-
# 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.
|
1331
|
-
attr_accessor :unit_amount_decimal
|
1332
|
-
|
1333
|
-
def initialize(
|
1334
|
-
currency: nil,
|
1335
|
-
product: nil,
|
1336
|
-
recurring: nil,
|
1337
|
-
tax_behavior: nil,
|
1338
|
-
unit_amount: nil,
|
1339
|
-
unit_amount_decimal: nil
|
1340
|
-
)
|
1341
|
-
@currency = currency
|
1342
|
-
@product = product
|
1343
|
-
@recurring = recurring
|
1344
|
-
@tax_behavior = tax_behavior
|
1345
|
-
@unit_amount = unit_amount
|
1346
|
-
@unit_amount_decimal = unit_amount_decimal
|
1347
|
-
end
|
1348
|
-
end
|
1349
|
-
# 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.
|
1350
|
-
attr_accessor :billing_thresholds
|
1351
|
-
# The coupons to redeem into discounts for the subscription item.
|
1352
|
-
attr_accessor :discounts
|
1353
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
|
1354
|
-
attr_accessor :metadata
|
1355
|
-
# The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
|
1356
|
-
attr_accessor :plan
|
1357
|
-
# The ID of the price object.
|
1358
|
-
attr_accessor :price
|
1359
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
|
1360
|
-
attr_accessor :price_data
|
1361
|
-
# Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
|
1362
|
-
attr_accessor :quantity
|
1363
|
-
# 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.
|
1364
|
-
attr_accessor :tax_rates
|
1365
|
-
|
1366
|
-
def initialize(
|
1367
|
-
billing_thresholds: nil,
|
1368
|
-
discounts: nil,
|
1369
|
-
metadata: nil,
|
1370
|
-
plan: nil,
|
1371
|
-
price: nil,
|
1372
|
-
price_data: nil,
|
1373
|
-
quantity: nil,
|
1374
|
-
tax_rates: nil
|
1375
|
-
)
|
1376
|
-
@billing_thresholds = billing_thresholds
|
1377
|
-
@discounts = discounts
|
1378
|
-
@metadata = metadata
|
1379
|
-
@plan = plan
|
1380
|
-
@price = price
|
1381
|
-
@price_data = price_data
|
1382
|
-
@quantity = quantity
|
1383
|
-
@tax_rates = tax_rates
|
1384
|
-
end
|
1385
|
-
end
|
1386
|
-
|
1387
|
-
class TransferData < Stripe::RequestParams
|
1388
|
-
# 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.
|
1389
|
-
attr_accessor :amount_percent
|
1390
|
-
# ID of an existing, connected Stripe account.
|
1391
|
-
attr_accessor :destination
|
1392
|
-
|
1393
|
-
def initialize(amount_percent: nil, destination: nil)
|
1394
|
-
@amount_percent = amount_percent
|
1395
|
-
@destination = destination
|
1396
|
-
end
|
1397
|
-
end
|
1398
|
-
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. You may pass up to 20 items.
|
1399
|
-
attr_accessor :add_invoice_items
|
1400
|
-
# 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).
|
1401
|
-
attr_accessor :application_fee_percent
|
1402
|
-
# Automatic tax settings for this phase.
|
1403
|
-
attr_accessor :automatic_tax
|
1404
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
|
1405
|
-
attr_accessor :billing_cycle_anchor
|
1406
|
-
# 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.
|
1407
|
-
attr_accessor :billing_thresholds
|
1408
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing 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` on creation.
|
1409
|
-
attr_accessor :collection_method
|
1410
|
-
# 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).
|
1411
|
-
attr_accessor :currency
|
1412
|
-
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
1413
|
-
attr_accessor :default_payment_method
|
1414
|
-
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
|
1415
|
-
attr_accessor :default_tax_rates
|
1416
|
-
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
1417
|
-
attr_accessor :description
|
1418
|
-
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
|
1419
|
-
attr_accessor :discounts
|
1420
|
-
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
1421
|
-
attr_accessor :duration
|
1422
|
-
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
|
1423
|
-
attr_accessor :end_date
|
1424
|
-
# All invoices will be billed using the specified settings.
|
1425
|
-
attr_accessor :invoice_settings
|
1426
|
-
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
|
1427
|
-
attr_accessor :items
|
1428
|
-
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
|
1429
|
-
attr_accessor :iterations
|
1430
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
1431
|
-
attr_accessor :metadata
|
1432
|
-
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
1433
|
-
attr_accessor :on_behalf_of
|
1434
|
-
# Controls whether the subscription schedule should create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
1435
|
-
attr_accessor :proration_behavior
|
1436
|
-
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
1437
|
-
attr_accessor :start_date
|
1438
|
-
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
1439
|
-
attr_accessor :transfer_data
|
1440
|
-
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
1441
|
-
attr_accessor :trial
|
1442
|
-
# Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
1443
|
-
attr_accessor :trial_end
|
1444
|
-
|
1445
|
-
def initialize(
|
1446
|
-
add_invoice_items: nil,
|
1447
|
-
application_fee_percent: nil,
|
1448
|
-
automatic_tax: nil,
|
1449
|
-
billing_cycle_anchor: nil,
|
1450
|
-
billing_thresholds: nil,
|
1451
|
-
collection_method: nil,
|
1452
|
-
currency: nil,
|
1453
|
-
default_payment_method: nil,
|
1454
|
-
default_tax_rates: nil,
|
1455
|
-
description: nil,
|
1456
|
-
discounts: nil,
|
1457
|
-
duration: nil,
|
1458
|
-
end_date: nil,
|
1459
|
-
invoice_settings: nil,
|
1460
|
-
items: nil,
|
1461
|
-
iterations: nil,
|
1462
|
-
metadata: nil,
|
1463
|
-
on_behalf_of: nil,
|
1464
|
-
proration_behavior: nil,
|
1465
|
-
start_date: nil,
|
1466
|
-
transfer_data: nil,
|
1467
|
-
trial: nil,
|
1468
|
-
trial_end: nil
|
1469
|
-
)
|
1470
|
-
@add_invoice_items = add_invoice_items
|
1471
|
-
@application_fee_percent = application_fee_percent
|
1472
|
-
@automatic_tax = automatic_tax
|
1473
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
1474
|
-
@billing_thresholds = billing_thresholds
|
1475
|
-
@collection_method = collection_method
|
1476
|
-
@currency = currency
|
1477
|
-
@default_payment_method = default_payment_method
|
1478
|
-
@default_tax_rates = default_tax_rates
|
1479
|
-
@description = description
|
1480
|
-
@discounts = discounts
|
1481
|
-
@duration = duration
|
1482
|
-
@end_date = end_date
|
1483
|
-
@invoice_settings = invoice_settings
|
1484
|
-
@items = items
|
1485
|
-
@iterations = iterations
|
1486
|
-
@metadata = metadata
|
1487
|
-
@on_behalf_of = on_behalf_of
|
1488
|
-
@proration_behavior = proration_behavior
|
1489
|
-
@start_date = start_date
|
1490
|
-
@transfer_data = transfer_data
|
1491
|
-
@trial = trial
|
1492
|
-
@trial_end = trial_end
|
1493
|
-
end
|
1494
|
-
end
|
1495
|
-
# Object representing the subscription schedule's default settings.
|
1496
|
-
attr_accessor :default_settings
|
1497
|
-
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
1498
|
-
attr_accessor :end_behavior
|
1499
|
-
# Specifies which fields in the response should be expanded.
|
1500
|
-
attr_accessor :expand
|
1501
|
-
# 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`.
|
1502
|
-
attr_accessor :metadata
|
1503
|
-
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
|
1504
|
-
attr_accessor :phases
|
1505
|
-
# If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.
|
1506
|
-
attr_accessor :proration_behavior
|
1507
|
-
|
1508
|
-
def initialize(
|
1509
|
-
default_settings: nil,
|
1510
|
-
end_behavior: nil,
|
1511
|
-
expand: nil,
|
1512
|
-
metadata: nil,
|
1513
|
-
phases: nil,
|
1514
|
-
proration_behavior: nil
|
1515
|
-
)
|
1516
|
-
@default_settings = default_settings
|
1517
|
-
@end_behavior = end_behavior
|
1518
|
-
@expand = expand
|
1519
|
-
@metadata = metadata
|
1520
|
-
@phases = phases
|
1521
|
-
@proration_behavior = proration_behavior
|
1522
|
-
end
|
1523
|
-
end
|
1524
|
-
|
1525
|
-
class CancelParams < Stripe::RequestParams
|
1526
|
-
# Specifies which fields in the response should be expanded.
|
1527
|
-
attr_accessor :expand
|
1528
|
-
# If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`.
|
1529
|
-
attr_accessor :invoice_now
|
1530
|
-
# If the subscription schedule is `active`, indicates if the cancellation should be prorated. Defaults to `true`.
|
1531
|
-
attr_accessor :prorate
|
1532
|
-
|
1533
|
-
def initialize(expand: nil, invoice_now: nil, prorate: nil)
|
1534
|
-
@expand = expand
|
1535
|
-
@invoice_now = invoice_now
|
1536
|
-
@prorate = prorate
|
1537
|
-
end
|
1538
|
-
end
|
1539
|
-
|
1540
|
-
class ReleaseParams < Stripe::RequestParams
|
1541
|
-
# Specifies which fields in the response should be expanded.
|
1542
|
-
attr_accessor :expand
|
1543
|
-
# Keep any cancellation on the subscription that the schedule has set
|
1544
|
-
attr_accessor :preserve_cancel_date
|
1545
|
-
|
1546
|
-
def initialize(expand: nil, preserve_cancel_date: nil)
|
1547
|
-
@expand = expand
|
1548
|
-
@preserve_cancel_date = preserve_cancel_date
|
488
|
+
def self.field_remappings
|
489
|
+
@field_remappings = {}
|
1549
490
|
end
|
1550
491
|
end
|
1551
492
|
# ID of the Connect Application that created the schedule.
|
@@ -1656,5 +597,18 @@ module Stripe
|
|
1656
597
|
opts: opts
|
1657
598
|
)
|
1658
599
|
end
|
600
|
+
|
601
|
+
def self.inner_class_types
|
602
|
+
@inner_class_types = {
|
603
|
+
billing_mode: BillingMode,
|
604
|
+
current_phase: CurrentPhase,
|
605
|
+
default_settings: DefaultSettings,
|
606
|
+
phases: Phase,
|
607
|
+
}
|
608
|
+
end
|
609
|
+
|
610
|
+
def self.field_remappings
|
611
|
+
@field_remappings = {}
|
612
|
+
end
|
1659
613
|
end
|
1660
614
|
end
|