stripe 19.2.0 → 19.3.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 +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -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_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_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_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_created_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 +63 -0
- data/lib/stripe/events/v2_money_management_transaction_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/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -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 +336 -0
- 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 +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -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/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/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 +64 -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/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -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 +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -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_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 +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- 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 +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- 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 +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -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/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -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/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -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 +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -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 +67 -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 +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- 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 +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -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/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -0
- 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/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +78 -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 +4 -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 +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -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 +58 -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_list_params.rb +19 -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_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -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_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -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/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/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_account_update_params.rb +20 -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 +102 -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 +92 -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 +88 -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/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/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 +426 -0
- data/lib/stripe/resources/account.rb +259 -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/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 +142 -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 +2 -0
- data/lib/stripe/resources/charge.rb +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -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_session.rb +36 -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 +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -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/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 +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 +1561 -8
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -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/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -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 +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.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 +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/terminal/configuration.rb +16 -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_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 +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -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/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -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 +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -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 +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -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.rb +417 -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/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/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_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/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -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 +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -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/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- 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_service.rb +15 -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/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -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 +75 -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 +66 -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/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/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 +8 -1
- data/lib/stripe/services.rb +209 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +582 -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 +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module SharedPayment
|
|
6
|
+
# A SharedPaymentIssuedToken is a limited-use reference to a PaymentMethod that can be created with a secret key. When shared with another Stripe account (Seller), it enables that account to either process a payment on Stripe against a PaymentMethod that your Stripe account owns, or to forward a usable credential created against the originalPaymentMethod to then process the payment off-Stripe.
|
|
7
|
+
class IssuedToken < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "shared_payment.issued_token"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"shared_payment.issued_token"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class NextAction < ::Stripe::StripeObject
|
|
16
|
+
class UseStripeSdk < ::Stripe::StripeObject
|
|
17
|
+
# A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the next action. Its content is subject to change.
|
|
18
|
+
attr_reader :value
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
# Specifies the type of next action required. Determines which child attribute contains action details.
|
|
29
|
+
attr_reader :type
|
|
30
|
+
# Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present when `next_action.type` is `use_stripe_sdk`.
|
|
31
|
+
attr_reader :use_stripe_sdk
|
|
32
|
+
|
|
33
|
+
def self.inner_class_types
|
|
34
|
+
@inner_class_types = { use_stripe_sdk: UseStripeSdk }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.field_remappings
|
|
38
|
+
@field_remappings = {}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class RiskDetails < ::Stripe::StripeObject
|
|
43
|
+
class Insights < ::Stripe::StripeObject
|
|
44
|
+
class Bot < ::Stripe::StripeObject
|
|
45
|
+
# Recommended action for this insight.
|
|
46
|
+
attr_reader :recommended_action
|
|
47
|
+
# Risk score for this insight.
|
|
48
|
+
attr_reader :score
|
|
49
|
+
|
|
50
|
+
def self.inner_class_types
|
|
51
|
+
@inner_class_types = {}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def self.field_remappings
|
|
55
|
+
@field_remappings = {}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
class CardIssuerDecline < ::Stripe::StripeObject
|
|
60
|
+
# Recommended action for this insight.
|
|
61
|
+
attr_reader :recommended_action
|
|
62
|
+
# Risk score for this insight.
|
|
63
|
+
attr_reader :score
|
|
64
|
+
|
|
65
|
+
def self.inner_class_types
|
|
66
|
+
@inner_class_types = {}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def self.field_remappings
|
|
70
|
+
@field_remappings = {}
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
class CardTesting < ::Stripe::StripeObject
|
|
75
|
+
# Recommended action for this insight.
|
|
76
|
+
attr_reader :recommended_action
|
|
77
|
+
# Risk score for this insight.
|
|
78
|
+
attr_reader :score
|
|
79
|
+
|
|
80
|
+
def self.inner_class_types
|
|
81
|
+
@inner_class_types = {}
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def self.field_remappings
|
|
85
|
+
@field_remappings = {}
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class FraudulentDispute < ::Stripe::StripeObject
|
|
90
|
+
# Recommended action for this insight.
|
|
91
|
+
attr_reader :recommended_action
|
|
92
|
+
# Risk score for this insight.
|
|
93
|
+
attr_reader :score
|
|
94
|
+
|
|
95
|
+
def self.inner_class_types
|
|
96
|
+
@inner_class_types = {}
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def self.field_remappings
|
|
100
|
+
@field_remappings = {}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
class StolenCard < ::Stripe::StripeObject
|
|
105
|
+
# Recommended action for this insight.
|
|
106
|
+
attr_reader :recommended_action
|
|
107
|
+
# Risk score for this insight.
|
|
108
|
+
attr_reader :score
|
|
109
|
+
|
|
110
|
+
def self.inner_class_types
|
|
111
|
+
@inner_class_types = {}
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def self.field_remappings
|
|
115
|
+
@field_remappings = {}
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
# Bot risk insight.
|
|
119
|
+
attr_reader :bot
|
|
120
|
+
# Card issuer decline risk insight.
|
|
121
|
+
attr_reader :card_issuer_decline
|
|
122
|
+
# Card testing risk insight.
|
|
123
|
+
attr_reader :card_testing
|
|
124
|
+
# Fraudulent dispute risk insight.
|
|
125
|
+
attr_reader :fraudulent_dispute
|
|
126
|
+
# Stolen card risk insight.
|
|
127
|
+
attr_reader :stolen_card
|
|
128
|
+
|
|
129
|
+
def self.inner_class_types
|
|
130
|
+
@inner_class_types = {
|
|
131
|
+
bot: Bot,
|
|
132
|
+
card_issuer_decline: CardIssuerDecline,
|
|
133
|
+
card_testing: CardTesting,
|
|
134
|
+
fraudulent_dispute: FraudulentDispute,
|
|
135
|
+
stolen_card: StolenCard,
|
|
136
|
+
}
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def self.field_remappings
|
|
140
|
+
@field_remappings = {}
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
# Risk insights for this token, including scores and recommended actions for each risk type.
|
|
144
|
+
attr_reader :insights
|
|
145
|
+
|
|
146
|
+
def self.inner_class_types
|
|
147
|
+
@inner_class_types = { insights: Insights }
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
def self.field_remappings
|
|
151
|
+
@field_remappings = {}
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
class SellerDetails < ::Stripe::StripeObject
|
|
156
|
+
# A unique id within a network that identifies a logical seller. This should usually be the merchant id on the seller platform.
|
|
157
|
+
attr_reader :external_id
|
|
158
|
+
# The unique and logical string that identifies the seller platform that this SharedToken is being created for.
|
|
159
|
+
attr_reader :network_business_profile
|
|
160
|
+
|
|
161
|
+
def self.inner_class_types
|
|
162
|
+
@inner_class_types = {}
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
def self.field_remappings
|
|
166
|
+
@field_remappings = {}
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
class UsageDetails < ::Stripe::StripeObject
|
|
171
|
+
class AmountCaptured < ::Stripe::StripeObject
|
|
172
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
173
|
+
attr_reader :currency
|
|
174
|
+
# Integer value of the amount in the smallest currency unit.
|
|
175
|
+
attr_reader :value
|
|
176
|
+
|
|
177
|
+
def self.inner_class_types
|
|
178
|
+
@inner_class_types = {}
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def self.field_remappings
|
|
182
|
+
@field_remappings = {}
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
# The total amount captured using this SharedPaymentToken.
|
|
186
|
+
attr_reader :amount_captured
|
|
187
|
+
|
|
188
|
+
def self.inner_class_types
|
|
189
|
+
@inner_class_types = { amount_captured: AmountCaptured }
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
def self.field_remappings
|
|
193
|
+
@field_remappings = {}
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
class UsageLimits < ::Stripe::StripeObject
|
|
198
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
199
|
+
attr_reader :currency
|
|
200
|
+
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
201
|
+
attr_reader :expires_at
|
|
202
|
+
# Max amount that can be captured using this SharedPaymentToken.
|
|
203
|
+
attr_reader :max_amount
|
|
204
|
+
|
|
205
|
+
def self.inner_class_types
|
|
206
|
+
@inner_class_types = {}
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
def self.field_remappings
|
|
210
|
+
@field_remappings = {}
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
214
|
+
attr_reader :created
|
|
215
|
+
# Time at which this SharedPaymentIssuedToken was deactivated.
|
|
216
|
+
attr_reader :deactivated_at
|
|
217
|
+
# The reason why the SharedPaymentIssuedToken has been deactivated.
|
|
218
|
+
attr_reader :deactivated_reason
|
|
219
|
+
# Unique identifier for the object.
|
|
220
|
+
attr_reader :id
|
|
221
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
222
|
+
attr_reader :livemode
|
|
223
|
+
# If present, describes the action required to make this `SharedPaymentIssuedToken` usable for payments. Present when the token is in `requires_action` state.
|
|
224
|
+
attr_reader :next_action
|
|
225
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
226
|
+
attr_reader :object
|
|
227
|
+
# ID of an existing PaymentMethod.
|
|
228
|
+
attr_reader :payment_method
|
|
229
|
+
# If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
230
|
+
attr_reader :return_url
|
|
231
|
+
# Risk details of the SharedPaymentIssuedToken.
|
|
232
|
+
attr_reader :risk_details
|
|
233
|
+
# Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
|
|
234
|
+
attr_reader :seller_details
|
|
235
|
+
# Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
|
|
236
|
+
attr_reader :setup_future_usage
|
|
237
|
+
# Metadata about the SharedPaymentIssuedToken.
|
|
238
|
+
attr_reader :shared_metadata
|
|
239
|
+
# Status of this SharedPaymentIssuedToken, one of `active`, `requires_action`, or `deactivated`.
|
|
240
|
+
attr_reader :status
|
|
241
|
+
# Usage details of the SharedPaymentIssuedToken
|
|
242
|
+
attr_reader :usage_details
|
|
243
|
+
# Usage limits of the SharedPaymentIssuedToken.
|
|
244
|
+
attr_reader :usage_limits
|
|
245
|
+
|
|
246
|
+
# Creates a new SharedPaymentIssuedToken object
|
|
247
|
+
def self.create(params = {}, opts = {})
|
|
248
|
+
request_stripe_object(
|
|
249
|
+
method: :post,
|
|
250
|
+
path: "/v1/shared_payment/issued_tokens",
|
|
251
|
+
params: params,
|
|
252
|
+
opts: opts
|
|
253
|
+
)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Revokes a SharedPaymentIssuedToken
|
|
257
|
+
def revoke(params = {}, opts = {})
|
|
258
|
+
request_stripe_object(
|
|
259
|
+
method: :post,
|
|
260
|
+
path: format("/v1/shared_payment/issued_tokens/%<shared_payment_issued_token>s/revoke", { shared_payment_issued_token: CGI.escape(self["id"]) }),
|
|
261
|
+
params: params,
|
|
262
|
+
opts: opts
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Revokes a SharedPaymentIssuedToken
|
|
267
|
+
def self.revoke(shared_payment_issued_token, params = {}, opts = {})
|
|
268
|
+
request_stripe_object(
|
|
269
|
+
method: :post,
|
|
270
|
+
path: format("/v1/shared_payment/issued_tokens/%<shared_payment_issued_token>s/revoke", { shared_payment_issued_token: CGI.escape(shared_payment_issued_token) }),
|
|
271
|
+
params: params,
|
|
272
|
+
opts: opts
|
|
273
|
+
)
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
def self.inner_class_types
|
|
277
|
+
@inner_class_types = {
|
|
278
|
+
next_action: NextAction,
|
|
279
|
+
risk_details: RiskDetails,
|
|
280
|
+
seller_details: SellerDetails,
|
|
281
|
+
usage_details: UsageDetails,
|
|
282
|
+
usage_limits: UsageLimits,
|
|
283
|
+
}
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
def self.field_remappings
|
|
287
|
+
@field_remappings = {}
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
@@ -169,6 +169,8 @@ module Stripe
|
|
|
169
169
|
attr_reader :address_zip_check
|
|
170
170
|
# Attribute for field brand
|
|
171
171
|
attr_reader :brand
|
|
172
|
+
# Attribute for field brand_product
|
|
173
|
+
attr_reader :brand_product
|
|
172
174
|
# Attribute for field country
|
|
173
175
|
attr_reader :country
|
|
174
176
|
# Attribute for field cvc_check
|
|
@@ -218,6 +220,8 @@ module Stripe
|
|
|
218
220
|
attr_reader :authorization_response_code
|
|
219
221
|
# Attribute for field brand
|
|
220
222
|
attr_reader :brand
|
|
223
|
+
# Attribute for field brand_product
|
|
224
|
+
attr_reader :brand_product
|
|
221
225
|
# Attribute for field country
|
|
222
226
|
attr_reader :country
|
|
223
227
|
# Attribute for field cvm_type
|
|
@@ -517,6 +521,35 @@ module Stripe
|
|
|
517
521
|
end
|
|
518
522
|
end
|
|
519
523
|
|
|
524
|
+
class Paypal < ::Stripe::StripeObject
|
|
525
|
+
# Attribute for field billing_agreement
|
|
526
|
+
attr_reader :billing_agreement
|
|
527
|
+
# Attribute for field fingerprint
|
|
528
|
+
attr_reader :fingerprint
|
|
529
|
+
# Attribute for field payer_id
|
|
530
|
+
attr_reader :payer_id
|
|
531
|
+
# Attribute for field reference_id
|
|
532
|
+
attr_reader :reference_id
|
|
533
|
+
# Attribute for field reference_transaction_amount
|
|
534
|
+
attr_reader :reference_transaction_amount
|
|
535
|
+
# Attribute for field reference_transaction_charged
|
|
536
|
+
attr_reader :reference_transaction_charged
|
|
537
|
+
# Attribute for field statement_descriptor
|
|
538
|
+
attr_reader :statement_descriptor
|
|
539
|
+
# Attribute for field transaction_id
|
|
540
|
+
attr_reader :transaction_id
|
|
541
|
+
# Attribute for field verified_email
|
|
542
|
+
attr_reader :verified_email
|
|
543
|
+
|
|
544
|
+
def self.inner_class_types
|
|
545
|
+
@inner_class_types = {}
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
def self.field_remappings
|
|
549
|
+
@field_remappings = {}
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
520
553
|
class Receiver < ::Stripe::StripeObject
|
|
521
554
|
# The address of the receiver source. This is the value that should be communicated to the customer to send their funds to.
|
|
522
555
|
attr_reader :address
|
|
@@ -737,6 +770,8 @@ module Stripe
|
|
|
737
770
|
attr_reader :authenticated
|
|
738
771
|
# Attribute for field brand
|
|
739
772
|
attr_reader :brand
|
|
773
|
+
# Attribute for field brand_product
|
|
774
|
+
attr_reader :brand_product
|
|
740
775
|
# Attribute for field card
|
|
741
776
|
attr_reader :card
|
|
742
777
|
# Attribute for field country
|
|
@@ -849,6 +884,8 @@ module Stripe
|
|
|
849
884
|
attr_reader :owner
|
|
850
885
|
# Attribute for field p24
|
|
851
886
|
attr_reader :p24
|
|
887
|
+
# Attribute for field paypal
|
|
888
|
+
attr_reader :paypal
|
|
852
889
|
# Attribute for field receiver
|
|
853
890
|
attr_reader :receiver
|
|
854
891
|
# Attribute for field redirect
|
|
@@ -954,6 +991,7 @@ module Stripe
|
|
|
954
991
|
multibanco: Multibanco,
|
|
955
992
|
owner: Owner,
|
|
956
993
|
p24: P24,
|
|
994
|
+
paypal: Paypal,
|
|
957
995
|
receiver: Receiver,
|
|
958
996
|
redirect: Redirect,
|
|
959
997
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
@@ -222,6 +222,37 @@ module Stripe
|
|
|
222
222
|
end
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
+
class LastPriceMigrationError < ::Stripe::StripeObject
|
|
226
|
+
class FailedTransition < ::Stripe::StripeObject
|
|
227
|
+
# The original price to be migrated.
|
|
228
|
+
attr_reader :source_price
|
|
229
|
+
# The intended resulting price of the migration.
|
|
230
|
+
attr_reader :target_price
|
|
231
|
+
|
|
232
|
+
def self.inner_class_types
|
|
233
|
+
@inner_class_types = {}
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
def self.field_remappings
|
|
237
|
+
@field_remappings = {}
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
# The time at which the price migration encountered an error.
|
|
241
|
+
attr_reader :errored_at
|
|
242
|
+
# The involved price pairs in each failed transition.
|
|
243
|
+
attr_reader :failed_transitions
|
|
244
|
+
# The type of error encountered by the price migration.
|
|
245
|
+
attr_reader :type
|
|
246
|
+
|
|
247
|
+
def self.inner_class_types
|
|
248
|
+
@inner_class_types = { failed_transitions: FailedTransition }
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
def self.field_remappings
|
|
252
|
+
@field_remappings = {}
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
225
256
|
class ManagedPayments < ::Stripe::StripeObject
|
|
226
257
|
# Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
|
|
227
258
|
attr_reader :enabled
|
|
@@ -292,6 +323,31 @@ module Stripe
|
|
|
292
323
|
end
|
|
293
324
|
end
|
|
294
325
|
|
|
326
|
+
class Blik < ::Stripe::StripeObject
|
|
327
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
328
|
+
# Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
329
|
+
attr_reader :expires_after
|
|
330
|
+
|
|
331
|
+
def self.inner_class_types
|
|
332
|
+
@inner_class_types = {}
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
def self.field_remappings
|
|
336
|
+
@field_remappings = {}
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
# Attribute for field mandate_options
|
|
340
|
+
attr_reader :mandate_options
|
|
341
|
+
|
|
342
|
+
def self.inner_class_types
|
|
343
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
def self.field_remappings
|
|
347
|
+
@field_remappings = {}
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
295
351
|
class Card < ::Stripe::StripeObject
|
|
296
352
|
class MandateOptions < ::Stripe::StripeObject
|
|
297
353
|
# Amount to be charged for future payments, specified in the presentment currency.
|
|
@@ -366,6 +422,16 @@ module Stripe
|
|
|
366
422
|
end
|
|
367
423
|
end
|
|
368
424
|
|
|
425
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
426
|
+
def self.inner_class_types
|
|
427
|
+
@inner_class_types = {}
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
def self.field_remappings
|
|
431
|
+
@field_remappings = {}
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
369
435
|
class Konbini < ::Stripe::StripeObject
|
|
370
436
|
def self.inner_class_types
|
|
371
437
|
@inner_class_types = {}
|
|
@@ -484,6 +550,8 @@ module Stripe
|
|
|
484
550
|
class Filters < ::Stripe::StripeObject
|
|
485
551
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
486
552
|
attr_reader :account_subcategories
|
|
553
|
+
# The institution to use to filter for possible accounts to link.
|
|
554
|
+
attr_reader :institution
|
|
487
555
|
|
|
488
556
|
def self.inner_class_types
|
|
489
557
|
@inner_class_types = {}
|
|
@@ -525,10 +593,14 @@ module Stripe
|
|
|
525
593
|
attr_reader :acss_debit
|
|
526
594
|
# This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
|
|
527
595
|
attr_reader :bancontact
|
|
596
|
+
# This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription.
|
|
597
|
+
attr_reader :blik
|
|
528
598
|
# This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
|
|
529
599
|
attr_reader :card
|
|
530
600
|
# This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
|
|
531
601
|
attr_reader :customer_balance
|
|
602
|
+
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
603
|
+
attr_reader :id_bank_transfer
|
|
532
604
|
# This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
533
605
|
attr_reader :konbini
|
|
534
606
|
# This sub-hash contains details about the PayTo payment method options to pass to invoices created by the subscription.
|
|
@@ -546,8 +618,10 @@ module Stripe
|
|
|
546
618
|
@inner_class_types = {
|
|
547
619
|
acss_debit: AcssDebit,
|
|
548
620
|
bancontact: Bancontact,
|
|
621
|
+
blik: Blik,
|
|
549
622
|
card: Card,
|
|
550
623
|
customer_balance: CustomerBalance,
|
|
624
|
+
id_bank_transfer: IdBankTransfer,
|
|
551
625
|
konbini: Konbini,
|
|
552
626
|
payto: Payto,
|
|
553
627
|
pix: Pix,
|
|
@@ -603,6 +677,8 @@ module Stripe
|
|
|
603
677
|
attr_reader :expires_at
|
|
604
678
|
# 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.
|
|
605
679
|
attr_reader :metadata
|
|
680
|
+
# The number of iterations of prebilling to apply.
|
|
681
|
+
attr_reader :prebilling_iterations
|
|
606
682
|
# List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
607
683
|
attr_reader :subscription_items
|
|
608
684
|
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
|
|
@@ -619,6 +695,25 @@ module Stripe
|
|
|
619
695
|
end
|
|
620
696
|
end
|
|
621
697
|
|
|
698
|
+
class Prebilling < ::Stripe::StripeObject
|
|
699
|
+
# ID of the prebilling invoice.
|
|
700
|
+
attr_reader :invoice
|
|
701
|
+
# The end of the last period for which the invoice pre-bills.
|
|
702
|
+
attr_reader :period_end
|
|
703
|
+
# The start of the first period for which the invoice pre-bills.
|
|
704
|
+
attr_reader :period_start
|
|
705
|
+
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
706
|
+
attr_reader :update_behavior
|
|
707
|
+
|
|
708
|
+
def self.inner_class_types
|
|
709
|
+
@inner_class_types = {}
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
def self.field_remappings
|
|
713
|
+
@field_remappings = {}
|
|
714
|
+
end
|
|
715
|
+
end
|
|
716
|
+
|
|
622
717
|
class PresentmentDetails < ::Stripe::StripeObject
|
|
623
718
|
# Currency used for customer payments.
|
|
624
719
|
attr_reader :presentment_currency
|
|
@@ -632,6 +727,47 @@ module Stripe
|
|
|
632
727
|
end
|
|
633
728
|
end
|
|
634
729
|
|
|
730
|
+
class StatusDetails < ::Stripe::StripeObject
|
|
731
|
+
class Paused < ::Stripe::StripeObject
|
|
732
|
+
class Subscription < ::Stripe::StripeObject
|
|
733
|
+
# The reason that the subscription was paused.
|
|
734
|
+
attr_reader :type
|
|
735
|
+
|
|
736
|
+
def self.inner_class_types
|
|
737
|
+
@inner_class_types = {}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
def self.field_remappings
|
|
741
|
+
@field_remappings = {}
|
|
742
|
+
end
|
|
743
|
+
end
|
|
744
|
+
# Information on the `type=subscription` pause.
|
|
745
|
+
attr_reader :subscription
|
|
746
|
+
# Unix timestamp in seconds of when the subscription status transitioned to `paused`.
|
|
747
|
+
attr_reader :transitioned_at
|
|
748
|
+
# The type of pause.
|
|
749
|
+
attr_reader :type
|
|
750
|
+
|
|
751
|
+
def self.inner_class_types
|
|
752
|
+
@inner_class_types = { subscription: Subscription }
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
def self.field_remappings
|
|
756
|
+
@field_remappings = {}
|
|
757
|
+
end
|
|
758
|
+
end
|
|
759
|
+
# Indicates when and why the subscription transitioned to the paused status.
|
|
760
|
+
attr_reader :paused
|
|
761
|
+
|
|
762
|
+
def self.inner_class_types
|
|
763
|
+
@inner_class_types = { paused: Paused }
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
def self.field_remappings
|
|
767
|
+
@field_remappings = {}
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
|
|
635
771
|
class TransferData < ::Stripe::StripeObject
|
|
636
772
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
637
773
|
attr_reader :amount_percent
|
|
@@ -649,6 +785,8 @@ module Stripe
|
|
|
649
785
|
|
|
650
786
|
class TrialSettings < ::Stripe::StripeObject
|
|
651
787
|
class EndBehavior < ::Stripe::StripeObject
|
|
788
|
+
# Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`.
|
|
789
|
+
attr_reader :billing_cycle_anchor
|
|
652
790
|
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
653
791
|
attr_reader :missing_payment_method
|
|
654
792
|
|
|
@@ -725,6 +863,8 @@ module Stripe
|
|
|
725
863
|
attr_reader :invoice_settings
|
|
726
864
|
# List of subscription items, each with an attached price.
|
|
727
865
|
attr_reader :items
|
|
866
|
+
# Details of the most recent price migration that failed for the subscription.
|
|
867
|
+
attr_reader :last_price_migration_error
|
|
728
868
|
# The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).
|
|
729
869
|
attr_reader :latest_invoice
|
|
730
870
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
@@ -749,6 +889,8 @@ module Stripe
|
|
|
749
889
|
attr_reader :pending_setup_intent
|
|
750
890
|
# If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
|
751
891
|
attr_reader :pending_update
|
|
892
|
+
# Time period and invoice for a Subscription billed in advance.
|
|
893
|
+
attr_reader :prebilling
|
|
752
894
|
# Attribute for field presentment_details
|
|
753
895
|
attr_reader :presentment_details
|
|
754
896
|
# The schedule attached to the subscription
|
|
@@ -767,6 +909,8 @@ module Stripe
|
|
|
767
909
|
#
|
|
768
910
|
# If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
|
|
769
911
|
attr_reader :status
|
|
912
|
+
# Describes changes to the subscription's status.
|
|
913
|
+
attr_reader :status_details
|
|
770
914
|
# ID of the test clock this subscription belongs to.
|
|
771
915
|
attr_reader :test_clock
|
|
772
916
|
# The account (if any) the 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.
|
|
@@ -862,6 +1006,26 @@ module Stripe
|
|
|
862
1006
|
)
|
|
863
1007
|
end
|
|
864
1008
|
|
|
1009
|
+
# Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules.
|
|
1010
|
+
def pause(params = {}, opts = {})
|
|
1011
|
+
request_stripe_object(
|
|
1012
|
+
method: :post,
|
|
1013
|
+
path: format("/v1/subscriptions/%<subscription>s/pause", { subscription: CGI.escape(self["id"]) }),
|
|
1014
|
+
params: params,
|
|
1015
|
+
opts: opts
|
|
1016
|
+
)
|
|
1017
|
+
end
|
|
1018
|
+
|
|
1019
|
+
# Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules.
|
|
1020
|
+
def self.pause(subscription, params = {}, opts = {})
|
|
1021
|
+
request_stripe_object(
|
|
1022
|
+
method: :post,
|
|
1023
|
+
path: format("/v1/subscriptions/%<subscription>s/pause", { subscription: CGI.escape(subscription) }),
|
|
1024
|
+
params: params,
|
|
1025
|
+
opts: opts
|
|
1026
|
+
)
|
|
1027
|
+
end
|
|
1028
|
+
|
|
865
1029
|
# Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions).
|
|
866
1030
|
def resume(params = {}, opts = {})
|
|
867
1031
|
request_stripe_object(
|
|
@@ -936,12 +1100,15 @@ module Stripe
|
|
|
936
1100
|
billing_thresholds: BillingThresholds,
|
|
937
1101
|
cancellation_details: CancellationDetails,
|
|
938
1102
|
invoice_settings: InvoiceSettings,
|
|
1103
|
+
last_price_migration_error: LastPriceMigrationError,
|
|
939
1104
|
managed_payments: ManagedPayments,
|
|
940
1105
|
pause_collection: PauseCollection,
|
|
941
1106
|
payment_settings: PaymentSettings,
|
|
942
1107
|
pending_invoice_item_interval: PendingInvoiceItemInterval,
|
|
943
1108
|
pending_update: PendingUpdate,
|
|
1109
|
+
prebilling: Prebilling,
|
|
944
1110
|
presentment_details: PresentmentDetails,
|
|
1111
|
+
status_details: StatusDetails,
|
|
945
1112
|
transfer_data: TransferData,
|
|
946
1113
|
trial_settings: TrialSettings,
|
|
947
1114
|
}
|