stripe 21.1.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_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 +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 +52 -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_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 +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 +48 -1
- 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 +38 -1
- 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 +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 +981 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2391 -100
- data/lib/stripe/params/payment_intent_create_params.rb +2391 -100
- 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 +2423 -101
- 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/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/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/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 +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/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 +365 -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 +162 -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 +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 +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 +58 -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 +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 +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 +1018 -13
- 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 +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/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/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/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 +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 +339 -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/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_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/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 +186 -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 +100059 -38254
- metadata +330 -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.
|
|
@@ -993,6 +1021,8 @@ module Stripe
|
|
|
993
1021
|
end
|
|
994
1022
|
# The authorized amount.
|
|
995
1023
|
attr_reader :amount_authorized
|
|
1024
|
+
# The latest amount intended to be authorized by this charge.
|
|
1025
|
+
attr_reader :amount_requested
|
|
996
1026
|
# Authorization code on the charge.
|
|
997
1027
|
attr_reader :authorization_code
|
|
998
1028
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
@@ -1003,6 +1033,8 @@ module Stripe
|
|
|
1003
1033
|
attr_reader :checks
|
|
1004
1034
|
# 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.
|
|
1005
1035
|
attr_reader :country
|
|
1036
|
+
# Attribute for field decremental_authorization
|
|
1037
|
+
attr_reader :decremental_authorization
|
|
1006
1038
|
# 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.)
|
|
1007
1039
|
attr_reader :description
|
|
1008
1040
|
# 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.
|
|
@@ -1045,6 +1077,8 @@ module Stripe
|
|
|
1045
1077
|
attr_reader :network_transaction_id
|
|
1046
1078
|
# Attribute for field overcapture
|
|
1047
1079
|
attr_reader :overcapture
|
|
1080
|
+
# Attribute for field partial_authorization
|
|
1081
|
+
attr_reader :partial_authorization
|
|
1048
1082
|
# Status of a card based on the card issuer.
|
|
1049
1083
|
attr_reader :regulated_status
|
|
1050
1084
|
# 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`
|
|
@@ -1061,12 +1095,14 @@ module Stripe
|
|
|
1061
1095
|
def self.inner_class_types
|
|
1062
1096
|
@inner_class_types = {
|
|
1063
1097
|
checks: Checks,
|
|
1098
|
+
decremental_authorization: DecrementalAuthorization,
|
|
1064
1099
|
extended_authorization: ExtendedAuthorization,
|
|
1065
1100
|
incremental_authorization: IncrementalAuthorization,
|
|
1066
1101
|
installments: Installments,
|
|
1067
1102
|
multicapture: Multicapture,
|
|
1068
1103
|
network_token: NetworkToken,
|
|
1069
1104
|
overcapture: Overcapture,
|
|
1105
|
+
partial_authorization: PartialAuthorization,
|
|
1070
1106
|
three_d_secure: ThreeDSecure,
|
|
1071
1107
|
wallet: Wallet,
|
|
1072
1108
|
}
|
|
@@ -1301,6 +1337,16 @@ module Stripe
|
|
|
1301
1337
|
end
|
|
1302
1338
|
end
|
|
1303
1339
|
|
|
1340
|
+
class Gopay < ::Stripe::StripeObject
|
|
1341
|
+
def self.inner_class_types
|
|
1342
|
+
@inner_class_types = {}
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
def self.field_remappings
|
|
1346
|
+
@field_remappings = {}
|
|
1347
|
+
end
|
|
1348
|
+
end
|
|
1349
|
+
|
|
1304
1350
|
class Grabpay < ::Stripe::StripeObject
|
|
1305
1351
|
# Unique transaction id generated by GrabPay
|
|
1306
1352
|
attr_reader :transaction_id
|
|
@@ -1314,6 +1360,27 @@ module Stripe
|
|
|
1314
1360
|
end
|
|
1315
1361
|
end
|
|
1316
1362
|
|
|
1363
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
1364
|
+
# Account number of the bank account to transfer funds to.
|
|
1365
|
+
attr_reader :account_number
|
|
1366
|
+
# Bank where the account is located.
|
|
1367
|
+
attr_reader :bank
|
|
1368
|
+
# Local bank code of the bank.
|
|
1369
|
+
attr_reader :bank_code
|
|
1370
|
+
# Name of the bank associated with the bank account.
|
|
1371
|
+
attr_reader :bank_name
|
|
1372
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
1373
|
+
attr_reader :display_name
|
|
1374
|
+
|
|
1375
|
+
def self.inner_class_types
|
|
1376
|
+
@inner_class_types = {}
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
def self.field_remappings
|
|
1380
|
+
@field_remappings = {}
|
|
1381
|
+
end
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1317
1384
|
class Ideal < ::Stripe::StripeObject
|
|
1318
1385
|
# 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`.
|
|
1319
1386
|
attr_reader :bank
|
|
@@ -1863,6 +1930,52 @@ module Stripe
|
|
|
1863
1930
|
@field_remappings = {}
|
|
1864
1931
|
end
|
|
1865
1932
|
end
|
|
1933
|
+
|
|
1934
|
+
class Shipping < ::Stripe::StripeObject
|
|
1935
|
+
# City, district, suburb, town, or village.
|
|
1936
|
+
attr_reader :city
|
|
1937
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1938
|
+
attr_reader :country
|
|
1939
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1940
|
+
attr_reader :line1
|
|
1941
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1942
|
+
attr_reader :line2
|
|
1943
|
+
# ZIP or postal code.
|
|
1944
|
+
attr_reader :postal_code
|
|
1945
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1946
|
+
attr_reader :state
|
|
1947
|
+
|
|
1948
|
+
def self.inner_class_types
|
|
1949
|
+
@inner_class_types = {}
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1952
|
+
def self.field_remappings
|
|
1953
|
+
@field_remappings = {}
|
|
1954
|
+
end
|
|
1955
|
+
end
|
|
1956
|
+
|
|
1957
|
+
class VerifiedAddress < ::Stripe::StripeObject
|
|
1958
|
+
# City, district, suburb, town, or village.
|
|
1959
|
+
attr_reader :city
|
|
1960
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1961
|
+
attr_reader :country
|
|
1962
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1963
|
+
attr_reader :line1
|
|
1964
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1965
|
+
attr_reader :line2
|
|
1966
|
+
# ZIP or postal code.
|
|
1967
|
+
attr_reader :postal_code
|
|
1968
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1969
|
+
attr_reader :state
|
|
1970
|
+
|
|
1971
|
+
def self.inner_class_types
|
|
1972
|
+
@inner_class_types = {}
|
|
1973
|
+
end
|
|
1974
|
+
|
|
1975
|
+
def self.field_remappings
|
|
1976
|
+
@field_remappings = {}
|
|
1977
|
+
end
|
|
1978
|
+
end
|
|
1866
1979
|
# 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.
|
|
1867
1980
|
attr_reader :country
|
|
1868
1981
|
# Owner's email. Values are provided by PayPal directly
|
|
@@ -1875,11 +1988,29 @@ module Stripe
|
|
|
1875
1988
|
attr_reader :payer_name
|
|
1876
1989
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
|
1877
1990
|
attr_reader :seller_protection
|
|
1991
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1992
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1993
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1994
|
+
attr_reader :shipping
|
|
1878
1995
|
# A unique ID generated by PayPal for this transaction.
|
|
1879
1996
|
attr_reader :transaction_id
|
|
1997
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1998
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1999
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
2000
|
+
attr_reader :verified_address
|
|
2001
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
2002
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
2003
|
+
attr_reader :verified_email
|
|
2004
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
|
2005
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
2006
|
+
attr_reader :verified_name
|
|
1880
2007
|
|
|
1881
2008
|
def self.inner_class_types
|
|
1882
|
-
@inner_class_types = {
|
|
2009
|
+
@inner_class_types = {
|
|
2010
|
+
seller_protection: SellerProtection,
|
|
2011
|
+
shipping: Shipping,
|
|
2012
|
+
verified_address: VerifiedAddress,
|
|
2013
|
+
}
|
|
1883
2014
|
end
|
|
1884
2015
|
|
|
1885
2016
|
def self.field_remappings
|
|
@@ -1949,11 +2080,36 @@ module Stripe
|
|
|
1949
2080
|
end
|
|
1950
2081
|
end
|
|
1951
2082
|
|
|
2083
|
+
class Qris < ::Stripe::StripeObject
|
|
2084
|
+
def self.inner_class_types
|
|
2085
|
+
@inner_class_types = {}
|
|
2086
|
+
end
|
|
2087
|
+
|
|
2088
|
+
def self.field_remappings
|
|
2089
|
+
@field_remappings = {}
|
|
2090
|
+
end
|
|
2091
|
+
end
|
|
2092
|
+
|
|
2093
|
+
class Rechnung < ::Stripe::StripeObject
|
|
2094
|
+
# Payment portal URL.
|
|
2095
|
+
attr_reader :payment_portal_url
|
|
2096
|
+
|
|
2097
|
+
def self.inner_class_types
|
|
2098
|
+
@inner_class_types = {}
|
|
2099
|
+
end
|
|
2100
|
+
|
|
2101
|
+
def self.field_remappings
|
|
2102
|
+
@field_remappings = {}
|
|
2103
|
+
end
|
|
2104
|
+
end
|
|
2105
|
+
|
|
1952
2106
|
class RevolutPay < ::Stripe::StripeObject
|
|
1953
2107
|
class Funding < ::Stripe::StripeObject
|
|
1954
2108
|
class Card < ::Stripe::StripeObject
|
|
1955
2109
|
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
1956
2110
|
attr_reader :brand
|
|
2111
|
+
# 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.)
|
|
2112
|
+
attr_reader :brand_product
|
|
1957
2113
|
# 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.
|
|
1958
2114
|
attr_reader :country
|
|
1959
2115
|
# Two-digit number representing the card's expiration month.
|
|
@@ -2096,6 +2252,16 @@ module Stripe
|
|
|
2096
2252
|
end
|
|
2097
2253
|
end
|
|
2098
2254
|
|
|
2255
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
2256
|
+
def self.inner_class_types
|
|
2257
|
+
@inner_class_types = {}
|
|
2258
|
+
end
|
|
2259
|
+
|
|
2260
|
+
def self.field_remappings
|
|
2261
|
+
@field_remappings = {}
|
|
2262
|
+
end
|
|
2263
|
+
end
|
|
2264
|
+
|
|
2099
2265
|
class Sofort < ::Stripe::StripeObject
|
|
2100
2266
|
# Bank code of bank associated with the bank account.
|
|
2101
2267
|
attr_reader :bank_code
|
|
@@ -2137,6 +2303,19 @@ module Stripe
|
|
|
2137
2303
|
end
|
|
2138
2304
|
end
|
|
2139
2305
|
|
|
2306
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
2307
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2308
|
+
attr_reader :account
|
|
2309
|
+
|
|
2310
|
+
def self.inner_class_types
|
|
2311
|
+
@inner_class_types = {}
|
|
2312
|
+
end
|
|
2313
|
+
|
|
2314
|
+
def self.field_remappings
|
|
2315
|
+
@field_remappings = {}
|
|
2316
|
+
end
|
|
2317
|
+
end
|
|
2318
|
+
|
|
2140
2319
|
class Sunbit < ::Stripe::StripeObject
|
|
2141
2320
|
# The Sunbit transaction ID associated with this payment.
|
|
2142
2321
|
attr_reader :transaction_id
|
|
@@ -2251,6 +2430,16 @@ module Stripe
|
|
|
2251
2430
|
end
|
|
2252
2431
|
end
|
|
2253
2432
|
|
|
2433
|
+
class Wero < ::Stripe::StripeObject
|
|
2434
|
+
def self.inner_class_types
|
|
2435
|
+
@inner_class_types = {}
|
|
2436
|
+
end
|
|
2437
|
+
|
|
2438
|
+
def self.field_remappings
|
|
2439
|
+
@field_remappings = {}
|
|
2440
|
+
end
|
|
2441
|
+
end
|
|
2442
|
+
|
|
2254
2443
|
class Zip < ::Stripe::StripeObject
|
|
2255
2444
|
def self.inner_class_types
|
|
2256
2445
|
@inner_class_types = {}
|
|
@@ -2306,8 +2495,12 @@ module Stripe
|
|
|
2306
2495
|
attr_reader :fpx
|
|
2307
2496
|
# Attribute for field giropay
|
|
2308
2497
|
attr_reader :giropay
|
|
2498
|
+
# Attribute for field gopay
|
|
2499
|
+
attr_reader :gopay
|
|
2309
2500
|
# Attribute for field grabpay
|
|
2310
2501
|
attr_reader :grabpay
|
|
2502
|
+
# Attribute for field id_bank_transfer
|
|
2503
|
+
attr_reader :id_bank_transfer
|
|
2311
2504
|
# Attribute for field ideal
|
|
2312
2505
|
attr_reader :ideal
|
|
2313
2506
|
# Attribute for field interac_present
|
|
@@ -2352,6 +2545,10 @@ module Stripe
|
|
|
2352
2545
|
attr_reader :pix
|
|
2353
2546
|
# Attribute for field promptpay
|
|
2354
2547
|
attr_reader :promptpay
|
|
2548
|
+
# Attribute for field qris
|
|
2549
|
+
attr_reader :qris
|
|
2550
|
+
# Attribute for field rechnung
|
|
2551
|
+
attr_reader :rechnung
|
|
2355
2552
|
# Attribute for field revolut_pay
|
|
2356
2553
|
attr_reader :revolut_pay
|
|
2357
2554
|
# Attribute for field samsung_pay
|
|
@@ -2366,10 +2563,14 @@ module Stripe
|
|
|
2366
2563
|
attr_reader :sepa_debit
|
|
2367
2564
|
# Attribute for field sequra
|
|
2368
2565
|
attr_reader :sequra
|
|
2566
|
+
# Attribute for field shopeepay
|
|
2567
|
+
attr_reader :shopeepay
|
|
2369
2568
|
# Attribute for field sofort
|
|
2370
2569
|
attr_reader :sofort
|
|
2371
2570
|
# Attribute for field stripe_account
|
|
2372
2571
|
attr_reader :stripe_account
|
|
2572
|
+
# Attribute for field stripe_balance
|
|
2573
|
+
attr_reader :stripe_balance
|
|
2373
2574
|
# Attribute for field sunbit
|
|
2374
2575
|
attr_reader :sunbit
|
|
2375
2576
|
# Attribute for field swish
|
|
@@ -2388,6 +2589,8 @@ module Stripe
|
|
|
2388
2589
|
attr_reader :wechat
|
|
2389
2590
|
# Attribute for field wechat_pay
|
|
2390
2591
|
attr_reader :wechat_pay
|
|
2592
|
+
# Attribute for field wero
|
|
2593
|
+
attr_reader :wero
|
|
2391
2594
|
# Attribute for field zip
|
|
2392
2595
|
attr_reader :zip
|
|
2393
2596
|
|
|
@@ -2416,7 +2619,9 @@ module Stripe
|
|
|
2416
2619
|
eps: Eps,
|
|
2417
2620
|
fpx: Fpx,
|
|
2418
2621
|
giropay: Giropay,
|
|
2622
|
+
gopay: Gopay,
|
|
2419
2623
|
grabpay: Grabpay,
|
|
2624
|
+
id_bank_transfer: IdBankTransfer,
|
|
2420
2625
|
ideal: Ideal,
|
|
2421
2626
|
interac_present: InteracPresent,
|
|
2422
2627
|
kakao_pay: KakaoPay,
|
|
@@ -2439,6 +2644,8 @@ module Stripe
|
|
|
2439
2644
|
payto: Payto,
|
|
2440
2645
|
pix: Pix,
|
|
2441
2646
|
promptpay: Promptpay,
|
|
2647
|
+
qris: Qris,
|
|
2648
|
+
rechnung: Rechnung,
|
|
2442
2649
|
revolut_pay: RevolutPay,
|
|
2443
2650
|
samsung_pay: SamsungPay,
|
|
2444
2651
|
satispay: Satispay,
|
|
@@ -2446,8 +2653,10 @@ module Stripe
|
|
|
2446
2653
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
2447
2654
|
sepa_debit: SepaDebit,
|
|
2448
2655
|
sequra: Sequra,
|
|
2656
|
+
shopeepay: Shopeepay,
|
|
2449
2657
|
sofort: Sofort,
|
|
2450
2658
|
stripe_account: StripeAccount,
|
|
2659
|
+
stripe_balance: StripeBalance,
|
|
2451
2660
|
sunbit: Sunbit,
|
|
2452
2661
|
swish: Swish,
|
|
2453
2662
|
twint: Twint,
|
|
@@ -2455,6 +2664,7 @@ module Stripe
|
|
|
2455
2664
|
us_bank_account: UsBankAccount,
|
|
2456
2665
|
wechat: Wechat,
|
|
2457
2666
|
wechat_pay: WechatPay,
|
|
2667
|
+
wero: Wero,
|
|
2458
2668
|
zip: Zip,
|
|
2459
2669
|
}
|
|
2460
2670
|
end
|
|
@@ -2492,6 +2702,19 @@ module Stripe
|
|
|
2492
2702
|
end
|
|
2493
2703
|
end
|
|
2494
2704
|
|
|
2705
|
+
class Redaction < ::Stripe::StripeObject
|
|
2706
|
+
# Indicates whether this object and its related objects have been redacted or not.
|
|
2707
|
+
attr_reader :status
|
|
2708
|
+
|
|
2709
|
+
def self.inner_class_types
|
|
2710
|
+
@inner_class_types = {}
|
|
2711
|
+
end
|
|
2712
|
+
|
|
2713
|
+
def self.field_remappings
|
|
2714
|
+
@field_remappings = {}
|
|
2715
|
+
end
|
|
2716
|
+
end
|
|
2717
|
+
|
|
2495
2718
|
class Shipping < ::Stripe::StripeObject
|
|
2496
2719
|
class Address < ::Stripe::StripeObject
|
|
2497
2720
|
# City, district, suburb, town, or village.
|
|
@@ -2621,6 +2844,8 @@ module Stripe
|
|
|
2621
2844
|
attr_reader :receipt_number
|
|
2622
2845
|
# 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.
|
|
2623
2846
|
attr_reader :receipt_url
|
|
2847
|
+
# Redaction status of this charge. If not null, this charge is associated to a redaction job.
|
|
2848
|
+
attr_reader :redaction
|
|
2624
2849
|
# Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
|
|
2625
2850
|
attr_reader :refunded
|
|
2626
2851
|
# A list of refunds that have been applied to the charge.
|
|
@@ -2705,6 +2930,7 @@ module Stripe
|
|
|
2705
2930
|
payment_method_details: PaymentMethodDetails,
|
|
2706
2931
|
presentment_details: PresentmentDetails,
|
|
2707
2932
|
radar_options: RadarOptions,
|
|
2933
|
+
redaction: Redaction,
|
|
2708
2934
|
shipping: Shipping,
|
|
2709
2935
|
transfer_data: TransferData,
|
|
2710
2936
|
}
|
|
@@ -203,15 +203,36 @@ module Stripe
|
|
|
203
203
|
@field_remappings = {}
|
|
204
204
|
end
|
|
205
205
|
end
|
|
206
|
+
|
|
207
|
+
class TaxId < ::Stripe::StripeObject
|
|
208
|
+
# 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`
|
|
209
|
+
attr_reader :type
|
|
210
|
+
# The value of the tax ID.
|
|
211
|
+
attr_reader :value
|
|
212
|
+
|
|
213
|
+
def self.inner_class_types
|
|
214
|
+
@inner_class_types = {}
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
def self.field_remappings
|
|
218
|
+
@field_remappings = {}
|
|
219
|
+
end
|
|
220
|
+
end
|
|
206
221
|
# Customer’s business name for this Checkout Session
|
|
207
222
|
attr_reader :business_name
|
|
223
|
+
# Customer’s email for this Checkout Session
|
|
224
|
+
attr_reader :email
|
|
208
225
|
# Customer’s individual name for this Checkout Session
|
|
209
226
|
attr_reader :individual_name
|
|
227
|
+
# Customer’s phone number for this Checkout Session
|
|
228
|
+
attr_reader :phone
|
|
210
229
|
# Shipping information for this Checkout Session.
|
|
211
230
|
attr_reader :shipping_details
|
|
231
|
+
# Customer’s tax id for this Checkout Session.
|
|
232
|
+
attr_reader :tax_id
|
|
212
233
|
|
|
213
234
|
def self.inner_class_types
|
|
214
|
-
@inner_class_types = { shipping_details: ShippingDetails }
|
|
235
|
+
@inner_class_types = { shipping_details: ShippingDetails, tax_id: TaxId }
|
|
215
236
|
end
|
|
216
237
|
|
|
217
238
|
def self.field_remappings
|
|
@@ -1031,6 +1052,8 @@ module Stripe
|
|
|
1031
1052
|
# Attribute for field installments
|
|
1032
1053
|
attr_reader :installments
|
|
1033
1054
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1055
|
+
attr_reader :request_decremental_authorization
|
|
1056
|
+
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1034
1057
|
attr_reader :request_extended_authorization
|
|
1035
1058
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
|
1036
1059
|
attr_reader :request_incremental_authorization
|
|
@@ -1494,6 +1517,8 @@ module Stripe
|
|
|
1494
1517
|
#
|
|
1495
1518
|
# 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).
|
|
1496
1519
|
attr_reader :setup_future_usage
|
|
1520
|
+
# 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.
|
|
1521
|
+
attr_reader :subsellers
|
|
1497
1522
|
|
|
1498
1523
|
def self.inner_class_types
|
|
1499
1524
|
@inner_class_types = {}
|
|
@@ -1832,6 +1857,21 @@ module Stripe
|
|
|
1832
1857
|
class Filters < ::Stripe::StripeObject
|
|
1833
1858
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1834
1859
|
attr_reader :account_subcategories
|
|
1860
|
+
# The institution to use to filter for possible accounts to link.
|
|
1861
|
+
attr_reader :institution
|
|
1862
|
+
|
|
1863
|
+
def self.inner_class_types
|
|
1864
|
+
@inner_class_types = {}
|
|
1865
|
+
end
|
|
1866
|
+
|
|
1867
|
+
def self.field_remappings
|
|
1868
|
+
@field_remappings = {}
|
|
1869
|
+
end
|
|
1870
|
+
end
|
|
1871
|
+
|
|
1872
|
+
class ManualEntry < ::Stripe::StripeObject
|
|
1873
|
+
# Settings for configuring manual entry of account details.
|
|
1874
|
+
attr_reader :mode
|
|
1835
1875
|
|
|
1836
1876
|
def self.inner_class_types
|
|
1837
1877
|
@inner_class_types = {}
|
|
@@ -1843,6 +1883,8 @@ module Stripe
|
|
|
1843
1883
|
end
|
|
1844
1884
|
# Attribute for field filters
|
|
1845
1885
|
attr_reader :filters
|
|
1886
|
+
# Attribute for field manual_entry
|
|
1887
|
+
attr_reader :manual_entry
|
|
1846
1888
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
1847
1889
|
attr_reader :permissions
|
|
1848
1890
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -1851,7 +1893,7 @@ module Stripe
|
|
|
1851
1893
|
attr_reader :return_url
|
|
1852
1894
|
|
|
1853
1895
|
def self.inner_class_types
|
|
1854
|
-
@inner_class_types = { filters: Filters }
|
|
1896
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
|
1855
1897
|
end
|
|
1856
1898
|
|
|
1857
1899
|
def self.field_remappings
|
|
@@ -2057,6 +2099,36 @@ module Stripe
|
|
|
2057
2099
|
end
|
|
2058
2100
|
|
|
2059
2101
|
class Permissions < ::Stripe::StripeObject
|
|
2102
|
+
class Update < ::Stripe::StripeObject
|
|
2103
|
+
# Determines which entity is allowed to update the line items.
|
|
2104
|
+
#
|
|
2105
|
+
# 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.
|
|
2106
|
+
#
|
|
2107
|
+
# 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.
|
|
2108
|
+
attr_reader :line_items
|
|
2109
|
+
# Determines which entity is allowed to update the shipping details.
|
|
2110
|
+
#
|
|
2111
|
+
# 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.
|
|
2112
|
+
#
|
|
2113
|
+
# This parameter is only supported when `ui_mode=elements`.
|
|
2114
|
+
attr_reader :shipping_details
|
|
2115
|
+
|
|
2116
|
+
def self.inner_class_types
|
|
2117
|
+
@inner_class_types = {}
|
|
2118
|
+
end
|
|
2119
|
+
|
|
2120
|
+
def self.field_remappings
|
|
2121
|
+
@field_remappings = {}
|
|
2122
|
+
end
|
|
2123
|
+
end
|
|
2124
|
+
# Permissions for updating the Checkout Session.
|
|
2125
|
+
attr_reader :update
|
|
2126
|
+
# Determines which entity is allowed to update the line items.
|
|
2127
|
+
#
|
|
2128
|
+
# 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.
|
|
2129
|
+
#
|
|
2130
|
+
# 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.
|
|
2131
|
+
attr_reader :update_line_items
|
|
2060
2132
|
# Determines which entity is allowed to update the shipping details.
|
|
2061
2133
|
#
|
|
2062
2134
|
# 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.
|
|
@@ -2065,7 +2137,7 @@ module Stripe
|
|
|
2065
2137
|
attr_reader :update_shipping_details
|
|
2066
2138
|
|
|
2067
2139
|
def self.inner_class_types
|
|
2068
|
-
@inner_class_types = {}
|
|
2140
|
+
@inner_class_types = { update: Update }
|
|
2069
2141
|
end
|
|
2070
2142
|
|
|
2071
2143
|
def self.field_remappings
|
|
@@ -2101,6 +2173,19 @@ module Stripe
|
|
|
2101
2173
|
end
|
|
2102
2174
|
end
|
|
2103
2175
|
|
|
2176
|
+
class Redaction < ::Stripe::StripeObject
|
|
2177
|
+
# Indicates whether this object and its related objects have been redacted or not.
|
|
2178
|
+
attr_reader :status
|
|
2179
|
+
|
|
2180
|
+
def self.inner_class_types
|
|
2181
|
+
@inner_class_types = {}
|
|
2182
|
+
end
|
|
2183
|
+
|
|
2184
|
+
def self.field_remappings
|
|
2185
|
+
@field_remappings = {}
|
|
2186
|
+
end
|
|
2187
|
+
end
|
|
2188
|
+
|
|
2104
2189
|
class SavedPaymentMethodOptions < ::Stripe::StripeObject
|
|
2105
2190
|
# 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.
|
|
2106
2191
|
attr_reader :allow_redisplay_filters
|
|
@@ -2419,6 +2504,8 @@ module Stripe
|
|
|
2419
2504
|
attr_reader :presentment_details
|
|
2420
2505
|
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
|
2421
2506
|
attr_reader :recovered_from
|
|
2507
|
+
# The redaction status of the Checkout Session. If the Session is not redacted, this field is null.
|
|
2508
|
+
attr_reader :redaction
|
|
2422
2509
|
# 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`.
|
|
2423
2510
|
attr_reader :redirect_on_completion
|
|
2424
2511
|
# 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.
|
|
@@ -2557,6 +2644,7 @@ module Stripe
|
|
|
2557
2644
|
permissions: Permissions,
|
|
2558
2645
|
phone_number_collection: PhoneNumberCollection,
|
|
2559
2646
|
presentment_details: PresentmentDetails,
|
|
2647
|
+
redaction: Redaction,
|
|
2560
2648
|
saved_payment_method_options: SavedPaymentMethodOptions,
|
|
2561
2649
|
shipping_address_collection: ShippingAddressCollection,
|
|
2562
2650
|
shipping_cost: ShippingCost,
|