stripe 18.1.0 → 18.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 +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +213 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +52 -0
- data/lib/stripe/params/account_create_params.rb +304 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +266 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +129 -3
- data/lib/stripe/params/checkout/session_update_params.rb +141 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/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 +30 -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 +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
- 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 +107 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -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 +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
- 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 +77 -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 +801 -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 +809 -4
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +158 -3
- data/lib/stripe/params/setup_intent_create_params.rb +158 -3
- data/lib/stripe/params/setup_intent_update_params.rb +158 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +254 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +237 -4
- 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/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -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_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 +223 -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 +229 -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 +251 -4
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +151 -0
- data/lib/stripe/resources/account.rb +182 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/charge.rb +215 -1
- data/lib/stripe/resources/checkout/session.rb +104 -4
- data/lib/stripe/resources/confirmation_token.rb +133 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +150 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +66 -1
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +737 -4
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -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 +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +88 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +230 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +196 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_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 +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +565 -3
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources.rb +104 -0
- data/lib/stripe/services/account_notice_service.rb +39 -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/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/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -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_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -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/v1_services.rb +9 -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 +61 -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/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +55 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +425 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +54 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +93543 -33169
- metadata +314 -3
|
@@ -411,6 +411,23 @@ module Stripe
|
|
|
411
411
|
end
|
|
412
412
|
end
|
|
413
413
|
|
|
414
|
+
class Gopay < ::Stripe::RequestParams
|
|
415
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
416
|
+
# The account's preference for whether or not to display this payment method.
|
|
417
|
+
attr_accessor :preference
|
|
418
|
+
|
|
419
|
+
def initialize(preference: nil)
|
|
420
|
+
@preference = preference
|
|
421
|
+
end
|
|
422
|
+
end
|
|
423
|
+
# Whether or not the payment method should be displayed.
|
|
424
|
+
attr_accessor :display_preference
|
|
425
|
+
|
|
426
|
+
def initialize(display_preference: nil)
|
|
427
|
+
@display_preference = display_preference
|
|
428
|
+
end
|
|
429
|
+
end
|
|
430
|
+
|
|
414
431
|
class Grabpay < ::Stripe::RequestParams
|
|
415
432
|
class DisplayPreference < ::Stripe::RequestParams
|
|
416
433
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -428,6 +445,23 @@ module Stripe
|
|
|
428
445
|
end
|
|
429
446
|
end
|
|
430
447
|
|
|
448
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
449
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
450
|
+
# The account's preference for whether or not to display this payment method.
|
|
451
|
+
attr_accessor :preference
|
|
452
|
+
|
|
453
|
+
def initialize(preference: nil)
|
|
454
|
+
@preference = preference
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
# Whether or not the payment method should be displayed.
|
|
458
|
+
attr_accessor :display_preference
|
|
459
|
+
|
|
460
|
+
def initialize(display_preference: nil)
|
|
461
|
+
@display_preference = display_preference
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
|
|
431
465
|
class Ideal < ::Stripe::RequestParams
|
|
432
466
|
class DisplayPreference < ::Stripe::RequestParams
|
|
433
467
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -734,6 +768,23 @@ module Stripe
|
|
|
734
768
|
end
|
|
735
769
|
end
|
|
736
770
|
|
|
771
|
+
class Paypay < ::Stripe::RequestParams
|
|
772
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
773
|
+
# The account's preference for whether or not to display this payment method.
|
|
774
|
+
attr_accessor :preference
|
|
775
|
+
|
|
776
|
+
def initialize(preference: nil)
|
|
777
|
+
@preference = preference
|
|
778
|
+
end
|
|
779
|
+
end
|
|
780
|
+
# Whether or not the payment method should be displayed.
|
|
781
|
+
attr_accessor :display_preference
|
|
782
|
+
|
|
783
|
+
def initialize(display_preference: nil)
|
|
784
|
+
@display_preference = display_preference
|
|
785
|
+
end
|
|
786
|
+
end
|
|
787
|
+
|
|
737
788
|
class Payto < ::Stripe::RequestParams
|
|
738
789
|
class DisplayPreference < ::Stripe::RequestParams
|
|
739
790
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -785,6 +836,23 @@ module Stripe
|
|
|
785
836
|
end
|
|
786
837
|
end
|
|
787
838
|
|
|
839
|
+
class Qris < ::Stripe::RequestParams
|
|
840
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
841
|
+
# The account's preference for whether or not to display this payment method.
|
|
842
|
+
attr_accessor :preference
|
|
843
|
+
|
|
844
|
+
def initialize(preference: nil)
|
|
845
|
+
@preference = preference
|
|
846
|
+
end
|
|
847
|
+
end
|
|
848
|
+
# Whether or not the payment method should be displayed.
|
|
849
|
+
attr_accessor :display_preference
|
|
850
|
+
|
|
851
|
+
def initialize(display_preference: nil)
|
|
852
|
+
@display_preference = display_preference
|
|
853
|
+
end
|
|
854
|
+
end
|
|
855
|
+
|
|
788
856
|
class RevolutPay < ::Stripe::RequestParams
|
|
789
857
|
class DisplayPreference < ::Stripe::RequestParams
|
|
790
858
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -853,6 +921,23 @@ module Stripe
|
|
|
853
921
|
end
|
|
854
922
|
end
|
|
855
923
|
|
|
924
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
925
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
926
|
+
# The account's preference for whether or not to display this payment method.
|
|
927
|
+
attr_accessor :preference
|
|
928
|
+
|
|
929
|
+
def initialize(preference: nil)
|
|
930
|
+
@preference = preference
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
# Whether or not the payment method should be displayed.
|
|
934
|
+
attr_accessor :display_preference
|
|
935
|
+
|
|
936
|
+
def initialize(display_preference: nil)
|
|
937
|
+
@display_preference = display_preference
|
|
938
|
+
end
|
|
939
|
+
end
|
|
940
|
+
|
|
856
941
|
class Sofort < ::Stripe::RequestParams
|
|
857
942
|
class DisplayPreference < ::Stripe::RequestParams
|
|
858
943
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -1004,8 +1089,12 @@ module Stripe
|
|
|
1004
1089
|
attr_accessor :giropay
|
|
1005
1090
|
# Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.
|
|
1006
1091
|
attr_accessor :google_pay
|
|
1092
|
+
# GoPay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
|
|
1093
|
+
attr_accessor :gopay
|
|
1007
1094
|
# GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.
|
|
1008
1095
|
attr_accessor :grabpay
|
|
1096
|
+
# Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
|
|
1097
|
+
attr_accessor :id_bank_transfer
|
|
1009
1098
|
# iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.
|
|
1010
1099
|
attr_accessor :ideal
|
|
1011
1100
|
# JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
|
|
@@ -1046,12 +1135,16 @@ module Stripe
|
|
|
1046
1135
|
attr_accessor :paynow
|
|
1047
1136
|
# PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.
|
|
1048
1137
|
attr_accessor :paypal
|
|
1138
|
+
# Customers can pay with PayPay online or using the PayPay app.
|
|
1139
|
+
attr_accessor :paypay
|
|
1049
1140
|
# PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
|
|
1050
1141
|
attr_accessor :payto
|
|
1051
1142
|
# Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
|
|
1052
1143
|
attr_accessor :pix
|
|
1053
1144
|
# PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.
|
|
1054
1145
|
attr_accessor :promptpay
|
|
1146
|
+
# QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
|
|
1147
|
+
attr_accessor :qris
|
|
1055
1148
|
# Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
|
|
1056
1149
|
attr_accessor :revolut_pay
|
|
1057
1150
|
# Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
|
@@ -1060,6 +1153,8 @@ module Stripe
|
|
|
1060
1153
|
attr_accessor :satispay
|
|
1061
1154
|
# The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.
|
|
1062
1155
|
attr_accessor :sepa_debit
|
|
1156
|
+
# ShopeePay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
|
|
1157
|
+
attr_accessor :shopeepay
|
|
1063
1158
|
# Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.
|
|
1064
1159
|
attr_accessor :sofort
|
|
1065
1160
|
# Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.
|
|
@@ -1099,7 +1194,9 @@ module Stripe
|
|
|
1099
1194
|
fr_meal_voucher_conecs: nil,
|
|
1100
1195
|
giropay: nil,
|
|
1101
1196
|
google_pay: nil,
|
|
1197
|
+
gopay: nil,
|
|
1102
1198
|
grabpay: nil,
|
|
1199
|
+
id_bank_transfer: nil,
|
|
1103
1200
|
ideal: nil,
|
|
1104
1201
|
jcb: nil,
|
|
1105
1202
|
kakao_pay: nil,
|
|
@@ -1120,13 +1217,16 @@ module Stripe
|
|
|
1120
1217
|
payco: nil,
|
|
1121
1218
|
paynow: nil,
|
|
1122
1219
|
paypal: nil,
|
|
1220
|
+
paypay: nil,
|
|
1123
1221
|
payto: nil,
|
|
1124
1222
|
pix: nil,
|
|
1125
1223
|
promptpay: nil,
|
|
1224
|
+
qris: nil,
|
|
1126
1225
|
revolut_pay: nil,
|
|
1127
1226
|
samsung_pay: nil,
|
|
1128
1227
|
satispay: nil,
|
|
1129
1228
|
sepa_debit: nil,
|
|
1229
|
+
shopeepay: nil,
|
|
1130
1230
|
sofort: nil,
|
|
1131
1231
|
swish: nil,
|
|
1132
1232
|
twint: nil,
|
|
@@ -1159,7 +1259,9 @@ module Stripe
|
|
|
1159
1259
|
@fr_meal_voucher_conecs = fr_meal_voucher_conecs
|
|
1160
1260
|
@giropay = giropay
|
|
1161
1261
|
@google_pay = google_pay
|
|
1262
|
+
@gopay = gopay
|
|
1162
1263
|
@grabpay = grabpay
|
|
1264
|
+
@id_bank_transfer = id_bank_transfer
|
|
1163
1265
|
@ideal = ideal
|
|
1164
1266
|
@jcb = jcb
|
|
1165
1267
|
@kakao_pay = kakao_pay
|
|
@@ -1180,13 +1282,16 @@ module Stripe
|
|
|
1180
1282
|
@payco = payco
|
|
1181
1283
|
@paynow = paynow
|
|
1182
1284
|
@paypal = paypal
|
|
1285
|
+
@paypay = paypay
|
|
1183
1286
|
@payto = payto
|
|
1184
1287
|
@pix = pix
|
|
1185
1288
|
@promptpay = promptpay
|
|
1289
|
+
@qris = qris
|
|
1186
1290
|
@revolut_pay = revolut_pay
|
|
1187
1291
|
@samsung_pay = samsung_pay
|
|
1188
1292
|
@satispay = satispay
|
|
1189
1293
|
@sepa_debit = sepa_debit
|
|
1294
|
+
@shopeepay = shopeepay
|
|
1190
1295
|
@sofort = sofort
|
|
1191
1296
|
@swish = swish
|
|
1192
1297
|
@twint = twint
|
|
@@ -411,6 +411,23 @@ module Stripe
|
|
|
411
411
|
end
|
|
412
412
|
end
|
|
413
413
|
|
|
414
|
+
class Gopay < ::Stripe::RequestParams
|
|
415
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
416
|
+
# The account's preference for whether or not to display this payment method.
|
|
417
|
+
attr_accessor :preference
|
|
418
|
+
|
|
419
|
+
def initialize(preference: nil)
|
|
420
|
+
@preference = preference
|
|
421
|
+
end
|
|
422
|
+
end
|
|
423
|
+
# Whether or not the payment method should be displayed.
|
|
424
|
+
attr_accessor :display_preference
|
|
425
|
+
|
|
426
|
+
def initialize(display_preference: nil)
|
|
427
|
+
@display_preference = display_preference
|
|
428
|
+
end
|
|
429
|
+
end
|
|
430
|
+
|
|
414
431
|
class Grabpay < ::Stripe::RequestParams
|
|
415
432
|
class DisplayPreference < ::Stripe::RequestParams
|
|
416
433
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -428,6 +445,23 @@ module Stripe
|
|
|
428
445
|
end
|
|
429
446
|
end
|
|
430
447
|
|
|
448
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
449
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
450
|
+
# The account's preference for whether or not to display this payment method.
|
|
451
|
+
attr_accessor :preference
|
|
452
|
+
|
|
453
|
+
def initialize(preference: nil)
|
|
454
|
+
@preference = preference
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
# Whether or not the payment method should be displayed.
|
|
458
|
+
attr_accessor :display_preference
|
|
459
|
+
|
|
460
|
+
def initialize(display_preference: nil)
|
|
461
|
+
@display_preference = display_preference
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
|
|
431
465
|
class Ideal < ::Stripe::RequestParams
|
|
432
466
|
class DisplayPreference < ::Stripe::RequestParams
|
|
433
467
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -734,6 +768,23 @@ module Stripe
|
|
|
734
768
|
end
|
|
735
769
|
end
|
|
736
770
|
|
|
771
|
+
class Paypay < ::Stripe::RequestParams
|
|
772
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
773
|
+
# The account's preference for whether or not to display this payment method.
|
|
774
|
+
attr_accessor :preference
|
|
775
|
+
|
|
776
|
+
def initialize(preference: nil)
|
|
777
|
+
@preference = preference
|
|
778
|
+
end
|
|
779
|
+
end
|
|
780
|
+
# Whether or not the payment method should be displayed.
|
|
781
|
+
attr_accessor :display_preference
|
|
782
|
+
|
|
783
|
+
def initialize(display_preference: nil)
|
|
784
|
+
@display_preference = display_preference
|
|
785
|
+
end
|
|
786
|
+
end
|
|
787
|
+
|
|
737
788
|
class Payto < ::Stripe::RequestParams
|
|
738
789
|
class DisplayPreference < ::Stripe::RequestParams
|
|
739
790
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -785,6 +836,23 @@ module Stripe
|
|
|
785
836
|
end
|
|
786
837
|
end
|
|
787
838
|
|
|
839
|
+
class Qris < ::Stripe::RequestParams
|
|
840
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
841
|
+
# The account's preference for whether or not to display this payment method.
|
|
842
|
+
attr_accessor :preference
|
|
843
|
+
|
|
844
|
+
def initialize(preference: nil)
|
|
845
|
+
@preference = preference
|
|
846
|
+
end
|
|
847
|
+
end
|
|
848
|
+
# Whether or not the payment method should be displayed.
|
|
849
|
+
attr_accessor :display_preference
|
|
850
|
+
|
|
851
|
+
def initialize(display_preference: nil)
|
|
852
|
+
@display_preference = display_preference
|
|
853
|
+
end
|
|
854
|
+
end
|
|
855
|
+
|
|
788
856
|
class RevolutPay < ::Stripe::RequestParams
|
|
789
857
|
class DisplayPreference < ::Stripe::RequestParams
|
|
790
858
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -853,6 +921,23 @@ module Stripe
|
|
|
853
921
|
end
|
|
854
922
|
end
|
|
855
923
|
|
|
924
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
925
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
926
|
+
# The account's preference for whether or not to display this payment method.
|
|
927
|
+
attr_accessor :preference
|
|
928
|
+
|
|
929
|
+
def initialize(preference: nil)
|
|
930
|
+
@preference = preference
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
# Whether or not the payment method should be displayed.
|
|
934
|
+
attr_accessor :display_preference
|
|
935
|
+
|
|
936
|
+
def initialize(display_preference: nil)
|
|
937
|
+
@display_preference = display_preference
|
|
938
|
+
end
|
|
939
|
+
end
|
|
940
|
+
|
|
856
941
|
class Sofort < ::Stripe::RequestParams
|
|
857
942
|
class DisplayPreference < ::Stripe::RequestParams
|
|
858
943
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -1006,8 +1091,12 @@ module Stripe
|
|
|
1006
1091
|
attr_accessor :giropay
|
|
1007
1092
|
# Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.
|
|
1008
1093
|
attr_accessor :google_pay
|
|
1094
|
+
# GoPay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
|
|
1095
|
+
attr_accessor :gopay
|
|
1009
1096
|
# GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.
|
|
1010
1097
|
attr_accessor :grabpay
|
|
1098
|
+
# Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
|
|
1099
|
+
attr_accessor :id_bank_transfer
|
|
1011
1100
|
# iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.
|
|
1012
1101
|
attr_accessor :ideal
|
|
1013
1102
|
# JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
|
|
@@ -1046,12 +1135,16 @@ module Stripe
|
|
|
1046
1135
|
attr_accessor :paynow
|
|
1047
1136
|
# PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.
|
|
1048
1137
|
attr_accessor :paypal
|
|
1138
|
+
# Customers can pay with PayPay online or using the PayPay app.
|
|
1139
|
+
attr_accessor :paypay
|
|
1049
1140
|
# PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
|
|
1050
1141
|
attr_accessor :payto
|
|
1051
1142
|
# Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and approve payments by scanning a QR code in their preferred banking app. Check this [page](https://docs.stripe.com/payments/pix) for more details.
|
|
1052
1143
|
attr_accessor :pix
|
|
1053
1144
|
# PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.
|
|
1054
1145
|
attr_accessor :promptpay
|
|
1146
|
+
# QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
|
|
1147
|
+
attr_accessor :qris
|
|
1055
1148
|
# Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
|
|
1056
1149
|
attr_accessor :revolut_pay
|
|
1057
1150
|
# Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
|
@@ -1060,6 +1153,8 @@ module Stripe
|
|
|
1060
1153
|
attr_accessor :satispay
|
|
1061
1154
|
# The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.
|
|
1062
1155
|
attr_accessor :sepa_debit
|
|
1156
|
+
# ShopeePay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
|
|
1157
|
+
attr_accessor :shopeepay
|
|
1063
1158
|
# Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.
|
|
1064
1159
|
attr_accessor :sofort
|
|
1065
1160
|
# Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.
|
|
@@ -1100,7 +1195,9 @@ module Stripe
|
|
|
1100
1195
|
fr_meal_voucher_conecs: nil,
|
|
1101
1196
|
giropay: nil,
|
|
1102
1197
|
google_pay: nil,
|
|
1198
|
+
gopay: nil,
|
|
1103
1199
|
grabpay: nil,
|
|
1200
|
+
id_bank_transfer: nil,
|
|
1104
1201
|
ideal: nil,
|
|
1105
1202
|
jcb: nil,
|
|
1106
1203
|
kakao_pay: nil,
|
|
@@ -1120,13 +1217,16 @@ module Stripe
|
|
|
1120
1217
|
payco: nil,
|
|
1121
1218
|
paynow: nil,
|
|
1122
1219
|
paypal: nil,
|
|
1220
|
+
paypay: nil,
|
|
1123
1221
|
payto: nil,
|
|
1124
1222
|
pix: nil,
|
|
1125
1223
|
promptpay: nil,
|
|
1224
|
+
qris: nil,
|
|
1126
1225
|
revolut_pay: nil,
|
|
1127
1226
|
samsung_pay: nil,
|
|
1128
1227
|
satispay: nil,
|
|
1129
1228
|
sepa_debit: nil,
|
|
1229
|
+
shopeepay: nil,
|
|
1130
1230
|
sofort: nil,
|
|
1131
1231
|
swish: nil,
|
|
1132
1232
|
twint: nil,
|
|
@@ -1160,7 +1260,9 @@ module Stripe
|
|
|
1160
1260
|
@fr_meal_voucher_conecs = fr_meal_voucher_conecs
|
|
1161
1261
|
@giropay = giropay
|
|
1162
1262
|
@google_pay = google_pay
|
|
1263
|
+
@gopay = gopay
|
|
1163
1264
|
@grabpay = grabpay
|
|
1265
|
+
@id_bank_transfer = id_bank_transfer
|
|
1164
1266
|
@ideal = ideal
|
|
1165
1267
|
@jcb = jcb
|
|
1166
1268
|
@kakao_pay = kakao_pay
|
|
@@ -1180,13 +1282,16 @@ module Stripe
|
|
|
1180
1282
|
@payco = payco
|
|
1181
1283
|
@paynow = paynow
|
|
1182
1284
|
@paypal = paypal
|
|
1285
|
+
@paypay = paypay
|
|
1183
1286
|
@payto = payto
|
|
1184
1287
|
@pix = pix
|
|
1185
1288
|
@promptpay = promptpay
|
|
1289
|
+
@qris = qris
|
|
1186
1290
|
@revolut_pay = revolut_pay
|
|
1187
1291
|
@samsung_pay = samsung_pay
|
|
1188
1292
|
@satispay = satispay
|
|
1189
1293
|
@sepa_debit = sepa_debit
|
|
1294
|
+
@shopeepay = shopeepay
|
|
1190
1295
|
@sofort = sofort
|
|
1191
1296
|
@swish = swish
|
|
1192
1297
|
@twint = twint
|
|
@@ -188,8 +188,18 @@ module Stripe
|
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
class Giropay < ::Stripe::RequestParams; end
|
|
191
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
191
192
|
class Grabpay < ::Stripe::RequestParams; end
|
|
192
193
|
|
|
194
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
195
|
+
# Bank where the account is held.
|
|
196
|
+
attr_accessor :bank
|
|
197
|
+
|
|
198
|
+
def initialize(bank: nil)
|
|
199
|
+
@bank = bank
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
193
203
|
class Ideal < ::Stripe::RequestParams
|
|
194
204
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
195
205
|
attr_accessor :bank
|
|
@@ -287,6 +297,7 @@ module Stripe
|
|
|
287
297
|
class Payco < ::Stripe::RequestParams; end
|
|
288
298
|
class Paynow < ::Stripe::RequestParams; end
|
|
289
299
|
class Paypal < ::Stripe::RequestParams; end
|
|
300
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
290
301
|
|
|
291
302
|
class Payto < ::Stripe::RequestParams
|
|
292
303
|
# The account number for the bank account.
|
|
@@ -305,6 +316,7 @@ module Stripe
|
|
|
305
316
|
|
|
306
317
|
class Pix < ::Stripe::RequestParams; end
|
|
307
318
|
class Promptpay < ::Stripe::RequestParams; end
|
|
319
|
+
class Qris < ::Stripe::RequestParams; end
|
|
308
320
|
|
|
309
321
|
class RadarOptions < ::Stripe::RequestParams
|
|
310
322
|
# 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.
|
|
@@ -315,6 +327,29 @@ module Stripe
|
|
|
315
327
|
end
|
|
316
328
|
end
|
|
317
329
|
|
|
330
|
+
class Rechnung < ::Stripe::RequestParams
|
|
331
|
+
class Dob < ::Stripe::RequestParams
|
|
332
|
+
# The day of birth, between 1 and 31.
|
|
333
|
+
attr_accessor :day
|
|
334
|
+
# The month of birth, between 1 and 12.
|
|
335
|
+
attr_accessor :month
|
|
336
|
+
# The four-digit year of birth.
|
|
337
|
+
attr_accessor :year
|
|
338
|
+
|
|
339
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
340
|
+
@day = day
|
|
341
|
+
@month = month
|
|
342
|
+
@year = year
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
# Customer's date of birth
|
|
346
|
+
attr_accessor :dob
|
|
347
|
+
|
|
348
|
+
def initialize(dob: nil)
|
|
349
|
+
@dob = dob
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
|
|
318
353
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
319
354
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
320
355
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -328,6 +363,8 @@ module Stripe
|
|
|
328
363
|
end
|
|
329
364
|
end
|
|
330
365
|
|
|
366
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
367
|
+
|
|
331
368
|
class Sofort < ::Stripe::RequestParams
|
|
332
369
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
333
370
|
attr_accessor :country
|
|
@@ -337,6 +374,18 @@ module Stripe
|
|
|
337
374
|
end
|
|
338
375
|
end
|
|
339
376
|
|
|
377
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
378
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
379
|
+
attr_accessor :account
|
|
380
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
381
|
+
attr_accessor :source_type
|
|
382
|
+
|
|
383
|
+
def initialize(account: nil, source_type: nil)
|
|
384
|
+
@account = account
|
|
385
|
+
@source_type = source_type
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
340
389
|
class Swish < ::Stripe::RequestParams; end
|
|
341
390
|
class Twint < ::Stripe::RequestParams; end
|
|
342
391
|
|
|
@@ -417,8 +466,12 @@ module Stripe
|
|
|
417
466
|
attr_accessor :fpx
|
|
418
467
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
419
468
|
attr_accessor :giropay
|
|
469
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
470
|
+
attr_accessor :gopay
|
|
420
471
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
421
472
|
attr_accessor :grabpay
|
|
473
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
474
|
+
attr_accessor :id_bank_transfer
|
|
422
475
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
423
476
|
attr_accessor :ideal
|
|
424
477
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -459,14 +512,20 @@ module Stripe
|
|
|
459
512
|
attr_accessor :paynow
|
|
460
513
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
461
514
|
attr_accessor :paypal
|
|
515
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
516
|
+
attr_accessor :paypay
|
|
462
517
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
463
518
|
attr_accessor :payto
|
|
464
519
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
465
520
|
attr_accessor :pix
|
|
466
521
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
467
522
|
attr_accessor :promptpay
|
|
523
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
524
|
+
attr_accessor :qris
|
|
468
525
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
469
526
|
attr_accessor :radar_options
|
|
527
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
528
|
+
attr_accessor :rechnung
|
|
470
529
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
471
530
|
attr_accessor :revolut_pay
|
|
472
531
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -475,8 +534,12 @@ module Stripe
|
|
|
475
534
|
attr_accessor :satispay
|
|
476
535
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
477
536
|
attr_accessor :sepa_debit
|
|
537
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
538
|
+
attr_accessor :shopeepay
|
|
478
539
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
479
540
|
attr_accessor :sofort
|
|
541
|
+
# This hash contains details about the Stripe balance payment method.
|
|
542
|
+
attr_accessor :stripe_balance
|
|
480
543
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
481
544
|
attr_accessor :swish
|
|
482
545
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -515,7 +578,9 @@ module Stripe
|
|
|
515
578
|
expand: nil,
|
|
516
579
|
fpx: nil,
|
|
517
580
|
giropay: nil,
|
|
581
|
+
gopay: nil,
|
|
518
582
|
grabpay: nil,
|
|
583
|
+
id_bank_transfer: nil,
|
|
519
584
|
ideal: nil,
|
|
520
585
|
interac_present: nil,
|
|
521
586
|
kakao_pay: nil,
|
|
@@ -536,15 +601,20 @@ module Stripe
|
|
|
536
601
|
payment_method: nil,
|
|
537
602
|
paynow: nil,
|
|
538
603
|
paypal: nil,
|
|
604
|
+
paypay: nil,
|
|
539
605
|
payto: nil,
|
|
540
606
|
pix: nil,
|
|
541
607
|
promptpay: nil,
|
|
608
|
+
qris: nil,
|
|
542
609
|
radar_options: nil,
|
|
610
|
+
rechnung: nil,
|
|
543
611
|
revolut_pay: nil,
|
|
544
612
|
samsung_pay: nil,
|
|
545
613
|
satispay: nil,
|
|
546
614
|
sepa_debit: nil,
|
|
615
|
+
shopeepay: nil,
|
|
547
616
|
sofort: nil,
|
|
617
|
+
stripe_balance: nil,
|
|
548
618
|
swish: nil,
|
|
549
619
|
twint: nil,
|
|
550
620
|
type: nil,
|
|
@@ -576,7 +646,9 @@ module Stripe
|
|
|
576
646
|
@expand = expand
|
|
577
647
|
@fpx = fpx
|
|
578
648
|
@giropay = giropay
|
|
649
|
+
@gopay = gopay
|
|
579
650
|
@grabpay = grabpay
|
|
651
|
+
@id_bank_transfer = id_bank_transfer
|
|
580
652
|
@ideal = ideal
|
|
581
653
|
@interac_present = interac_present
|
|
582
654
|
@kakao_pay = kakao_pay
|
|
@@ -597,15 +669,20 @@ module Stripe
|
|
|
597
669
|
@payment_method = payment_method
|
|
598
670
|
@paynow = paynow
|
|
599
671
|
@paypal = paypal
|
|
672
|
+
@paypay = paypay
|
|
600
673
|
@payto = payto
|
|
601
674
|
@pix = pix
|
|
602
675
|
@promptpay = promptpay
|
|
676
|
+
@qris = qris
|
|
603
677
|
@radar_options = radar_options
|
|
678
|
+
@rechnung = rechnung
|
|
604
679
|
@revolut_pay = revolut_pay
|
|
605
680
|
@samsung_pay = samsung_pay
|
|
606
681
|
@satispay = satispay
|
|
607
682
|
@sepa_debit = sepa_debit
|
|
683
|
+
@shopeepay = shopeepay
|
|
608
684
|
@sofort = sofort
|
|
685
|
+
@stripe_balance = stripe_balance
|
|
609
686
|
@swish = swish
|
|
610
687
|
@twint = twint
|
|
611
688
|
@type = type
|
|
@@ -73,6 +73,21 @@ module Stripe
|
|
|
73
73
|
@unit_amount_decimal = unit_amount_decimal
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
|
+
|
|
77
|
+
class MigrateTo < ::Stripe::RequestParams
|
|
78
|
+
# The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
|
79
|
+
attr_accessor :behavior
|
|
80
|
+
# The time after which subscriptions should start using the new price.
|
|
81
|
+
attr_accessor :effective_after
|
|
82
|
+
# The ID of the price object.
|
|
83
|
+
attr_accessor :price
|
|
84
|
+
|
|
85
|
+
def initialize(behavior: nil, effective_after: nil, price: nil)
|
|
86
|
+
@behavior = behavior
|
|
87
|
+
@effective_after = effective_after
|
|
88
|
+
@price = price
|
|
89
|
+
end
|
|
90
|
+
end
|
|
76
91
|
# Whether the price can be used for new purchases. Defaults to `true`.
|
|
77
92
|
attr_accessor :active
|
|
78
93
|
# Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
|
@@ -83,6 +98,8 @@ module Stripe
|
|
|
83
98
|
attr_accessor :lookup_key
|
|
84
99
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
85
100
|
attr_accessor :metadata
|
|
101
|
+
# If specified, subscriptions using this price will be updated to use the new referenced price.
|
|
102
|
+
attr_accessor :migrate_to
|
|
86
103
|
# A brief description of the price, hidden from customers.
|
|
87
104
|
attr_accessor :nickname
|
|
88
105
|
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
@@ -96,6 +113,7 @@ module Stripe
|
|
|
96
113
|
expand: nil,
|
|
97
114
|
lookup_key: nil,
|
|
98
115
|
metadata: nil,
|
|
116
|
+
migrate_to: nil,
|
|
99
117
|
nickname: nil,
|
|
100
118
|
tax_behavior: nil,
|
|
101
119
|
transfer_lookup_key: nil
|
|
@@ -105,6 +123,7 @@ module Stripe
|
|
|
105
123
|
@expand = expand
|
|
106
124
|
@lookup_key = lookup_key
|
|
107
125
|
@metadata = metadata
|
|
126
|
+
@migrate_to = migrate_to
|
|
108
127
|
@nickname = nickname
|
|
109
128
|
@tax_behavior = tax_behavior
|
|
110
129
|
@transfer_lookup_key = transfer_lookup_key
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Privacy
|
|
6
|
+
class RedactionJobCancelParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|