stripe 20.1.0 → 20.2.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +4 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +193 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +53 -0
- data/lib/stripe/params/account_create_params.rb +299 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +191 -0
- data/lib/stripe/params/account_update_params.rb +261 -0
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +87 -3
- data/lib/stripe/params/checkout/session_update_params.rb +161 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +64 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +64 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
- data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +88 -0
- data/lib/stripe/params/payment_plan_create_params.rb +128 -0
- data/lib/stripe/params/payment_plan_list_params.rb +25 -0
- data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_plan_update_params.rb +105 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/quote_create_params.rb +809 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +817 -4
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
- data/lib/stripe/params/setup_intent_create_params.rb +122 -3
- data/lib/stripe/params/setup_intent_update_params.rb +122 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +133 -6
- data/lib/stripe/params/subscription_item_create_params.rb +50 -3
- data/lib/stripe/params/subscription_item_update_params.rb +33 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +116 -5
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
- data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +364 -0
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +144 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +227 -1
- data/lib/stripe/resources/checkout/session.rb +91 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +18 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +149 -0
- data/lib/stripe/resources/invoice.rb +106 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/authorization.rb +16 -0
- data/lib/stripe/resources/issuing/card.rb +16 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -1
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +18 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1588 -10
- data/lib/stripe/resources/payment_method.rb +151 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_plan.rb +213 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/plan.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +38 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +73 -0
- data/lib/stripe/resources/subscription_item.rb +22 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/token.rb +15 -1
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +802 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
- data/lib/stripe/resources/v2/data/query_run.rb +255 -0
- data/lib/stripe/resources/v2/data/report.rb +104 -0
- data/lib/stripe/resources/v2/data/report_run.rb +246 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/data/schema.rb +121 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
- data/lib/stripe/resources.rb +341 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_plan_service.rb +50 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +30 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +45 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
- data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
- data/lib/stripe/services/v2/data/report_service.rb +34 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data/schema_service.rb +32 -0
- data/lib/stripe/services/v2/data_service.rb +19 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +181 -0
- data/lib/stripe/stripe_client.rb +4 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +216 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
- data/rbi/stripe.rbi +133319 -66595
- metadata +331 -3
|
@@ -318,6 +318,8 @@ module Stripe
|
|
|
318
318
|
class Card < ::Stripe::StripeObject
|
|
319
319
|
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
320
320
|
attr_reader :brand
|
|
321
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
322
|
+
attr_reader :brand_product
|
|
321
323
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
322
324
|
attr_reader :country
|
|
323
325
|
# Two-digit number representing the card's expiration month.
|
|
@@ -507,6 +509,19 @@ module Stripe
|
|
|
507
509
|
end
|
|
508
510
|
end
|
|
509
511
|
|
|
512
|
+
class DecrementalAuthorization < ::Stripe::StripeObject
|
|
513
|
+
# Indicates whether or not the decremental authorization feature is supported.
|
|
514
|
+
attr_reader :status
|
|
515
|
+
|
|
516
|
+
def self.inner_class_types
|
|
517
|
+
@inner_class_types = {}
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
def self.field_remappings
|
|
521
|
+
@field_remappings = {}
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
|
|
510
525
|
class ExtendedAuthorization < ::Stripe::StripeObject
|
|
511
526
|
# Indicates whether or not the capture window is extended beyond the standard authorization.
|
|
512
527
|
attr_reader :status
|
|
@@ -604,6 +619,19 @@ module Stripe
|
|
|
604
619
|
end
|
|
605
620
|
end
|
|
606
621
|
|
|
622
|
+
class PartialAuthorization < ::Stripe::StripeObject
|
|
623
|
+
# Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
|
|
624
|
+
attr_reader :status
|
|
625
|
+
|
|
626
|
+
def self.inner_class_types
|
|
627
|
+
@inner_class_types = {}
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
def self.field_remappings
|
|
631
|
+
@field_remappings = {}
|
|
632
|
+
end
|
|
633
|
+
end
|
|
634
|
+
|
|
607
635
|
class ThreeDSecure < ::Stripe::StripeObject
|
|
608
636
|
# For authenticated transactions: how the customer was authenticated by
|
|
609
637
|
# the issuing bank.
|
|
@@ -860,6 +888,8 @@ module Stripe
|
|
|
860
888
|
end
|
|
861
889
|
# The authorized amount.
|
|
862
890
|
attr_reader :amount_authorized
|
|
891
|
+
# The latest amount intended to be authorized by this charge.
|
|
892
|
+
attr_reader :amount_requested
|
|
863
893
|
# Authorization code on the charge.
|
|
864
894
|
attr_reader :authorization_code
|
|
865
895
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
@@ -870,6 +900,8 @@ module Stripe
|
|
|
870
900
|
attr_reader :checks
|
|
871
901
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
872
902
|
attr_reader :country
|
|
903
|
+
# Attribute for field decremental_authorization
|
|
904
|
+
attr_reader :decremental_authorization
|
|
873
905
|
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
874
906
|
attr_reader :description
|
|
875
907
|
# The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
|
|
@@ -912,6 +944,8 @@ module Stripe
|
|
|
912
944
|
attr_reader :network_transaction_id
|
|
913
945
|
# Attribute for field overcapture
|
|
914
946
|
attr_reader :overcapture
|
|
947
|
+
# Attribute for field partial_authorization
|
|
948
|
+
attr_reader :partial_authorization
|
|
915
949
|
# Status of a card based on the card issuer.
|
|
916
950
|
attr_reader :regulated_status
|
|
917
951
|
# The payment_method_options.card.setup_credential_usage value that was passed when setup_future_usage was present at confirmation, one of `recurring`, `unscheduled`, or `installment`
|
|
@@ -928,12 +962,14 @@ module Stripe
|
|
|
928
962
|
def self.inner_class_types
|
|
929
963
|
@inner_class_types = {
|
|
930
964
|
checks: Checks,
|
|
965
|
+
decremental_authorization: DecrementalAuthorization,
|
|
931
966
|
extended_authorization: ExtendedAuthorization,
|
|
932
967
|
incremental_authorization: IncrementalAuthorization,
|
|
933
968
|
installments: Installments,
|
|
934
969
|
multicapture: Multicapture,
|
|
935
970
|
network_token: NetworkToken,
|
|
936
971
|
overcapture: Overcapture,
|
|
972
|
+
partial_authorization: PartialAuthorization,
|
|
937
973
|
three_d_secure: ThreeDSecure,
|
|
938
974
|
wallet: Wallet,
|
|
939
975
|
}
|
|
@@ -1168,6 +1204,16 @@ module Stripe
|
|
|
1168
1204
|
end
|
|
1169
1205
|
end
|
|
1170
1206
|
|
|
1207
|
+
class Gopay < ::Stripe::StripeObject
|
|
1208
|
+
def self.inner_class_types
|
|
1209
|
+
@inner_class_types = {}
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
def self.field_remappings
|
|
1213
|
+
@field_remappings = {}
|
|
1214
|
+
end
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1171
1217
|
class Grabpay < ::Stripe::StripeObject
|
|
1172
1218
|
# Unique transaction id generated by GrabPay
|
|
1173
1219
|
attr_reader :transaction_id
|
|
@@ -1181,6 +1227,27 @@ module Stripe
|
|
|
1181
1227
|
end
|
|
1182
1228
|
end
|
|
1183
1229
|
|
|
1230
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
1231
|
+
# Account number of the bank account to transfer funds to.
|
|
1232
|
+
attr_reader :account_number
|
|
1233
|
+
# Bank where the account is located.
|
|
1234
|
+
attr_reader :bank
|
|
1235
|
+
# Local bank code of the bank.
|
|
1236
|
+
attr_reader :bank_code
|
|
1237
|
+
# Name of the bank associated with the bank account.
|
|
1238
|
+
attr_reader :bank_name
|
|
1239
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
1240
|
+
attr_reader :display_name
|
|
1241
|
+
|
|
1242
|
+
def self.inner_class_types
|
|
1243
|
+
@inner_class_types = {}
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
def self.field_remappings
|
|
1247
|
+
@field_remappings = {}
|
|
1248
|
+
end
|
|
1249
|
+
end
|
|
1250
|
+
|
|
1184
1251
|
class Ideal < ::Stripe::StripeObject
|
|
1185
1252
|
# The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
1186
1253
|
attr_reader :bank
|
|
@@ -1597,6 +1664,52 @@ module Stripe
|
|
|
1597
1664
|
@field_remappings = {}
|
|
1598
1665
|
end
|
|
1599
1666
|
end
|
|
1667
|
+
|
|
1668
|
+
class Shipping < ::Stripe::StripeObject
|
|
1669
|
+
# City, district, suburb, town, or village.
|
|
1670
|
+
attr_reader :city
|
|
1671
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1672
|
+
attr_reader :country
|
|
1673
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1674
|
+
attr_reader :line1
|
|
1675
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1676
|
+
attr_reader :line2
|
|
1677
|
+
# ZIP or postal code.
|
|
1678
|
+
attr_reader :postal_code
|
|
1679
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1680
|
+
attr_reader :state
|
|
1681
|
+
|
|
1682
|
+
def self.inner_class_types
|
|
1683
|
+
@inner_class_types = {}
|
|
1684
|
+
end
|
|
1685
|
+
|
|
1686
|
+
def self.field_remappings
|
|
1687
|
+
@field_remappings = {}
|
|
1688
|
+
end
|
|
1689
|
+
end
|
|
1690
|
+
|
|
1691
|
+
class VerifiedAddress < ::Stripe::StripeObject
|
|
1692
|
+
# City, district, suburb, town, or village.
|
|
1693
|
+
attr_reader :city
|
|
1694
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1695
|
+
attr_reader :country
|
|
1696
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1697
|
+
attr_reader :line1
|
|
1698
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1699
|
+
attr_reader :line2
|
|
1700
|
+
# ZIP or postal code.
|
|
1701
|
+
attr_reader :postal_code
|
|
1702
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1703
|
+
attr_reader :state
|
|
1704
|
+
|
|
1705
|
+
def self.inner_class_types
|
|
1706
|
+
@inner_class_types = {}
|
|
1707
|
+
end
|
|
1708
|
+
|
|
1709
|
+
def self.field_remappings
|
|
1710
|
+
@field_remappings = {}
|
|
1711
|
+
end
|
|
1712
|
+
end
|
|
1600
1713
|
# Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1601
1714
|
attr_reader :country
|
|
1602
1715
|
# Owner's email. Values are provided by PayPal directly
|
|
@@ -1609,11 +1722,29 @@ module Stripe
|
|
|
1609
1722
|
attr_reader :payer_name
|
|
1610
1723
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
|
1611
1724
|
attr_reader :seller_protection
|
|
1725
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1726
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1727
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1728
|
+
attr_reader :shipping
|
|
1612
1729
|
# A unique ID generated by PayPal for this transaction.
|
|
1613
1730
|
attr_reader :transaction_id
|
|
1731
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1732
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1733
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1734
|
+
attr_reader :verified_address
|
|
1735
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1736
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1737
|
+
attr_reader :verified_email
|
|
1738
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
|
1739
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1740
|
+
attr_reader :verified_name
|
|
1614
1741
|
|
|
1615
1742
|
def self.inner_class_types
|
|
1616
|
-
@inner_class_types = {
|
|
1743
|
+
@inner_class_types = {
|
|
1744
|
+
seller_protection: SellerProtection,
|
|
1745
|
+
shipping: Shipping,
|
|
1746
|
+
verified_address: VerifiedAddress,
|
|
1747
|
+
}
|
|
1617
1748
|
end
|
|
1618
1749
|
|
|
1619
1750
|
def self.field_remappings
|
|
@@ -1680,11 +1811,36 @@ module Stripe
|
|
|
1680
1811
|
end
|
|
1681
1812
|
end
|
|
1682
1813
|
|
|
1814
|
+
class Qris < ::Stripe::StripeObject
|
|
1815
|
+
def self.inner_class_types
|
|
1816
|
+
@inner_class_types = {}
|
|
1817
|
+
end
|
|
1818
|
+
|
|
1819
|
+
def self.field_remappings
|
|
1820
|
+
@field_remappings = {}
|
|
1821
|
+
end
|
|
1822
|
+
end
|
|
1823
|
+
|
|
1824
|
+
class Rechnung < ::Stripe::StripeObject
|
|
1825
|
+
# Payment portal URL.
|
|
1826
|
+
attr_reader :payment_portal_url
|
|
1827
|
+
|
|
1828
|
+
def self.inner_class_types
|
|
1829
|
+
@inner_class_types = {}
|
|
1830
|
+
end
|
|
1831
|
+
|
|
1832
|
+
def self.field_remappings
|
|
1833
|
+
@field_remappings = {}
|
|
1834
|
+
end
|
|
1835
|
+
end
|
|
1836
|
+
|
|
1683
1837
|
class RevolutPay < ::Stripe::StripeObject
|
|
1684
1838
|
class Funding < ::Stripe::StripeObject
|
|
1685
1839
|
class Card < ::Stripe::StripeObject
|
|
1686
1840
|
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
1687
1841
|
attr_reader :brand
|
|
1842
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
1843
|
+
attr_reader :brand_product
|
|
1688
1844
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
1689
1845
|
attr_reader :country
|
|
1690
1846
|
# Two-digit number representing the card's expiration month.
|
|
@@ -1827,6 +1983,16 @@ module Stripe
|
|
|
1827
1983
|
end
|
|
1828
1984
|
end
|
|
1829
1985
|
|
|
1986
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
1987
|
+
def self.inner_class_types
|
|
1988
|
+
@inner_class_types = {}
|
|
1989
|
+
end
|
|
1990
|
+
|
|
1991
|
+
def self.field_remappings
|
|
1992
|
+
@field_remappings = {}
|
|
1993
|
+
end
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1830
1996
|
class Sofort < ::Stripe::StripeObject
|
|
1831
1997
|
# Bank code of bank associated with the bank account.
|
|
1832
1998
|
attr_reader :bank_code
|
|
@@ -1868,6 +2034,19 @@ module Stripe
|
|
|
1868
2034
|
end
|
|
1869
2035
|
end
|
|
1870
2036
|
|
|
2037
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
2038
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2039
|
+
attr_reader :account
|
|
2040
|
+
|
|
2041
|
+
def self.inner_class_types
|
|
2042
|
+
@inner_class_types = {}
|
|
2043
|
+
end
|
|
2044
|
+
|
|
2045
|
+
def self.field_remappings
|
|
2046
|
+
@field_remappings = {}
|
|
2047
|
+
end
|
|
2048
|
+
end
|
|
2049
|
+
|
|
1871
2050
|
class Sunbit < ::Stripe::StripeObject
|
|
1872
2051
|
# The Sunbit transaction ID associated with this payment.
|
|
1873
2052
|
attr_reader :transaction_id
|
|
@@ -1982,6 +2161,16 @@ module Stripe
|
|
|
1982
2161
|
end
|
|
1983
2162
|
end
|
|
1984
2163
|
|
|
2164
|
+
class Wero < ::Stripe::StripeObject
|
|
2165
|
+
def self.inner_class_types
|
|
2166
|
+
@inner_class_types = {}
|
|
2167
|
+
end
|
|
2168
|
+
|
|
2169
|
+
def self.field_remappings
|
|
2170
|
+
@field_remappings = {}
|
|
2171
|
+
end
|
|
2172
|
+
end
|
|
2173
|
+
|
|
1985
2174
|
class Zip < ::Stripe::StripeObject
|
|
1986
2175
|
def self.inner_class_types
|
|
1987
2176
|
@inner_class_types = {}
|
|
@@ -2037,8 +2226,12 @@ module Stripe
|
|
|
2037
2226
|
attr_reader :fpx
|
|
2038
2227
|
# Attribute for field giropay
|
|
2039
2228
|
attr_reader :giropay
|
|
2229
|
+
# Attribute for field gopay
|
|
2230
|
+
attr_reader :gopay
|
|
2040
2231
|
# Attribute for field grabpay
|
|
2041
2232
|
attr_reader :grabpay
|
|
2233
|
+
# Attribute for field id_bank_transfer
|
|
2234
|
+
attr_reader :id_bank_transfer
|
|
2042
2235
|
# Attribute for field ideal
|
|
2043
2236
|
attr_reader :ideal
|
|
2044
2237
|
# Attribute for field interac_present
|
|
@@ -2083,6 +2276,10 @@ module Stripe
|
|
|
2083
2276
|
attr_reader :pix
|
|
2084
2277
|
# Attribute for field promptpay
|
|
2085
2278
|
attr_reader :promptpay
|
|
2279
|
+
# Attribute for field qris
|
|
2280
|
+
attr_reader :qris
|
|
2281
|
+
# Attribute for field rechnung
|
|
2282
|
+
attr_reader :rechnung
|
|
2086
2283
|
# Attribute for field revolut_pay
|
|
2087
2284
|
attr_reader :revolut_pay
|
|
2088
2285
|
# Attribute for field samsung_pay
|
|
@@ -2097,10 +2294,14 @@ module Stripe
|
|
|
2097
2294
|
attr_reader :sepa_debit
|
|
2098
2295
|
# Attribute for field sequra
|
|
2099
2296
|
attr_reader :sequra
|
|
2297
|
+
# Attribute for field shopeepay
|
|
2298
|
+
attr_reader :shopeepay
|
|
2100
2299
|
# Attribute for field sofort
|
|
2101
2300
|
attr_reader :sofort
|
|
2102
2301
|
# Attribute for field stripe_account
|
|
2103
2302
|
attr_reader :stripe_account
|
|
2303
|
+
# Attribute for field stripe_balance
|
|
2304
|
+
attr_reader :stripe_balance
|
|
2104
2305
|
# Attribute for field sunbit
|
|
2105
2306
|
attr_reader :sunbit
|
|
2106
2307
|
# Attribute for field swish
|
|
@@ -2119,6 +2320,8 @@ module Stripe
|
|
|
2119
2320
|
attr_reader :wechat
|
|
2120
2321
|
# Attribute for field wechat_pay
|
|
2121
2322
|
attr_reader :wechat_pay
|
|
2323
|
+
# Attribute for field wero
|
|
2324
|
+
attr_reader :wero
|
|
2122
2325
|
# Attribute for field zip
|
|
2123
2326
|
attr_reader :zip
|
|
2124
2327
|
|
|
@@ -2147,7 +2350,9 @@ module Stripe
|
|
|
2147
2350
|
eps: Eps,
|
|
2148
2351
|
fpx: Fpx,
|
|
2149
2352
|
giropay: Giropay,
|
|
2353
|
+
gopay: Gopay,
|
|
2150
2354
|
grabpay: Grabpay,
|
|
2355
|
+
id_bank_transfer: IdBankTransfer,
|
|
2151
2356
|
ideal: Ideal,
|
|
2152
2357
|
interac_present: InteracPresent,
|
|
2153
2358
|
kakao_pay: KakaoPay,
|
|
@@ -2170,6 +2375,8 @@ module Stripe
|
|
|
2170
2375
|
payto: Payto,
|
|
2171
2376
|
pix: Pix,
|
|
2172
2377
|
promptpay: Promptpay,
|
|
2378
|
+
qris: Qris,
|
|
2379
|
+
rechnung: Rechnung,
|
|
2173
2380
|
revolut_pay: RevolutPay,
|
|
2174
2381
|
samsung_pay: SamsungPay,
|
|
2175
2382
|
satispay: Satispay,
|
|
@@ -2177,8 +2384,10 @@ module Stripe
|
|
|
2177
2384
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
2178
2385
|
sepa_debit: SepaDebit,
|
|
2179
2386
|
sequra: Sequra,
|
|
2387
|
+
shopeepay: Shopeepay,
|
|
2180
2388
|
sofort: Sofort,
|
|
2181
2389
|
stripe_account: StripeAccount,
|
|
2390
|
+
stripe_balance: StripeBalance,
|
|
2182
2391
|
sunbit: Sunbit,
|
|
2183
2392
|
swish: Swish,
|
|
2184
2393
|
twint: Twint,
|
|
@@ -2186,6 +2395,7 @@ module Stripe
|
|
|
2186
2395
|
us_bank_account: UsBankAccount,
|
|
2187
2396
|
wechat: Wechat,
|
|
2188
2397
|
wechat_pay: WechatPay,
|
|
2398
|
+
wero: Wero,
|
|
2189
2399
|
zip: Zip,
|
|
2190
2400
|
}
|
|
2191
2401
|
end
|
|
@@ -2223,6 +2433,19 @@ module Stripe
|
|
|
2223
2433
|
end
|
|
2224
2434
|
end
|
|
2225
2435
|
|
|
2436
|
+
class Redaction < ::Stripe::StripeObject
|
|
2437
|
+
# Indicates whether this object and its related objects have been redacted or not.
|
|
2438
|
+
attr_reader :status
|
|
2439
|
+
|
|
2440
|
+
def self.inner_class_types
|
|
2441
|
+
@inner_class_types = {}
|
|
2442
|
+
end
|
|
2443
|
+
|
|
2444
|
+
def self.field_remappings
|
|
2445
|
+
@field_remappings = {}
|
|
2446
|
+
end
|
|
2447
|
+
end
|
|
2448
|
+
|
|
2226
2449
|
class Shipping < ::Stripe::StripeObject
|
|
2227
2450
|
class Address < ::Stripe::StripeObject
|
|
2228
2451
|
# City, district, suburb, town, or village.
|
|
@@ -2352,6 +2575,8 @@ module Stripe
|
|
|
2352
2575
|
attr_reader :receipt_number
|
|
2353
2576
|
# This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
|
|
2354
2577
|
attr_reader :receipt_url
|
|
2578
|
+
# Redaction status of this charge. If not null, this charge is associated to a redaction job.
|
|
2579
|
+
attr_reader :redaction
|
|
2355
2580
|
# Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
|
|
2356
2581
|
attr_reader :refunded
|
|
2357
2582
|
# A list of refunds that have been applied to the charge.
|
|
@@ -2436,6 +2661,7 @@ module Stripe
|
|
|
2436
2661
|
payment_method_details: PaymentMethodDetails,
|
|
2437
2662
|
presentment_details: PresentmentDetails,
|
|
2438
2663
|
radar_options: RadarOptions,
|
|
2664
|
+
redaction: Redaction,
|
|
2439
2665
|
shipping: Shipping,
|
|
2440
2666
|
transfer_data: TransferData,
|
|
2441
2667
|
}
|
|
@@ -201,15 +201,36 @@ module Stripe
|
|
|
201
201
|
@field_remappings = {}
|
|
202
202
|
end
|
|
203
203
|
end
|
|
204
|
+
|
|
205
|
+
class TaxId < ::Stripe::StripeObject
|
|
206
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `au_acn`, `nz_bn`, `pt_nif`, `cz_dic`, `fr_siret`, `fr_siren`, `fr_spi`, `sm_coe`, `tt_vat`, `tt_bir`, `mu_vat`, `mz_nuit`, `au_wpn`, `md_cf`, `is_kt`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, `gh_tin`, `bw_vat`, `ci_vat`, or `unknown`
|
|
207
|
+
attr_reader :type
|
|
208
|
+
# The value of the tax ID.
|
|
209
|
+
attr_reader :value
|
|
210
|
+
|
|
211
|
+
def self.inner_class_types
|
|
212
|
+
@inner_class_types = {}
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def self.field_remappings
|
|
216
|
+
@field_remappings = {}
|
|
217
|
+
end
|
|
218
|
+
end
|
|
204
219
|
# Customer’s business name for this Checkout Session
|
|
205
220
|
attr_reader :business_name
|
|
221
|
+
# Customer’s email for this Checkout Session
|
|
222
|
+
attr_reader :email
|
|
206
223
|
# Customer’s individual name for this Checkout Session
|
|
207
224
|
attr_reader :individual_name
|
|
225
|
+
# Customer’s phone number for this Checkout Session
|
|
226
|
+
attr_reader :phone
|
|
208
227
|
# Shipping information for this Checkout Session.
|
|
209
228
|
attr_reader :shipping_details
|
|
229
|
+
# Customer’s tax id for this Checkout Session.
|
|
230
|
+
attr_reader :tax_id
|
|
210
231
|
|
|
211
232
|
def self.inner_class_types
|
|
212
|
-
@inner_class_types = { shipping_details: ShippingDetails }
|
|
233
|
+
@inner_class_types = { shipping_details: ShippingDetails, tax_id: TaxId }
|
|
213
234
|
end
|
|
214
235
|
|
|
215
236
|
def self.field_remappings
|
|
@@ -1029,6 +1050,8 @@ module Stripe
|
|
|
1029
1050
|
# Attribute for field installments
|
|
1030
1051
|
attr_reader :installments
|
|
1031
1052
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1053
|
+
attr_reader :request_decremental_authorization
|
|
1054
|
+
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1032
1055
|
attr_reader :request_extended_authorization
|
|
1033
1056
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
|
1034
1057
|
attr_reader :request_incremental_authorization
|
|
@@ -1492,6 +1515,8 @@ module Stripe
|
|
|
1492
1515
|
#
|
|
1493
1516
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
1494
1517
|
attr_reader :setup_future_usage
|
|
1518
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
1519
|
+
attr_reader :subsellers
|
|
1495
1520
|
|
|
1496
1521
|
def self.inner_class_types
|
|
1497
1522
|
@inner_class_types = {}
|
|
@@ -1830,6 +1855,21 @@ module Stripe
|
|
|
1830
1855
|
class Filters < ::Stripe::StripeObject
|
|
1831
1856
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1832
1857
|
attr_reader :account_subcategories
|
|
1858
|
+
# The institution to use to filter for possible accounts to link.
|
|
1859
|
+
attr_reader :institution
|
|
1860
|
+
|
|
1861
|
+
def self.inner_class_types
|
|
1862
|
+
@inner_class_types = {}
|
|
1863
|
+
end
|
|
1864
|
+
|
|
1865
|
+
def self.field_remappings
|
|
1866
|
+
@field_remappings = {}
|
|
1867
|
+
end
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1870
|
+
class ManualEntry < ::Stripe::StripeObject
|
|
1871
|
+
# Settings for configuring manual entry of account details.
|
|
1872
|
+
attr_reader :mode
|
|
1833
1873
|
|
|
1834
1874
|
def self.inner_class_types
|
|
1835
1875
|
@inner_class_types = {}
|
|
@@ -1841,6 +1881,8 @@ module Stripe
|
|
|
1841
1881
|
end
|
|
1842
1882
|
# Attribute for field filters
|
|
1843
1883
|
attr_reader :filters
|
|
1884
|
+
# Attribute for field manual_entry
|
|
1885
|
+
attr_reader :manual_entry
|
|
1844
1886
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
1845
1887
|
attr_reader :permissions
|
|
1846
1888
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -1849,7 +1891,7 @@ module Stripe
|
|
|
1849
1891
|
attr_reader :return_url
|
|
1850
1892
|
|
|
1851
1893
|
def self.inner_class_types
|
|
1852
|
-
@inner_class_types = { filters: Filters }
|
|
1894
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
|
1853
1895
|
end
|
|
1854
1896
|
|
|
1855
1897
|
def self.field_remappings
|
|
@@ -2055,6 +2097,36 @@ module Stripe
|
|
|
2055
2097
|
end
|
|
2056
2098
|
|
|
2057
2099
|
class Permissions < ::Stripe::StripeObject
|
|
2100
|
+
class Update < ::Stripe::StripeObject
|
|
2101
|
+
# Determines which entity is allowed to update the line items.
|
|
2102
|
+
#
|
|
2103
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2104
|
+
#
|
|
2105
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2106
|
+
attr_reader :line_items
|
|
2107
|
+
# Determines which entity is allowed to update the shipping details.
|
|
2108
|
+
#
|
|
2109
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
2110
|
+
#
|
|
2111
|
+
# This parameter is only supported when `ui_mode=elements`.
|
|
2112
|
+
attr_reader :shipping_details
|
|
2113
|
+
|
|
2114
|
+
def self.inner_class_types
|
|
2115
|
+
@inner_class_types = {}
|
|
2116
|
+
end
|
|
2117
|
+
|
|
2118
|
+
def self.field_remappings
|
|
2119
|
+
@field_remappings = {}
|
|
2120
|
+
end
|
|
2121
|
+
end
|
|
2122
|
+
# Permissions for updating the Checkout Session.
|
|
2123
|
+
attr_reader :update
|
|
2124
|
+
# Determines which entity is allowed to update the line items.
|
|
2125
|
+
#
|
|
2126
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2127
|
+
#
|
|
2128
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2129
|
+
attr_reader :update_line_items
|
|
2058
2130
|
# Determines which entity is allowed to update the shipping details.
|
|
2059
2131
|
#
|
|
2060
2132
|
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
@@ -2063,7 +2135,7 @@ module Stripe
|
|
|
2063
2135
|
attr_reader :update_shipping_details
|
|
2064
2136
|
|
|
2065
2137
|
def self.inner_class_types
|
|
2066
|
-
@inner_class_types = {}
|
|
2138
|
+
@inner_class_types = { update: Update }
|
|
2067
2139
|
end
|
|
2068
2140
|
|
|
2069
2141
|
def self.field_remappings
|
|
@@ -2099,6 +2171,19 @@ module Stripe
|
|
|
2099
2171
|
end
|
|
2100
2172
|
end
|
|
2101
2173
|
|
|
2174
|
+
class Redaction < ::Stripe::StripeObject
|
|
2175
|
+
# Indicates whether this object and its related objects have been redacted or not.
|
|
2176
|
+
attr_reader :status
|
|
2177
|
+
|
|
2178
|
+
def self.inner_class_types
|
|
2179
|
+
@inner_class_types = {}
|
|
2180
|
+
end
|
|
2181
|
+
|
|
2182
|
+
def self.field_remappings
|
|
2183
|
+
@field_remappings = {}
|
|
2184
|
+
end
|
|
2185
|
+
end
|
|
2186
|
+
|
|
2102
2187
|
class SavedPaymentMethodOptions < ::Stripe::StripeObject
|
|
2103
2188
|
# Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
|
|
2104
2189
|
attr_reader :allow_redisplay_filters
|
|
@@ -2417,6 +2502,8 @@ module Stripe
|
|
|
2417
2502
|
attr_reader :presentment_details
|
|
2418
2503
|
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
|
2419
2504
|
attr_reader :recovered_from
|
|
2505
|
+
# The redaction status of the Checkout Session. If the Session is not redacted, this field is null.
|
|
2506
|
+
attr_reader :redaction
|
|
2420
2507
|
# This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
|
2421
2508
|
attr_reader :redirect_on_completion
|
|
2422
2509
|
# Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
@@ -2553,6 +2640,7 @@ module Stripe
|
|
|
2553
2640
|
permissions: Permissions,
|
|
2554
2641
|
phone_number_collection: PhoneNumberCollection,
|
|
2555
2642
|
presentment_details: PresentmentDetails,
|
|
2643
|
+
redaction: Redaction,
|
|
2556
2644
|
saved_payment_method_options: SavedPaymentMethodOptions,
|
|
2557
2645
|
shipping_address_collection: ShippingAddressCollection,
|
|
2558
2646
|
shipping_cost: ShippingCost,
|