stripe 21.0.0 → 21.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_operations/request.rb +16 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +58 -34
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +213 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- 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_account_including_defaults_updated_event.rb +2 -2
- 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_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +80 -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/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -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_refill_params.rb +37 -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 +95 -4
- 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 +49 -2
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +23 -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 +39 -2
- data/lib/stripe/params/fx_quote_create_params.rb +71 -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 +34 -2
- 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 +3051 -98
- 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 +3040 -56
- data/lib/stripe/params/payment_link_update_params.rb +4 -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 +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/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -1
- data/lib/stripe/params/quote_create_params.rb +810 -4
- 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 +818 -5
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -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/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -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/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- 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/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -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/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 +530 -9
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +514 -8
- 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/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -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 +26 -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/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- 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 +61 -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 +37 -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 +372 -0
- data/lib/stripe/request_options.rb +19 -2
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +162 -0
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- 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 +185 -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 +501 -6
- data/lib/stripe/resources/checkout/session.rb +95 -3
- data/lib/stripe/resources/confirmation_token.rb +133 -2
- data/lib/stripe/resources/coupon.rb +64 -4
- 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 +19 -1
- data/lib/stripe/resources/event.rb +66 -3
- 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 +147 -0
- data/lib/stripe/resources/invoice.rb +126 -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 +17 -1
- 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 +181 -2
- data/lib/stripe/resources/payment_intent.rb +1589 -11
- data/lib/stripe/resources/payment_method.rb +153 -2
- 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 +181 -2
- 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 +2 -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 +1261 -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/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +56 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +8 -1
- 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 +37 -2
- data/lib/stripe/resources/setup_intent.rb +39 -2
- 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/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +39 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +67 -9
- data/lib/stripe/resources/treasury/received_credit.rb +31 -1
- data/lib/stripe/resources/treasury/received_debit.rb +33 -1
- 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/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 +1095 -52
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- 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/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event_base.rb +8 -25
- data/lib/stripe/resources/v2/core/event_notification.rb +33 -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 +143 -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 +926 -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 +77 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +177 -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 +356 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -0
- data/lib/stripe/services/apps/install_service.rb +2 -2
- 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/checkout/session_service.rb +2 -0
- data/lib/stripe/services/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_service.rb +15 -0
- data/lib/stripe/services/event_service.rb +1 -1
- 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/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- 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/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +3 -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/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 +4 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -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/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +4 -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 +188 -0
- data/lib/stripe/stripe_client.rb +10 -1
- data/lib/stripe/stripe_configuration.rb +12 -3
- data/lib/stripe/stripe_event_notification_handler.rb +242 -0
- data/lib/stripe/stripe_object.rb +23 -10
- 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 +134977 -66505
- metadata +341 -4
|
@@ -189,8 +189,18 @@ module Stripe
|
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
class Giropay < ::Stripe::RequestParams; end
|
|
192
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
192
193
|
class Grabpay < ::Stripe::RequestParams; end
|
|
193
194
|
|
|
195
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
196
|
+
# Bank where the account is held.
|
|
197
|
+
attr_accessor :bank
|
|
198
|
+
|
|
199
|
+
def initialize(bank: nil)
|
|
200
|
+
@bank = bank
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
194
204
|
class Ideal < ::Stripe::RequestParams
|
|
195
205
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
196
206
|
attr_accessor :bank
|
|
@@ -307,6 +317,7 @@ module Stripe
|
|
|
307
317
|
|
|
308
318
|
class Pix < ::Stripe::RequestParams; end
|
|
309
319
|
class Promptpay < ::Stripe::RequestParams; end
|
|
320
|
+
class Qris < ::Stripe::RequestParams; end
|
|
310
321
|
|
|
311
322
|
class RadarOptions < ::Stripe::RequestParams
|
|
312
323
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -317,6 +328,29 @@ module Stripe
|
|
|
317
328
|
end
|
|
318
329
|
end
|
|
319
330
|
|
|
331
|
+
class Rechnung < ::Stripe::RequestParams
|
|
332
|
+
class Dob < ::Stripe::RequestParams
|
|
333
|
+
# The day of birth, between 1 and 31.
|
|
334
|
+
attr_accessor :day
|
|
335
|
+
# The month of birth, between 1 and 12.
|
|
336
|
+
attr_accessor :month
|
|
337
|
+
# The four-digit year of birth.
|
|
338
|
+
attr_accessor :year
|
|
339
|
+
|
|
340
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
341
|
+
@day = day
|
|
342
|
+
@month = month
|
|
343
|
+
@year = year
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
# Customer's date of birth
|
|
347
|
+
attr_accessor :dob
|
|
348
|
+
|
|
349
|
+
def initialize(dob: nil)
|
|
350
|
+
@dob = dob
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
320
354
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
321
355
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
322
356
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -332,6 +366,7 @@ module Stripe
|
|
|
332
366
|
end
|
|
333
367
|
|
|
334
368
|
class Sequra < ::Stripe::RequestParams; end
|
|
369
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
335
370
|
|
|
336
371
|
class Sofort < ::Stripe::RequestParams
|
|
337
372
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -342,6 +377,15 @@ module Stripe
|
|
|
342
377
|
end
|
|
343
378
|
end
|
|
344
379
|
|
|
380
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
381
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
382
|
+
attr_accessor :account
|
|
383
|
+
|
|
384
|
+
def initialize(account: nil)
|
|
385
|
+
@account = account
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
345
389
|
class Sunbit < ::Stripe::RequestParams; end
|
|
346
390
|
class Swish < ::Stripe::RequestParams; end
|
|
347
391
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -373,12 +417,25 @@ module Stripe
|
|
|
373
417
|
end
|
|
374
418
|
|
|
375
419
|
class UsBankAccount < ::Stripe::RequestParams
|
|
420
|
+
class ExternalToken < ::Stripe::RequestParams
|
|
421
|
+
# The Plaid processor token to use for this bank account.
|
|
422
|
+
attr_accessor :plaid_processor_token
|
|
423
|
+
# The type of external token.
|
|
424
|
+
attr_accessor :type
|
|
425
|
+
|
|
426
|
+
def initialize(plaid_processor_token: nil, type: nil)
|
|
427
|
+
@plaid_processor_token = plaid_processor_token
|
|
428
|
+
@type = type
|
|
429
|
+
end
|
|
430
|
+
end
|
|
376
431
|
# Account holder type: individual or company.
|
|
377
432
|
attr_accessor :account_holder_type
|
|
378
433
|
# Account number of the bank account.
|
|
379
434
|
attr_accessor :account_number
|
|
380
435
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
381
436
|
attr_accessor :account_type
|
|
437
|
+
# An external token used to create a payment method.
|
|
438
|
+
attr_accessor :external_token
|
|
382
439
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
383
440
|
attr_accessor :financial_connections_account
|
|
384
441
|
# Routing number of the bank account.
|
|
@@ -388,18 +445,21 @@ module Stripe
|
|
|
388
445
|
account_holder_type: nil,
|
|
389
446
|
account_number: nil,
|
|
390
447
|
account_type: nil,
|
|
448
|
+
external_token: nil,
|
|
391
449
|
financial_connections_account: nil,
|
|
392
450
|
routing_number: nil
|
|
393
451
|
)
|
|
394
452
|
@account_holder_type = account_holder_type
|
|
395
453
|
@account_number = account_number
|
|
396
454
|
@account_type = account_type
|
|
455
|
+
@external_token = external_token
|
|
397
456
|
@financial_connections_account = financial_connections_account
|
|
398
457
|
@routing_number = routing_number
|
|
399
458
|
end
|
|
400
459
|
end
|
|
401
460
|
|
|
402
461
|
class WechatPay < ::Stripe::RequestParams; end
|
|
462
|
+
class Wero < ::Stripe::RequestParams; end
|
|
403
463
|
class Zip < ::Stripe::RequestParams; end
|
|
404
464
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
405
465
|
attr_accessor :acss_debit
|
|
@@ -451,8 +511,12 @@ module Stripe
|
|
|
451
511
|
attr_accessor :fpx
|
|
452
512
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
453
513
|
attr_accessor :giropay
|
|
514
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
515
|
+
attr_accessor :gopay
|
|
454
516
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
455
517
|
attr_accessor :grabpay
|
|
518
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
519
|
+
attr_accessor :id_bank_transfer
|
|
456
520
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
457
521
|
attr_accessor :ideal
|
|
458
522
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -501,8 +565,12 @@ module Stripe
|
|
|
501
565
|
attr_accessor :pix
|
|
502
566
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
503
567
|
attr_accessor :promptpay
|
|
568
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
569
|
+
attr_accessor :qris
|
|
504
570
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
505
571
|
attr_accessor :radar_options
|
|
572
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
573
|
+
attr_accessor :rechnung
|
|
506
574
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
507
575
|
attr_accessor :revolut_pay
|
|
508
576
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -515,8 +583,12 @@ module Stripe
|
|
|
515
583
|
attr_accessor :sepa_debit
|
|
516
584
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
517
585
|
attr_accessor :sequra
|
|
586
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
587
|
+
attr_accessor :shopeepay
|
|
518
588
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
519
589
|
attr_accessor :sofort
|
|
590
|
+
# This hash contains details about the Stripe balance payment method.
|
|
591
|
+
attr_accessor :stripe_balance
|
|
520
592
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
521
593
|
attr_accessor :sunbit
|
|
522
594
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -531,6 +603,8 @@ module Stripe
|
|
|
531
603
|
attr_accessor :us_bank_account
|
|
532
604
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
533
605
|
attr_accessor :wechat_pay
|
|
606
|
+
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
607
|
+
attr_accessor :wero
|
|
534
608
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
535
609
|
attr_accessor :zip
|
|
536
610
|
|
|
@@ -560,7 +634,9 @@ module Stripe
|
|
|
560
634
|
expand: nil,
|
|
561
635
|
fpx: nil,
|
|
562
636
|
giropay: nil,
|
|
637
|
+
gopay: nil,
|
|
563
638
|
grabpay: nil,
|
|
639
|
+
id_bank_transfer: nil,
|
|
564
640
|
ideal: nil,
|
|
565
641
|
interac_present: nil,
|
|
566
642
|
kakao_pay: nil,
|
|
@@ -585,14 +661,18 @@ module Stripe
|
|
|
585
661
|
payto: nil,
|
|
586
662
|
pix: nil,
|
|
587
663
|
promptpay: nil,
|
|
664
|
+
qris: nil,
|
|
588
665
|
radar_options: nil,
|
|
666
|
+
rechnung: nil,
|
|
589
667
|
revolut_pay: nil,
|
|
590
668
|
samsung_pay: nil,
|
|
591
669
|
satispay: nil,
|
|
592
670
|
scalapay: nil,
|
|
593
671
|
sepa_debit: nil,
|
|
594
672
|
sequra: nil,
|
|
673
|
+
shopeepay: nil,
|
|
595
674
|
sofort: nil,
|
|
675
|
+
stripe_balance: nil,
|
|
596
676
|
sunbit: nil,
|
|
597
677
|
swish: nil,
|
|
598
678
|
twint: nil,
|
|
@@ -600,6 +680,7 @@ module Stripe
|
|
|
600
680
|
upi: nil,
|
|
601
681
|
us_bank_account: nil,
|
|
602
682
|
wechat_pay: nil,
|
|
683
|
+
wero: nil,
|
|
603
684
|
zip: nil
|
|
604
685
|
)
|
|
605
686
|
@acss_debit = acss_debit
|
|
@@ -627,7 +708,9 @@ module Stripe
|
|
|
627
708
|
@expand = expand
|
|
628
709
|
@fpx = fpx
|
|
629
710
|
@giropay = giropay
|
|
711
|
+
@gopay = gopay
|
|
630
712
|
@grabpay = grabpay
|
|
713
|
+
@id_bank_transfer = id_bank_transfer
|
|
631
714
|
@ideal = ideal
|
|
632
715
|
@interac_present = interac_present
|
|
633
716
|
@kakao_pay = kakao_pay
|
|
@@ -652,14 +735,18 @@ module Stripe
|
|
|
652
735
|
@payto = payto
|
|
653
736
|
@pix = pix
|
|
654
737
|
@promptpay = promptpay
|
|
738
|
+
@qris = qris
|
|
655
739
|
@radar_options = radar_options
|
|
740
|
+
@rechnung = rechnung
|
|
656
741
|
@revolut_pay = revolut_pay
|
|
657
742
|
@samsung_pay = samsung_pay
|
|
658
743
|
@satispay = satispay
|
|
659
744
|
@scalapay = scalapay
|
|
660
745
|
@sepa_debit = sepa_debit
|
|
661
746
|
@sequra = sequra
|
|
747
|
+
@shopeepay = shopeepay
|
|
662
748
|
@sofort = sofort
|
|
749
|
+
@stripe_balance = stripe_balance
|
|
663
750
|
@sunbit = sunbit
|
|
664
751
|
@swish = swish
|
|
665
752
|
@twint = twint
|
|
@@ -667,6 +754,7 @@ module Stripe
|
|
|
667
754
|
@upi = upi
|
|
668
755
|
@us_bank_account = us_bank_account
|
|
669
756
|
@wechat_pay = wechat_pay
|
|
757
|
+
@wero = wero
|
|
670
758
|
@zip = zip
|
|
671
759
|
end
|
|
672
760
|
end
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentPlanCreateParams < ::Stripe::RequestParams
|
|
6
|
+
class CollectsOn < ::Stripe::RequestParams
|
|
7
|
+
class InvoiceDetails < ::Stripe::RequestParams
|
|
8
|
+
# The ID of the invoice.
|
|
9
|
+
attr_accessor :invoice
|
|
10
|
+
|
|
11
|
+
def initialize(invoice: nil)
|
|
12
|
+
@invoice = invoice
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
# Details of the invoice this payment plan collects on.
|
|
16
|
+
attr_accessor :invoice_details
|
|
17
|
+
# The type of object this plan collects on. This is always `invoice_details`.
|
|
18
|
+
attr_accessor :type
|
|
19
|
+
|
|
20
|
+
def initialize(invoice_details: nil, type: nil)
|
|
21
|
+
@invoice_details = invoice_details
|
|
22
|
+
@type = type
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
class Schedule < ::Stripe::RequestParams
|
|
27
|
+
class AmountsDue < ::Stripe::RequestParams
|
|
28
|
+
class Amount < ::Stripe::RequestParams
|
|
29
|
+
class DueDate < ::Stripe::RequestParams
|
|
30
|
+
class Relative < ::Stripe::RequestParams
|
|
31
|
+
# The number of intervals after finalization.
|
|
32
|
+
attr_accessor :count
|
|
33
|
+
# The interval unit.
|
|
34
|
+
attr_accessor :interval
|
|
35
|
+
|
|
36
|
+
def initialize(count: nil, interval: nil)
|
|
37
|
+
@count = count
|
|
38
|
+
@interval = interval
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
# Unix timestamp. Required when type is 'absolute'.
|
|
42
|
+
attr_accessor :absolute
|
|
43
|
+
# Required when type is 'relative'.
|
|
44
|
+
attr_accessor :relative
|
|
45
|
+
# Either 'absolute' or 'relative'.
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
def initialize(absolute: nil, relative: nil, type: nil)
|
|
49
|
+
@absolute = absolute
|
|
50
|
+
@relative = relative
|
|
51
|
+
@type = type
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class FixedAmount < ::Stripe::RequestParams
|
|
56
|
+
# The installment amount in minor units.
|
|
57
|
+
attr_accessor :amount
|
|
58
|
+
# Three-letter ISO currency code.
|
|
59
|
+
attr_accessor :currency
|
|
60
|
+
|
|
61
|
+
def initialize(amount: nil, currency: nil)
|
|
62
|
+
@amount = amount
|
|
63
|
+
@currency = currency
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
# Optional description for this installment.
|
|
67
|
+
attr_accessor :description
|
|
68
|
+
# When this installment is due.
|
|
69
|
+
attr_accessor :due_date
|
|
70
|
+
# Required when type is 'fixed_amount'.
|
|
71
|
+
attr_accessor :fixed_amount
|
|
72
|
+
# Optional stable identifier for the installment entry.
|
|
73
|
+
attr_accessor :id
|
|
74
|
+
# The installment percentage of the total. Required when type is 'percentage'.
|
|
75
|
+
attr_accessor :percentage
|
|
76
|
+
# Either 'fixed_amount' or 'percentage'.
|
|
77
|
+
attr_accessor :type
|
|
78
|
+
|
|
79
|
+
def initialize(
|
|
80
|
+
description: nil,
|
|
81
|
+
due_date: nil,
|
|
82
|
+
fixed_amount: nil,
|
|
83
|
+
id: nil,
|
|
84
|
+
percentage: nil,
|
|
85
|
+
type: nil
|
|
86
|
+
)
|
|
87
|
+
@description = description
|
|
88
|
+
@due_date = due_date
|
|
89
|
+
@fixed_amount = fixed_amount
|
|
90
|
+
@id = id
|
|
91
|
+
@percentage = percentage
|
|
92
|
+
@type = type
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
# The list of installment entries. Must contain at least two entries.
|
|
96
|
+
attr_accessor :amounts
|
|
97
|
+
|
|
98
|
+
def initialize(amounts: nil)
|
|
99
|
+
@amounts = amounts
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
# Required when type is 'amounts_due'. Must contain at least two installment entries.
|
|
103
|
+
attr_accessor :amounts_due
|
|
104
|
+
# The schedule type. It only supports 'amounts_due'.
|
|
105
|
+
attr_accessor :type
|
|
106
|
+
|
|
107
|
+
def initialize(amounts_due: nil, type: nil)
|
|
108
|
+
@amounts_due = amounts_due
|
|
109
|
+
@type = type
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
# The invoices this payment plan collects on. It must contain exactly one invoice entry.
|
|
113
|
+
attr_accessor :collects_on
|
|
114
|
+
# Specifies which fields in the response should be expanded.
|
|
115
|
+
attr_accessor :expand
|
|
116
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
117
|
+
attr_accessor :metadata
|
|
118
|
+
# The schedule defining how to split the invoice total into installments.
|
|
119
|
+
attr_accessor :schedule
|
|
120
|
+
|
|
121
|
+
def initialize(collects_on: nil, expand: nil, metadata: nil, schedule: nil)
|
|
122
|
+
@collects_on = collects_on
|
|
123
|
+
@expand = expand
|
|
124
|
+
@metadata = metadata
|
|
125
|
+
@schedule = schedule
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentPlanListParams < ::Stripe::RequestParams
|
|
6
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
7
|
+
attr_accessor :ending_before
|
|
8
|
+
# Specifies which fields in the response should be expanded.
|
|
9
|
+
attr_accessor :expand
|
|
10
|
+
# Only return payment plans associated with the given invoice.
|
|
11
|
+
attr_accessor :invoice
|
|
12
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
13
|
+
attr_accessor :limit
|
|
14
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
15
|
+
attr_accessor :starting_after
|
|
16
|
+
|
|
17
|
+
def initialize(ending_before: nil, expand: nil, invoice: nil, limit: nil, starting_after: nil)
|
|
18
|
+
@ending_before = ending_before
|
|
19
|
+
@expand = expand
|
|
20
|
+
@invoice = invoice
|
|
21
|
+
@limit = limit
|
|
22
|
+
@starting_after = starting_after
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentPlanRetrieveParams < ::Stripe::RequestParams
|
|
6
|
+
# Specifies which fields in the response should be expanded.
|
|
7
|
+
attr_accessor :expand
|
|
8
|
+
|
|
9
|
+
def initialize(expand: nil)
|
|
10
|
+
@expand = expand
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentPlanUpdateParams < ::Stripe::RequestParams
|
|
6
|
+
class Schedule < ::Stripe::RequestParams
|
|
7
|
+
class AmountsDue < ::Stripe::RequestParams
|
|
8
|
+
class Amount < ::Stripe::RequestParams
|
|
9
|
+
class DueDate < ::Stripe::RequestParams
|
|
10
|
+
class Relative < ::Stripe::RequestParams
|
|
11
|
+
# The number of intervals after finalization.
|
|
12
|
+
attr_accessor :count
|
|
13
|
+
# The interval unit.
|
|
14
|
+
attr_accessor :interval
|
|
15
|
+
|
|
16
|
+
def initialize(count: nil, interval: nil)
|
|
17
|
+
@count = count
|
|
18
|
+
@interval = interval
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
# Unix timestamp. Required when type is 'absolute'.
|
|
22
|
+
attr_accessor :absolute
|
|
23
|
+
# Required when type is 'relative'.
|
|
24
|
+
attr_accessor :relative
|
|
25
|
+
# Either 'absolute' or 'relative'.
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
def initialize(absolute: nil, relative: nil, type: nil)
|
|
29
|
+
@absolute = absolute
|
|
30
|
+
@relative = relative
|
|
31
|
+
@type = type
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class FixedAmount < ::Stripe::RequestParams
|
|
36
|
+
# The installment amount in minor units.
|
|
37
|
+
attr_accessor :amount
|
|
38
|
+
# Three-letter ISO currency code.
|
|
39
|
+
attr_accessor :currency
|
|
40
|
+
|
|
41
|
+
def initialize(amount: nil, currency: nil)
|
|
42
|
+
@amount = amount
|
|
43
|
+
@currency = currency
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
# Optional description for this installment.
|
|
47
|
+
attr_accessor :description
|
|
48
|
+
# When this installment is due.
|
|
49
|
+
attr_accessor :due_date
|
|
50
|
+
# Required when type is 'fixed_amount'.
|
|
51
|
+
attr_accessor :fixed_amount
|
|
52
|
+
# Optional stable identifier for the installment entry.
|
|
53
|
+
attr_accessor :id
|
|
54
|
+
# The installment percentage of the total. Required when type is 'percentage'.
|
|
55
|
+
attr_accessor :percentage
|
|
56
|
+
# Either 'fixed_amount' or 'percentage'.
|
|
57
|
+
attr_accessor :type
|
|
58
|
+
|
|
59
|
+
def initialize(
|
|
60
|
+
description: nil,
|
|
61
|
+
due_date: nil,
|
|
62
|
+
fixed_amount: nil,
|
|
63
|
+
id: nil,
|
|
64
|
+
percentage: nil,
|
|
65
|
+
type: nil
|
|
66
|
+
)
|
|
67
|
+
@description = description
|
|
68
|
+
@due_date = due_date
|
|
69
|
+
@fixed_amount = fixed_amount
|
|
70
|
+
@id = id
|
|
71
|
+
@percentage = percentage
|
|
72
|
+
@type = type
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
# The list of installment entries. Must contain at least two entries.
|
|
76
|
+
attr_accessor :amounts
|
|
77
|
+
|
|
78
|
+
def initialize(amounts: nil)
|
|
79
|
+
@amounts = amounts
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
# Required when type is 'amounts_due'. Must contain at least two installment entries.
|
|
83
|
+
attr_accessor :amounts_due
|
|
84
|
+
# The schedule type. It only supports 'amounts_due'.
|
|
85
|
+
attr_accessor :type
|
|
86
|
+
|
|
87
|
+
def initialize(amounts_due: nil, type: nil)
|
|
88
|
+
@amounts_due = amounts_due
|
|
89
|
+
@type = type
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
# Specifies which fields in the response should be expanded.
|
|
93
|
+
attr_accessor :expand
|
|
94
|
+
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
95
|
+
attr_accessor :metadata
|
|
96
|
+
# The new schedule for this payment plan.
|
|
97
|
+
attr_accessor :schedule
|
|
98
|
+
|
|
99
|
+
def initialize(expand: nil, metadata: nil, schedule: nil)
|
|
100
|
+
@expand = expand
|
|
101
|
+
@metadata = metadata
|
|
102
|
+
@schedule = schedule
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -93,6 +93,21 @@ module Stripe
|
|
|
93
93
|
}
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
|
+
|
|
97
|
+
class MigrateTo < ::Stripe::RequestParams
|
|
98
|
+
# The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
|
99
|
+
attr_accessor :behavior
|
|
100
|
+
# The time after which subscriptions should start using the new price.
|
|
101
|
+
attr_accessor :effective_after
|
|
102
|
+
# The ID of the price object.
|
|
103
|
+
attr_accessor :price
|
|
104
|
+
|
|
105
|
+
def initialize(behavior: nil, effective_after: nil, price: nil)
|
|
106
|
+
@behavior = behavior
|
|
107
|
+
@effective_after = effective_after
|
|
108
|
+
@price = price
|
|
109
|
+
end
|
|
110
|
+
end
|
|
96
111
|
# Whether the price can be used for new purchases. Defaults to `true`.
|
|
97
112
|
attr_accessor :active
|
|
98
113
|
# Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -103,6 +118,8 @@ module Stripe
|
|
|
103
118
|
attr_accessor :lookup_key
|
|
104
119
|
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
105
120
|
attr_accessor :metadata
|
|
121
|
+
# If specified, subscriptions using this price will be updated to use the new referenced price.
|
|
122
|
+
attr_accessor :migrate_to
|
|
106
123
|
# A brief description of the price, hidden from customers.
|
|
107
124
|
attr_accessor :nickname
|
|
108
125
|
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
@@ -116,6 +133,7 @@ module Stripe
|
|
|
116
133
|
expand: nil,
|
|
117
134
|
lookup_key: nil,
|
|
118
135
|
metadata: nil,
|
|
136
|
+
migrate_to: nil,
|
|
119
137
|
nickname: nil,
|
|
120
138
|
tax_behavior: nil,
|
|
121
139
|
transfer_lookup_key: nil
|
|
@@ -125,6 +143,7 @@ module Stripe
|
|
|
125
143
|
@expand = expand
|
|
126
144
|
@lookup_key = lookup_key
|
|
127
145
|
@metadata = metadata
|
|
146
|
+
@migrate_to = migrate_to
|
|
128
147
|
@nickname = nickname
|
|
129
148
|
@tax_behavior = tax_behavior
|
|
130
149
|
@transfer_lookup_key = transfer_lookup_key
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Privacy
|
|
6
|
+
class RedactionJobCancelParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Privacy
|
|
6
|
+
class RedactionJobCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class Objects < ::Stripe::RequestParams
|
|
8
|
+
# Attribute for param field charges
|
|
9
|
+
attr_accessor :charges
|
|
10
|
+
# Attribute for param field checkout_sessions
|
|
11
|
+
attr_accessor :checkout_sessions
|
|
12
|
+
# Attribute for param field customers
|
|
13
|
+
attr_accessor :customers
|
|
14
|
+
# Attribute for param field identity_verification_sessions
|
|
15
|
+
attr_accessor :identity_verification_sessions
|
|
16
|
+
# Attribute for param field invoices
|
|
17
|
+
attr_accessor :invoices
|
|
18
|
+
# Attribute for param field issuing_cardholders
|
|
19
|
+
attr_accessor :issuing_cardholders
|
|
20
|
+
# Attribute for param field issuing_cards
|
|
21
|
+
attr_accessor :issuing_cards
|
|
22
|
+
# Attribute for param field payment_intents
|
|
23
|
+
attr_accessor :payment_intents
|
|
24
|
+
# Attribute for param field radar_value_list_items
|
|
25
|
+
attr_accessor :radar_value_list_items
|
|
26
|
+
# Attribute for param field setup_intents
|
|
27
|
+
attr_accessor :setup_intents
|
|
28
|
+
|
|
29
|
+
def initialize(
|
|
30
|
+
charges: nil,
|
|
31
|
+
checkout_sessions: nil,
|
|
32
|
+
customers: nil,
|
|
33
|
+
identity_verification_sessions: nil,
|
|
34
|
+
invoices: nil,
|
|
35
|
+
issuing_cardholders: nil,
|
|
36
|
+
issuing_cards: nil,
|
|
37
|
+
payment_intents: nil,
|
|
38
|
+
radar_value_list_items: nil,
|
|
39
|
+
setup_intents: nil
|
|
40
|
+
)
|
|
41
|
+
@charges = charges
|
|
42
|
+
@checkout_sessions = checkout_sessions
|
|
43
|
+
@customers = customers
|
|
44
|
+
@identity_verification_sessions = identity_verification_sessions
|
|
45
|
+
@invoices = invoices
|
|
46
|
+
@issuing_cardholders = issuing_cardholders
|
|
47
|
+
@issuing_cards = issuing_cards
|
|
48
|
+
@payment_intents = payment_intents
|
|
49
|
+
@radar_value_list_items = radar_value_list_items
|
|
50
|
+
@setup_intents = setup_intents
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
# Specifies which fields in the response should be expanded.
|
|
54
|
+
attr_accessor :expand
|
|
55
|
+
# The objects to redact. These root objects and their related ones will be validated for redaction.
|
|
56
|
+
attr_accessor :objects
|
|
57
|
+
# Determines the validation behavior of the job. Default is `error`.
|
|
58
|
+
attr_accessor :validation_behavior
|
|
59
|
+
|
|
60
|
+
def initialize(expand: nil, objects: nil, validation_behavior: nil)
|
|
61
|
+
@expand = expand
|
|
62
|
+
@objects = objects
|
|
63
|
+
@validation_behavior = validation_behavior
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Privacy
|
|
6
|
+
class RedactionJobListParams < ::Stripe::RequestParams
|
|
7
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
13
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
# If provided, only RedactionJob objects with the given status will be returned.
|
|
16
|
+
attr_accessor :status
|
|
17
|
+
|
|
18
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil, status: nil)
|
|
19
|
+
@ending_before = ending_before
|
|
20
|
+
@expand = expand
|
|
21
|
+
@limit = limit
|
|
22
|
+
@starting_after = starting_after
|
|
23
|
+
@status = status
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|