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
|
@@ -94,6 +94,43 @@ module Stripe
|
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
class AsyncWorkflows < ::Stripe::StripeObject
|
|
98
|
+
class Inputs < ::Stripe::StripeObject
|
|
99
|
+
class Tax < ::Stripe::StripeObject
|
|
100
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
101
|
+
attr_reader :calculation
|
|
102
|
+
|
|
103
|
+
def self.inner_class_types
|
|
104
|
+
@inner_class_types = {}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def self.field_remappings
|
|
108
|
+
@field_remappings = {}
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
# Attribute for field tax
|
|
112
|
+
attr_reader :tax
|
|
113
|
+
|
|
114
|
+
def self.inner_class_types
|
|
115
|
+
@inner_class_types = { tax: Tax }
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def self.field_remappings
|
|
119
|
+
@field_remappings = {}
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
# Attribute for field inputs
|
|
123
|
+
attr_reader :inputs
|
|
124
|
+
|
|
125
|
+
def self.inner_class_types
|
|
126
|
+
@inner_class_types = { inputs: Inputs }
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
def self.field_remappings
|
|
130
|
+
@field_remappings = {}
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
97
134
|
class AutomaticPaymentMethods < ::Stripe::StripeObject
|
|
98
135
|
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
99
136
|
#
|
|
@@ -1185,19 +1222,360 @@ module Stripe
|
|
|
1185
1222
|
end
|
|
1186
1223
|
|
|
1187
1224
|
class PaymentDetails < ::Stripe::StripeObject
|
|
1225
|
+
class CarRental < ::Stripe::StripeObject
|
|
1226
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1227
|
+
# The name of the affiliate that originated the purchase.
|
|
1228
|
+
attr_reader :name
|
|
1229
|
+
|
|
1230
|
+
def self.inner_class_types
|
|
1231
|
+
@inner_class_types = {}
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
def self.field_remappings
|
|
1235
|
+
@field_remappings = {}
|
|
1236
|
+
end
|
|
1237
|
+
end
|
|
1238
|
+
|
|
1239
|
+
class Delivery < ::Stripe::StripeObject
|
|
1240
|
+
class Recipient < ::Stripe::StripeObject
|
|
1241
|
+
# The email of the recipient the ticket is delivered to.
|
|
1242
|
+
attr_reader :email
|
|
1243
|
+
# The name of the recipient the ticket is delivered to.
|
|
1244
|
+
attr_reader :name
|
|
1245
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1246
|
+
attr_reader :phone
|
|
1247
|
+
|
|
1248
|
+
def self.inner_class_types
|
|
1249
|
+
@inner_class_types = {}
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1252
|
+
def self.field_remappings
|
|
1253
|
+
@field_remappings = {}
|
|
1254
|
+
end
|
|
1255
|
+
end
|
|
1256
|
+
# The delivery method for the payment
|
|
1257
|
+
attr_reader :mode
|
|
1258
|
+
# Attribute for field recipient
|
|
1259
|
+
attr_reader :recipient
|
|
1260
|
+
|
|
1261
|
+
def self.inner_class_types
|
|
1262
|
+
@inner_class_types = { recipient: Recipient }
|
|
1263
|
+
end
|
|
1264
|
+
|
|
1265
|
+
def self.field_remappings
|
|
1266
|
+
@field_remappings = {}
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
class Distance < ::Stripe::StripeObject
|
|
1271
|
+
# Distance traveled.
|
|
1272
|
+
attr_reader :amount
|
|
1273
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
|
1274
|
+
attr_reader :unit
|
|
1275
|
+
|
|
1276
|
+
def self.inner_class_types
|
|
1277
|
+
@inner_class_types = {}
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
def self.field_remappings
|
|
1281
|
+
@field_remappings = {}
|
|
1282
|
+
end
|
|
1283
|
+
end
|
|
1284
|
+
|
|
1285
|
+
class Driver < ::Stripe::StripeObject
|
|
1286
|
+
# Driver's identification number.
|
|
1287
|
+
attr_reader :driver_identification_number
|
|
1288
|
+
# Driver's tax number.
|
|
1289
|
+
attr_reader :driver_tax_number
|
|
1290
|
+
# Full name of the driver on the reservation.
|
|
1291
|
+
attr_reader :name
|
|
1292
|
+
|
|
1293
|
+
def self.inner_class_types
|
|
1294
|
+
@inner_class_types = {}
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1297
|
+
def self.field_remappings
|
|
1298
|
+
@field_remappings = {}
|
|
1299
|
+
end
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
class PickupAddress < ::Stripe::StripeObject
|
|
1303
|
+
# City, district, suburb, town, or village.
|
|
1304
|
+
attr_reader :city
|
|
1305
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1306
|
+
attr_reader :country
|
|
1307
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1308
|
+
attr_reader :line1
|
|
1309
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1310
|
+
attr_reader :line2
|
|
1311
|
+
# ZIP or postal code.
|
|
1312
|
+
attr_reader :postal_code
|
|
1313
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1314
|
+
attr_reader :state
|
|
1315
|
+
|
|
1316
|
+
def self.inner_class_types
|
|
1317
|
+
@inner_class_types = {}
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
def self.field_remappings
|
|
1321
|
+
@field_remappings = {}
|
|
1322
|
+
end
|
|
1323
|
+
end
|
|
1324
|
+
|
|
1325
|
+
class ReturnAddress < ::Stripe::StripeObject
|
|
1326
|
+
# City, district, suburb, town, or village.
|
|
1327
|
+
attr_reader :city
|
|
1328
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1329
|
+
attr_reader :country
|
|
1330
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1331
|
+
attr_reader :line1
|
|
1332
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1333
|
+
attr_reader :line2
|
|
1334
|
+
# ZIP or postal code.
|
|
1335
|
+
attr_reader :postal_code
|
|
1336
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1337
|
+
attr_reader :state
|
|
1338
|
+
|
|
1339
|
+
def self.inner_class_types
|
|
1340
|
+
@inner_class_types = {}
|
|
1341
|
+
end
|
|
1342
|
+
|
|
1343
|
+
def self.field_remappings
|
|
1344
|
+
@field_remappings = {}
|
|
1345
|
+
end
|
|
1346
|
+
end
|
|
1347
|
+
# Attribute for field affiliate
|
|
1348
|
+
attr_reader :affiliate
|
|
1349
|
+
# The booking number associated with the car rental.
|
|
1350
|
+
attr_reader :booking_number
|
|
1351
|
+
# Class code of the car.
|
|
1352
|
+
attr_reader :car_class_code
|
|
1353
|
+
# Make of the car.
|
|
1354
|
+
attr_reader :car_make
|
|
1355
|
+
# Model of the car.
|
|
1356
|
+
attr_reader :car_model
|
|
1357
|
+
# The name of the rental car company.
|
|
1358
|
+
attr_reader :company
|
|
1359
|
+
# The customer service phone number of the car rental company.
|
|
1360
|
+
attr_reader :customer_service_phone_number
|
|
1361
|
+
# Number of days the car is being rented.
|
|
1362
|
+
attr_reader :days_rented
|
|
1363
|
+
# Attribute for field delivery
|
|
1364
|
+
attr_reader :delivery
|
|
1365
|
+
# Attribute for field distance
|
|
1366
|
+
attr_reader :distance
|
|
1367
|
+
# The details of the drivers associated with the trip.
|
|
1368
|
+
attr_reader :drivers
|
|
1369
|
+
# List of additional charges being billed.
|
|
1370
|
+
attr_reader :extra_charges
|
|
1371
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
1372
|
+
attr_reader :no_show
|
|
1373
|
+
# Attribute for field pickup_address
|
|
1374
|
+
attr_reader :pickup_address
|
|
1375
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1376
|
+
attr_reader :pickup_at
|
|
1377
|
+
# Name of the pickup location.
|
|
1378
|
+
attr_reader :pickup_location_name
|
|
1379
|
+
# Rental rate.
|
|
1380
|
+
attr_reader :rate_amount
|
|
1381
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1382
|
+
attr_reader :rate_interval
|
|
1383
|
+
# The full name of the person or entity renting the car.
|
|
1384
|
+
attr_reader :renter_name
|
|
1385
|
+
# Attribute for field return_address
|
|
1386
|
+
attr_reader :return_address
|
|
1387
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
1388
|
+
attr_reader :return_at
|
|
1389
|
+
# Name of the return location.
|
|
1390
|
+
attr_reader :return_location_name
|
|
1391
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1392
|
+
attr_reader :tax_exempt
|
|
1393
|
+
# The vehicle identification number of the car.
|
|
1394
|
+
attr_reader :vehicle_identification_number
|
|
1395
|
+
|
|
1396
|
+
def self.inner_class_types
|
|
1397
|
+
@inner_class_types = {
|
|
1398
|
+
affiliate: Affiliate,
|
|
1399
|
+
delivery: Delivery,
|
|
1400
|
+
distance: Distance,
|
|
1401
|
+
drivers: Driver,
|
|
1402
|
+
pickup_address: PickupAddress,
|
|
1403
|
+
return_address: ReturnAddress,
|
|
1404
|
+
}
|
|
1405
|
+
end
|
|
1406
|
+
|
|
1407
|
+
def self.field_remappings
|
|
1408
|
+
@field_remappings = {}
|
|
1409
|
+
end
|
|
1410
|
+
end
|
|
1411
|
+
|
|
1412
|
+
class EventDetails < ::Stripe::StripeObject
|
|
1413
|
+
class Address < ::Stripe::StripeObject
|
|
1414
|
+
# City, district, suburb, town, or village.
|
|
1415
|
+
attr_reader :city
|
|
1416
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1417
|
+
attr_reader :country
|
|
1418
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1419
|
+
attr_reader :line1
|
|
1420
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1421
|
+
attr_reader :line2
|
|
1422
|
+
# ZIP or postal code.
|
|
1423
|
+
attr_reader :postal_code
|
|
1424
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1425
|
+
attr_reader :state
|
|
1426
|
+
|
|
1427
|
+
def self.inner_class_types
|
|
1428
|
+
@inner_class_types = {}
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
def self.field_remappings
|
|
1432
|
+
@field_remappings = {}
|
|
1433
|
+
end
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1437
|
+
# The name of the affiliate that originated the purchase.
|
|
1438
|
+
attr_reader :name
|
|
1439
|
+
|
|
1440
|
+
def self.inner_class_types
|
|
1441
|
+
@inner_class_types = {}
|
|
1442
|
+
end
|
|
1443
|
+
|
|
1444
|
+
def self.field_remappings
|
|
1445
|
+
@field_remappings = {}
|
|
1446
|
+
end
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1449
|
+
class Delivery < ::Stripe::StripeObject
|
|
1450
|
+
class Recipient < ::Stripe::StripeObject
|
|
1451
|
+
# The email of the recipient the ticket is delivered to.
|
|
1452
|
+
attr_reader :email
|
|
1453
|
+
# The name of the recipient the ticket is delivered to.
|
|
1454
|
+
attr_reader :name
|
|
1455
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1456
|
+
attr_reader :phone
|
|
1457
|
+
|
|
1458
|
+
def self.inner_class_types
|
|
1459
|
+
@inner_class_types = {}
|
|
1460
|
+
end
|
|
1461
|
+
|
|
1462
|
+
def self.field_remappings
|
|
1463
|
+
@field_remappings = {}
|
|
1464
|
+
end
|
|
1465
|
+
end
|
|
1466
|
+
# The delivery method for the payment
|
|
1467
|
+
attr_reader :mode
|
|
1468
|
+
# Attribute for field recipient
|
|
1469
|
+
attr_reader :recipient
|
|
1470
|
+
|
|
1471
|
+
def self.inner_class_types
|
|
1472
|
+
@inner_class_types = { recipient: Recipient }
|
|
1473
|
+
end
|
|
1474
|
+
|
|
1475
|
+
def self.field_remappings
|
|
1476
|
+
@field_remappings = {}
|
|
1477
|
+
end
|
|
1478
|
+
end
|
|
1479
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
1480
|
+
attr_reader :access_controlled_venue
|
|
1481
|
+
# Attribute for field address
|
|
1482
|
+
attr_reader :address
|
|
1483
|
+
# Attribute for field affiliate
|
|
1484
|
+
attr_reader :affiliate
|
|
1485
|
+
# The name of the company
|
|
1486
|
+
attr_reader :company
|
|
1487
|
+
# Attribute for field delivery
|
|
1488
|
+
attr_reader :delivery
|
|
1489
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
1490
|
+
attr_reader :ends_at
|
|
1491
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
1492
|
+
attr_reader :genre
|
|
1493
|
+
# The name of the event.
|
|
1494
|
+
attr_reader :name
|
|
1495
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
1496
|
+
attr_reader :starts_at
|
|
1497
|
+
|
|
1498
|
+
def self.inner_class_types
|
|
1499
|
+
@inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
|
|
1500
|
+
end
|
|
1501
|
+
|
|
1502
|
+
def self.field_remappings
|
|
1503
|
+
@field_remappings = {}
|
|
1504
|
+
end
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
class Subscription < ::Stripe::StripeObject
|
|
1508
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1509
|
+
# The name of the affiliate that originated the purchase.
|
|
1510
|
+
attr_reader :name
|
|
1511
|
+
|
|
1512
|
+
def self.inner_class_types
|
|
1513
|
+
@inner_class_types = {}
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
def self.field_remappings
|
|
1517
|
+
@field_remappings = {}
|
|
1518
|
+
end
|
|
1519
|
+
end
|
|
1520
|
+
|
|
1521
|
+
class BillingInterval < ::Stripe::StripeObject
|
|
1522
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1523
|
+
attr_reader :count
|
|
1524
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1525
|
+
attr_reader :interval
|
|
1526
|
+
|
|
1527
|
+
def self.inner_class_types
|
|
1528
|
+
@inner_class_types = {}
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1531
|
+
def self.field_remappings
|
|
1532
|
+
@field_remappings = {}
|
|
1533
|
+
end
|
|
1534
|
+
end
|
|
1535
|
+
# Attribute for field affiliate
|
|
1536
|
+
attr_reader :affiliate
|
|
1537
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1538
|
+
attr_reader :auto_renewal
|
|
1539
|
+
# Attribute for field billing_interval
|
|
1540
|
+
attr_reader :billing_interval
|
|
1541
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1542
|
+
attr_reader :ends_at
|
|
1543
|
+
# Name of the product on subscription. e.g. Apple Music Subscription.
|
|
1544
|
+
attr_reader :name
|
|
1545
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1546
|
+
attr_reader :starts_at
|
|
1547
|
+
|
|
1548
|
+
def self.inner_class_types
|
|
1549
|
+
@inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
|
|
1550
|
+
end
|
|
1551
|
+
|
|
1552
|
+
def self.field_remappings
|
|
1553
|
+
@field_remappings = {}
|
|
1554
|
+
end
|
|
1555
|
+
end
|
|
1556
|
+
# Attribute for field car_rental
|
|
1557
|
+
attr_reader :car_rental
|
|
1188
1558
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1189
1559
|
#
|
|
1190
1560
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1191
1561
|
attr_reader :customer_reference
|
|
1562
|
+
# Attribute for field event_details
|
|
1563
|
+
attr_reader :event_details
|
|
1192
1564
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1193
1565
|
#
|
|
1194
1566
|
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
1195
1567
|
#
|
|
1196
1568
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
1197
1569
|
attr_reader :order_reference
|
|
1570
|
+
# Attribute for field subscription
|
|
1571
|
+
attr_reader :subscription
|
|
1198
1572
|
|
|
1199
1573
|
def self.inner_class_types
|
|
1200
|
-
@inner_class_types = {
|
|
1574
|
+
@inner_class_types = {
|
|
1575
|
+
car_rental: CarRental,
|
|
1576
|
+
event_details: EventDetails,
|
|
1577
|
+
subscription: Subscription,
|
|
1578
|
+
}
|
|
1201
1579
|
end
|
|
1202
1580
|
|
|
1203
1581
|
def self.field_remappings
|
|
@@ -1575,6 +1953,43 @@ module Stripe
|
|
|
1575
1953
|
@field_remappings = {}
|
|
1576
1954
|
end
|
|
1577
1955
|
end
|
|
1956
|
+
|
|
1957
|
+
class StatementDetails < ::Stripe::StripeObject
|
|
1958
|
+
class Address < ::Stripe::StripeObject
|
|
1959
|
+
# City, district, suburb, town, or village.
|
|
1960
|
+
attr_reader :city
|
|
1961
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1962
|
+
attr_reader :country
|
|
1963
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1964
|
+
attr_reader :line1
|
|
1965
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1966
|
+
attr_reader :line2
|
|
1967
|
+
# ZIP or postal code.
|
|
1968
|
+
attr_reader :postal_code
|
|
1969
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1970
|
+
attr_reader :state
|
|
1971
|
+
|
|
1972
|
+
def self.inner_class_types
|
|
1973
|
+
@inner_class_types = {}
|
|
1974
|
+
end
|
|
1975
|
+
|
|
1976
|
+
def self.field_remappings
|
|
1977
|
+
@field_remappings = {}
|
|
1978
|
+
end
|
|
1979
|
+
end
|
|
1980
|
+
# Attribute for field address
|
|
1981
|
+
attr_reader :address
|
|
1982
|
+
# Phone number
|
|
1983
|
+
attr_reader :phone
|
|
1984
|
+
|
|
1985
|
+
def self.inner_class_types
|
|
1986
|
+
@inner_class_types = { address: Address }
|
|
1987
|
+
end
|
|
1988
|
+
|
|
1989
|
+
def self.field_remappings
|
|
1990
|
+
@field_remappings = {}
|
|
1991
|
+
end
|
|
1992
|
+
end
|
|
1578
1993
|
# Controls when the funds will be captured from the customer's account.
|
|
1579
1994
|
attr_reader :capture_method
|
|
1580
1995
|
# Installment details for this payment.
|
|
@@ -1585,6 +2000,8 @@ module Stripe
|
|
|
1585
2000
|
attr_reader :mandate_options
|
|
1586
2001
|
# Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
|
|
1587
2002
|
attr_reader :network
|
|
2003
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
2004
|
+
attr_reader :request_decremental_authorization
|
|
1588
2005
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1589
2006
|
attr_reader :request_extended_authorization
|
|
1590
2007
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1593,6 +2010,8 @@ module Stripe
|
|
|
1593
2010
|
attr_reader :request_multicapture
|
|
1594
2011
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1595
2012
|
attr_reader :request_overcapture
|
|
2013
|
+
# Request partial authorization on this PaymentIntent.
|
|
2014
|
+
attr_reader :request_partial_authorization
|
|
1596
2015
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1597
2016
|
attr_reader :request_three_d_secure
|
|
1598
2017
|
# When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
|
|
@@ -1609,9 +2028,15 @@ module Stripe
|
|
|
1609
2028
|
attr_reader :statement_descriptor_suffix_kana
|
|
1610
2029
|
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1611
2030
|
attr_reader :statement_descriptor_suffix_kanji
|
|
2031
|
+
# Attribute for field statement_details
|
|
2032
|
+
attr_reader :statement_details
|
|
1612
2033
|
|
|
1613
2034
|
def self.inner_class_types
|
|
1614
|
-
@inner_class_types = {
|
|
2035
|
+
@inner_class_types = {
|
|
2036
|
+
installments: Installments,
|
|
2037
|
+
mandate_options: MandateOptions,
|
|
2038
|
+
statement_details: StatementDetails,
|
|
2039
|
+
}
|
|
1615
2040
|
end
|
|
1616
2041
|
|
|
1617
2042
|
def self.field_remappings
|
|
@@ -1800,6 +2225,25 @@ module Stripe
|
|
|
1800
2225
|
end
|
|
1801
2226
|
end
|
|
1802
2227
|
|
|
2228
|
+
class Gopay < ::Stripe::StripeObject
|
|
2229
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2230
|
+
#
|
|
2231
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2232
|
+
#
|
|
2233
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2234
|
+
#
|
|
2235
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2236
|
+
attr_reader :setup_future_usage
|
|
2237
|
+
|
|
2238
|
+
def self.inner_class_types
|
|
2239
|
+
@inner_class_types = {}
|
|
2240
|
+
end
|
|
2241
|
+
|
|
2242
|
+
def self.field_remappings
|
|
2243
|
+
@field_remappings = {}
|
|
2244
|
+
end
|
|
2245
|
+
end
|
|
2246
|
+
|
|
1803
2247
|
class Grabpay < ::Stripe::StripeObject
|
|
1804
2248
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1805
2249
|
#
|
|
@@ -1819,6 +2263,29 @@ module Stripe
|
|
|
1819
2263
|
end
|
|
1820
2264
|
end
|
|
1821
2265
|
|
|
2266
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
2267
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
2268
|
+
attr_reader :expires_after
|
|
2269
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
|
|
2270
|
+
attr_reader :expires_at
|
|
2271
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2272
|
+
#
|
|
2273
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2274
|
+
#
|
|
2275
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2276
|
+
#
|
|
2277
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2278
|
+
attr_reader :setup_future_usage
|
|
2279
|
+
|
|
2280
|
+
def self.inner_class_types
|
|
2281
|
+
@inner_class_types = {}
|
|
2282
|
+
end
|
|
2283
|
+
|
|
2284
|
+
def self.field_remappings
|
|
2285
|
+
@field_remappings = {}
|
|
2286
|
+
end
|
|
2287
|
+
end
|
|
2288
|
+
|
|
1822
2289
|
class Ideal < ::Stripe::StripeObject
|
|
1823
2290
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1824
2291
|
#
|
|
@@ -2147,12 +2614,56 @@ module Stripe
|
|
|
2147
2614
|
end
|
|
2148
2615
|
|
|
2149
2616
|
class Paypal < ::Stripe::StripeObject
|
|
2617
|
+
class LineItem < ::Stripe::StripeObject
|
|
2618
|
+
class Tax < ::Stripe::StripeObject
|
|
2619
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2620
|
+
attr_reader :amount
|
|
2621
|
+
# The tax behavior for the line item.
|
|
2622
|
+
attr_reader :behavior
|
|
2623
|
+
|
|
2624
|
+
def self.inner_class_types
|
|
2625
|
+
@inner_class_types = {}
|
|
2626
|
+
end
|
|
2627
|
+
|
|
2628
|
+
def self.field_remappings
|
|
2629
|
+
@field_remappings = {}
|
|
2630
|
+
end
|
|
2631
|
+
end
|
|
2632
|
+
# Type of the line item.
|
|
2633
|
+
attr_reader :category
|
|
2634
|
+
# Description of the line item.
|
|
2635
|
+
attr_reader :description
|
|
2636
|
+
# Descriptive name of the line item.
|
|
2637
|
+
attr_reader :name
|
|
2638
|
+
# Quantity of the line item. Cannot be a negative number.
|
|
2639
|
+
attr_reader :quantity
|
|
2640
|
+
# Client facing stock keeping unit, article number or similar.
|
|
2641
|
+
attr_reader :sku
|
|
2642
|
+
# The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
2643
|
+
attr_reader :sold_by
|
|
2644
|
+
# Attribute for field tax
|
|
2645
|
+
attr_reader :tax
|
|
2646
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2647
|
+
attr_reader :unit_amount
|
|
2648
|
+
|
|
2649
|
+
def self.inner_class_types
|
|
2650
|
+
@inner_class_types = { tax: Tax }
|
|
2651
|
+
end
|
|
2652
|
+
|
|
2653
|
+
def self.field_remappings
|
|
2654
|
+
@field_remappings = {}
|
|
2655
|
+
end
|
|
2656
|
+
end
|
|
2150
2657
|
# Controls when the funds will be captured from the customer's account.
|
|
2151
2658
|
attr_reader :capture_method
|
|
2659
|
+
# The line items purchased by the customer.
|
|
2660
|
+
attr_reader :line_items
|
|
2152
2661
|
# Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2153
2662
|
attr_reader :preferred_locale
|
|
2154
2663
|
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
2155
2664
|
attr_reader :reference
|
|
2665
|
+
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
2666
|
+
attr_reader :reference_id
|
|
2156
2667
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2157
2668
|
#
|
|
2158
2669
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -2161,7 +2672,19 @@ module Stripe
|
|
|
2161
2672
|
#
|
|
2162
2673
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2163
2674
|
attr_reader :setup_future_usage
|
|
2675
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
2676
|
+
attr_reader :subsellers
|
|
2677
|
+
|
|
2678
|
+
def self.inner_class_types
|
|
2679
|
+
@inner_class_types = { line_items: LineItem }
|
|
2680
|
+
end
|
|
2681
|
+
|
|
2682
|
+
def self.field_remappings
|
|
2683
|
+
@field_remappings = {}
|
|
2684
|
+
end
|
|
2685
|
+
end
|
|
2164
2686
|
|
|
2687
|
+
class Paypay < ::Stripe::StripeObject
|
|
2165
2688
|
def self.inner_class_types
|
|
2166
2689
|
@inner_class_types = {}
|
|
2167
2690
|
end
|
|
@@ -2215,12 +2738,40 @@ module Stripe
|
|
|
2215
2738
|
end
|
|
2216
2739
|
|
|
2217
2740
|
class Pix < ::Stripe::StripeObject
|
|
2741
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
2742
|
+
# Amount to be charged for future payments.
|
|
2743
|
+
attr_reader :amount
|
|
2744
|
+
# Determines if the amount includes the IOF tax.
|
|
2745
|
+
attr_reader :amount_includes_iof
|
|
2746
|
+
# Type of amount.
|
|
2747
|
+
attr_reader :amount_type
|
|
2748
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
2749
|
+
attr_reader :currency
|
|
2750
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
2751
|
+
attr_reader :end_date
|
|
2752
|
+
# Schedule at which the future payments will be charged.
|
|
2753
|
+
attr_reader :payment_schedule
|
|
2754
|
+
# Subscription name displayed to buyers in their bank app.
|
|
2755
|
+
attr_reader :reference
|
|
2756
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
|
2757
|
+
attr_reader :start_date
|
|
2758
|
+
|
|
2759
|
+
def self.inner_class_types
|
|
2760
|
+
@inner_class_types = {}
|
|
2761
|
+
end
|
|
2762
|
+
|
|
2763
|
+
def self.field_remappings
|
|
2764
|
+
@field_remappings = {}
|
|
2765
|
+
end
|
|
2766
|
+
end
|
|
2218
2767
|
# Determines if the amount includes the IOF tax.
|
|
2219
2768
|
attr_reader :amount_includes_iof
|
|
2220
2769
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
|
2221
2770
|
attr_reader :expires_after_seconds
|
|
2222
2771
|
# The timestamp at which the Pix expires.
|
|
2223
2772
|
attr_reader :expires_at
|
|
2773
|
+
# Attribute for field mandate_options
|
|
2774
|
+
attr_reader :mandate_options
|
|
2224
2775
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2225
2776
|
#
|
|
2226
2777
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -2231,7 +2782,7 @@ module Stripe
|
|
|
2231
2782
|
attr_reader :setup_future_usage
|
|
2232
2783
|
|
|
2233
2784
|
def self.inner_class_types
|
|
2234
|
-
@inner_class_types = {}
|
|
2785
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
2235
2786
|
end
|
|
2236
2787
|
|
|
2237
2788
|
def self.field_remappings
|
|
@@ -2258,6 +2809,35 @@ module Stripe
|
|
|
2258
2809
|
end
|
|
2259
2810
|
end
|
|
2260
2811
|
|
|
2812
|
+
class Qris < ::Stripe::StripeObject
|
|
2813
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2814
|
+
#
|
|
2815
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2816
|
+
#
|
|
2817
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2818
|
+
#
|
|
2819
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2820
|
+
attr_reader :setup_future_usage
|
|
2821
|
+
|
|
2822
|
+
def self.inner_class_types
|
|
2823
|
+
@inner_class_types = {}
|
|
2824
|
+
end
|
|
2825
|
+
|
|
2826
|
+
def self.field_remappings
|
|
2827
|
+
@field_remappings = {}
|
|
2828
|
+
end
|
|
2829
|
+
end
|
|
2830
|
+
|
|
2831
|
+
class Rechnung < ::Stripe::StripeObject
|
|
2832
|
+
def self.inner_class_types
|
|
2833
|
+
@inner_class_types = {}
|
|
2834
|
+
end
|
|
2835
|
+
|
|
2836
|
+
def self.field_remappings
|
|
2837
|
+
@field_remappings = {}
|
|
2838
|
+
end
|
|
2839
|
+
end
|
|
2840
|
+
|
|
2261
2841
|
class RevolutPay < ::Stripe::StripeObject
|
|
2262
2842
|
# Controls when the funds will be captured from the customer's account.
|
|
2263
2843
|
attr_reader :capture_method
|
|
@@ -2340,6 +2920,25 @@ module Stripe
|
|
|
2340
2920
|
end
|
|
2341
2921
|
end
|
|
2342
2922
|
|
|
2923
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
2924
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2925
|
+
#
|
|
2926
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2927
|
+
#
|
|
2928
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2929
|
+
#
|
|
2930
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2931
|
+
attr_reader :setup_future_usage
|
|
2932
|
+
|
|
2933
|
+
def self.inner_class_types
|
|
2934
|
+
@inner_class_types = {}
|
|
2935
|
+
end
|
|
2936
|
+
|
|
2937
|
+
def self.field_remappings
|
|
2938
|
+
@field_remappings = {}
|
|
2939
|
+
end
|
|
2940
|
+
end
|
|
2941
|
+
|
|
2343
2942
|
class Sofort < ::Stripe::StripeObject
|
|
2344
2943
|
# Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
2345
2944
|
attr_reader :preferred_language
|
|
@@ -2361,6 +2960,25 @@ module Stripe
|
|
|
2361
2960
|
end
|
|
2362
2961
|
end
|
|
2363
2962
|
|
|
2963
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
2964
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2965
|
+
#
|
|
2966
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2967
|
+
#
|
|
2968
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2969
|
+
#
|
|
2970
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2971
|
+
attr_reader :setup_future_usage
|
|
2972
|
+
|
|
2973
|
+
def self.inner_class_types
|
|
2974
|
+
@inner_class_types = {}
|
|
2975
|
+
end
|
|
2976
|
+
|
|
2977
|
+
def self.field_remappings
|
|
2978
|
+
@field_remappings = {}
|
|
2979
|
+
end
|
|
2980
|
+
end
|
|
2981
|
+
|
|
2364
2982
|
class Swish < ::Stripe::StripeObject
|
|
2365
2983
|
# A reference for this payment to be displayed in the Swish app.
|
|
2366
2984
|
attr_reader :reference
|
|
@@ -2406,6 +3024,21 @@ module Stripe
|
|
|
2406
3024
|
class Filters < ::Stripe::StripeObject
|
|
2407
3025
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2408
3026
|
attr_reader :account_subcategories
|
|
3027
|
+
# The institution to use to filter for possible accounts to link.
|
|
3028
|
+
attr_reader :institution
|
|
3029
|
+
|
|
3030
|
+
def self.inner_class_types
|
|
3031
|
+
@inner_class_types = {}
|
|
3032
|
+
end
|
|
3033
|
+
|
|
3034
|
+
def self.field_remappings
|
|
3035
|
+
@field_remappings = {}
|
|
3036
|
+
end
|
|
3037
|
+
end
|
|
3038
|
+
|
|
3039
|
+
class ManualEntry < ::Stripe::StripeObject
|
|
3040
|
+
# Settings for configuring manual entry of account details.
|
|
3041
|
+
attr_reader :mode
|
|
2409
3042
|
|
|
2410
3043
|
def self.inner_class_types
|
|
2411
3044
|
@inner_class_types = {}
|
|
@@ -2417,6 +3050,8 @@ module Stripe
|
|
|
2417
3050
|
end
|
|
2418
3051
|
# Attribute for field filters
|
|
2419
3052
|
attr_reader :filters
|
|
3053
|
+
# Attribute for field manual_entry
|
|
3054
|
+
attr_reader :manual_entry
|
|
2420
3055
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
2421
3056
|
attr_reader :permissions
|
|
2422
3057
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -2425,7 +3060,7 @@ module Stripe
|
|
|
2425
3060
|
attr_reader :return_url
|
|
2426
3061
|
|
|
2427
3062
|
def self.inner_class_types
|
|
2428
|
-
@inner_class_types = { filters: Filters }
|
|
3063
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
|
2429
3064
|
end
|
|
2430
3065
|
|
|
2431
3066
|
def self.field_remappings
|
|
@@ -2557,8 +3192,12 @@ module Stripe
|
|
|
2557
3192
|
attr_reader :fpx
|
|
2558
3193
|
# Attribute for field giropay
|
|
2559
3194
|
attr_reader :giropay
|
|
3195
|
+
# Attribute for field gopay
|
|
3196
|
+
attr_reader :gopay
|
|
2560
3197
|
# Attribute for field grabpay
|
|
2561
3198
|
attr_reader :grabpay
|
|
3199
|
+
# Attribute for field id_bank_transfer
|
|
3200
|
+
attr_reader :id_bank_transfer
|
|
2562
3201
|
# Attribute for field ideal
|
|
2563
3202
|
attr_reader :ideal
|
|
2564
3203
|
# Attribute for field interac_present
|
|
@@ -2595,12 +3234,18 @@ module Stripe
|
|
|
2595
3234
|
attr_reader :paynow
|
|
2596
3235
|
# Attribute for field paypal
|
|
2597
3236
|
attr_reader :paypal
|
|
3237
|
+
# Attribute for field paypay
|
|
3238
|
+
attr_reader :paypay
|
|
2598
3239
|
# Attribute for field payto
|
|
2599
3240
|
attr_reader :payto
|
|
2600
3241
|
# Attribute for field pix
|
|
2601
3242
|
attr_reader :pix
|
|
2602
3243
|
# Attribute for field promptpay
|
|
2603
3244
|
attr_reader :promptpay
|
|
3245
|
+
# Attribute for field qris
|
|
3246
|
+
attr_reader :qris
|
|
3247
|
+
# Attribute for field rechnung
|
|
3248
|
+
attr_reader :rechnung
|
|
2604
3249
|
# Attribute for field revolut_pay
|
|
2605
3250
|
attr_reader :revolut_pay
|
|
2606
3251
|
# Attribute for field samsung_pay
|
|
@@ -2609,8 +3254,12 @@ module Stripe
|
|
|
2609
3254
|
attr_reader :satispay
|
|
2610
3255
|
# Attribute for field sepa_debit
|
|
2611
3256
|
attr_reader :sepa_debit
|
|
3257
|
+
# Attribute for field shopeepay
|
|
3258
|
+
attr_reader :shopeepay
|
|
2612
3259
|
# Attribute for field sofort
|
|
2613
3260
|
attr_reader :sofort
|
|
3261
|
+
# Attribute for field stripe_balance
|
|
3262
|
+
attr_reader :stripe_balance
|
|
2614
3263
|
# Attribute for field swish
|
|
2615
3264
|
attr_reader :swish
|
|
2616
3265
|
# Attribute for field twint
|
|
@@ -2644,7 +3293,9 @@ module Stripe
|
|
|
2644
3293
|
eps: Eps,
|
|
2645
3294
|
fpx: Fpx,
|
|
2646
3295
|
giropay: Giropay,
|
|
3296
|
+
gopay: Gopay,
|
|
2647
3297
|
grabpay: Grabpay,
|
|
3298
|
+
id_bank_transfer: IdBankTransfer,
|
|
2648
3299
|
ideal: Ideal,
|
|
2649
3300
|
interac_present: InteracPresent,
|
|
2650
3301
|
kakao_pay: KakaoPay,
|
|
@@ -2663,14 +3314,19 @@ module Stripe
|
|
|
2663
3314
|
payco: Payco,
|
|
2664
3315
|
paynow: Paynow,
|
|
2665
3316
|
paypal: Paypal,
|
|
3317
|
+
paypay: Paypay,
|
|
2666
3318
|
payto: Payto,
|
|
2667
3319
|
pix: Pix,
|
|
2668
3320
|
promptpay: Promptpay,
|
|
3321
|
+
qris: Qris,
|
|
3322
|
+
rechnung: Rechnung,
|
|
2669
3323
|
revolut_pay: RevolutPay,
|
|
2670
3324
|
samsung_pay: SamsungPay,
|
|
2671
3325
|
satispay: Satispay,
|
|
2672
3326
|
sepa_debit: SepaDebit,
|
|
3327
|
+
shopeepay: Shopeepay,
|
|
2673
3328
|
sofort: Sofort,
|
|
3329
|
+
stripe_balance: StripeBalance,
|
|
2674
3330
|
swish: Swish,
|
|
2675
3331
|
twint: Twint,
|
|
2676
3332
|
us_bank_account: UsBankAccount,
|
|
@@ -2811,6 +3467,8 @@ module Stripe
|
|
|
2811
3467
|
attr_reader :application
|
|
2812
3468
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
2813
3469
|
attr_reader :application_fee_amount
|
|
3470
|
+
# Attribute for field async_workflows
|
|
3471
|
+
attr_reader :async_workflows
|
|
2814
3472
|
# Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
2815
3473
|
attr_reader :automatic_payment_methods
|
|
2816
3474
|
# Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
|
|
@@ -2847,6 +3505,8 @@ module Stripe
|
|
|
2847
3505
|
attr_reader :description
|
|
2848
3506
|
# The list of payment method types to exclude from use with this payment.
|
|
2849
3507
|
attr_reader :excluded_payment_method_types
|
|
3508
|
+
# The FX Quote used for the PaymentIntent.
|
|
3509
|
+
attr_reader :fx_quote
|
|
2850
3510
|
# Attribute for field hooks
|
|
2851
3511
|
attr_reader :hooks
|
|
2852
3512
|
# Unique identifier for the object.
|
|
@@ -2884,6 +3544,8 @@ module Stripe
|
|
|
2884
3544
|
attr_reader :receipt_email
|
|
2885
3545
|
# ID of the review associated with this PaymentIntent, if any.
|
|
2886
3546
|
attr_reader :review
|
|
3547
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
3548
|
+
attr_reader :secret_key_confirmation
|
|
2887
3549
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2888
3550
|
#
|
|
2889
3551
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -3077,6 +3739,56 @@ module Stripe
|
|
|
3077
3739
|
request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
|
|
3078
3740
|
end
|
|
3079
3741
|
|
|
3742
|
+
# Perform a decremental authorization on an eligible
|
|
3743
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3744
|
+
# PaymentIntent's status must be requires_capture and
|
|
3745
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
3746
|
+
# must be available.
|
|
3747
|
+
#
|
|
3748
|
+
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
3749
|
+
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
3750
|
+
#
|
|
3751
|
+
# After decrement, the PaymentIntent object
|
|
3752
|
+
# returns with the updated
|
|
3753
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
3754
|
+
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
3755
|
+
#
|
|
3756
|
+
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
3757
|
+
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
3758
|
+
def decrement_authorization(params = {}, opts = {})
|
|
3759
|
+
request_stripe_object(
|
|
3760
|
+
method: :post,
|
|
3761
|
+
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
|
|
3762
|
+
params: params,
|
|
3763
|
+
opts: opts
|
|
3764
|
+
)
|
|
3765
|
+
end
|
|
3766
|
+
|
|
3767
|
+
# Perform a decremental authorization on an eligible
|
|
3768
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3769
|
+
# PaymentIntent's status must be requires_capture and
|
|
3770
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
3771
|
+
# must be available.
|
|
3772
|
+
#
|
|
3773
|
+
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
3774
|
+
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
3775
|
+
#
|
|
3776
|
+
# After decrement, the PaymentIntent object
|
|
3777
|
+
# returns with the updated
|
|
3778
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
3779
|
+
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
3780
|
+
#
|
|
3781
|
+
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
3782
|
+
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
3783
|
+
def self.decrement_authorization(intent, params = {}, opts = {})
|
|
3784
|
+
request_stripe_object(
|
|
3785
|
+
method: :post,
|
|
3786
|
+
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
|
|
3787
|
+
params: params,
|
|
3788
|
+
opts: opts
|
|
3789
|
+
)
|
|
3790
|
+
end
|
|
3791
|
+
|
|
3080
3792
|
# Perform an incremental authorization on an eligible
|
|
3081
3793
|
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3082
3794
|
# PaymentIntent's status must be requires_capture and
|
|
@@ -3161,6 +3873,26 @@ module Stripe
|
|
|
3161
3873
|
search(params, opts).auto_paging_each(&blk)
|
|
3162
3874
|
end
|
|
3163
3875
|
|
|
3876
|
+
# Trigger an external action on a PaymentIntent.
|
|
3877
|
+
def trigger_action(params = {}, opts = {})
|
|
3878
|
+
request_stripe_object(
|
|
3879
|
+
method: :post,
|
|
3880
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
|
|
3881
|
+
params: params,
|
|
3882
|
+
opts: opts
|
|
3883
|
+
)
|
|
3884
|
+
end
|
|
3885
|
+
|
|
3886
|
+
# Trigger an external action on a PaymentIntent.
|
|
3887
|
+
def self.trigger_action(intent, params = {}, opts = {})
|
|
3888
|
+
request_stripe_object(
|
|
3889
|
+
method: :post,
|
|
3890
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
|
3891
|
+
params: params,
|
|
3892
|
+
opts: opts
|
|
3893
|
+
)
|
|
3894
|
+
end
|
|
3895
|
+
|
|
3164
3896
|
# Updates properties on a PaymentIntent object without confirming.
|
|
3165
3897
|
#
|
|
3166
3898
|
# Depending on which properties you update, you might need to confirm the
|
|
@@ -3200,6 +3932,7 @@ module Stripe
|
|
|
3200
3932
|
def self.inner_class_types
|
|
3201
3933
|
@inner_class_types = {
|
|
3202
3934
|
amount_details: AmountDetails,
|
|
3935
|
+
async_workflows: AsyncWorkflows,
|
|
3203
3936
|
automatic_payment_methods: AutomaticPaymentMethods,
|
|
3204
3937
|
hooks: Hooks,
|
|
3205
3938
|
last_payment_error: LastPaymentError,
|