stripe 16.0.0 → 16.1.0.pre.beta.1
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 +35 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +236 -0
- data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +58 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +709 -0
- data/lib/stripe/params/charge_update_params.rb +709 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +4 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
- data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2217 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2245 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +169 -0
- data/lib/stripe/request_options.rb +3 -1
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +234 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +2 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/invoice_payment.rb +2 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
- data/lib/stripe/resources/payment_intent.rb +848 -4
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +2208 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3851 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +116 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +44 -0
- data/lib/stripe/services/payment_record_service.rb +89 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +10 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +61 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_object.rb +9 -9
- data/lib/stripe/util.rb +9 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +155102 -90522
- metadata +351 -5
@@ -186,18 +186,65 @@ module Stripe
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
+
class LastPriceMigrationError < Stripe::StripeObject
|
190
|
+
class FailedTransition < Stripe::StripeObject
|
191
|
+
# The original price to be migrated.
|
192
|
+
attr_reader :source_price
|
193
|
+
# The intended resulting price of the migration.
|
194
|
+
attr_reader :target_price
|
195
|
+
|
196
|
+
def self.inner_class_types
|
197
|
+
@inner_class_types = {}
|
198
|
+
end
|
199
|
+
|
200
|
+
def self.field_remappings
|
201
|
+
@field_remappings = {}
|
202
|
+
end
|
203
|
+
end
|
204
|
+
# The time at which the price migration encountered an error.
|
205
|
+
attr_reader :errored_at
|
206
|
+
# The involved price pairs in each failed transition.
|
207
|
+
attr_reader :failed_transitions
|
208
|
+
# The type of error encountered by the price migration.
|
209
|
+
attr_reader :type
|
210
|
+
|
211
|
+
def self.inner_class_types
|
212
|
+
@inner_class_types = { failed_transitions: FailedTransition }
|
213
|
+
end
|
214
|
+
|
215
|
+
def self.field_remappings
|
216
|
+
@field_remappings = {}
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
189
220
|
class Phase < Stripe::StripeObject
|
190
221
|
class AddInvoiceItem < Stripe::StripeObject
|
191
222
|
class Discount < Stripe::StripeObject
|
223
|
+
class DiscountEnd < Stripe::StripeObject
|
224
|
+
# The discount end timestamp.
|
225
|
+
attr_reader :timestamp
|
226
|
+
# The discount end type.
|
227
|
+
attr_reader :type
|
228
|
+
|
229
|
+
def self.inner_class_types
|
230
|
+
@inner_class_types = {}
|
231
|
+
end
|
232
|
+
|
233
|
+
def self.field_remappings
|
234
|
+
@field_remappings = {}
|
235
|
+
end
|
236
|
+
end
|
192
237
|
# ID of the coupon to create a new discount for.
|
193
238
|
attr_reader :coupon
|
194
239
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
195
240
|
attr_reader :discount
|
241
|
+
# Details to determine how long the discount should be applied for.
|
242
|
+
attr_reader :discount_end
|
196
243
|
# ID of the promotion code to create a new discount for.
|
197
244
|
attr_reader :promotion_code
|
198
245
|
|
199
246
|
def self.inner_class_types
|
200
|
-
@inner_class_types = {}
|
247
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
201
248
|
end
|
202
249
|
|
203
250
|
def self.field_remappings
|
@@ -317,15 +364,31 @@ module Stripe
|
|
317
364
|
end
|
318
365
|
|
319
366
|
class Discount < Stripe::StripeObject
|
367
|
+
class DiscountEnd < Stripe::StripeObject
|
368
|
+
# The discount end timestamp.
|
369
|
+
attr_reader :timestamp
|
370
|
+
# The discount end type.
|
371
|
+
attr_reader :type
|
372
|
+
|
373
|
+
def self.inner_class_types
|
374
|
+
@inner_class_types = {}
|
375
|
+
end
|
376
|
+
|
377
|
+
def self.field_remappings
|
378
|
+
@field_remappings = {}
|
379
|
+
end
|
380
|
+
end
|
320
381
|
# ID of the coupon to create a new discount for.
|
321
382
|
attr_reader :coupon
|
322
383
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
323
384
|
attr_reader :discount
|
385
|
+
# Details to determine how long the discount should be applied for.
|
386
|
+
attr_reader :discount_end
|
324
387
|
# ID of the promotion code to create a new discount for.
|
325
388
|
attr_reader :promotion_code
|
326
389
|
|
327
390
|
def self.inner_class_types
|
328
|
-
@inner_class_types = {}
|
391
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
329
392
|
end
|
330
393
|
|
331
394
|
def self.field_remappings
|
@@ -379,13 +442,44 @@ module Stripe
|
|
379
442
|
end
|
380
443
|
|
381
444
|
class Discount < Stripe::StripeObject
|
445
|
+
class DiscountEnd < Stripe::StripeObject
|
446
|
+
# The discount end timestamp.
|
447
|
+
attr_reader :timestamp
|
448
|
+
# The discount end type.
|
449
|
+
attr_reader :type
|
450
|
+
|
451
|
+
def self.inner_class_types
|
452
|
+
@inner_class_types = {}
|
453
|
+
end
|
454
|
+
|
455
|
+
def self.field_remappings
|
456
|
+
@field_remappings = {}
|
457
|
+
end
|
458
|
+
end
|
382
459
|
# ID of the coupon to create a new discount for.
|
383
460
|
attr_reader :coupon
|
384
461
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
385
462
|
attr_reader :discount
|
463
|
+
# Details to determine how long the discount should be applied for.
|
464
|
+
attr_reader :discount_end
|
386
465
|
# ID of the promotion code to create a new discount for.
|
387
466
|
attr_reader :promotion_code
|
388
467
|
|
468
|
+
def self.inner_class_types
|
469
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
470
|
+
end
|
471
|
+
|
472
|
+
def self.field_remappings
|
473
|
+
@field_remappings = {}
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
class Trial < Stripe::StripeObject
|
478
|
+
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
479
|
+
attr_reader :converts_to
|
480
|
+
# Determines the type of trial for this item.
|
481
|
+
attr_reader :type
|
482
|
+
|
389
483
|
def self.inner_class_types
|
390
484
|
@inner_class_types = {}
|
391
485
|
end
|
@@ -408,9 +502,28 @@ module Stripe
|
|
408
502
|
attr_reader :quantity
|
409
503
|
# 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`.
|
410
504
|
attr_reader :tax_rates
|
505
|
+
# Options that configure the trial on the subscription item.
|
506
|
+
attr_reader :trial
|
411
507
|
|
412
508
|
def self.inner_class_types
|
413
|
-
@inner_class_types = {
|
509
|
+
@inner_class_types = {
|
510
|
+
billing_thresholds: BillingThresholds,
|
511
|
+
discounts: Discount,
|
512
|
+
trial: Trial,
|
513
|
+
}
|
514
|
+
end
|
515
|
+
|
516
|
+
def self.field_remappings
|
517
|
+
@field_remappings = {}
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
521
|
+
class PauseCollection < Stripe::StripeObject
|
522
|
+
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
523
|
+
attr_reader :behavior
|
524
|
+
|
525
|
+
def self.inner_class_types
|
526
|
+
@inner_class_types = {}
|
414
527
|
end
|
415
528
|
|
416
529
|
def self.field_remappings
|
@@ -432,6 +545,31 @@ module Stripe
|
|
432
545
|
@field_remappings = {}
|
433
546
|
end
|
434
547
|
end
|
548
|
+
|
549
|
+
class TrialSettings < Stripe::StripeObject
|
550
|
+
class EndBehavior < Stripe::StripeObject
|
551
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
552
|
+
attr_reader :prorate_up_front
|
553
|
+
|
554
|
+
def self.inner_class_types
|
555
|
+
@inner_class_types = {}
|
556
|
+
end
|
557
|
+
|
558
|
+
def self.field_remappings
|
559
|
+
@field_remappings = {}
|
560
|
+
end
|
561
|
+
end
|
562
|
+
# Defines how the subscription should behave when a trial ends.
|
563
|
+
attr_reader :end_behavior
|
564
|
+
|
565
|
+
def self.inner_class_types
|
566
|
+
@inner_class_types = { end_behavior: EndBehavior }
|
567
|
+
end
|
568
|
+
|
569
|
+
def self.field_remappings
|
570
|
+
@field_remappings = {}
|
571
|
+
end
|
572
|
+
end
|
435
573
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
436
574
|
attr_reader :add_invoice_items
|
437
575
|
# 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.
|
@@ -464,14 +602,20 @@ module Stripe
|
|
464
602
|
attr_reader :metadata
|
465
603
|
# The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
466
604
|
attr_reader :on_behalf_of
|
605
|
+
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
606
|
+
attr_reader :pause_collection
|
467
607
|
# When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
468
608
|
attr_reader :proration_behavior
|
469
609
|
# The start of this phase of the subscription schedule.
|
470
610
|
attr_reader :start_date
|
471
611
|
# 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.
|
472
612
|
attr_reader :transfer_data
|
613
|
+
# Specify behavior of the trial when crossing schedule phase boundaries
|
614
|
+
attr_reader :trial_continuation
|
473
615
|
# When the trial ends within the phase.
|
474
616
|
attr_reader :trial_end
|
617
|
+
# Settings related to any trials on the subscription during this phase.
|
618
|
+
attr_reader :trial_settings
|
475
619
|
|
476
620
|
def self.inner_class_types
|
477
621
|
@inner_class_types = {
|
@@ -481,7 +625,9 @@ module Stripe
|
|
481
625
|
discounts: Discount,
|
482
626
|
invoice_settings: InvoiceSettings,
|
483
627
|
items: Item,
|
628
|
+
pause_collection: PauseCollection,
|
484
629
|
transfer_data: TransferData,
|
630
|
+
trial_settings: TrialSettings,
|
485
631
|
}
|
486
632
|
end
|
487
633
|
|
@@ -489,8 +635,29 @@ module Stripe
|
|
489
635
|
@field_remappings = {}
|
490
636
|
end
|
491
637
|
end
|
638
|
+
|
639
|
+
class Prebilling < Stripe::StripeObject
|
640
|
+
# ID of the prebilling invoice.
|
641
|
+
attr_reader :invoice
|
642
|
+
# The end of the last period for which the invoice pre-bills.
|
643
|
+
attr_reader :period_end
|
644
|
+
# The start of the first period for which the invoice pre-bills.
|
645
|
+
attr_reader :period_start
|
646
|
+
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
647
|
+
attr_reader :update_behavior
|
648
|
+
|
649
|
+
def self.inner_class_types
|
650
|
+
@inner_class_types = {}
|
651
|
+
end
|
652
|
+
|
653
|
+
def self.field_remappings
|
654
|
+
@field_remappings = {}
|
655
|
+
end
|
656
|
+
end
|
492
657
|
# ID of the Connect Application that created the schedule.
|
493
658
|
attr_reader :application
|
659
|
+
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
660
|
+
attr_reader :billing_behavior
|
494
661
|
# The billing mode of the subscription.
|
495
662
|
attr_reader :billing_mode
|
496
663
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
@@ -503,12 +670,16 @@ module Stripe
|
|
503
670
|
attr_reader :current_phase
|
504
671
|
# ID of the customer who owns the subscription schedule.
|
505
672
|
attr_reader :customer
|
673
|
+
# ID of the account who owns the subscription schedule.
|
674
|
+
attr_reader :customer_account
|
506
675
|
# Attribute for field default_settings
|
507
676
|
attr_reader :default_settings
|
508
677
|
# 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.
|
509
678
|
attr_reader :end_behavior
|
510
679
|
# Unique identifier for the object.
|
511
680
|
attr_reader :id
|
681
|
+
# Details of the most recent price migration that failed for the subscription schedule.
|
682
|
+
attr_reader :last_price_migration_error
|
512
683
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
513
684
|
attr_reader :livemode
|
514
685
|
# 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.
|
@@ -517,6 +688,8 @@ module Stripe
|
|
517
688
|
attr_reader :object
|
518
689
|
# Configuration for the subscription schedule's phases.
|
519
690
|
attr_reader :phases
|
691
|
+
# Time period and invoice for a Subscription billed in advance.
|
692
|
+
attr_reader :prebilling
|
520
693
|
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
521
694
|
attr_reader :released_at
|
522
695
|
# ID of the subscription once managed by the subscription schedule (if it is released).
|
@@ -528,6 +701,26 @@ module Stripe
|
|
528
701
|
# ID of the test clock this subscription schedule belongs to.
|
529
702
|
attr_reader :test_clock
|
530
703
|
|
704
|
+
# Amends an existing subscription schedule.
|
705
|
+
def amend(params = {}, opts = {})
|
706
|
+
request_stripe_object(
|
707
|
+
method: :post,
|
708
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
709
|
+
params: params,
|
710
|
+
opts: opts
|
711
|
+
)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Amends an existing subscription schedule.
|
715
|
+
def self.amend(schedule, params = {}, opts = {})
|
716
|
+
request_stripe_object(
|
717
|
+
method: :post,
|
718
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
719
|
+
params: params,
|
720
|
+
opts: opts
|
721
|
+
)
|
722
|
+
end
|
723
|
+
|
531
724
|
# Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
532
725
|
def cancel(params = {}, opts = {})
|
533
726
|
request_stripe_object(
|
@@ -603,7 +796,9 @@ module Stripe
|
|
603
796
|
billing_mode: BillingMode,
|
604
797
|
current_phase: CurrentPhase,
|
605
798
|
default_settings: DefaultSettings,
|
799
|
+
last_price_migration_error: LastPriceMigrationError,
|
606
800
|
phases: Phase,
|
801
|
+
prebilling: Prebilling,
|
607
802
|
}
|
608
803
|
end
|
609
804
|
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Tax
|
6
|
+
# A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input
|
7
|
+
class Association < APIResource
|
8
|
+
OBJECT_NAME = "tax.association"
|
9
|
+
def self.object_name
|
10
|
+
"tax.association"
|
11
|
+
end
|
12
|
+
|
13
|
+
class TaxTransactionAttempt < Stripe::StripeObject
|
14
|
+
class Committed < Stripe::StripeObject
|
15
|
+
# The [Tax Transaction](https://stripe.com/docs/api/tax/transaction/object)
|
16
|
+
attr_reader :transaction
|
17
|
+
|
18
|
+
def self.inner_class_types
|
19
|
+
@inner_class_types = {}
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.field_remappings
|
23
|
+
@field_remappings = {}
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class Errored < Stripe::StripeObject
|
28
|
+
# Details on why we couldn't commit the tax transaction.
|
29
|
+
attr_reader :reason
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
38
|
+
end
|
39
|
+
# Attribute for field committed
|
40
|
+
attr_reader :committed
|
41
|
+
# Attribute for field errored
|
42
|
+
attr_reader :errored
|
43
|
+
# The source of the tax transaction attempt. This is either a refund or a payment intent.
|
44
|
+
attr_reader :source
|
45
|
+
# The status of the transaction attempt. This can be `errored` or `committed`.
|
46
|
+
attr_reader :status
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = { committed: Committed, errored: Errored }
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
# The [Tax Calculation](https://stripe.com/docs/api/tax/calculations/object) that was included in PaymentIntent.
|
57
|
+
attr_reader :calculation
|
58
|
+
# Unique identifier for the object.
|
59
|
+
attr_reader :id
|
60
|
+
# String representing the object's type. Objects of the same type share the same value.
|
61
|
+
attr_reader :object
|
62
|
+
# The [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) that this Tax Association is tracking.
|
63
|
+
attr_reader :payment_intent
|
64
|
+
# Information about the tax transactions linked to this payment intent
|
65
|
+
attr_reader :tax_transaction_attempts
|
66
|
+
|
67
|
+
# Finds a tax association object by PaymentIntent id.
|
68
|
+
def self.find(params = {}, opts = {})
|
69
|
+
request_stripe_object(
|
70
|
+
method: :get,
|
71
|
+
path: "/v1/tax/associations/find",
|
72
|
+
params: params,
|
73
|
+
opts: opts
|
74
|
+
)
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = { tax_transaction_attempts: TaxTransactionAttempt }
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.field_remappings
|
82
|
+
@field_remappings = {}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,264 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Tax
|
6
|
+
# Tax forms are legal documents which are delivered to one or more tax authorities for information reporting purposes.
|
7
|
+
#
|
8
|
+
# Related guide: [US tax reporting for Connect platforms](https://stripe.com/docs/connect/tax-reporting)
|
9
|
+
class Form < APIResource
|
10
|
+
extend Stripe::APIOperations::List
|
11
|
+
|
12
|
+
OBJECT_NAME = "tax.form"
|
13
|
+
def self.object_name
|
14
|
+
"tax.form"
|
15
|
+
end
|
16
|
+
|
17
|
+
class AuSerr < Stripe::StripeObject
|
18
|
+
# End date of the period represented by the information reported on the tax form.
|
19
|
+
attr_reader :reporting_period_end_date
|
20
|
+
# Start date of the period represented by the information reported on the tax form.
|
21
|
+
attr_reader :reporting_period_start_date
|
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
|
+
|
32
|
+
class CaMrdp < Stripe::StripeObject
|
33
|
+
# End date of the period represented by the information reported on the tax form.
|
34
|
+
attr_reader :reporting_period_end_date
|
35
|
+
# Start date of the period represented by the information reported on the tax form.
|
36
|
+
attr_reader :reporting_period_start_date
|
37
|
+
|
38
|
+
def self.inner_class_types
|
39
|
+
@inner_class_types = {}
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.field_remappings
|
43
|
+
@field_remappings = {}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class EuDac7 < Stripe::StripeObject
|
48
|
+
# End date of the period represented by the information reported on the tax form.
|
49
|
+
attr_reader :reporting_period_end_date
|
50
|
+
# Start date of the period represented by the information reported on the tax form.
|
51
|
+
attr_reader :reporting_period_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
|
60
|
+
end
|
61
|
+
|
62
|
+
class FilingStatus < Stripe::StripeObject
|
63
|
+
class Jurisdiction < Stripe::StripeObject
|
64
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
65
|
+
attr_reader :country
|
66
|
+
# Indicates the level of the jurisdiction where the form was filed.
|
67
|
+
attr_reader :level
|
68
|
+
# [ISO 3166-2 U.S. state code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix, if any. For example, "NY" for New York, United States. Null for non-U.S. forms.
|
69
|
+
attr_reader :state
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = {}
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
# Time when the filing status was updated.
|
80
|
+
attr_reader :effective_at
|
81
|
+
# Attribute for field jurisdiction
|
82
|
+
attr_reader :jurisdiction
|
83
|
+
# The current status of the filed form.
|
84
|
+
attr_reader :value
|
85
|
+
|
86
|
+
def self.inner_class_types
|
87
|
+
@inner_class_types = { jurisdiction: Jurisdiction }
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.field_remappings
|
91
|
+
@field_remappings = {}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
class GbMrdp < Stripe::StripeObject
|
96
|
+
# End date of the period represented by the information reported on the tax form.
|
97
|
+
attr_reader :reporting_period_end_date
|
98
|
+
# Start date of the period represented by the information reported on the tax form.
|
99
|
+
attr_reader :reporting_period_start_date
|
100
|
+
|
101
|
+
def self.inner_class_types
|
102
|
+
@inner_class_types = {}
|
103
|
+
end
|
104
|
+
|
105
|
+
def self.field_remappings
|
106
|
+
@field_remappings = {}
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
class NzMrdp < Stripe::StripeObject
|
111
|
+
# End date of the period represented by the information reported on the tax form.
|
112
|
+
attr_reader :reporting_period_end_date
|
113
|
+
# Start date of the period represented by the information reported on the tax form.
|
114
|
+
attr_reader :reporting_period_start_date
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = {}
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
class Payee < Stripe::StripeObject
|
126
|
+
# The ID of the payee's Stripe account.
|
127
|
+
attr_reader :account
|
128
|
+
# The external reference to this payee.
|
129
|
+
attr_reader :external_reference
|
130
|
+
# Either `account` or `external_reference`.
|
131
|
+
attr_reader :type
|
132
|
+
|
133
|
+
def self.inner_class_types
|
134
|
+
@inner_class_types = {}
|
135
|
+
end
|
136
|
+
|
137
|
+
def self.field_remappings
|
138
|
+
@field_remappings = {}
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
class Us1099K < Stripe::StripeObject
|
143
|
+
# Year represented by the information reported on the tax form.
|
144
|
+
attr_reader :reporting_year
|
145
|
+
|
146
|
+
def self.inner_class_types
|
147
|
+
@inner_class_types = {}
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.field_remappings
|
151
|
+
@field_remappings = {}
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class Us1099Misc < Stripe::StripeObject
|
156
|
+
# Year represented by the information reported on the tax form.
|
157
|
+
attr_reader :reporting_year
|
158
|
+
|
159
|
+
def self.inner_class_types
|
160
|
+
@inner_class_types = {}
|
161
|
+
end
|
162
|
+
|
163
|
+
def self.field_remappings
|
164
|
+
@field_remappings = {}
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class Us1099Nec < Stripe::StripeObject
|
169
|
+
# Year represented by the information reported on the tax form.
|
170
|
+
attr_reader :reporting_year
|
171
|
+
|
172
|
+
def self.inner_class_types
|
173
|
+
@inner_class_types = {}
|
174
|
+
end
|
175
|
+
|
176
|
+
def self.field_remappings
|
177
|
+
@field_remappings = {}
|
178
|
+
end
|
179
|
+
end
|
180
|
+
# Attribute for field au_serr
|
181
|
+
attr_reader :au_serr
|
182
|
+
# Attribute for field ca_mrdp
|
183
|
+
attr_reader :ca_mrdp
|
184
|
+
# The form that corrects this form, if any.
|
185
|
+
attr_reader :corrected_by
|
186
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
187
|
+
attr_reader :created
|
188
|
+
# Attribute for field eu_dac7
|
189
|
+
attr_reader :eu_dac7
|
190
|
+
# A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction’s tax authority.
|
191
|
+
attr_reader :filing_statuses
|
192
|
+
# Attribute for field gb_mrdp
|
193
|
+
attr_reader :gb_mrdp
|
194
|
+
# Unique identifier for the object.
|
195
|
+
attr_reader :id
|
196
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
197
|
+
attr_reader :livemode
|
198
|
+
# Attribute for field nz_mrdp
|
199
|
+
attr_reader :nz_mrdp
|
200
|
+
# String representing the object's type. Objects of the same type share the same value.
|
201
|
+
attr_reader :object
|
202
|
+
# Attribute for field payee
|
203
|
+
attr_reader :payee
|
204
|
+
# The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type.
|
205
|
+
attr_reader :type
|
206
|
+
# Attribute for field us_1099_k
|
207
|
+
attr_reader :us_1099_k
|
208
|
+
# Attribute for field us_1099_misc
|
209
|
+
attr_reader :us_1099_misc
|
210
|
+
# Attribute for field us_1099_nec
|
211
|
+
attr_reader :us_1099_nec
|
212
|
+
|
213
|
+
# Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
|
214
|
+
def self.list(params = {}, opts = {})
|
215
|
+
request_stripe_object(method: :get, path: "/v1/tax/forms", params: params, opts: opts)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Download the PDF for a tax form.
|
219
|
+
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
220
|
+
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
221
|
+
request_stream(
|
222
|
+
method: :get,
|
223
|
+
path: format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(self["id"]) }),
|
224
|
+
params: params,
|
225
|
+
opts: opts,
|
226
|
+
base_address: :files,
|
227
|
+
&read_body_chunk_block
|
228
|
+
)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Download the PDF for a tax form.
|
232
|
+
def self.pdf(id, params = {}, opts = {}, &read_body_chunk_block)
|
233
|
+
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
234
|
+
execute_resource_request_stream(
|
235
|
+
:get,
|
236
|
+
format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(id) }),
|
237
|
+
:files,
|
238
|
+
params,
|
239
|
+
opts,
|
240
|
+
&read_body_chunk_block
|
241
|
+
)
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.inner_class_types
|
245
|
+
@inner_class_types = {
|
246
|
+
au_serr: AuSerr,
|
247
|
+
ca_mrdp: CaMrdp,
|
248
|
+
eu_dac7: EuDac7,
|
249
|
+
filing_statuses: FilingStatus,
|
250
|
+
gb_mrdp: GbMrdp,
|
251
|
+
nz_mrdp: NzMrdp,
|
252
|
+
payee: Payee,
|
253
|
+
us_1099_k: Us1099K,
|
254
|
+
us_1099_misc: Us1099Misc,
|
255
|
+
us_1099_nec: Us1099Nec,
|
256
|
+
}
|
257
|
+
end
|
258
|
+
|
259
|
+
def self.field_remappings
|
260
|
+
@field_remappings = {}
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
end
|
@@ -23,6 +23,8 @@ module Stripe
|
|
23
23
|
attr_reader :application
|
24
24
|
# The customer being referenced when `type` is `customer`.
|
25
25
|
attr_reader :customer
|
26
|
+
# The account being referenced when `type` is `customer`.
|
27
|
+
attr_reader :customer_account
|
26
28
|
# Type of owner referenced.
|
27
29
|
attr_reader :type
|
28
30
|
|
@@ -57,6 +59,8 @@ module Stripe
|
|
57
59
|
attr_reader :created
|
58
60
|
# ID of the customer.
|
59
61
|
attr_reader :customer
|
62
|
+
# ID of the account.
|
63
|
+
attr_reader :customer_account
|
60
64
|
# Unique identifier for the object.
|
61
65
|
attr_reader :id
|
62
66
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|