stripe 16.0.0 → 16.1.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 +35 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +236 -0
- data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -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_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_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 +44 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +58 -0
- data/lib/stripe/params/account_create_params.rb +300 -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 +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -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 +709 -0
- data/lib/stripe/params/charge_update_params.rb +709 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +4 -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/account_list_params.rb +4 -1
- 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 +34 -2
- 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/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- 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_list_params.rb +4 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -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 +1124 -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 +1128 -0
- data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
- data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -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/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -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 +8 -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 +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -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_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- 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/onboarding_link_create_params.rb +43 -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 +97 -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_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2217 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2245 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- 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_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_create_params.rb +33 -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_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_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 +50 -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 +98 -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 +67 -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 +77 -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/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +169 -0
- data/lib/stripe/request_options.rb +3 -1
- data/lib/stripe/resources/account.rb +166 -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/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +234 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +2 -0
- data/lib/stripe/resources/discount.rb +2 -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 +27 -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 +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/invoice_payment.rb +2 -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 +68 -1
- data/lib/stripe/resources/mandate.rb +71 -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 +2102 -0
- data/lib/stripe/resources/payment_intent.rb +848 -4
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +2208 -0
- 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/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -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 +3851 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -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 +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +116 -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_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +44 -0
- data/lib/stripe/services/payment_record_service.rb +89 -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/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +10 -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/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -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 +73 -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 +63 -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/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -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 +4 -1
- data/lib/stripe/services.rb +61 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_object.rb +9 -9
- data/lib/stripe/util.rb +9 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +155102 -90522
- metadata +351 -5
@@ -3,6 +3,920 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class PaymentIntentUpdateParams < Stripe::RequestParams
|
6
|
+
class AmountDetails < Stripe::RequestParams
|
7
|
+
class LineItem < Stripe::RequestParams
|
8
|
+
class PaymentMethodOptions < Stripe::RequestParams
|
9
|
+
class Card < Stripe::RequestParams
|
10
|
+
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
|
11
|
+
attr_accessor :commodity_code
|
12
|
+
|
13
|
+
def initialize(commodity_code: nil)
|
14
|
+
@commodity_code = commodity_code
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
class CardPresent < Stripe::RequestParams
|
19
|
+
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
|
20
|
+
attr_accessor :commodity_code
|
21
|
+
|
22
|
+
def initialize(commodity_code: nil)
|
23
|
+
@commodity_code = commodity_code
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class Klarna < Stripe::RequestParams
|
28
|
+
# URL to an image for the product. Max length, 4096 characters.
|
29
|
+
attr_accessor :image_url
|
30
|
+
# URL to the product page. Max length, 4096 characters.
|
31
|
+
attr_accessor :product_url
|
32
|
+
# Reference for the subscription this line item is for.
|
33
|
+
attr_accessor :subscription_reference
|
34
|
+
|
35
|
+
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
|
36
|
+
@image_url = image_url
|
37
|
+
@product_url = product_url
|
38
|
+
@subscription_reference = subscription_reference
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class Paypal < Stripe::RequestParams
|
43
|
+
# Type of the line item.
|
44
|
+
attr_accessor :category
|
45
|
+
# Description of the line item.
|
46
|
+
attr_accessor :description
|
47
|
+
# The Stripe account ID of the connected account that sells the item.
|
48
|
+
attr_accessor :sold_by
|
49
|
+
|
50
|
+
def initialize(category: nil, description: nil, sold_by: nil)
|
51
|
+
@category = category
|
52
|
+
@description = description
|
53
|
+
@sold_by = sold_by
|
54
|
+
end
|
55
|
+
end
|
56
|
+
# This sub-hash contains line item details that are specific to `card` payment method."
|
57
|
+
attr_accessor :card
|
58
|
+
# This sub-hash contains line item details that are specific to `card_present` payment method."
|
59
|
+
attr_accessor :card_present
|
60
|
+
# This sub-hash contains line item details that are specific to `klarna` payment method."
|
61
|
+
attr_accessor :klarna
|
62
|
+
# This sub-hash contains line item details that are specific to `paypal` payment method."
|
63
|
+
attr_accessor :paypal
|
64
|
+
|
65
|
+
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
|
66
|
+
@card = card
|
67
|
+
@card_present = card_present
|
68
|
+
@klarna = klarna
|
69
|
+
@paypal = paypal
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
class Tax < Stripe::RequestParams
|
74
|
+
# The total tax on an item. Non-negative integer.
|
75
|
+
attr_accessor :total_tax_amount
|
76
|
+
|
77
|
+
def initialize(total_tax_amount: nil)
|
78
|
+
@total_tax_amount = total_tax_amount
|
79
|
+
end
|
80
|
+
end
|
81
|
+
# The amount an item was discounted for. Positive integer.
|
82
|
+
attr_accessor :discount_amount
|
83
|
+
# Payment method-specific information for line items.
|
84
|
+
attr_accessor :payment_method_options
|
85
|
+
# Unique identifier of the product. At most 12 characters long.
|
86
|
+
attr_accessor :product_code
|
87
|
+
# Name of the product. At most 100 characters long.
|
88
|
+
attr_accessor :product_name
|
89
|
+
# Number of items of the product. Positive integer.
|
90
|
+
attr_accessor :quantity
|
91
|
+
# Contains information about the tax on the item.
|
92
|
+
attr_accessor :tax
|
93
|
+
# Cost of the product. Non-negative integer.
|
94
|
+
attr_accessor :unit_cost
|
95
|
+
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
96
|
+
attr_accessor :unit_of_measure
|
97
|
+
|
98
|
+
def initialize(
|
99
|
+
discount_amount: nil,
|
100
|
+
payment_method_options: nil,
|
101
|
+
product_code: nil,
|
102
|
+
product_name: nil,
|
103
|
+
quantity: nil,
|
104
|
+
tax: nil,
|
105
|
+
unit_cost: nil,
|
106
|
+
unit_of_measure: nil
|
107
|
+
)
|
108
|
+
@discount_amount = discount_amount
|
109
|
+
@payment_method_options = payment_method_options
|
110
|
+
@product_code = product_code
|
111
|
+
@product_name = product_name
|
112
|
+
@quantity = quantity
|
113
|
+
@tax = tax
|
114
|
+
@unit_cost = unit_cost
|
115
|
+
@unit_of_measure = unit_of_measure
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
class Shipping < Stripe::RequestParams
|
120
|
+
# Portion of the amount that is for shipping.
|
121
|
+
attr_accessor :amount
|
122
|
+
# The postal code that represents the shipping source.
|
123
|
+
attr_accessor :from_postal_code
|
124
|
+
# The postal code that represents the shipping destination.
|
125
|
+
attr_accessor :to_postal_code
|
126
|
+
|
127
|
+
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
128
|
+
@amount = amount
|
129
|
+
@from_postal_code = from_postal_code
|
130
|
+
@to_postal_code = to_postal_code
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class Tax < Stripe::RequestParams
|
135
|
+
# Total portion of the amount that is for tax.
|
136
|
+
attr_accessor :total_tax_amount
|
137
|
+
|
138
|
+
def initialize(total_tax_amount: nil)
|
139
|
+
@total_tax_amount = total_tax_amount
|
140
|
+
end
|
141
|
+
end
|
142
|
+
# The total discount applied on the transaction.
|
143
|
+
attr_accessor :discount_amount
|
144
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
145
|
+
attr_accessor :line_items
|
146
|
+
# Contains information about the shipping portion of the amount.
|
147
|
+
attr_accessor :shipping
|
148
|
+
# Contains information about the tax portion of the amount.
|
149
|
+
attr_accessor :tax
|
150
|
+
|
151
|
+
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
|
152
|
+
@discount_amount = discount_amount
|
153
|
+
@line_items = line_items
|
154
|
+
@shipping = shipping
|
155
|
+
@tax = tax
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class Hooks < Stripe::RequestParams
|
160
|
+
class Inputs < Stripe::RequestParams
|
161
|
+
class Tax < Stripe::RequestParams
|
162
|
+
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
163
|
+
attr_accessor :calculation
|
164
|
+
|
165
|
+
def initialize(calculation: nil)
|
166
|
+
@calculation = calculation
|
167
|
+
end
|
168
|
+
end
|
169
|
+
# Tax arguments for automations
|
170
|
+
attr_accessor :tax
|
171
|
+
|
172
|
+
def initialize(tax: nil)
|
173
|
+
@tax = tax
|
174
|
+
end
|
175
|
+
end
|
176
|
+
# Arguments passed in automations
|
177
|
+
attr_accessor :inputs
|
178
|
+
|
179
|
+
def initialize(inputs: nil)
|
180
|
+
@inputs = inputs
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class MandateData < Stripe::RequestParams
|
185
|
+
class CustomerAcceptance < Stripe::RequestParams
|
186
|
+
class Online < Stripe::RequestParams
|
187
|
+
# The IP address from which the Mandate was accepted by the customer.
|
188
|
+
attr_accessor :ip_address
|
189
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
190
|
+
attr_accessor :user_agent
|
191
|
+
|
192
|
+
def initialize(ip_address: nil, user_agent: nil)
|
193
|
+
@ip_address = ip_address
|
194
|
+
@user_agent = user_agent
|
195
|
+
end
|
196
|
+
end
|
197
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
198
|
+
attr_accessor :online
|
199
|
+
# The type of customer acceptance information included with the Mandate.
|
200
|
+
attr_accessor :type
|
201
|
+
|
202
|
+
def initialize(online: nil, type: nil)
|
203
|
+
@online = online
|
204
|
+
@type = type
|
205
|
+
end
|
206
|
+
end
|
207
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
208
|
+
attr_accessor :customer_acceptance
|
209
|
+
|
210
|
+
def initialize(customer_acceptance: nil)
|
211
|
+
@customer_acceptance = customer_acceptance
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
class PaymentDetails < Stripe::RequestParams
|
216
|
+
class CarRental < Stripe::RequestParams
|
217
|
+
class Affiliate < Stripe::RequestParams
|
218
|
+
# The name of the affiliate that originated the purchase.
|
219
|
+
attr_accessor :name
|
220
|
+
|
221
|
+
def initialize(name: nil)
|
222
|
+
@name = name
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
class Delivery < Stripe::RequestParams
|
227
|
+
class Recipient < Stripe::RequestParams
|
228
|
+
# The email of the recipient the ticket is delivered to.
|
229
|
+
attr_accessor :email
|
230
|
+
# The name of the recipient the ticket is delivered to.
|
231
|
+
attr_accessor :name
|
232
|
+
# The phone number of the recipient the ticket is delivered to.
|
233
|
+
attr_accessor :phone
|
234
|
+
|
235
|
+
def initialize(email: nil, name: nil, phone: nil)
|
236
|
+
@email = email
|
237
|
+
@name = name
|
238
|
+
@phone = phone
|
239
|
+
end
|
240
|
+
end
|
241
|
+
# The delivery method for the payment
|
242
|
+
attr_accessor :mode
|
243
|
+
# Details of the recipient.
|
244
|
+
attr_accessor :recipient
|
245
|
+
|
246
|
+
def initialize(mode: nil, recipient: nil)
|
247
|
+
@mode = mode
|
248
|
+
@recipient = recipient
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class Distance < Stripe::RequestParams
|
253
|
+
# Distance traveled.
|
254
|
+
attr_accessor :amount
|
255
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
256
|
+
attr_accessor :unit
|
257
|
+
|
258
|
+
def initialize(amount: nil, unit: nil)
|
259
|
+
@amount = amount
|
260
|
+
@unit = unit
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
class Driver < Stripe::RequestParams
|
265
|
+
# Driver's identification number.
|
266
|
+
attr_accessor :driver_identification_number
|
267
|
+
# Driver's tax number.
|
268
|
+
attr_accessor :driver_tax_number
|
269
|
+
# Full name of the person or entity on the car reservation.
|
270
|
+
attr_accessor :name
|
271
|
+
|
272
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
273
|
+
@driver_identification_number = driver_identification_number
|
274
|
+
@driver_tax_number = driver_tax_number
|
275
|
+
@name = name
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
class PickupAddress < Stripe::RequestParams
|
280
|
+
# City, district, suburb, town, or village.
|
281
|
+
attr_accessor :city
|
282
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
283
|
+
attr_accessor :country
|
284
|
+
# Address line 1, such as the street, PO Box, or company name.
|
285
|
+
attr_accessor :line1
|
286
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
287
|
+
attr_accessor :line2
|
288
|
+
# ZIP or postal code.
|
289
|
+
attr_accessor :postal_code
|
290
|
+
# State, county, province, or region.
|
291
|
+
attr_accessor :state
|
292
|
+
|
293
|
+
def initialize(
|
294
|
+
city: nil,
|
295
|
+
country: nil,
|
296
|
+
line1: nil,
|
297
|
+
line2: nil,
|
298
|
+
postal_code: nil,
|
299
|
+
state: nil
|
300
|
+
)
|
301
|
+
@city = city
|
302
|
+
@country = country
|
303
|
+
@line1 = line1
|
304
|
+
@line2 = line2
|
305
|
+
@postal_code = postal_code
|
306
|
+
@state = state
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
class ReturnAddress < Stripe::RequestParams
|
311
|
+
# City, district, suburb, town, or village.
|
312
|
+
attr_accessor :city
|
313
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
314
|
+
attr_accessor :country
|
315
|
+
# Address line 1, such as the street, PO Box, or company name.
|
316
|
+
attr_accessor :line1
|
317
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
318
|
+
attr_accessor :line2
|
319
|
+
# ZIP or postal code.
|
320
|
+
attr_accessor :postal_code
|
321
|
+
# State, county, province, or region.
|
322
|
+
attr_accessor :state
|
323
|
+
|
324
|
+
def initialize(
|
325
|
+
city: nil,
|
326
|
+
country: nil,
|
327
|
+
line1: nil,
|
328
|
+
line2: nil,
|
329
|
+
postal_code: nil,
|
330
|
+
state: nil
|
331
|
+
)
|
332
|
+
@city = city
|
333
|
+
@country = country
|
334
|
+
@line1 = line1
|
335
|
+
@line2 = line2
|
336
|
+
@postal_code = postal_code
|
337
|
+
@state = state
|
338
|
+
end
|
339
|
+
end
|
340
|
+
# Affiliate details for this purchase.
|
341
|
+
attr_accessor :affiliate
|
342
|
+
# The booking number associated with the car rental.
|
343
|
+
attr_accessor :booking_number
|
344
|
+
# Class code of the car.
|
345
|
+
attr_accessor :car_class_code
|
346
|
+
# Make of the car.
|
347
|
+
attr_accessor :car_make
|
348
|
+
# Model of the car.
|
349
|
+
attr_accessor :car_model
|
350
|
+
# The name of the rental car company.
|
351
|
+
attr_accessor :company
|
352
|
+
# The customer service phone number of the car rental company.
|
353
|
+
attr_accessor :customer_service_phone_number
|
354
|
+
# Number of days the car is being rented.
|
355
|
+
attr_accessor :days_rented
|
356
|
+
# Delivery details for this purchase.
|
357
|
+
attr_accessor :delivery
|
358
|
+
# The details of the distance traveled during the rental period.
|
359
|
+
attr_accessor :distance
|
360
|
+
# The details of the passengers in the travel reservation
|
361
|
+
attr_accessor :drivers
|
362
|
+
# List of additional charges being billed.
|
363
|
+
attr_accessor :extra_charges
|
364
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
365
|
+
attr_accessor :no_show
|
366
|
+
# Car pick-up address.
|
367
|
+
attr_accessor :pickup_address
|
368
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
369
|
+
attr_accessor :pickup_at
|
370
|
+
# Name of the pickup location.
|
371
|
+
attr_accessor :pickup_location_name
|
372
|
+
# Rental rate.
|
373
|
+
attr_accessor :rate_amount
|
374
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
375
|
+
attr_accessor :rate_interval
|
376
|
+
# The name of the person or entity renting the car.
|
377
|
+
attr_accessor :renter_name
|
378
|
+
# Car return address.
|
379
|
+
attr_accessor :return_address
|
380
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
381
|
+
attr_accessor :return_at
|
382
|
+
# Name of the return location.
|
383
|
+
attr_accessor :return_location_name
|
384
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
385
|
+
attr_accessor :tax_exempt
|
386
|
+
# The vehicle identification number.
|
387
|
+
attr_accessor :vehicle_identification_number
|
388
|
+
|
389
|
+
def initialize(
|
390
|
+
affiliate: nil,
|
391
|
+
booking_number: nil,
|
392
|
+
car_class_code: nil,
|
393
|
+
car_make: nil,
|
394
|
+
car_model: nil,
|
395
|
+
company: nil,
|
396
|
+
customer_service_phone_number: nil,
|
397
|
+
days_rented: nil,
|
398
|
+
delivery: nil,
|
399
|
+
distance: nil,
|
400
|
+
drivers: nil,
|
401
|
+
extra_charges: nil,
|
402
|
+
no_show: nil,
|
403
|
+
pickup_address: nil,
|
404
|
+
pickup_at: nil,
|
405
|
+
pickup_location_name: nil,
|
406
|
+
rate_amount: nil,
|
407
|
+
rate_interval: nil,
|
408
|
+
renter_name: nil,
|
409
|
+
return_address: nil,
|
410
|
+
return_at: nil,
|
411
|
+
return_location_name: nil,
|
412
|
+
tax_exempt: nil,
|
413
|
+
vehicle_identification_number: nil
|
414
|
+
)
|
415
|
+
@affiliate = affiliate
|
416
|
+
@booking_number = booking_number
|
417
|
+
@car_class_code = car_class_code
|
418
|
+
@car_make = car_make
|
419
|
+
@car_model = car_model
|
420
|
+
@company = company
|
421
|
+
@customer_service_phone_number = customer_service_phone_number
|
422
|
+
@days_rented = days_rented
|
423
|
+
@delivery = delivery
|
424
|
+
@distance = distance
|
425
|
+
@drivers = drivers
|
426
|
+
@extra_charges = extra_charges
|
427
|
+
@no_show = no_show
|
428
|
+
@pickup_address = pickup_address
|
429
|
+
@pickup_at = pickup_at
|
430
|
+
@pickup_location_name = pickup_location_name
|
431
|
+
@rate_amount = rate_amount
|
432
|
+
@rate_interval = rate_interval
|
433
|
+
@renter_name = renter_name
|
434
|
+
@return_address = return_address
|
435
|
+
@return_at = return_at
|
436
|
+
@return_location_name = return_location_name
|
437
|
+
@tax_exempt = tax_exempt
|
438
|
+
@vehicle_identification_number = vehicle_identification_number
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
class EventDetails < Stripe::RequestParams
|
443
|
+
class Address < Stripe::RequestParams
|
444
|
+
# City, district, suburb, town, or village.
|
445
|
+
attr_accessor :city
|
446
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
447
|
+
attr_accessor :country
|
448
|
+
# Address line 1, such as the street, PO Box, or company name.
|
449
|
+
attr_accessor :line1
|
450
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
451
|
+
attr_accessor :line2
|
452
|
+
# ZIP or postal code.
|
453
|
+
attr_accessor :postal_code
|
454
|
+
# State, county, province, or region.
|
455
|
+
attr_accessor :state
|
456
|
+
|
457
|
+
def initialize(
|
458
|
+
city: nil,
|
459
|
+
country: nil,
|
460
|
+
line1: nil,
|
461
|
+
line2: nil,
|
462
|
+
postal_code: nil,
|
463
|
+
state: nil
|
464
|
+
)
|
465
|
+
@city = city
|
466
|
+
@country = country
|
467
|
+
@line1 = line1
|
468
|
+
@line2 = line2
|
469
|
+
@postal_code = postal_code
|
470
|
+
@state = state
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
class Affiliate < Stripe::RequestParams
|
475
|
+
# The name of the affiliate that originated the purchase.
|
476
|
+
attr_accessor :name
|
477
|
+
|
478
|
+
def initialize(name: nil)
|
479
|
+
@name = name
|
480
|
+
end
|
481
|
+
end
|
482
|
+
|
483
|
+
class Delivery < Stripe::RequestParams
|
484
|
+
class Recipient < Stripe::RequestParams
|
485
|
+
# The email of the recipient the ticket is delivered to.
|
486
|
+
attr_accessor :email
|
487
|
+
# The name of the recipient the ticket is delivered to.
|
488
|
+
attr_accessor :name
|
489
|
+
# The phone number of the recipient the ticket is delivered to.
|
490
|
+
attr_accessor :phone
|
491
|
+
|
492
|
+
def initialize(email: nil, name: nil, phone: nil)
|
493
|
+
@email = email
|
494
|
+
@name = name
|
495
|
+
@phone = phone
|
496
|
+
end
|
497
|
+
end
|
498
|
+
# The delivery method for the payment
|
499
|
+
attr_accessor :mode
|
500
|
+
# Details of the recipient.
|
501
|
+
attr_accessor :recipient
|
502
|
+
|
503
|
+
def initialize(mode: nil, recipient: nil)
|
504
|
+
@mode = mode
|
505
|
+
@recipient = recipient
|
506
|
+
end
|
507
|
+
end
|
508
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
509
|
+
attr_accessor :access_controlled_venue
|
510
|
+
# The event location's address.
|
511
|
+
attr_accessor :address
|
512
|
+
# Affiliate details for this purchase.
|
513
|
+
attr_accessor :affiliate
|
514
|
+
# The name of the company
|
515
|
+
attr_accessor :company
|
516
|
+
# Delivery details for this purchase.
|
517
|
+
attr_accessor :delivery
|
518
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
519
|
+
attr_accessor :ends_at
|
520
|
+
# Type of the event entertainment (concert, sports event etc)
|
521
|
+
attr_accessor :genre
|
522
|
+
# The name of the event.
|
523
|
+
attr_accessor :name
|
524
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
525
|
+
attr_accessor :starts_at
|
526
|
+
|
527
|
+
def initialize(
|
528
|
+
access_controlled_venue: nil,
|
529
|
+
address: nil,
|
530
|
+
affiliate: nil,
|
531
|
+
company: nil,
|
532
|
+
delivery: nil,
|
533
|
+
ends_at: nil,
|
534
|
+
genre: nil,
|
535
|
+
name: nil,
|
536
|
+
starts_at: nil
|
537
|
+
)
|
538
|
+
@access_controlled_venue = access_controlled_venue
|
539
|
+
@address = address
|
540
|
+
@affiliate = affiliate
|
541
|
+
@company = company
|
542
|
+
@delivery = delivery
|
543
|
+
@ends_at = ends_at
|
544
|
+
@genre = genre
|
545
|
+
@name = name
|
546
|
+
@starts_at = starts_at
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
550
|
+
class Flight < Stripe::RequestParams
|
551
|
+
class Affiliate < Stripe::RequestParams
|
552
|
+
# The name of the affiliate that originated the purchase.
|
553
|
+
attr_accessor :name
|
554
|
+
|
555
|
+
def initialize(name: nil)
|
556
|
+
@name = name
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
560
|
+
class Delivery < Stripe::RequestParams
|
561
|
+
class Recipient < Stripe::RequestParams
|
562
|
+
# The email of the recipient the ticket is delivered to.
|
563
|
+
attr_accessor :email
|
564
|
+
# The name of the recipient the ticket is delivered to.
|
565
|
+
attr_accessor :name
|
566
|
+
# The phone number of the recipient the ticket is delivered to.
|
567
|
+
attr_accessor :phone
|
568
|
+
|
569
|
+
def initialize(email: nil, name: nil, phone: nil)
|
570
|
+
@email = email
|
571
|
+
@name = name
|
572
|
+
@phone = phone
|
573
|
+
end
|
574
|
+
end
|
575
|
+
# The delivery method for the payment
|
576
|
+
attr_accessor :mode
|
577
|
+
# Details of the recipient.
|
578
|
+
attr_accessor :recipient
|
579
|
+
|
580
|
+
def initialize(mode: nil, recipient: nil)
|
581
|
+
@mode = mode
|
582
|
+
@recipient = recipient
|
583
|
+
end
|
584
|
+
end
|
585
|
+
|
586
|
+
class Passenger < Stripe::RequestParams
|
587
|
+
# Full name of the person or entity on the flight reservation.
|
588
|
+
attr_accessor :name
|
589
|
+
|
590
|
+
def initialize(name: nil)
|
591
|
+
@name = name
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
595
|
+
class Segment < Stripe::RequestParams
|
596
|
+
# The flight segment amount.
|
597
|
+
attr_accessor :amount
|
598
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
599
|
+
attr_accessor :arrival_airport
|
600
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
601
|
+
attr_accessor :arrives_at
|
602
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
603
|
+
attr_accessor :carrier
|
604
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
605
|
+
attr_accessor :departs_at
|
606
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
607
|
+
attr_accessor :departure_airport
|
608
|
+
# The flight number associated with the segment
|
609
|
+
attr_accessor :flight_number
|
610
|
+
# The fare class for the segment.
|
611
|
+
attr_accessor :service_class
|
612
|
+
|
613
|
+
def initialize(
|
614
|
+
amount: nil,
|
615
|
+
arrival_airport: nil,
|
616
|
+
arrives_at: nil,
|
617
|
+
carrier: nil,
|
618
|
+
departs_at: nil,
|
619
|
+
departure_airport: nil,
|
620
|
+
flight_number: nil,
|
621
|
+
service_class: nil
|
622
|
+
)
|
623
|
+
@amount = amount
|
624
|
+
@arrival_airport = arrival_airport
|
625
|
+
@arrives_at = arrives_at
|
626
|
+
@carrier = carrier
|
627
|
+
@departs_at = departs_at
|
628
|
+
@departure_airport = departure_airport
|
629
|
+
@flight_number = flight_number
|
630
|
+
@service_class = service_class
|
631
|
+
end
|
632
|
+
end
|
633
|
+
# Affiliate details for this purchase.
|
634
|
+
attr_accessor :affiliate
|
635
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
636
|
+
attr_accessor :agency_number
|
637
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
638
|
+
attr_accessor :carrier
|
639
|
+
# Delivery details for this purchase.
|
640
|
+
attr_accessor :delivery
|
641
|
+
# The name of the person or entity on the reservation.
|
642
|
+
attr_accessor :passenger_name
|
643
|
+
# The details of the passengers in the travel reservation.
|
644
|
+
attr_accessor :passengers
|
645
|
+
# The individual flight segments associated with the trip.
|
646
|
+
attr_accessor :segments
|
647
|
+
# The ticket number associated with the travel reservation.
|
648
|
+
attr_accessor :ticket_number
|
649
|
+
|
650
|
+
def initialize(
|
651
|
+
affiliate: nil,
|
652
|
+
agency_number: nil,
|
653
|
+
carrier: nil,
|
654
|
+
delivery: nil,
|
655
|
+
passenger_name: nil,
|
656
|
+
passengers: nil,
|
657
|
+
segments: nil,
|
658
|
+
ticket_number: nil
|
659
|
+
)
|
660
|
+
@affiliate = affiliate
|
661
|
+
@agency_number = agency_number
|
662
|
+
@carrier = carrier
|
663
|
+
@delivery = delivery
|
664
|
+
@passenger_name = passenger_name
|
665
|
+
@passengers = passengers
|
666
|
+
@segments = segments
|
667
|
+
@ticket_number = ticket_number
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
class Lodging < Stripe::RequestParams
|
672
|
+
class Address < Stripe::RequestParams
|
673
|
+
# City, district, suburb, town, or village.
|
674
|
+
attr_accessor :city
|
675
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
676
|
+
attr_accessor :country
|
677
|
+
# Address line 1, such as the street, PO Box, or company name.
|
678
|
+
attr_accessor :line1
|
679
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
680
|
+
attr_accessor :line2
|
681
|
+
# ZIP or postal code.
|
682
|
+
attr_accessor :postal_code
|
683
|
+
# State, county, province, or region.
|
684
|
+
attr_accessor :state
|
685
|
+
|
686
|
+
def initialize(
|
687
|
+
city: nil,
|
688
|
+
country: nil,
|
689
|
+
line1: nil,
|
690
|
+
line2: nil,
|
691
|
+
postal_code: nil,
|
692
|
+
state: nil
|
693
|
+
)
|
694
|
+
@city = city
|
695
|
+
@country = country
|
696
|
+
@line1 = line1
|
697
|
+
@line2 = line2
|
698
|
+
@postal_code = postal_code
|
699
|
+
@state = state
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
703
|
+
class Affiliate < Stripe::RequestParams
|
704
|
+
# The name of the affiliate that originated the purchase.
|
705
|
+
attr_accessor :name
|
706
|
+
|
707
|
+
def initialize(name: nil)
|
708
|
+
@name = name
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
712
|
+
class Delivery < Stripe::RequestParams
|
713
|
+
class Recipient < Stripe::RequestParams
|
714
|
+
# The email of the recipient the ticket is delivered to.
|
715
|
+
attr_accessor :email
|
716
|
+
# The name of the recipient the ticket is delivered to.
|
717
|
+
attr_accessor :name
|
718
|
+
# The phone number of the recipient the ticket is delivered to.
|
719
|
+
attr_accessor :phone
|
720
|
+
|
721
|
+
def initialize(email: nil, name: nil, phone: nil)
|
722
|
+
@email = email
|
723
|
+
@name = name
|
724
|
+
@phone = phone
|
725
|
+
end
|
726
|
+
end
|
727
|
+
# The delivery method for the payment
|
728
|
+
attr_accessor :mode
|
729
|
+
# Details of the recipient.
|
730
|
+
attr_accessor :recipient
|
731
|
+
|
732
|
+
def initialize(mode: nil, recipient: nil)
|
733
|
+
@mode = mode
|
734
|
+
@recipient = recipient
|
735
|
+
end
|
736
|
+
end
|
737
|
+
|
738
|
+
class Passenger < Stripe::RequestParams
|
739
|
+
# Full name of the person or entity on the lodging reservation.
|
740
|
+
attr_accessor :name
|
741
|
+
|
742
|
+
def initialize(name: nil)
|
743
|
+
@name = name
|
744
|
+
end
|
745
|
+
end
|
746
|
+
# The lodging location's address.
|
747
|
+
attr_accessor :address
|
748
|
+
# The number of adults on the booking
|
749
|
+
attr_accessor :adults
|
750
|
+
# Affiliate details for this purchase.
|
751
|
+
attr_accessor :affiliate
|
752
|
+
# The booking number associated with the lodging reservation.
|
753
|
+
attr_accessor :booking_number
|
754
|
+
# The lodging category
|
755
|
+
attr_accessor :category
|
756
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
757
|
+
attr_accessor :checkin_at
|
758
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
759
|
+
attr_accessor :checkout_at
|
760
|
+
# The customer service phone number of the lodging company.
|
761
|
+
attr_accessor :customer_service_phone_number
|
762
|
+
# The daily lodging room rate.
|
763
|
+
attr_accessor :daily_room_rate_amount
|
764
|
+
# Delivery details for this purchase.
|
765
|
+
attr_accessor :delivery
|
766
|
+
# List of additional charges being billed.
|
767
|
+
attr_accessor :extra_charges
|
768
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
769
|
+
attr_accessor :fire_safety_act_compliance
|
770
|
+
# The name of the lodging location.
|
771
|
+
attr_accessor :name
|
772
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
773
|
+
attr_accessor :no_show
|
774
|
+
# The number of rooms on the booking
|
775
|
+
attr_accessor :number_of_rooms
|
776
|
+
# The details of the passengers in the travel reservation
|
777
|
+
attr_accessor :passengers
|
778
|
+
# The phone number of the lodging location.
|
779
|
+
attr_accessor :property_phone_number
|
780
|
+
# The room class for this purchase.
|
781
|
+
attr_accessor :room_class
|
782
|
+
# The number of room nights
|
783
|
+
attr_accessor :room_nights
|
784
|
+
# The total tax amount associating with the room reservation.
|
785
|
+
attr_accessor :total_room_tax_amount
|
786
|
+
# The total tax amount
|
787
|
+
attr_accessor :total_tax_amount
|
788
|
+
|
789
|
+
def initialize(
|
790
|
+
address: nil,
|
791
|
+
adults: nil,
|
792
|
+
affiliate: nil,
|
793
|
+
booking_number: nil,
|
794
|
+
category: nil,
|
795
|
+
checkin_at: nil,
|
796
|
+
checkout_at: nil,
|
797
|
+
customer_service_phone_number: nil,
|
798
|
+
daily_room_rate_amount: nil,
|
799
|
+
delivery: nil,
|
800
|
+
extra_charges: nil,
|
801
|
+
fire_safety_act_compliance: nil,
|
802
|
+
name: nil,
|
803
|
+
no_show: nil,
|
804
|
+
number_of_rooms: nil,
|
805
|
+
passengers: nil,
|
806
|
+
property_phone_number: nil,
|
807
|
+
room_class: nil,
|
808
|
+
room_nights: nil,
|
809
|
+
total_room_tax_amount: nil,
|
810
|
+
total_tax_amount: nil
|
811
|
+
)
|
812
|
+
@address = address
|
813
|
+
@adults = adults
|
814
|
+
@affiliate = affiliate
|
815
|
+
@booking_number = booking_number
|
816
|
+
@category = category
|
817
|
+
@checkin_at = checkin_at
|
818
|
+
@checkout_at = checkout_at
|
819
|
+
@customer_service_phone_number = customer_service_phone_number
|
820
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
821
|
+
@delivery = delivery
|
822
|
+
@extra_charges = extra_charges
|
823
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
824
|
+
@name = name
|
825
|
+
@no_show = no_show
|
826
|
+
@number_of_rooms = number_of_rooms
|
827
|
+
@passengers = passengers
|
828
|
+
@property_phone_number = property_phone_number
|
829
|
+
@room_class = room_class
|
830
|
+
@room_nights = room_nights
|
831
|
+
@total_room_tax_amount = total_room_tax_amount
|
832
|
+
@total_tax_amount = total_tax_amount
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
836
|
+
class Subscription < Stripe::RequestParams
|
837
|
+
class Affiliate < Stripe::RequestParams
|
838
|
+
# The name of the affiliate that originated the purchase.
|
839
|
+
attr_accessor :name
|
840
|
+
|
841
|
+
def initialize(name: nil)
|
842
|
+
@name = name
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
846
|
+
class BillingInterval < Stripe::RequestParams
|
847
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
848
|
+
attr_accessor :count
|
849
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
850
|
+
attr_accessor :interval
|
851
|
+
|
852
|
+
def initialize(count: nil, interval: nil)
|
853
|
+
@count = count
|
854
|
+
@interval = interval
|
855
|
+
end
|
856
|
+
end
|
857
|
+
# Affiliate details for this purchase.
|
858
|
+
attr_accessor :affiliate
|
859
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
860
|
+
attr_accessor :auto_renewal
|
861
|
+
# Subscription billing details for this purchase.
|
862
|
+
attr_accessor :billing_interval
|
863
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
864
|
+
attr_accessor :ends_at
|
865
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
866
|
+
attr_accessor :name
|
867
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
868
|
+
attr_accessor :starts_at
|
869
|
+
|
870
|
+
def initialize(
|
871
|
+
affiliate: nil,
|
872
|
+
auto_renewal: nil,
|
873
|
+
billing_interval: nil,
|
874
|
+
ends_at: nil,
|
875
|
+
name: nil,
|
876
|
+
starts_at: nil
|
877
|
+
)
|
878
|
+
@affiliate = affiliate
|
879
|
+
@auto_renewal = auto_renewal
|
880
|
+
@billing_interval = billing_interval
|
881
|
+
@ends_at = ends_at
|
882
|
+
@name = name
|
883
|
+
@starts_at = starts_at
|
884
|
+
end
|
885
|
+
end
|
886
|
+
# Car rental details for this PaymentIntent.
|
887
|
+
attr_accessor :car_rental
|
888
|
+
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
889
|
+
attr_accessor :customer_reference
|
890
|
+
# Event details for this PaymentIntent
|
891
|
+
attr_accessor :event_details
|
892
|
+
# Flight reservation details for this PaymentIntent
|
893
|
+
attr_accessor :flight
|
894
|
+
# Lodging reservation details for this PaymentIntent
|
895
|
+
attr_accessor :lodging
|
896
|
+
# A unique value assigned by the business to identify the transaction.
|
897
|
+
attr_accessor :order_reference
|
898
|
+
# Subscription details for this PaymentIntent
|
899
|
+
attr_accessor :subscription
|
900
|
+
|
901
|
+
def initialize(
|
902
|
+
car_rental: nil,
|
903
|
+
customer_reference: nil,
|
904
|
+
event_details: nil,
|
905
|
+
flight: nil,
|
906
|
+
lodging: nil,
|
907
|
+
order_reference: nil,
|
908
|
+
subscription: nil
|
909
|
+
)
|
910
|
+
@car_rental = car_rental
|
911
|
+
@customer_reference = customer_reference
|
912
|
+
@event_details = event_details
|
913
|
+
@flight = flight
|
914
|
+
@lodging = lodging
|
915
|
+
@order_reference = order_reference
|
916
|
+
@subscription = subscription
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
6
920
|
class PaymentMethodData < Stripe::RequestParams
|
7
921
|
class AcssDebit < Stripe::RequestParams
|
8
922
|
# Customer's bank account number.
|
@@ -140,8 +1054,18 @@ module Stripe
|
|
140
1054
|
end
|
141
1055
|
|
142
1056
|
class Giropay < Stripe::RequestParams; end
|
1057
|
+
class Gopay < Stripe::RequestParams; end
|
143
1058
|
class Grabpay < Stripe::RequestParams; end
|
144
1059
|
|
1060
|
+
class IdBankTransfer < Stripe::RequestParams
|
1061
|
+
# Bank where the account is held.
|
1062
|
+
attr_accessor :bank
|
1063
|
+
|
1064
|
+
def initialize(bank: nil)
|
1065
|
+
@bank = bank
|
1066
|
+
end
|
1067
|
+
end
|
1068
|
+
|
145
1069
|
class Ideal < Stripe::RequestParams
|
146
1070
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
147
1071
|
attr_accessor :bank
|
@@ -239,8 +1163,26 @@ module Stripe
|
|
239
1163
|
class Payco < Stripe::RequestParams; end
|
240
1164
|
class Paynow < Stripe::RequestParams; end
|
241
1165
|
class Paypal < Stripe::RequestParams; end
|
1166
|
+
class Paypay < Stripe::RequestParams; end
|
1167
|
+
|
1168
|
+
class Payto < Stripe::RequestParams
|
1169
|
+
# The account number for the bank account.
|
1170
|
+
attr_accessor :account_number
|
1171
|
+
# Bank-State-Branch number of the bank account.
|
1172
|
+
attr_accessor :bsb_number
|
1173
|
+
# The PayID alias for the bank account.
|
1174
|
+
attr_accessor :pay_id
|
1175
|
+
|
1176
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
1177
|
+
@account_number = account_number
|
1178
|
+
@bsb_number = bsb_number
|
1179
|
+
@pay_id = pay_id
|
1180
|
+
end
|
1181
|
+
end
|
1182
|
+
|
242
1183
|
class Pix < Stripe::RequestParams; end
|
243
1184
|
class Promptpay < Stripe::RequestParams; end
|
1185
|
+
class Qris < Stripe::RequestParams; end
|
244
1186
|
|
245
1187
|
class RadarOptions < Stripe::RequestParams
|
246
1188
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -251,6 +1193,29 @@ module Stripe
|
|
251
1193
|
end
|
252
1194
|
end
|
253
1195
|
|
1196
|
+
class Rechnung < Stripe::RequestParams
|
1197
|
+
class Dob < Stripe::RequestParams
|
1198
|
+
# The day of birth, between 1 and 31.
|
1199
|
+
attr_accessor :day
|
1200
|
+
# The month of birth, between 1 and 12.
|
1201
|
+
attr_accessor :month
|
1202
|
+
# The four-digit year of birth.
|
1203
|
+
attr_accessor :year
|
1204
|
+
|
1205
|
+
def initialize(day: nil, month: nil, year: nil)
|
1206
|
+
@day = day
|
1207
|
+
@month = month
|
1208
|
+
@year = year
|
1209
|
+
end
|
1210
|
+
end
|
1211
|
+
# Customer's date of birth
|
1212
|
+
attr_accessor :dob
|
1213
|
+
|
1214
|
+
def initialize(dob: nil)
|
1215
|
+
@dob = dob
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
|
254
1219
|
class RevolutPay < Stripe::RequestParams; end
|
255
1220
|
class SamsungPay < Stripe::RequestParams; end
|
256
1221
|
class Satispay < Stripe::RequestParams; end
|
@@ -264,6 +1229,8 @@ module Stripe
|
|
264
1229
|
end
|
265
1230
|
end
|
266
1231
|
|
1232
|
+
class Shopeepay < Stripe::RequestParams; end
|
1233
|
+
|
267
1234
|
class Sofort < Stripe::RequestParams
|
268
1235
|
# Two-letter ISO code representing the country the bank account is located in.
|
269
1236
|
attr_accessor :country
|
@@ -273,6 +1240,18 @@ module Stripe
|
|
273
1240
|
end
|
274
1241
|
end
|
275
1242
|
|
1243
|
+
class StripeBalance < Stripe::RequestParams
|
1244
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
1245
|
+
attr_accessor :account
|
1246
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1247
|
+
attr_accessor :source_type
|
1248
|
+
|
1249
|
+
def initialize(account: nil, source_type: nil)
|
1250
|
+
@account = account
|
1251
|
+
@source_type = source_type
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
276
1255
|
class Swish < Stripe::RequestParams; end
|
277
1256
|
class Twint < Stripe::RequestParams; end
|
278
1257
|
|
@@ -345,8 +1324,12 @@ module Stripe
|
|
345
1324
|
attr_accessor :fpx
|
346
1325
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
347
1326
|
attr_accessor :giropay
|
1327
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1328
|
+
attr_accessor :gopay
|
348
1329
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
349
1330
|
attr_accessor :grabpay
|
1331
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1332
|
+
attr_accessor :id_bank_transfer
|
350
1333
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
351
1334
|
attr_accessor :ideal
|
352
1335
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -385,12 +1368,20 @@ module Stripe
|
|
385
1368
|
attr_accessor :paynow
|
386
1369
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
387
1370
|
attr_accessor :paypal
|
1371
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
1372
|
+
attr_accessor :paypay
|
1373
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1374
|
+
attr_accessor :payto
|
388
1375
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
389
1376
|
attr_accessor :pix
|
390
1377
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
391
1378
|
attr_accessor :promptpay
|
1379
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1380
|
+
attr_accessor :qris
|
392
1381
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
393
1382
|
attr_accessor :radar_options
|
1383
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1384
|
+
attr_accessor :rechnung
|
394
1385
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
395
1386
|
attr_accessor :revolut_pay
|
396
1387
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -399,8 +1390,12 @@ module Stripe
|
|
399
1390
|
attr_accessor :satispay
|
400
1391
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
401
1392
|
attr_accessor :sepa_debit
|
1393
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1394
|
+
attr_accessor :shopeepay
|
402
1395
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
403
1396
|
attr_accessor :sofort
|
1397
|
+
# This hash contains details about the Stripe balance payment method.
|
1398
|
+
attr_accessor :stripe_balance
|
404
1399
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
405
1400
|
attr_accessor :swish
|
406
1401
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -435,7 +1430,9 @@ module Stripe
|
|
435
1430
|
eps: nil,
|
436
1431
|
fpx: nil,
|
437
1432
|
giropay: nil,
|
1433
|
+
gopay: nil,
|
438
1434
|
grabpay: nil,
|
1435
|
+
id_bank_transfer: nil,
|
439
1436
|
ideal: nil,
|
440
1437
|
interac_present: nil,
|
441
1438
|
kakao_pay: nil,
|
@@ -455,14 +1452,20 @@ module Stripe
|
|
455
1452
|
payco: nil,
|
456
1453
|
paynow: nil,
|
457
1454
|
paypal: nil,
|
1455
|
+
paypay: nil,
|
1456
|
+
payto: nil,
|
458
1457
|
pix: nil,
|
459
1458
|
promptpay: nil,
|
1459
|
+
qris: nil,
|
460
1460
|
radar_options: nil,
|
1461
|
+
rechnung: nil,
|
461
1462
|
revolut_pay: nil,
|
462
1463
|
samsung_pay: nil,
|
463
1464
|
satispay: nil,
|
464
1465
|
sepa_debit: nil,
|
1466
|
+
shopeepay: nil,
|
465
1467
|
sofort: nil,
|
1468
|
+
stripe_balance: nil,
|
466
1469
|
swish: nil,
|
467
1470
|
twint: nil,
|
468
1471
|
type: nil,
|
@@ -490,7 +1493,9 @@ module Stripe
|
|
490
1493
|
@eps = eps
|
491
1494
|
@fpx = fpx
|
492
1495
|
@giropay = giropay
|
1496
|
+
@gopay = gopay
|
493
1497
|
@grabpay = grabpay
|
1498
|
+
@id_bank_transfer = id_bank_transfer
|
494
1499
|
@ideal = ideal
|
495
1500
|
@interac_present = interac_present
|
496
1501
|
@kakao_pay = kakao_pay
|
@@ -510,14 +1515,20 @@ module Stripe
|
|
510
1515
|
@payco = payco
|
511
1516
|
@paynow = paynow
|
512
1517
|
@paypal = paypal
|
1518
|
+
@paypay = paypay
|
1519
|
+
@payto = payto
|
513
1520
|
@pix = pix
|
514
1521
|
@promptpay = promptpay
|
1522
|
+
@qris = qris
|
515
1523
|
@radar_options = radar_options
|
1524
|
+
@rechnung = rechnung
|
516
1525
|
@revolut_pay = revolut_pay
|
517
1526
|
@samsung_pay = samsung_pay
|
518
1527
|
@satispay = satispay
|
519
1528
|
@sepa_debit = sepa_debit
|
1529
|
+
@shopeepay = shopeepay
|
520
1530
|
@sofort = sofort
|
1531
|
+
@stripe_balance = stripe_balance
|
521
1532
|
@swish = swish
|
522
1533
|
@twint = twint
|
523
1534
|
@type = type
|
@@ -888,6 +1899,48 @@ module Stripe
|
|
888
1899
|
end
|
889
1900
|
end
|
890
1901
|
|
1902
|
+
class StatementDetails < Stripe::RequestParams
|
1903
|
+
class Address < Stripe::RequestParams
|
1904
|
+
# City, district, suburb, town, or village.
|
1905
|
+
attr_accessor :city
|
1906
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1907
|
+
attr_accessor :country
|
1908
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1909
|
+
attr_accessor :line1
|
1910
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1911
|
+
attr_accessor :line2
|
1912
|
+
# ZIP or postal code.
|
1913
|
+
attr_accessor :postal_code
|
1914
|
+
# State, county, province, or region.
|
1915
|
+
attr_accessor :state
|
1916
|
+
|
1917
|
+
def initialize(
|
1918
|
+
city: nil,
|
1919
|
+
country: nil,
|
1920
|
+
line1: nil,
|
1921
|
+
line2: nil,
|
1922
|
+
postal_code: nil,
|
1923
|
+
state: nil
|
1924
|
+
)
|
1925
|
+
@city = city
|
1926
|
+
@country = country
|
1927
|
+
@line1 = line1
|
1928
|
+
@line2 = line2
|
1929
|
+
@postal_code = postal_code
|
1930
|
+
@state = state
|
1931
|
+
end
|
1932
|
+
end
|
1933
|
+
# Please pass in an address that is within your Stripe user account country
|
1934
|
+
attr_accessor :address
|
1935
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
1936
|
+
attr_accessor :phone
|
1937
|
+
|
1938
|
+
def initialize(address: nil, phone: nil)
|
1939
|
+
@address = address
|
1940
|
+
@phone = phone
|
1941
|
+
end
|
1942
|
+
end
|
1943
|
+
|
891
1944
|
class ThreeDSecure < Stripe::RequestParams
|
892
1945
|
class NetworkOptions < Stripe::RequestParams
|
893
1946
|
class CartesBancaires < Stripe::RequestParams
|
@@ -982,6 +2035,8 @@ module Stripe
|
|
982
2035
|
attr_accessor :moto
|
983
2036
|
# Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
|
984
2037
|
attr_accessor :network
|
2038
|
+
# Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
2039
|
+
attr_accessor :request_decremental_authorization
|
985
2040
|
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
986
2041
|
attr_accessor :request_extended_authorization
|
987
2042
|
# Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
|
@@ -990,6 +2045,8 @@ module Stripe
|
|
990
2045
|
attr_accessor :request_multicapture
|
991
2046
|
# Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
|
992
2047
|
attr_accessor :request_overcapture
|
2048
|
+
# Request partial authorization on this PaymentIntent.
|
2049
|
+
attr_accessor :request_partial_authorization
|
993
2050
|
# 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://stripe.com/docs/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://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
994
2051
|
attr_accessor :request_three_d_secure
|
995
2052
|
# 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).
|
@@ -1008,6 +2065,8 @@ module Stripe
|
|
1008
2065
|
attr_accessor :statement_descriptor_suffix_kana
|
1009
2066
|
# 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.
|
1010
2067
|
attr_accessor :statement_descriptor_suffix_kanji
|
2068
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
2069
|
+
attr_accessor :statement_details
|
1011
2070
|
# If 3D Secure authentication was performed with a third-party provider,
|
1012
2071
|
# the authentication details to use for this payment.
|
1013
2072
|
attr_accessor :three_d_secure
|
@@ -1019,15 +2078,18 @@ module Stripe
|
|
1019
2078
|
mandate_options: nil,
|
1020
2079
|
moto: nil,
|
1021
2080
|
network: nil,
|
2081
|
+
request_decremental_authorization: nil,
|
1022
2082
|
request_extended_authorization: nil,
|
1023
2083
|
request_incremental_authorization: nil,
|
1024
2084
|
request_multicapture: nil,
|
1025
2085
|
request_overcapture: nil,
|
2086
|
+
request_partial_authorization: nil,
|
1026
2087
|
request_three_d_secure: nil,
|
1027
2088
|
require_cvc_recollection: nil,
|
1028
2089
|
setup_future_usage: nil,
|
1029
2090
|
statement_descriptor_suffix_kana: nil,
|
1030
2091
|
statement_descriptor_suffix_kanji: nil,
|
2092
|
+
statement_details: nil,
|
1031
2093
|
three_d_secure: nil
|
1032
2094
|
)
|
1033
2095
|
@capture_method = capture_method
|
@@ -1036,15 +2098,18 @@ module Stripe
|
|
1036
2098
|
@mandate_options = mandate_options
|
1037
2099
|
@moto = moto
|
1038
2100
|
@network = network
|
2101
|
+
@request_decremental_authorization = request_decremental_authorization
|
1039
2102
|
@request_extended_authorization = request_extended_authorization
|
1040
2103
|
@request_incremental_authorization = request_incremental_authorization
|
1041
2104
|
@request_multicapture = request_multicapture
|
1042
2105
|
@request_overcapture = request_overcapture
|
2106
|
+
@request_partial_authorization = request_partial_authorization
|
1043
2107
|
@request_three_d_secure = request_three_d_secure
|
1044
2108
|
@require_cvc_recollection = require_cvc_recollection
|
1045
2109
|
@setup_future_usage = setup_future_usage
|
1046
2110
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
1047
2111
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
2112
|
+
@statement_details = statement_details
|
1048
2113
|
@three_d_secure = three_d_secure
|
1049
2114
|
end
|
1050
2115
|
end
|
@@ -1215,6 +2280,23 @@ module Stripe
|
|
1215
2280
|
end
|
1216
2281
|
end
|
1217
2282
|
|
2283
|
+
class Gopay < Stripe::RequestParams
|
2284
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2285
|
+
#
|
2286
|
+
# 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.
|
2287
|
+
#
|
2288
|
+
# 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.
|
2289
|
+
#
|
2290
|
+
# 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).
|
2291
|
+
#
|
2292
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2293
|
+
attr_accessor :setup_future_usage
|
2294
|
+
|
2295
|
+
def initialize(setup_future_usage: nil)
|
2296
|
+
@setup_future_usage = setup_future_usage
|
2297
|
+
end
|
2298
|
+
end
|
2299
|
+
|
1218
2300
|
class Grabpay < Stripe::RequestParams
|
1219
2301
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1220
2302
|
#
|
@@ -1232,6 +2314,29 @@ module Stripe
|
|
1232
2314
|
end
|
1233
2315
|
end
|
1234
2316
|
|
2317
|
+
class IdBankTransfer < Stripe::RequestParams
|
2318
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
|
2319
|
+
attr_accessor :expires_after
|
2320
|
+
# 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.
|
2321
|
+
attr_accessor :expires_at
|
2322
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2323
|
+
#
|
2324
|
+
# 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.
|
2325
|
+
#
|
2326
|
+
# 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.
|
2327
|
+
#
|
2328
|
+
# 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).
|
2329
|
+
#
|
2330
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2331
|
+
attr_accessor :setup_future_usage
|
2332
|
+
|
2333
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
2334
|
+
@expires_after = expires_after
|
2335
|
+
@expires_at = expires_at
|
2336
|
+
@setup_future_usage = setup_future_usage
|
2337
|
+
end
|
2338
|
+
end
|
2339
|
+
|
1235
2340
|
class Ideal < Stripe::RequestParams
|
1236
2341
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1237
2342
|
#
|
@@ -1633,12 +2738,65 @@ module Stripe
|
|
1633
2738
|
end
|
1634
2739
|
|
1635
2740
|
class Paypal < Stripe::RequestParams
|
2741
|
+
class LineItem < Stripe::RequestParams
|
2742
|
+
class Tax < Stripe::RequestParams
|
2743
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
2744
|
+
attr_accessor :amount
|
2745
|
+
# The tax behavior for the line item.
|
2746
|
+
attr_accessor :behavior
|
2747
|
+
|
2748
|
+
def initialize(amount: nil, behavior: nil)
|
2749
|
+
@amount = amount
|
2750
|
+
@behavior = behavior
|
2751
|
+
end
|
2752
|
+
end
|
2753
|
+
# Type of the line item.
|
2754
|
+
attr_accessor :category
|
2755
|
+
# Description of the line item.
|
2756
|
+
attr_accessor :description
|
2757
|
+
# Descriptive name of the line item.
|
2758
|
+
attr_accessor :name
|
2759
|
+
# Quantity of the line item. Must be a positive number.
|
2760
|
+
attr_accessor :quantity
|
2761
|
+
# Client facing stock keeping unit, article number or similar.
|
2762
|
+
attr_accessor :sku
|
2763
|
+
# The Stripe account ID of the connected account that sells the item.
|
2764
|
+
attr_accessor :sold_by
|
2765
|
+
# The tax information for the line item.
|
2766
|
+
attr_accessor :tax
|
2767
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
2768
|
+
attr_accessor :unit_amount
|
2769
|
+
|
2770
|
+
def initialize(
|
2771
|
+
category: nil,
|
2772
|
+
description: nil,
|
2773
|
+
name: nil,
|
2774
|
+
quantity: nil,
|
2775
|
+
sku: nil,
|
2776
|
+
sold_by: nil,
|
2777
|
+
tax: nil,
|
2778
|
+
unit_amount: nil
|
2779
|
+
)
|
2780
|
+
@category = category
|
2781
|
+
@description = description
|
2782
|
+
@name = name
|
2783
|
+
@quantity = quantity
|
2784
|
+
@sku = sku
|
2785
|
+
@sold_by = sold_by
|
2786
|
+
@tax = tax
|
2787
|
+
@unit_amount = unit_amount
|
2788
|
+
end
|
2789
|
+
end
|
1636
2790
|
# Controls when the funds will be captured from the customer's account.
|
1637
2791
|
attr_accessor :capture_method
|
2792
|
+
# The line items purchased by the customer.
|
2793
|
+
attr_accessor :line_items
|
1638
2794
|
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
1639
2795
|
attr_accessor :preferred_locale
|
1640
2796
|
# 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.
|
1641
2797
|
attr_accessor :reference
|
2798
|
+
# 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.
|
2799
|
+
attr_accessor :reference_id
|
1642
2800
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
1643
2801
|
attr_accessor :risk_correlation_id
|
1644
2802
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -1651,29 +2809,140 @@ module Stripe
|
|
1651
2809
|
#
|
1652
2810
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
1653
2811
|
attr_accessor :setup_future_usage
|
2812
|
+
# 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.
|
2813
|
+
attr_accessor :subsellers
|
1654
2814
|
|
1655
2815
|
def initialize(
|
1656
2816
|
capture_method: nil,
|
2817
|
+
line_items: nil,
|
1657
2818
|
preferred_locale: nil,
|
1658
2819
|
reference: nil,
|
2820
|
+
reference_id: nil,
|
1659
2821
|
risk_correlation_id: nil,
|
1660
|
-
setup_future_usage: nil
|
2822
|
+
setup_future_usage: nil,
|
2823
|
+
subsellers: nil
|
1661
2824
|
)
|
1662
2825
|
@capture_method = capture_method
|
2826
|
+
@line_items = line_items
|
1663
2827
|
@preferred_locale = preferred_locale
|
1664
2828
|
@reference = reference
|
2829
|
+
@reference_id = reference_id
|
1665
2830
|
@risk_correlation_id = risk_correlation_id
|
1666
2831
|
@setup_future_usage = setup_future_usage
|
2832
|
+
@subsellers = subsellers
|
2833
|
+
end
|
2834
|
+
end
|
2835
|
+
|
2836
|
+
class Paypay < Stripe::RequestParams
|
2837
|
+
# Controls when the funds are captured from the customer's account.
|
2838
|
+
#
|
2839
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
2840
|
+
#
|
2841
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
2842
|
+
attr_accessor :capture_method
|
2843
|
+
|
2844
|
+
def initialize(capture_method: nil)
|
2845
|
+
@capture_method = capture_method
|
2846
|
+
end
|
2847
|
+
end
|
2848
|
+
|
2849
|
+
class Payto < Stripe::RequestParams
|
2850
|
+
class MandateOptions < Stripe::RequestParams
|
2851
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2852
|
+
attr_accessor :amount
|
2853
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
2854
|
+
attr_accessor :amount_type
|
2855
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2856
|
+
attr_accessor :end_date
|
2857
|
+
# The periodicity at which payments will be collected.
|
2858
|
+
attr_accessor :payment_schedule
|
2859
|
+
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
2860
|
+
attr_accessor :payments_per_period
|
2861
|
+
# The purpose for which payments are made. Defaults to retail.
|
2862
|
+
attr_accessor :purpose
|
2863
|
+
|
2864
|
+
def initialize(
|
2865
|
+
amount: nil,
|
2866
|
+
amount_type: nil,
|
2867
|
+
end_date: nil,
|
2868
|
+
payment_schedule: nil,
|
2869
|
+
payments_per_period: nil,
|
2870
|
+
purpose: nil
|
2871
|
+
)
|
2872
|
+
@amount = amount
|
2873
|
+
@amount_type = amount_type
|
2874
|
+
@end_date = end_date
|
2875
|
+
@payment_schedule = payment_schedule
|
2876
|
+
@payments_per_period = payments_per_period
|
2877
|
+
@purpose = purpose
|
2878
|
+
end
|
2879
|
+
end
|
2880
|
+
# Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
|
2881
|
+
attr_accessor :mandate_options
|
2882
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2883
|
+
#
|
2884
|
+
# 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.
|
2885
|
+
#
|
2886
|
+
# 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.
|
2887
|
+
#
|
2888
|
+
# 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).
|
2889
|
+
#
|
2890
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2891
|
+
attr_accessor :setup_future_usage
|
2892
|
+
|
2893
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
2894
|
+
@mandate_options = mandate_options
|
2895
|
+
@setup_future_usage = setup_future_usage
|
1667
2896
|
end
|
1668
2897
|
end
|
1669
2898
|
|
1670
2899
|
class Pix < Stripe::RequestParams
|
2900
|
+
class MandateOptions < Stripe::RequestParams
|
2901
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
2902
|
+
attr_accessor :amount
|
2903
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
2904
|
+
attr_accessor :amount_includes_iof
|
2905
|
+
# Type of amount. Defaults to `maximum`.
|
2906
|
+
attr_accessor :amount_type
|
2907
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
2908
|
+
attr_accessor :currency
|
2909
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
2910
|
+
attr_accessor :end_date
|
2911
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
2912
|
+
attr_accessor :payment_schedule
|
2913
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
2914
|
+
attr_accessor :reference
|
2915
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
2916
|
+
attr_accessor :start_date
|
2917
|
+
|
2918
|
+
def initialize(
|
2919
|
+
amount: nil,
|
2920
|
+
amount_includes_iof: nil,
|
2921
|
+
amount_type: nil,
|
2922
|
+
currency: nil,
|
2923
|
+
end_date: nil,
|
2924
|
+
payment_schedule: nil,
|
2925
|
+
reference: nil,
|
2926
|
+
start_date: nil
|
2927
|
+
)
|
2928
|
+
@amount = amount
|
2929
|
+
@amount_includes_iof = amount_includes_iof
|
2930
|
+
@amount_type = amount_type
|
2931
|
+
@currency = currency
|
2932
|
+
@end_date = end_date
|
2933
|
+
@payment_schedule = payment_schedule
|
2934
|
+
@reference = reference
|
2935
|
+
@start_date = start_date
|
2936
|
+
end
|
2937
|
+
end
|
1671
2938
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
1672
2939
|
attr_accessor :amount_includes_iof
|
1673
2940
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
1674
2941
|
attr_accessor :expires_after_seconds
|
1675
2942
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
1676
2943
|
attr_accessor :expires_at
|
2944
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
2945
|
+
attr_accessor :mandate_options
|
1677
2946
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1678
2947
|
#
|
1679
2948
|
# 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.
|
@@ -1689,11 +2958,13 @@ module Stripe
|
|
1689
2958
|
amount_includes_iof: nil,
|
1690
2959
|
expires_after_seconds: nil,
|
1691
2960
|
expires_at: nil,
|
2961
|
+
mandate_options: nil,
|
1692
2962
|
setup_future_usage: nil
|
1693
2963
|
)
|
1694
2964
|
@amount_includes_iof = amount_includes_iof
|
1695
2965
|
@expires_after_seconds = expires_after_seconds
|
1696
2966
|
@expires_at = expires_at
|
2967
|
+
@mandate_options = mandate_options
|
1697
2968
|
@setup_future_usage = setup_future_usage
|
1698
2969
|
end
|
1699
2970
|
end
|
@@ -1715,6 +2986,25 @@ module Stripe
|
|
1715
2986
|
end
|
1716
2987
|
end
|
1717
2988
|
|
2989
|
+
class Qris < Stripe::RequestParams
|
2990
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2991
|
+
#
|
2992
|
+
# 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.
|
2993
|
+
#
|
2994
|
+
# 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.
|
2995
|
+
#
|
2996
|
+
# 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).
|
2997
|
+
#
|
2998
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2999
|
+
attr_accessor :setup_future_usage
|
3000
|
+
|
3001
|
+
def initialize(setup_future_usage: nil)
|
3002
|
+
@setup_future_usage = setup_future_usage
|
3003
|
+
end
|
3004
|
+
end
|
3005
|
+
|
3006
|
+
class Rechnung < Stripe::RequestParams; end
|
3007
|
+
|
1718
3008
|
class RevolutPay < Stripe::RequestParams
|
1719
3009
|
# Controls when the funds are captured from the customer's account.
|
1720
3010
|
#
|
@@ -1794,6 +3084,23 @@ module Stripe
|
|
1794
3084
|
end
|
1795
3085
|
end
|
1796
3086
|
|
3087
|
+
class Shopeepay < Stripe::RequestParams
|
3088
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3089
|
+
#
|
3090
|
+
# 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.
|
3091
|
+
#
|
3092
|
+
# 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.
|
3093
|
+
#
|
3094
|
+
# 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).
|
3095
|
+
#
|
3096
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
3097
|
+
attr_accessor :setup_future_usage
|
3098
|
+
|
3099
|
+
def initialize(setup_future_usage: nil)
|
3100
|
+
@setup_future_usage = setup_future_usage
|
3101
|
+
end
|
3102
|
+
end
|
3103
|
+
|
1797
3104
|
class Sofort < Stripe::RequestParams
|
1798
3105
|
# Language shown to the payer on redirect.
|
1799
3106
|
attr_accessor :preferred_language
|
@@ -1814,6 +3121,23 @@ module Stripe
|
|
1814
3121
|
end
|
1815
3122
|
end
|
1816
3123
|
|
3124
|
+
class StripeBalance < Stripe::RequestParams
|
3125
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3126
|
+
#
|
3127
|
+
# 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.
|
3128
|
+
#
|
3129
|
+
# 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.
|
3130
|
+
#
|
3131
|
+
# 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).
|
3132
|
+
#
|
3133
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
3134
|
+
attr_accessor :setup_future_usage
|
3135
|
+
|
3136
|
+
def initialize(setup_future_usage: nil)
|
3137
|
+
@setup_future_usage = setup_future_usage
|
3138
|
+
end
|
3139
|
+
end
|
3140
|
+
|
1817
3141
|
class Swish < Stripe::RequestParams
|
1818
3142
|
# A reference for this payment to be displayed in the Swish app.
|
1819
3143
|
attr_accessor :reference
|
@@ -1856,13 +3180,27 @@ module Stripe
|
|
1856
3180
|
class Filters < Stripe::RequestParams
|
1857
3181
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1858
3182
|
attr_accessor :account_subcategories
|
3183
|
+
# ID of the institution to use to filter for selectable accounts.
|
3184
|
+
attr_accessor :institution
|
1859
3185
|
|
1860
|
-
def initialize(account_subcategories: nil)
|
3186
|
+
def initialize(account_subcategories: nil, institution: nil)
|
1861
3187
|
@account_subcategories = account_subcategories
|
3188
|
+
@institution = institution
|
3189
|
+
end
|
3190
|
+
end
|
3191
|
+
|
3192
|
+
class ManualEntry < Stripe::RequestParams
|
3193
|
+
# Settings for configuring manual entry of account details.
|
3194
|
+
attr_accessor :mode
|
3195
|
+
|
3196
|
+
def initialize(mode: nil)
|
3197
|
+
@mode = mode
|
1862
3198
|
end
|
1863
3199
|
end
|
1864
3200
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1865
3201
|
attr_accessor :filters
|
3202
|
+
# Customize manual entry behavior
|
3203
|
+
attr_accessor :manual_entry
|
1866
3204
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
1867
3205
|
attr_accessor :permissions
|
1868
3206
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -1870,8 +3208,15 @@ module Stripe
|
|
1870
3208
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
1871
3209
|
attr_accessor :return_url
|
1872
3210
|
|
1873
|
-
def initialize(
|
3211
|
+
def initialize(
|
3212
|
+
filters: nil,
|
3213
|
+
manual_entry: nil,
|
3214
|
+
permissions: nil,
|
3215
|
+
prefetch: nil,
|
3216
|
+
return_url: nil
|
3217
|
+
)
|
1874
3218
|
@filters = filters
|
3219
|
+
@manual_entry = manual_entry
|
1875
3220
|
@permissions = permissions
|
1876
3221
|
@prefetch = prefetch
|
1877
3222
|
@return_url = return_url
|
@@ -2016,8 +3361,12 @@ module Stripe
|
|
2016
3361
|
attr_accessor :fpx
|
2017
3362
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
2018
3363
|
attr_accessor :giropay
|
3364
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
3365
|
+
attr_accessor :gopay
|
2019
3366
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
2020
3367
|
attr_accessor :grabpay
|
3368
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
3369
|
+
attr_accessor :id_bank_transfer
|
2021
3370
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
2022
3371
|
attr_accessor :ideal
|
2023
3372
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
@@ -2054,10 +3403,18 @@ module Stripe
|
|
2054
3403
|
attr_accessor :paynow
|
2055
3404
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2056
3405
|
attr_accessor :paypal
|
3406
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
3407
|
+
attr_accessor :paypay
|
3408
|
+
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
3409
|
+
attr_accessor :payto
|
2057
3410
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
2058
3411
|
attr_accessor :pix
|
2059
3412
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
2060
3413
|
attr_accessor :promptpay
|
3414
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
3415
|
+
attr_accessor :qris
|
3416
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
3417
|
+
attr_accessor :rechnung
|
2061
3418
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
2062
3419
|
attr_accessor :revolut_pay
|
2063
3420
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
@@ -2066,8 +3423,12 @@ module Stripe
|
|
2066
3423
|
attr_accessor :satispay
|
2067
3424
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2068
3425
|
attr_accessor :sepa_debit
|
3426
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
3427
|
+
attr_accessor :shopeepay
|
2069
3428
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
2070
3429
|
attr_accessor :sofort
|
3430
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
3431
|
+
attr_accessor :stripe_balance
|
2071
3432
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
2072
3433
|
attr_accessor :swish
|
2073
3434
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
@@ -2100,7 +3461,9 @@ module Stripe
|
|
2100
3461
|
eps: nil,
|
2101
3462
|
fpx: nil,
|
2102
3463
|
giropay: nil,
|
3464
|
+
gopay: nil,
|
2103
3465
|
grabpay: nil,
|
3466
|
+
id_bank_transfer: nil,
|
2104
3467
|
ideal: nil,
|
2105
3468
|
interac_present: nil,
|
2106
3469
|
kakao_pay: nil,
|
@@ -2119,13 +3482,19 @@ module Stripe
|
|
2119
3482
|
payco: nil,
|
2120
3483
|
paynow: nil,
|
2121
3484
|
paypal: nil,
|
3485
|
+
paypay: nil,
|
3486
|
+
payto: nil,
|
2122
3487
|
pix: nil,
|
2123
3488
|
promptpay: nil,
|
3489
|
+
qris: nil,
|
3490
|
+
rechnung: nil,
|
2124
3491
|
revolut_pay: nil,
|
2125
3492
|
samsung_pay: nil,
|
2126
3493
|
satispay: nil,
|
2127
3494
|
sepa_debit: nil,
|
3495
|
+
shopeepay: nil,
|
2128
3496
|
sofort: nil,
|
3497
|
+
stripe_balance: nil,
|
2129
3498
|
swish: nil,
|
2130
3499
|
twint: nil,
|
2131
3500
|
us_bank_account: nil,
|
@@ -2152,7 +3521,9 @@ module Stripe
|
|
2152
3521
|
@eps = eps
|
2153
3522
|
@fpx = fpx
|
2154
3523
|
@giropay = giropay
|
3524
|
+
@gopay = gopay
|
2155
3525
|
@grabpay = grabpay
|
3526
|
+
@id_bank_transfer = id_bank_transfer
|
2156
3527
|
@ideal = ideal
|
2157
3528
|
@interac_present = interac_present
|
2158
3529
|
@kakao_pay = kakao_pay
|
@@ -2171,13 +3542,19 @@ module Stripe
|
|
2171
3542
|
@payco = payco
|
2172
3543
|
@paynow = paynow
|
2173
3544
|
@paypal = paypal
|
3545
|
+
@paypay = paypay
|
3546
|
+
@payto = payto
|
2174
3547
|
@pix = pix
|
2175
3548
|
@promptpay = promptpay
|
3549
|
+
@qris = qris
|
3550
|
+
@rechnung = rechnung
|
2176
3551
|
@revolut_pay = revolut_pay
|
2177
3552
|
@samsung_pay = samsung_pay
|
2178
3553
|
@satispay = satispay
|
2179
3554
|
@sepa_debit = sepa_debit
|
3555
|
+
@shopeepay = shopeepay
|
2180
3556
|
@sofort = sofort
|
3557
|
+
@stripe_balance = stripe_balance
|
2181
3558
|
@swish = swish
|
2182
3559
|
@twint = twint
|
2183
3560
|
@us_bank_account = us_bank_account
|
@@ -2247,6 +3624,8 @@ module Stripe
|
|
2247
3624
|
end
|
2248
3625
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
2249
3626
|
attr_accessor :amount
|
3627
|
+
# Provides industry-specific information about the amount.
|
3628
|
+
attr_accessor :amount_details
|
2250
3629
|
# 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://stripe.com/docs/payments/connected-accounts).
|
2251
3630
|
attr_accessor :application_fee_amount
|
2252
3631
|
# Controls when the funds will be captured from the customer's account.
|
@@ -2259,15 +3638,29 @@ module Stripe
|
|
2259
3638
|
#
|
2260
3639
|
# If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
2261
3640
|
attr_accessor :customer
|
3641
|
+
# ID of the Account this PaymentIntent belongs to, if one exists.
|
3642
|
+
#
|
3643
|
+
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
3644
|
+
#
|
3645
|
+
# If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
|
3646
|
+
attr_accessor :customer_account
|
2262
3647
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2263
3648
|
attr_accessor :description
|
2264
3649
|
# The list of payment method types to exclude from use with this payment.
|
2265
3650
|
attr_accessor :excluded_payment_method_types
|
2266
3651
|
# Specifies which fields in the response should be expanded.
|
2267
3652
|
attr_accessor :expand
|
3653
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
3654
|
+
attr_accessor :fx_quote
|
3655
|
+
# Automations to be run during the PaymentIntent lifecycle
|
3656
|
+
attr_accessor :hooks
|
3657
|
+
# This hash contains details about the Mandate to create.
|
3658
|
+
attr_accessor :mandate_data
|
2268
3659
|
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
2269
3660
|
attr_accessor :metadata
|
2270
|
-
#
|
3661
|
+
# Provides industry-specific information about the charge.
|
3662
|
+
attr_accessor :payment_details
|
3663
|
+
# Attribute for param field payment_method
|
2271
3664
|
attr_accessor :payment_method
|
2272
3665
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
|
2273
3666
|
attr_accessor :payment_method_configuration
|
@@ -2306,14 +3699,20 @@ module Stripe
|
|
2306
3699
|
|
2307
3700
|
def initialize(
|
2308
3701
|
amount: nil,
|
3702
|
+
amount_details: nil,
|
2309
3703
|
application_fee_amount: nil,
|
2310
3704
|
capture_method: nil,
|
2311
3705
|
currency: nil,
|
2312
3706
|
customer: nil,
|
3707
|
+
customer_account: nil,
|
2313
3708
|
description: nil,
|
2314
3709
|
excluded_payment_method_types: nil,
|
2315
3710
|
expand: nil,
|
3711
|
+
fx_quote: nil,
|
3712
|
+
hooks: nil,
|
3713
|
+
mandate_data: nil,
|
2316
3714
|
metadata: nil,
|
3715
|
+
payment_details: nil,
|
2317
3716
|
payment_method: nil,
|
2318
3717
|
payment_method_configuration: nil,
|
2319
3718
|
payment_method_data: nil,
|
@@ -2328,14 +3727,20 @@ module Stripe
|
|
2328
3727
|
transfer_group: nil
|
2329
3728
|
)
|
2330
3729
|
@amount = amount
|
3730
|
+
@amount_details = amount_details
|
2331
3731
|
@application_fee_amount = application_fee_amount
|
2332
3732
|
@capture_method = capture_method
|
2333
3733
|
@currency = currency
|
2334
3734
|
@customer = customer
|
3735
|
+
@customer_account = customer_account
|
2335
3736
|
@description = description
|
2336
3737
|
@excluded_payment_method_types = excluded_payment_method_types
|
2337
3738
|
@expand = expand
|
3739
|
+
@fx_quote = fx_quote
|
3740
|
+
@hooks = hooks
|
3741
|
+
@mandate_data = mandate_data
|
2338
3742
|
@metadata = metadata
|
3743
|
+
@payment_details = payment_details
|
2339
3744
|
@payment_method = payment_method
|
2340
3745
|
@payment_method_configuration = payment_method_configuration
|
2341
3746
|
@payment_method_data = payment_method_data
|