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
|
@@ -5,16 +5,44 @@ module Stripe
|
|
|
5
5
|
class SubscriptionUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
7
7
|
class Discount < ::Stripe::RequestParams
|
|
8
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
9
|
+
class Duration < ::Stripe::RequestParams
|
|
10
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
11
|
+
attr_accessor :interval
|
|
12
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
13
|
+
attr_accessor :interval_count
|
|
14
|
+
|
|
15
|
+
def initialize(interval: nil, interval_count: nil)
|
|
16
|
+
@interval = interval
|
|
17
|
+
@interval_count = interval_count
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Time span for the redeemed discount.
|
|
21
|
+
attr_accessor :duration
|
|
22
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
23
|
+
attr_accessor :timestamp
|
|
24
|
+
# The type of calculation made to determine when the discount ends.
|
|
25
|
+
attr_accessor :type
|
|
26
|
+
|
|
27
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
28
|
+
@duration = duration
|
|
29
|
+
@timestamp = timestamp
|
|
30
|
+
@type = type
|
|
31
|
+
end
|
|
32
|
+
end
|
|
8
33
|
# ID of the coupon to create a new discount for.
|
|
9
34
|
attr_accessor :coupon
|
|
10
35
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
11
36
|
attr_accessor :discount
|
|
37
|
+
# Details to determine how long the discount should be applied for.
|
|
38
|
+
attr_accessor :discount_end
|
|
12
39
|
# ID of the promotion code to create a new discount for.
|
|
13
40
|
attr_accessor :promotion_code
|
|
14
41
|
|
|
15
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
42
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
16
43
|
@coupon = coupon
|
|
17
44
|
@discount = discount
|
|
45
|
+
@discount_end = discount_end
|
|
18
46
|
@promotion_code = promotion_code
|
|
19
47
|
end
|
|
20
48
|
end
|
|
@@ -240,16 +268,44 @@ module Stripe
|
|
|
240
268
|
end
|
|
241
269
|
|
|
242
270
|
class Discount < ::Stripe::RequestParams
|
|
271
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
272
|
+
class Duration < ::Stripe::RequestParams
|
|
273
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
274
|
+
attr_accessor :interval
|
|
275
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
276
|
+
attr_accessor :interval_count
|
|
277
|
+
|
|
278
|
+
def initialize(interval: nil, interval_count: nil)
|
|
279
|
+
@interval = interval
|
|
280
|
+
@interval_count = interval_count
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
# Time span for the redeemed discount.
|
|
284
|
+
attr_accessor :duration
|
|
285
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
286
|
+
attr_accessor :timestamp
|
|
287
|
+
# The type of calculation made to determine when the discount ends.
|
|
288
|
+
attr_accessor :type
|
|
289
|
+
|
|
290
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
291
|
+
@duration = duration
|
|
292
|
+
@timestamp = timestamp
|
|
293
|
+
@type = type
|
|
294
|
+
end
|
|
295
|
+
end
|
|
243
296
|
# ID of the coupon to create a new discount for.
|
|
244
297
|
attr_accessor :coupon
|
|
245
298
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
246
299
|
attr_accessor :discount
|
|
300
|
+
# Details to determine how long the discount should be applied for.
|
|
301
|
+
attr_accessor :discount_end
|
|
247
302
|
# ID of the promotion code to create a new discount for.
|
|
248
303
|
attr_accessor :promotion_code
|
|
249
304
|
|
|
250
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
305
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
251
306
|
@coupon = coupon
|
|
252
307
|
@discount = discount
|
|
308
|
+
@discount_end = discount_end
|
|
253
309
|
@promotion_code = promotion_code
|
|
254
310
|
end
|
|
255
311
|
end
|
|
@@ -315,25 +371,56 @@ module Stripe
|
|
|
315
371
|
end
|
|
316
372
|
|
|
317
373
|
class CurrentTrial < ::Stripe::RequestParams
|
|
374
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
375
|
+
attr_accessor :trial_end
|
|
318
376
|
# The ID of the trial offer to apply to the subscription item.
|
|
319
377
|
attr_accessor :trial_offer
|
|
320
378
|
|
|
321
|
-
def initialize(trial_offer: nil)
|
|
379
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
380
|
+
@trial_end = trial_end
|
|
322
381
|
@trial_offer = trial_offer
|
|
323
382
|
end
|
|
324
383
|
end
|
|
325
384
|
|
|
326
385
|
class Discount < ::Stripe::RequestParams
|
|
386
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
387
|
+
class Duration < ::Stripe::RequestParams
|
|
388
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
389
|
+
attr_accessor :interval
|
|
390
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
391
|
+
attr_accessor :interval_count
|
|
392
|
+
|
|
393
|
+
def initialize(interval: nil, interval_count: nil)
|
|
394
|
+
@interval = interval
|
|
395
|
+
@interval_count = interval_count
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
# Time span for the redeemed discount.
|
|
399
|
+
attr_accessor :duration
|
|
400
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
401
|
+
attr_accessor :timestamp
|
|
402
|
+
# The type of calculation made to determine when the discount ends.
|
|
403
|
+
attr_accessor :type
|
|
404
|
+
|
|
405
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
406
|
+
@duration = duration
|
|
407
|
+
@timestamp = timestamp
|
|
408
|
+
@type = type
|
|
409
|
+
end
|
|
410
|
+
end
|
|
327
411
|
# ID of the coupon to create a new discount for.
|
|
328
412
|
attr_accessor :coupon
|
|
329
413
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
330
414
|
attr_accessor :discount
|
|
415
|
+
# Details to determine how long the discount should be applied for.
|
|
416
|
+
attr_accessor :discount_end
|
|
331
417
|
# ID of the promotion code to create a new discount for.
|
|
332
418
|
attr_accessor :promotion_code
|
|
333
419
|
|
|
334
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
420
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
335
421
|
@coupon = coupon
|
|
336
422
|
@discount = discount
|
|
423
|
+
@discount_end = discount_end
|
|
337
424
|
@promotion_code = promotion_code
|
|
338
425
|
end
|
|
339
426
|
end
|
|
@@ -628,6 +715,7 @@ module Stripe
|
|
|
628
715
|
end
|
|
629
716
|
end
|
|
630
717
|
|
|
718
|
+
class IdBankTransfer < ::Stripe::RequestParams; end
|
|
631
719
|
class Konbini < ::Stripe::RequestParams; end
|
|
632
720
|
|
|
633
721
|
class Payto < ::Stripe::RequestParams
|
|
@@ -717,9 +805,12 @@ module Stripe
|
|
|
717
805
|
class Filters < ::Stripe::RequestParams
|
|
718
806
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
719
807
|
attr_accessor :account_subcategories
|
|
808
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
809
|
+
attr_accessor :institution
|
|
720
810
|
|
|
721
|
-
def initialize(account_subcategories: nil)
|
|
811
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
722
812
|
@account_subcategories = account_subcategories
|
|
813
|
+
@institution = institution
|
|
723
814
|
end
|
|
724
815
|
end
|
|
725
816
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
@@ -757,6 +848,8 @@ module Stripe
|
|
|
757
848
|
attr_accessor :card
|
|
758
849
|
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
759
850
|
attr_accessor :customer_balance
|
|
851
|
+
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
852
|
+
attr_accessor :id_bank_transfer
|
|
760
853
|
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
761
854
|
attr_accessor :konbini
|
|
762
855
|
# This sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
@@ -777,6 +870,7 @@ module Stripe
|
|
|
777
870
|
blik: nil,
|
|
778
871
|
card: nil,
|
|
779
872
|
customer_balance: nil,
|
|
873
|
+
id_bank_transfer: nil,
|
|
780
874
|
konbini: nil,
|
|
781
875
|
payto: nil,
|
|
782
876
|
pix: nil,
|
|
@@ -790,6 +884,7 @@ module Stripe
|
|
|
790
884
|
@blik = blik
|
|
791
885
|
@card = card
|
|
792
886
|
@customer_balance = customer_balance
|
|
887
|
+
@id_bank_transfer = id_bank_transfer
|
|
793
888
|
@konbini = konbini
|
|
794
889
|
@payto = payto
|
|
795
890
|
@pix = pix
|
|
@@ -828,6 +923,18 @@ module Stripe
|
|
|
828
923
|
end
|
|
829
924
|
end
|
|
830
925
|
|
|
926
|
+
class Prebilling < ::Stripe::RequestParams
|
|
927
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
928
|
+
attr_accessor :iterations
|
|
929
|
+
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
930
|
+
attr_accessor :update_behavior
|
|
931
|
+
|
|
932
|
+
def initialize(iterations: nil, update_behavior: nil)
|
|
933
|
+
@iterations = iterations
|
|
934
|
+
@update_behavior = update_behavior
|
|
935
|
+
end
|
|
936
|
+
end
|
|
937
|
+
|
|
831
938
|
class TransferData < ::Stripe::RequestParams
|
|
832
939
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
833
940
|
attr_accessor :amount_percent
|
|
@@ -911,6 +1018,8 @@ module Stripe
|
|
|
911
1018
|
attr_accessor :payment_settings
|
|
912
1019
|
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](/api/invoices/create) for the given subscription at the specified interval.
|
|
913
1020
|
attr_accessor :pending_invoice_item_interval
|
|
1021
|
+
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1022
|
+
attr_accessor :prebilling
|
|
914
1023
|
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
915
1024
|
attr_accessor :proration_behavior
|
|
916
1025
|
# If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
|
|
@@ -951,6 +1060,7 @@ module Stripe
|
|
|
951
1060
|
payment_behavior: nil,
|
|
952
1061
|
payment_settings: nil,
|
|
953
1062
|
pending_invoice_item_interval: nil,
|
|
1063
|
+
prebilling: nil,
|
|
954
1064
|
proration_behavior: nil,
|
|
955
1065
|
proration_date: nil,
|
|
956
1066
|
transfer_data: nil,
|
|
@@ -984,6 +1094,7 @@ module Stripe
|
|
|
984
1094
|
@payment_behavior = payment_behavior
|
|
985
1095
|
@payment_settings = payment_settings
|
|
986
1096
|
@pending_invoice_item_interval = pending_invoice_item_interval
|
|
1097
|
+
@prebilling = prebilling
|
|
987
1098
|
@proration_behavior = proration_behavior
|
|
988
1099
|
@proration_date = proration_date
|
|
989
1100
|
@transfer_data = transfer_data
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class FormListParams < ::Stripe::RequestParams
|
|
7
|
+
class Payee < ::Stripe::RequestParams
|
|
8
|
+
# The ID of the Stripe account whose forms will be retrieved.
|
|
9
|
+
attr_accessor :account
|
|
10
|
+
# The external reference to the payee whose forms will be retrieved.
|
|
11
|
+
attr_accessor :external_reference
|
|
12
|
+
# Specifies the payee type.
|
|
13
|
+
attr_accessor :type
|
|
14
|
+
|
|
15
|
+
def initialize(account: nil, external_reference: nil, type: nil)
|
|
16
|
+
@account = account
|
|
17
|
+
@external_reference = external_reference
|
|
18
|
+
@type = type
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
22
|
+
attr_accessor :ending_before
|
|
23
|
+
# Specifies which fields in the response should be expanded.
|
|
24
|
+
attr_accessor :expand
|
|
25
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
26
|
+
attr_accessor :limit
|
|
27
|
+
# The payee whose volume is represented on the tax form.
|
|
28
|
+
attr_accessor :payee
|
|
29
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
30
|
+
attr_accessor :starting_after
|
|
31
|
+
# An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future tax form types. If your integration expects only one type of tax form in the response, make sure to provide a type value in the request.
|
|
32
|
+
attr_accessor :type
|
|
33
|
+
|
|
34
|
+
def initialize(
|
|
35
|
+
ending_before: nil,
|
|
36
|
+
expand: nil,
|
|
37
|
+
limit: nil,
|
|
38
|
+
payee: nil,
|
|
39
|
+
starting_after: nil,
|
|
40
|
+
type: nil
|
|
41
|
+
)
|
|
42
|
+
@ending_before = ending_before
|
|
43
|
+
@expand = expand
|
|
44
|
+
@limit = limit
|
|
45
|
+
@payee = payee
|
|
46
|
+
@starting_after = starting_after
|
|
47
|
+
@type = type
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class FormPdfParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class FormRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -563,6 +563,15 @@ module Stripe
|
|
|
563
563
|
end
|
|
564
564
|
|
|
565
565
|
class Es < ::Stripe::RequestParams
|
|
566
|
+
class Igic < ::Stripe::RequestParams
|
|
567
|
+
# Place of supply scheme used in an IGIC registration.
|
|
568
|
+
attr_accessor :place_of_supply_scheme
|
|
569
|
+
|
|
570
|
+
def initialize(place_of_supply_scheme: nil)
|
|
571
|
+
@place_of_supply_scheme = place_of_supply_scheme
|
|
572
|
+
end
|
|
573
|
+
end
|
|
574
|
+
|
|
566
575
|
class Standard < ::Stripe::RequestParams
|
|
567
576
|
# Place of supply scheme used in an EU standard registration.
|
|
568
577
|
attr_accessor :place_of_supply_scheme
|
|
@@ -571,12 +580,15 @@ module Stripe
|
|
|
571
580
|
@place_of_supply_scheme = place_of_supply_scheme
|
|
572
581
|
end
|
|
573
582
|
end
|
|
583
|
+
# Options for the IGIC registration.
|
|
584
|
+
attr_accessor :igic
|
|
574
585
|
# Options for the standard registration.
|
|
575
586
|
attr_accessor :standard
|
|
576
587
|
# Type of registration to be created in ES.
|
|
577
588
|
attr_accessor :type
|
|
578
589
|
|
|
579
|
-
def initialize(standard: nil, type: nil)
|
|
590
|
+
def initialize(igic: nil, standard: nil, type: nil)
|
|
591
|
+
@igic = igic
|
|
580
592
|
@standard = standard
|
|
581
593
|
@type = type
|
|
582
594
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Terminal
|
|
6
|
+
class ReaderCollectedDataRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -142,8 +142,18 @@ module Stripe
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
class Giropay < ::Stripe::RequestParams; end
|
|
145
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
145
146
|
class Grabpay < ::Stripe::RequestParams; end
|
|
146
147
|
|
|
148
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
149
|
+
# Bank where the account is held.
|
|
150
|
+
attr_accessor :bank
|
|
151
|
+
|
|
152
|
+
def initialize(bank: nil)
|
|
153
|
+
@bank = bank
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
147
157
|
class Ideal < ::Stripe::RequestParams
|
|
148
158
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
149
159
|
attr_accessor :bank
|
|
@@ -260,6 +270,7 @@ module Stripe
|
|
|
260
270
|
|
|
261
271
|
class Pix < ::Stripe::RequestParams; end
|
|
262
272
|
class Promptpay < ::Stripe::RequestParams; end
|
|
273
|
+
class Qris < ::Stripe::RequestParams; end
|
|
263
274
|
|
|
264
275
|
class RadarOptions < ::Stripe::RequestParams
|
|
265
276
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -270,6 +281,29 @@ module Stripe
|
|
|
270
281
|
end
|
|
271
282
|
end
|
|
272
283
|
|
|
284
|
+
class Rechnung < ::Stripe::RequestParams
|
|
285
|
+
class Dob < ::Stripe::RequestParams
|
|
286
|
+
# The day of birth, between 1 and 31.
|
|
287
|
+
attr_accessor :day
|
|
288
|
+
# The month of birth, between 1 and 12.
|
|
289
|
+
attr_accessor :month
|
|
290
|
+
# The four-digit year of birth.
|
|
291
|
+
attr_accessor :year
|
|
292
|
+
|
|
293
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
294
|
+
@day = day
|
|
295
|
+
@month = month
|
|
296
|
+
@year = year
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
# Customer's date of birth
|
|
300
|
+
attr_accessor :dob
|
|
301
|
+
|
|
302
|
+
def initialize(dob: nil)
|
|
303
|
+
@dob = dob
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
|
|
273
307
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
274
308
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
275
309
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -285,6 +319,7 @@ module Stripe
|
|
|
285
319
|
end
|
|
286
320
|
|
|
287
321
|
class Sequra < ::Stripe::RequestParams; end
|
|
322
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
288
323
|
|
|
289
324
|
class Sofort < ::Stripe::RequestParams
|
|
290
325
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -295,6 +330,15 @@ module Stripe
|
|
|
295
330
|
end
|
|
296
331
|
end
|
|
297
332
|
|
|
333
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
334
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
335
|
+
attr_accessor :account
|
|
336
|
+
|
|
337
|
+
def initialize(account: nil)
|
|
338
|
+
@account = account
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
298
342
|
class Sunbit < ::Stripe::RequestParams; end
|
|
299
343
|
class Swish < ::Stripe::RequestParams; end
|
|
300
344
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -326,12 +370,25 @@ module Stripe
|
|
|
326
370
|
end
|
|
327
371
|
|
|
328
372
|
class UsBankAccount < ::Stripe::RequestParams
|
|
373
|
+
class ExternalToken < ::Stripe::RequestParams
|
|
374
|
+
# The Plaid processor token to use for this bank account.
|
|
375
|
+
attr_accessor :plaid_processor_token
|
|
376
|
+
# The type of external token.
|
|
377
|
+
attr_accessor :type
|
|
378
|
+
|
|
379
|
+
def initialize(plaid_processor_token: nil, type: nil)
|
|
380
|
+
@plaid_processor_token = plaid_processor_token
|
|
381
|
+
@type = type
|
|
382
|
+
end
|
|
383
|
+
end
|
|
329
384
|
# Account holder type: individual or company.
|
|
330
385
|
attr_accessor :account_holder_type
|
|
331
386
|
# Account number of the bank account.
|
|
332
387
|
attr_accessor :account_number
|
|
333
388
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
334
389
|
attr_accessor :account_type
|
|
390
|
+
# An external token used to create a payment method.
|
|
391
|
+
attr_accessor :external_token
|
|
335
392
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
336
393
|
attr_accessor :financial_connections_account
|
|
337
394
|
# Routing number of the bank account.
|
|
@@ -341,18 +398,21 @@ module Stripe
|
|
|
341
398
|
account_holder_type: nil,
|
|
342
399
|
account_number: nil,
|
|
343
400
|
account_type: nil,
|
|
401
|
+
external_token: nil,
|
|
344
402
|
financial_connections_account: nil,
|
|
345
403
|
routing_number: nil
|
|
346
404
|
)
|
|
347
405
|
@account_holder_type = account_holder_type
|
|
348
406
|
@account_number = account_number
|
|
349
407
|
@account_type = account_type
|
|
408
|
+
@external_token = external_token
|
|
350
409
|
@financial_connections_account = financial_connections_account
|
|
351
410
|
@routing_number = routing_number
|
|
352
411
|
end
|
|
353
412
|
end
|
|
354
413
|
|
|
355
414
|
class WechatPay < ::Stripe::RequestParams; end
|
|
415
|
+
class Wero < ::Stripe::RequestParams; end
|
|
356
416
|
class Zip < ::Stripe::RequestParams; end
|
|
357
417
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
358
418
|
attr_accessor :acss_debit
|
|
@@ -396,8 +456,12 @@ module Stripe
|
|
|
396
456
|
attr_accessor :fpx
|
|
397
457
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
398
458
|
attr_accessor :giropay
|
|
459
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
460
|
+
attr_accessor :gopay
|
|
399
461
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
400
462
|
attr_accessor :grabpay
|
|
463
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
464
|
+
attr_accessor :id_bank_transfer
|
|
401
465
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
402
466
|
attr_accessor :ideal
|
|
403
467
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -444,8 +508,12 @@ module Stripe
|
|
|
444
508
|
attr_accessor :pix
|
|
445
509
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
446
510
|
attr_accessor :promptpay
|
|
511
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
512
|
+
attr_accessor :qris
|
|
447
513
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
448
514
|
attr_accessor :radar_options
|
|
515
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
516
|
+
attr_accessor :rechnung
|
|
449
517
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
450
518
|
attr_accessor :revolut_pay
|
|
451
519
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -458,8 +526,14 @@ module Stripe
|
|
|
458
526
|
attr_accessor :sepa_debit
|
|
459
527
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
460
528
|
attr_accessor :sequra
|
|
529
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
530
|
+
attr_accessor :shared_payment_granted_token
|
|
531
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
532
|
+
attr_accessor :shopeepay
|
|
461
533
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
462
534
|
attr_accessor :sofort
|
|
535
|
+
# This hash contains details about the Stripe balance payment method.
|
|
536
|
+
attr_accessor :stripe_balance
|
|
463
537
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
464
538
|
attr_accessor :sunbit
|
|
465
539
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -474,6 +548,8 @@ module Stripe
|
|
|
474
548
|
attr_accessor :us_bank_account
|
|
475
549
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
476
550
|
attr_accessor :wechat_pay
|
|
551
|
+
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
552
|
+
attr_accessor :wero
|
|
477
553
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
478
554
|
attr_accessor :zip
|
|
479
555
|
|
|
@@ -499,7 +575,9 @@ module Stripe
|
|
|
499
575
|
eps: nil,
|
|
500
576
|
fpx: nil,
|
|
501
577
|
giropay: nil,
|
|
578
|
+
gopay: nil,
|
|
502
579
|
grabpay: nil,
|
|
580
|
+
id_bank_transfer: nil,
|
|
503
581
|
ideal: nil,
|
|
504
582
|
interac_present: nil,
|
|
505
583
|
kakao_pay: nil,
|
|
@@ -523,14 +601,19 @@ module Stripe
|
|
|
523
601
|
payto: nil,
|
|
524
602
|
pix: nil,
|
|
525
603
|
promptpay: nil,
|
|
604
|
+
qris: nil,
|
|
526
605
|
radar_options: nil,
|
|
606
|
+
rechnung: nil,
|
|
527
607
|
revolut_pay: nil,
|
|
528
608
|
samsung_pay: nil,
|
|
529
609
|
satispay: nil,
|
|
530
610
|
scalapay: nil,
|
|
531
611
|
sepa_debit: nil,
|
|
532
612
|
sequra: nil,
|
|
613
|
+
shared_payment_granted_token: nil,
|
|
614
|
+
shopeepay: nil,
|
|
533
615
|
sofort: nil,
|
|
616
|
+
stripe_balance: nil,
|
|
534
617
|
sunbit: nil,
|
|
535
618
|
swish: nil,
|
|
536
619
|
twint: nil,
|
|
@@ -538,6 +621,7 @@ module Stripe
|
|
|
538
621
|
upi: nil,
|
|
539
622
|
us_bank_account: nil,
|
|
540
623
|
wechat_pay: nil,
|
|
624
|
+
wero: nil,
|
|
541
625
|
zip: nil
|
|
542
626
|
)
|
|
543
627
|
@acss_debit = acss_debit
|
|
@@ -561,7 +645,9 @@ module Stripe
|
|
|
561
645
|
@eps = eps
|
|
562
646
|
@fpx = fpx
|
|
563
647
|
@giropay = giropay
|
|
648
|
+
@gopay = gopay
|
|
564
649
|
@grabpay = grabpay
|
|
650
|
+
@id_bank_transfer = id_bank_transfer
|
|
565
651
|
@ideal = ideal
|
|
566
652
|
@interac_present = interac_present
|
|
567
653
|
@kakao_pay = kakao_pay
|
|
@@ -585,14 +671,19 @@ module Stripe
|
|
|
585
671
|
@payto = payto
|
|
586
672
|
@pix = pix
|
|
587
673
|
@promptpay = promptpay
|
|
674
|
+
@qris = qris
|
|
588
675
|
@radar_options = radar_options
|
|
676
|
+
@rechnung = rechnung
|
|
589
677
|
@revolut_pay = revolut_pay
|
|
590
678
|
@samsung_pay = samsung_pay
|
|
591
679
|
@satispay = satispay
|
|
592
680
|
@scalapay = scalapay
|
|
593
681
|
@sepa_debit = sepa_debit
|
|
594
682
|
@sequra = sequra
|
|
683
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
684
|
+
@shopeepay = shopeepay
|
|
595
685
|
@sofort = sofort
|
|
686
|
+
@stripe_balance = stripe_balance
|
|
596
687
|
@sunbit = sunbit
|
|
597
688
|
@swish = swish
|
|
598
689
|
@twint = twint
|
|
@@ -600,6 +691,7 @@ module Stripe
|
|
|
600
691
|
@upi = upi
|
|
601
692
|
@us_bank_account = us_bank_account
|
|
602
693
|
@wechat_pay = wechat_pay
|
|
694
|
+
@wero = wero
|
|
603
695
|
@zip = zip
|
|
604
696
|
end
|
|
605
697
|
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module SharedPayment
|
|
7
|
+
class GrantedTokenCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class UsageLimits < ::Stripe::RequestParams
|
|
9
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
10
|
+
attr_accessor :currency
|
|
11
|
+
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
12
|
+
attr_accessor :expires_at
|
|
13
|
+
# Max amount that can be captured using this SharedPaymentToken
|
|
14
|
+
attr_accessor :max_amount
|
|
15
|
+
|
|
16
|
+
def initialize(currency: nil, expires_at: nil, max_amount: nil)
|
|
17
|
+
@currency = currency
|
|
18
|
+
@expires_at = expires_at
|
|
19
|
+
@max_amount = max_amount
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any.
|
|
23
|
+
attr_accessor :customer
|
|
24
|
+
# Specifies which fields in the response should be expanded.
|
|
25
|
+
attr_accessor :expand
|
|
26
|
+
# The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken.
|
|
27
|
+
attr_accessor :payment_method
|
|
28
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken.
|
|
29
|
+
attr_accessor :shared_metadata
|
|
30
|
+
# Limits on how this SharedPaymentGrantedToken can be used.
|
|
31
|
+
attr_accessor :usage_limits
|
|
32
|
+
|
|
33
|
+
def initialize(
|
|
34
|
+
customer: nil,
|
|
35
|
+
expand: nil,
|
|
36
|
+
payment_method: nil,
|
|
37
|
+
shared_metadata: nil,
|
|
38
|
+
usage_limits: nil
|
|
39
|
+
)
|
|
40
|
+
@customer = customer
|
|
41
|
+
@expand = expand
|
|
42
|
+
@payment_method = payment_method
|
|
43
|
+
@shared_metadata = shared_metadata
|
|
44
|
+
@usage_limits = usage_limits
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|