stripe 20.1.0 → 20.2.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 +4 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +193 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_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_under_review_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_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_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +53 -0
- data/lib/stripe/params/account_create_params.rb +299 -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 +191 -0
- data/lib/stripe/params/account_update_params.rb +261 -0
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -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 +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +87 -3
- data/lib/stripe/params/checkout/session_update_params.rb +161 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -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/authorization_retrieve_params.rb +15 -0
- 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 +38 -1
- 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/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +64 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- 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_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +64 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- 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_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -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 +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
- data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +88 -0
- data/lib/stripe/params/payment_plan_create_params.rb +128 -0
- data/lib/stripe/params/payment_plan_list_params.rb +25 -0
- data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_plan_update_params.rb +105 -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/quote_create_params.rb +809 -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 +4 -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 +817 -4
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
- data/lib/stripe/params/setup_intent_create_params.rb +122 -3
- data/lib/stripe/params/setup_intent_update_params.rb +122 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +133 -6
- data/lib/stripe/params/subscription_item_create_params.rb +50 -3
- data/lib/stripe/params/subscription_item_update_params.rb +33 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +116 -5
- 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/registration_create_params.rb +13 -1
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -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_payment_create_params.rb +19 -0
- 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 +257 -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 +263 -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_create_params.rb +392 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
- data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
- 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 +112 -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_disable_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/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +364 -0
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -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/capital/financing_offer.rb +144 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +227 -1
- data/lib/stripe/resources/checkout/session.rb +91 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +18 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +149 -0
- data/lib/stripe/resources/invoice.rb +106 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/authorization.rb +16 -0
- data/lib/stripe/resources/issuing/card.rb +16 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -1
- 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 +18 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1588 -10
- data/lib/stripe/resources/payment_method.rb +151 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_plan.rb +213 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/plan.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +38 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +73 -0
- data/lib/stripe/resources/subscription_item.rb +22 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/token.rb +15 -1
- 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_payment.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 +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +802 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
- data/lib/stripe/resources/v2/data/query_run.rb +255 -0
- data/lib/stripe/resources/v2/data/report.rb +104 -0
- data/lib/stripe/resources/v2/data/report_run.rb +246 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/data/schema.rb +121 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
- data/lib/stripe/resources.rb +341 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -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/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_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/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -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_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_plan_service.rb +50 -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/promotion_code_service.rb +29 -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/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +30 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +45 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -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 +69 -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/approval_request_service.rb +58 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
- data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
- data/lib/stripe/services/v2/data/report_service.rb +34 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data/schema_service.rb +32 -0
- data/lib/stripe/services/v2/data_service.rb +19 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +181 -0
- data/lib/stripe/stripe_client.rb +4 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +216 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
- data/rbi/stripe.rbi +133319 -66595
- metadata +331 -3
|
@@ -207,6 +207,37 @@ module Stripe
|
|
|
207
207
|
end
|
|
208
208
|
end
|
|
209
209
|
|
|
210
|
+
class LastPriceMigrationError < ::Stripe::StripeObject
|
|
211
|
+
class FailedTransition < ::Stripe::StripeObject
|
|
212
|
+
# The original price to be migrated.
|
|
213
|
+
attr_reader :source_price
|
|
214
|
+
# The intended resulting price of the migration.
|
|
215
|
+
attr_reader :target_price
|
|
216
|
+
|
|
217
|
+
def self.inner_class_types
|
|
218
|
+
@inner_class_types = {}
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
def self.field_remappings
|
|
222
|
+
@field_remappings = {}
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
# The time at which the price migration encountered an error.
|
|
226
|
+
attr_reader :errored_at
|
|
227
|
+
# The involved price pairs in each failed transition.
|
|
228
|
+
attr_reader :failed_transitions
|
|
229
|
+
# The type of error encountered by the price migration.
|
|
230
|
+
attr_reader :type
|
|
231
|
+
|
|
232
|
+
def self.inner_class_types
|
|
233
|
+
@inner_class_types = { failed_transitions: FailedTransition }
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
def self.field_remappings
|
|
237
|
+
@field_remappings = {}
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
210
241
|
class PauseSchedule < ::Stripe::StripeObject
|
|
211
242
|
class Pause < ::Stripe::StripeObject
|
|
212
243
|
class Settings < ::Stripe::StripeObject
|
|
@@ -392,15 +423,31 @@ module Stripe
|
|
|
392
423
|
class Phase < ::Stripe::StripeObject
|
|
393
424
|
class AddInvoiceItem < ::Stripe::StripeObject
|
|
394
425
|
class Discount < ::Stripe::StripeObject
|
|
426
|
+
class DiscountEnd < ::Stripe::StripeObject
|
|
427
|
+
# The discount end timestamp.
|
|
428
|
+
attr_reader :timestamp
|
|
429
|
+
# The discount end type.
|
|
430
|
+
attr_reader :type
|
|
431
|
+
|
|
432
|
+
def self.inner_class_types
|
|
433
|
+
@inner_class_types = {}
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
def self.field_remappings
|
|
437
|
+
@field_remappings = {}
|
|
438
|
+
end
|
|
439
|
+
end
|
|
395
440
|
# ID of the coupon to create a new discount for.
|
|
396
441
|
attr_reader :coupon
|
|
397
442
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
398
443
|
attr_reader :discount
|
|
444
|
+
# Details to determine how long the discount should be applied for.
|
|
445
|
+
attr_reader :discount_end
|
|
399
446
|
# ID of the promotion code to create a new discount for.
|
|
400
447
|
attr_reader :promotion_code
|
|
401
448
|
|
|
402
449
|
def self.inner_class_types
|
|
403
|
-
@inner_class_types = {}
|
|
450
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
|
404
451
|
end
|
|
405
452
|
|
|
406
453
|
def self.field_remappings
|
|
@@ -522,15 +569,31 @@ module Stripe
|
|
|
522
569
|
end
|
|
523
570
|
|
|
524
571
|
class Discount < ::Stripe::StripeObject
|
|
572
|
+
class DiscountEnd < ::Stripe::StripeObject
|
|
573
|
+
# The discount end timestamp.
|
|
574
|
+
attr_reader :timestamp
|
|
575
|
+
# The discount end type.
|
|
576
|
+
attr_reader :type
|
|
577
|
+
|
|
578
|
+
def self.inner_class_types
|
|
579
|
+
@inner_class_types = {}
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
def self.field_remappings
|
|
583
|
+
@field_remappings = {}
|
|
584
|
+
end
|
|
585
|
+
end
|
|
525
586
|
# ID of the coupon to create a new discount for.
|
|
526
587
|
attr_reader :coupon
|
|
527
588
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
528
589
|
attr_reader :discount
|
|
590
|
+
# Details to determine how long the discount should be applied for.
|
|
591
|
+
attr_reader :discount_end
|
|
529
592
|
# ID of the promotion code to create a new discount for.
|
|
530
593
|
attr_reader :promotion_code
|
|
531
594
|
|
|
532
595
|
def self.inner_class_types
|
|
533
|
-
@inner_class_types = {}
|
|
596
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
|
534
597
|
end
|
|
535
598
|
|
|
536
599
|
def self.field_remappings
|
|
@@ -605,13 +668,44 @@ module Stripe
|
|
|
605
668
|
end
|
|
606
669
|
|
|
607
670
|
class Discount < ::Stripe::StripeObject
|
|
671
|
+
class DiscountEnd < ::Stripe::StripeObject
|
|
672
|
+
# The discount end timestamp.
|
|
673
|
+
attr_reader :timestamp
|
|
674
|
+
# The discount end type.
|
|
675
|
+
attr_reader :type
|
|
676
|
+
|
|
677
|
+
def self.inner_class_types
|
|
678
|
+
@inner_class_types = {}
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
def self.field_remappings
|
|
682
|
+
@field_remappings = {}
|
|
683
|
+
end
|
|
684
|
+
end
|
|
608
685
|
# ID of the coupon to create a new discount for.
|
|
609
686
|
attr_reader :coupon
|
|
610
687
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
611
688
|
attr_reader :discount
|
|
689
|
+
# Details to determine how long the discount should be applied for.
|
|
690
|
+
attr_reader :discount_end
|
|
612
691
|
# ID of the promotion code to create a new discount for.
|
|
613
692
|
attr_reader :promotion_code
|
|
614
693
|
|
|
694
|
+
def self.inner_class_types
|
|
695
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
def self.field_remappings
|
|
699
|
+
@field_remappings = {}
|
|
700
|
+
end
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
class Trial < ::Stripe::StripeObject
|
|
704
|
+
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
705
|
+
attr_reader :converts_to
|
|
706
|
+
# Determines the type of trial for this item.
|
|
707
|
+
attr_reader :type
|
|
708
|
+
|
|
615
709
|
def self.inner_class_types
|
|
616
710
|
@inner_class_types = {}
|
|
617
711
|
end
|
|
@@ -634,9 +728,30 @@ module Stripe
|
|
|
634
728
|
attr_reader :quantity
|
|
635
729
|
# 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`.
|
|
636
730
|
attr_reader :tax_rates
|
|
731
|
+
# Options that configure the trial on the subscription item.
|
|
732
|
+
attr_reader :trial
|
|
733
|
+
# The ID of the trial offer to apply to the configuration item.
|
|
734
|
+
attr_reader :trial_offer
|
|
637
735
|
|
|
638
736
|
def self.inner_class_types
|
|
639
|
-
@inner_class_types = {
|
|
737
|
+
@inner_class_types = {
|
|
738
|
+
billing_thresholds: BillingThresholds,
|
|
739
|
+
discounts: Discount,
|
|
740
|
+
trial: Trial,
|
|
741
|
+
}
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
def self.field_remappings
|
|
745
|
+
@field_remappings = {}
|
|
746
|
+
end
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
class PauseCollection < ::Stripe::StripeObject
|
|
750
|
+
# The payment collection behavior for this subscription while paused.
|
|
751
|
+
attr_reader :behavior
|
|
752
|
+
|
|
753
|
+
def self.inner_class_types
|
|
754
|
+
@inner_class_types = {}
|
|
640
755
|
end
|
|
641
756
|
|
|
642
757
|
def self.field_remappings
|
|
@@ -658,6 +773,31 @@ module Stripe
|
|
|
658
773
|
@field_remappings = {}
|
|
659
774
|
end
|
|
660
775
|
end
|
|
776
|
+
|
|
777
|
+
class TrialSettings < ::Stripe::StripeObject
|
|
778
|
+
class EndBehavior < ::Stripe::StripeObject
|
|
779
|
+
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
780
|
+
attr_reader :prorate_up_front
|
|
781
|
+
|
|
782
|
+
def self.inner_class_types
|
|
783
|
+
@inner_class_types = {}
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
def self.field_remappings
|
|
787
|
+
@field_remappings = {}
|
|
788
|
+
end
|
|
789
|
+
end
|
|
790
|
+
# Defines how the subscription should behave when a trial ends.
|
|
791
|
+
attr_reader :end_behavior
|
|
792
|
+
|
|
793
|
+
def self.inner_class_types
|
|
794
|
+
@inner_class_types = { end_behavior: EndBehavior }
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
def self.field_remappings
|
|
798
|
+
@field_remappings = {}
|
|
799
|
+
end
|
|
800
|
+
end
|
|
661
801
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
|
662
802
|
attr_reader :add_invoice_items
|
|
663
803
|
# 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.
|
|
@@ -690,6 +830,8 @@ module Stripe
|
|
|
690
830
|
attr_reader :metadata
|
|
691
831
|
# 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.
|
|
692
832
|
attr_reader :on_behalf_of
|
|
833
|
+
# 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://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
834
|
+
attr_reader :pause_collection
|
|
693
835
|
# When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
694
836
|
attr_reader :proration_behavior
|
|
695
837
|
# The start of this phase of the subscription schedule.
|
|
@@ -698,8 +840,12 @@ module Stripe
|
|
|
698
840
|
attr_reader :transfer_data
|
|
699
841
|
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
700
842
|
attr_reader :trial
|
|
843
|
+
# Specify behavior of the trial when crossing schedule phase boundaries
|
|
844
|
+
attr_reader :trial_continuation
|
|
701
845
|
# When the trial ends within the phase.
|
|
702
846
|
attr_reader :trial_end
|
|
847
|
+
# Settings related to any trials on the subscription during this phase.
|
|
848
|
+
attr_reader :trial_settings
|
|
703
849
|
|
|
704
850
|
def self.inner_class_types
|
|
705
851
|
@inner_class_types = {
|
|
@@ -709,7 +855,9 @@ module Stripe
|
|
|
709
855
|
discounts: Discount,
|
|
710
856
|
invoice_settings: InvoiceSettings,
|
|
711
857
|
items: Item,
|
|
858
|
+
pause_collection: PauseCollection,
|
|
712
859
|
transfer_data: TransferData,
|
|
860
|
+
trial_settings: TrialSettings,
|
|
713
861
|
}
|
|
714
862
|
end
|
|
715
863
|
|
|
@@ -717,8 +865,29 @@ module Stripe
|
|
|
717
865
|
@field_remappings = {}
|
|
718
866
|
end
|
|
719
867
|
end
|
|
868
|
+
|
|
869
|
+
class Prebilling < ::Stripe::StripeObject
|
|
870
|
+
# ID of the prebilling invoice.
|
|
871
|
+
attr_reader :invoice
|
|
872
|
+
# The end of the last period for which the invoice pre-bills.
|
|
873
|
+
attr_reader :period_end
|
|
874
|
+
# The start of the first period for which the invoice pre-bills.
|
|
875
|
+
attr_reader :period_start
|
|
876
|
+
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
877
|
+
attr_reader :update_behavior
|
|
878
|
+
|
|
879
|
+
def self.inner_class_types
|
|
880
|
+
@inner_class_types = {}
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
def self.field_remappings
|
|
884
|
+
@field_remappings = {}
|
|
885
|
+
end
|
|
886
|
+
end
|
|
720
887
|
# ID of the Connect Application that created the schedule.
|
|
721
888
|
attr_reader :application
|
|
889
|
+
# 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.
|
|
890
|
+
attr_reader :billing_behavior
|
|
722
891
|
# The billing mode of the subscription.
|
|
723
892
|
attr_reader :billing_mode
|
|
724
893
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
|
@@ -739,6 +908,8 @@ module Stripe
|
|
|
739
908
|
attr_reader :end_behavior
|
|
740
909
|
# Unique identifier for the object.
|
|
741
910
|
attr_reader :id
|
|
911
|
+
# Details of the most recent price migration that failed for the subscription schedule.
|
|
912
|
+
attr_reader :last_price_migration_error
|
|
742
913
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
743
914
|
attr_reader :livemode
|
|
744
915
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
@@ -749,6 +920,8 @@ module Stripe
|
|
|
749
920
|
attr_reader :pause_schedules
|
|
750
921
|
# Configuration for the subscription schedule's phases.
|
|
751
922
|
attr_reader :phases
|
|
923
|
+
# Time period and invoice for a Subscription billed in advance.
|
|
924
|
+
attr_reader :prebilling
|
|
752
925
|
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
753
926
|
attr_reader :released_at
|
|
754
927
|
# ID of the subscription once managed by the subscription schedule (if it is released).
|
|
@@ -760,6 +933,26 @@ module Stripe
|
|
|
760
933
|
# ID of the test clock this subscription schedule belongs to.
|
|
761
934
|
attr_reader :test_clock
|
|
762
935
|
|
|
936
|
+
# Amends an existing subscription schedule.
|
|
937
|
+
def amend(params = {}, opts = {})
|
|
938
|
+
request_stripe_object(
|
|
939
|
+
method: :post,
|
|
940
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
|
941
|
+
params: params,
|
|
942
|
+
opts: opts
|
|
943
|
+
)
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# Amends an existing subscription schedule.
|
|
947
|
+
def self.amend(schedule, params = {}, opts = {})
|
|
948
|
+
request_stripe_object(
|
|
949
|
+
method: :post,
|
|
950
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
951
|
+
params: params,
|
|
952
|
+
opts: opts
|
|
953
|
+
)
|
|
954
|
+
end
|
|
955
|
+
|
|
763
956
|
# 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.
|
|
764
957
|
def cancel(params = {}, opts = {})
|
|
765
958
|
request_stripe_object(
|
|
@@ -835,8 +1028,10 @@ module Stripe
|
|
|
835
1028
|
billing_mode: BillingMode,
|
|
836
1029
|
current_phase: CurrentPhase,
|
|
837
1030
|
default_settings: DefaultSettings,
|
|
1031
|
+
last_price_migration_error: LastPriceMigrationError,
|
|
838
1032
|
pause_schedules: PauseSchedule,
|
|
839
1033
|
phases: Phase,
|
|
1034
|
+
prebilling: Prebilling,
|
|
840
1035
|
}
|
|
841
1036
|
end
|
|
842
1037
|
|
|
@@ -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
|
+
# Specifies the payee type.
|
|
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
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
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
|
|
@@ -643,6 +643,19 @@ module Stripe
|
|
|
643
643
|
end
|
|
644
644
|
|
|
645
645
|
class Es < ::Stripe::StripeObject
|
|
646
|
+
class Igic < ::Stripe::StripeObject
|
|
647
|
+
# Place of supply scheme used in an IGIC registration.
|
|
648
|
+
attr_reader :place_of_supply_scheme
|
|
649
|
+
|
|
650
|
+
def self.inner_class_types
|
|
651
|
+
@inner_class_types = {}
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
def self.field_remappings
|
|
655
|
+
@field_remappings = {}
|
|
656
|
+
end
|
|
657
|
+
end
|
|
658
|
+
|
|
646
659
|
class Standard < ::Stripe::StripeObject
|
|
647
660
|
# Place of supply scheme used in an EU standard registration.
|
|
648
661
|
attr_reader :place_of_supply_scheme
|
|
@@ -655,13 +668,15 @@ module Stripe
|
|
|
655
668
|
@field_remappings = {}
|
|
656
669
|
end
|
|
657
670
|
end
|
|
671
|
+
# Attribute for field igic
|
|
672
|
+
attr_reader :igic
|
|
658
673
|
# Attribute for field standard
|
|
659
674
|
attr_reader :standard
|
|
660
675
|
# Type of registration in ES.
|
|
661
676
|
attr_reader :type
|
|
662
677
|
|
|
663
678
|
def self.inner_class_types
|
|
664
|
-
@inner_class_types = { standard: Standard }
|
|
679
|
+
@inner_class_types = { igic: Igic, standard: Standard }
|
|
665
680
|
end
|
|
666
681
|
|
|
667
682
|
def self.field_remappings
|
|
@@ -315,6 +315,8 @@ module Stripe
|
|
|
315
315
|
@field_remappings = {}
|
|
316
316
|
end
|
|
317
317
|
end
|
|
318
|
+
# Account the payment intent belongs to.
|
|
319
|
+
attr_reader :account
|
|
318
320
|
# Represents a per-transaction override of a reader configuration
|
|
319
321
|
attr_reader :collect_config
|
|
320
322
|
# Most recent PaymentIntent processed by the reader.
|
|
@@ -348,6 +350,8 @@ module Stripe
|
|
|
348
350
|
@field_remappings = {}
|
|
349
351
|
end
|
|
350
352
|
end
|
|
353
|
+
# Account the payment intent belongs to.
|
|
354
|
+
attr_reader :account
|
|
351
355
|
# Represents a per-transaction override of a reader configuration
|
|
352
356
|
attr_reader :confirm_config
|
|
353
357
|
# Most recent PaymentIntent processed by the reader.
|
|
@@ -426,6 +430,8 @@ module Stripe
|
|
|
426
430
|
@field_remappings = {}
|
|
427
431
|
end
|
|
428
432
|
end
|
|
433
|
+
# Account the payment intent belongs to.
|
|
434
|
+
attr_reader :account
|
|
429
435
|
# Most recent PaymentIntent processed by the reader.
|
|
430
436
|
attr_reader :payment_intent
|
|
431
437
|
# Represents a per-transaction override of a reader configuration
|
|
@@ -482,6 +488,8 @@ module Stripe
|
|
|
482
488
|
@field_remappings = {}
|
|
483
489
|
end
|
|
484
490
|
end
|
|
491
|
+
# Account the payment intent belongs to.
|
|
492
|
+
attr_reader :account
|
|
485
493
|
# The amount being refunded.
|
|
486
494
|
attr_reader :amount
|
|
487
495
|
# Charge that is being refunded.
|