stripe 18.1.0 → 18.2.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +213 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +52 -0
- data/lib/stripe/params/account_create_params.rb +304 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +266 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +129 -3
- data/lib/stripe/params/checkout/session_update_params.rb +141 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +107 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +77 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/quote_create_params.rb +801 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +809 -4
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +158 -3
- data/lib/stripe/params/setup_intent_create_params.rb +158 -3
- data/lib/stripe/params/setup_intent_update_params.rb +158 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +254 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +237 -4
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +251 -4
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +151 -0
- data/lib/stripe/resources/account.rb +182 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/charge.rb +215 -1
- data/lib/stripe/resources/checkout/session.rb +104 -4
- data/lib/stripe/resources/confirmation_token.rb +133 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +150 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +66 -1
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +737 -4
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +88 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +230 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +196 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +565 -3
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources.rb +104 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +9 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +55 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +425 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +54 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +93543 -33169
- metadata +314 -3
|
@@ -253,20 +253,1646 @@ module Stripe
|
|
|
253
253
|
end
|
|
254
254
|
|
|
255
255
|
class PaymentDetails < ::Stripe::RequestParams
|
|
256
|
+
class CarRental < ::Stripe::RequestParams
|
|
257
|
+
class Affiliate < ::Stripe::RequestParams
|
|
258
|
+
# The name of the affiliate that originated the purchase.
|
|
259
|
+
attr_accessor :name
|
|
260
|
+
|
|
261
|
+
def initialize(name: nil)
|
|
262
|
+
@name = name
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
class Delivery < ::Stripe::RequestParams
|
|
267
|
+
class Recipient < ::Stripe::RequestParams
|
|
268
|
+
# The email of the recipient the ticket is delivered to.
|
|
269
|
+
attr_accessor :email
|
|
270
|
+
# The name of the recipient the ticket is delivered to.
|
|
271
|
+
attr_accessor :name
|
|
272
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
273
|
+
attr_accessor :phone
|
|
274
|
+
|
|
275
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
276
|
+
@email = email
|
|
277
|
+
@name = name
|
|
278
|
+
@phone = phone
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
# The delivery method for the payment
|
|
282
|
+
attr_accessor :mode
|
|
283
|
+
# Details of the recipient.
|
|
284
|
+
attr_accessor :recipient
|
|
285
|
+
|
|
286
|
+
def initialize(mode: nil, recipient: nil)
|
|
287
|
+
@mode = mode
|
|
288
|
+
@recipient = recipient
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
class Distance < ::Stripe::RequestParams
|
|
293
|
+
# Distance traveled.
|
|
294
|
+
attr_accessor :amount
|
|
295
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
296
|
+
attr_accessor :unit
|
|
297
|
+
|
|
298
|
+
def initialize(amount: nil, unit: nil)
|
|
299
|
+
@amount = amount
|
|
300
|
+
@unit = unit
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
class Driver < ::Stripe::RequestParams
|
|
305
|
+
# Driver's identification number.
|
|
306
|
+
attr_accessor :driver_identification_number
|
|
307
|
+
# Driver's tax number.
|
|
308
|
+
attr_accessor :driver_tax_number
|
|
309
|
+
# Full name of the person or entity on the car reservation.
|
|
310
|
+
attr_accessor :name
|
|
311
|
+
|
|
312
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
313
|
+
@driver_identification_number = driver_identification_number
|
|
314
|
+
@driver_tax_number = driver_tax_number
|
|
315
|
+
@name = name
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
320
|
+
# City, district, suburb, town, or village.
|
|
321
|
+
attr_accessor :city
|
|
322
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
323
|
+
attr_accessor :country
|
|
324
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
325
|
+
attr_accessor :line1
|
|
326
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
327
|
+
attr_accessor :line2
|
|
328
|
+
# ZIP or postal code.
|
|
329
|
+
attr_accessor :postal_code
|
|
330
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
331
|
+
attr_accessor :state
|
|
332
|
+
|
|
333
|
+
def initialize(
|
|
334
|
+
city: nil,
|
|
335
|
+
country: nil,
|
|
336
|
+
line1: nil,
|
|
337
|
+
line2: nil,
|
|
338
|
+
postal_code: nil,
|
|
339
|
+
state: nil
|
|
340
|
+
)
|
|
341
|
+
@city = city
|
|
342
|
+
@country = country
|
|
343
|
+
@line1 = line1
|
|
344
|
+
@line2 = line2
|
|
345
|
+
@postal_code = postal_code
|
|
346
|
+
@state = state
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
351
|
+
# City, district, suburb, town, or village.
|
|
352
|
+
attr_accessor :city
|
|
353
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
354
|
+
attr_accessor :country
|
|
355
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
356
|
+
attr_accessor :line1
|
|
357
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
358
|
+
attr_accessor :line2
|
|
359
|
+
# ZIP or postal code.
|
|
360
|
+
attr_accessor :postal_code
|
|
361
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
362
|
+
attr_accessor :state
|
|
363
|
+
|
|
364
|
+
def initialize(
|
|
365
|
+
city: nil,
|
|
366
|
+
country: nil,
|
|
367
|
+
line1: nil,
|
|
368
|
+
line2: nil,
|
|
369
|
+
postal_code: nil,
|
|
370
|
+
state: nil
|
|
371
|
+
)
|
|
372
|
+
@city = city
|
|
373
|
+
@country = country
|
|
374
|
+
@line1 = line1
|
|
375
|
+
@line2 = line2
|
|
376
|
+
@postal_code = postal_code
|
|
377
|
+
@state = state
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
# Affiliate details for this purchase.
|
|
381
|
+
attr_accessor :affiliate
|
|
382
|
+
# The booking number associated with the car rental.
|
|
383
|
+
attr_accessor :booking_number
|
|
384
|
+
# Class code of the car.
|
|
385
|
+
attr_accessor :car_class_code
|
|
386
|
+
# Make of the car.
|
|
387
|
+
attr_accessor :car_make
|
|
388
|
+
# Model of the car.
|
|
389
|
+
attr_accessor :car_model
|
|
390
|
+
# The name of the rental car company.
|
|
391
|
+
attr_accessor :company
|
|
392
|
+
# The customer service phone number of the car rental company.
|
|
393
|
+
attr_accessor :customer_service_phone_number
|
|
394
|
+
# Number of days the car is being rented.
|
|
395
|
+
attr_accessor :days_rented
|
|
396
|
+
# Delivery details for this purchase.
|
|
397
|
+
attr_accessor :delivery
|
|
398
|
+
# The details of the distance traveled during the rental period.
|
|
399
|
+
attr_accessor :distance
|
|
400
|
+
# The details of the passengers in the travel reservation
|
|
401
|
+
attr_accessor :drivers
|
|
402
|
+
# List of additional charges being billed.
|
|
403
|
+
attr_accessor :extra_charges
|
|
404
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
405
|
+
attr_accessor :no_show
|
|
406
|
+
# Car pick-up address.
|
|
407
|
+
attr_accessor :pickup_address
|
|
408
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
409
|
+
attr_accessor :pickup_at
|
|
410
|
+
# Name of the pickup location.
|
|
411
|
+
attr_accessor :pickup_location_name
|
|
412
|
+
# Rental rate.
|
|
413
|
+
attr_accessor :rate_amount
|
|
414
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
415
|
+
attr_accessor :rate_interval
|
|
416
|
+
# The name of the person or entity renting the car.
|
|
417
|
+
attr_accessor :renter_name
|
|
418
|
+
# Car return address.
|
|
419
|
+
attr_accessor :return_address
|
|
420
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
421
|
+
attr_accessor :return_at
|
|
422
|
+
# Name of the return location.
|
|
423
|
+
attr_accessor :return_location_name
|
|
424
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
425
|
+
attr_accessor :tax_exempt
|
|
426
|
+
# The vehicle identification number.
|
|
427
|
+
attr_accessor :vehicle_identification_number
|
|
428
|
+
|
|
429
|
+
def initialize(
|
|
430
|
+
affiliate: nil,
|
|
431
|
+
booking_number: nil,
|
|
432
|
+
car_class_code: nil,
|
|
433
|
+
car_make: nil,
|
|
434
|
+
car_model: nil,
|
|
435
|
+
company: nil,
|
|
436
|
+
customer_service_phone_number: nil,
|
|
437
|
+
days_rented: nil,
|
|
438
|
+
delivery: nil,
|
|
439
|
+
distance: nil,
|
|
440
|
+
drivers: nil,
|
|
441
|
+
extra_charges: nil,
|
|
442
|
+
no_show: nil,
|
|
443
|
+
pickup_address: nil,
|
|
444
|
+
pickup_at: nil,
|
|
445
|
+
pickup_location_name: nil,
|
|
446
|
+
rate_amount: nil,
|
|
447
|
+
rate_interval: nil,
|
|
448
|
+
renter_name: nil,
|
|
449
|
+
return_address: nil,
|
|
450
|
+
return_at: nil,
|
|
451
|
+
return_location_name: nil,
|
|
452
|
+
tax_exempt: nil,
|
|
453
|
+
vehicle_identification_number: nil
|
|
454
|
+
)
|
|
455
|
+
@affiliate = affiliate
|
|
456
|
+
@booking_number = booking_number
|
|
457
|
+
@car_class_code = car_class_code
|
|
458
|
+
@car_make = car_make
|
|
459
|
+
@car_model = car_model
|
|
460
|
+
@company = company
|
|
461
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
462
|
+
@days_rented = days_rented
|
|
463
|
+
@delivery = delivery
|
|
464
|
+
@distance = distance
|
|
465
|
+
@drivers = drivers
|
|
466
|
+
@extra_charges = extra_charges
|
|
467
|
+
@no_show = no_show
|
|
468
|
+
@pickup_address = pickup_address
|
|
469
|
+
@pickup_at = pickup_at
|
|
470
|
+
@pickup_location_name = pickup_location_name
|
|
471
|
+
@rate_amount = rate_amount
|
|
472
|
+
@rate_interval = rate_interval
|
|
473
|
+
@renter_name = renter_name
|
|
474
|
+
@return_address = return_address
|
|
475
|
+
@return_at = return_at
|
|
476
|
+
@return_location_name = return_location_name
|
|
477
|
+
@tax_exempt = tax_exempt
|
|
478
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
479
|
+
end
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
483
|
+
class Affiliate < ::Stripe::RequestParams
|
|
484
|
+
# Affiliate partner code.
|
|
485
|
+
attr_accessor :code
|
|
486
|
+
# Name of affiliate partner.
|
|
487
|
+
attr_accessor :name
|
|
488
|
+
|
|
489
|
+
def initialize(code: nil, name: nil)
|
|
490
|
+
@code = code
|
|
491
|
+
@name = name
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
class Distance < ::Stripe::RequestParams
|
|
496
|
+
# Distance traveled.
|
|
497
|
+
attr_accessor :amount
|
|
498
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
499
|
+
attr_accessor :unit
|
|
500
|
+
|
|
501
|
+
def initialize(amount: nil, unit: nil)
|
|
502
|
+
@amount = amount
|
|
503
|
+
@unit = unit
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
class Driver < ::Stripe::RequestParams
|
|
508
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
509
|
+
# Day of birth (1-31).
|
|
510
|
+
attr_accessor :day
|
|
511
|
+
# Month of birth (1-12).
|
|
512
|
+
attr_accessor :month
|
|
513
|
+
# Year of birth (must be greater than 1900).
|
|
514
|
+
attr_accessor :year
|
|
515
|
+
|
|
516
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
517
|
+
@day = day
|
|
518
|
+
@month = month
|
|
519
|
+
@year = year
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
# Driver's date of birth.
|
|
523
|
+
attr_accessor :date_of_birth
|
|
524
|
+
# Driver's identification number.
|
|
525
|
+
attr_accessor :driver_identification_number
|
|
526
|
+
# Driver's tax number.
|
|
527
|
+
attr_accessor :driver_tax_number
|
|
528
|
+
# Driver's full name.
|
|
529
|
+
attr_accessor :name
|
|
530
|
+
|
|
531
|
+
def initialize(
|
|
532
|
+
date_of_birth: nil,
|
|
533
|
+
driver_identification_number: nil,
|
|
534
|
+
driver_tax_number: nil,
|
|
535
|
+
name: nil
|
|
536
|
+
)
|
|
537
|
+
@date_of_birth = date_of_birth
|
|
538
|
+
@driver_identification_number = driver_identification_number
|
|
539
|
+
@driver_tax_number = driver_tax_number
|
|
540
|
+
@name = name
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
class DropOff < ::Stripe::RequestParams
|
|
545
|
+
class Address < ::Stripe::RequestParams
|
|
546
|
+
# City, district, suburb, town, or village.
|
|
547
|
+
attr_accessor :city
|
|
548
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
549
|
+
attr_accessor :country
|
|
550
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
551
|
+
attr_accessor :line1
|
|
552
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
553
|
+
attr_accessor :line2
|
|
554
|
+
# ZIP or postal code.
|
|
555
|
+
attr_accessor :postal_code
|
|
556
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
557
|
+
attr_accessor :state
|
|
558
|
+
|
|
559
|
+
def initialize(
|
|
560
|
+
city: nil,
|
|
561
|
+
country: nil,
|
|
562
|
+
line1: nil,
|
|
563
|
+
line2: nil,
|
|
564
|
+
postal_code: nil,
|
|
565
|
+
state: nil
|
|
566
|
+
)
|
|
567
|
+
@city = city
|
|
568
|
+
@country = country
|
|
569
|
+
@line1 = line1
|
|
570
|
+
@line2 = line2
|
|
571
|
+
@postal_code = postal_code
|
|
572
|
+
@state = state
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
# Address of the rental location.
|
|
576
|
+
attr_accessor :address
|
|
577
|
+
# Location name.
|
|
578
|
+
attr_accessor :location_name
|
|
579
|
+
# Timestamp for the location.
|
|
580
|
+
attr_accessor :time
|
|
581
|
+
|
|
582
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
583
|
+
@address = address
|
|
584
|
+
@location_name = location_name
|
|
585
|
+
@time = time
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
class Insurance < ::Stripe::RequestParams
|
|
590
|
+
# Amount of the insurance coverage in cents.
|
|
591
|
+
attr_accessor :amount
|
|
592
|
+
# Currency of the insurance amount.
|
|
593
|
+
attr_accessor :currency
|
|
594
|
+
# Name of the insurance company.
|
|
595
|
+
attr_accessor :insurance_company_name
|
|
596
|
+
# Type of insurance coverage.
|
|
597
|
+
attr_accessor :insurance_type
|
|
598
|
+
|
|
599
|
+
def initialize(
|
|
600
|
+
amount: nil,
|
|
601
|
+
currency: nil,
|
|
602
|
+
insurance_company_name: nil,
|
|
603
|
+
insurance_type: nil
|
|
604
|
+
)
|
|
605
|
+
@amount = amount
|
|
606
|
+
@currency = currency
|
|
607
|
+
@insurance_company_name = insurance_company_name
|
|
608
|
+
@insurance_type = insurance_type
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
class Pickup < ::Stripe::RequestParams
|
|
613
|
+
class Address < ::Stripe::RequestParams
|
|
614
|
+
# City, district, suburb, town, or village.
|
|
615
|
+
attr_accessor :city
|
|
616
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
617
|
+
attr_accessor :country
|
|
618
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
619
|
+
attr_accessor :line1
|
|
620
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
621
|
+
attr_accessor :line2
|
|
622
|
+
# ZIP or postal code.
|
|
623
|
+
attr_accessor :postal_code
|
|
624
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
625
|
+
attr_accessor :state
|
|
626
|
+
|
|
627
|
+
def initialize(
|
|
628
|
+
city: nil,
|
|
629
|
+
country: nil,
|
|
630
|
+
line1: nil,
|
|
631
|
+
line2: nil,
|
|
632
|
+
postal_code: nil,
|
|
633
|
+
state: nil
|
|
634
|
+
)
|
|
635
|
+
@city = city
|
|
636
|
+
@country = country
|
|
637
|
+
@line1 = line1
|
|
638
|
+
@line2 = line2
|
|
639
|
+
@postal_code = postal_code
|
|
640
|
+
@state = state
|
|
641
|
+
end
|
|
642
|
+
end
|
|
643
|
+
# Address of the rental location.
|
|
644
|
+
attr_accessor :address
|
|
645
|
+
# Location name.
|
|
646
|
+
attr_accessor :location_name
|
|
647
|
+
# Timestamp for the location.
|
|
648
|
+
attr_accessor :time
|
|
649
|
+
|
|
650
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
651
|
+
@address = address
|
|
652
|
+
@location_name = location_name
|
|
653
|
+
@time = time
|
|
654
|
+
end
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
class Total < ::Stripe::RequestParams
|
|
658
|
+
class Discounts < ::Stripe::RequestParams
|
|
659
|
+
# Corporate client discount code.
|
|
660
|
+
attr_accessor :corporate_client_code
|
|
661
|
+
# Coupon code applied to the rental.
|
|
662
|
+
attr_accessor :coupon
|
|
663
|
+
# Maximum number of free miles or kilometers included.
|
|
664
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
665
|
+
|
|
666
|
+
def initialize(
|
|
667
|
+
corporate_client_code: nil,
|
|
668
|
+
coupon: nil,
|
|
669
|
+
maximum_free_miles_or_kilometers: nil
|
|
670
|
+
)
|
|
671
|
+
@corporate_client_code = corporate_client_code
|
|
672
|
+
@coupon = coupon
|
|
673
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
674
|
+
end
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
678
|
+
# Amount of the extra charge in cents.
|
|
679
|
+
attr_accessor :amount
|
|
680
|
+
# Type of extra charge.
|
|
681
|
+
attr_accessor :type
|
|
682
|
+
|
|
683
|
+
def initialize(amount: nil, type: nil)
|
|
684
|
+
@amount = amount
|
|
685
|
+
@type = type
|
|
686
|
+
end
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
class Tax < ::Stripe::RequestParams
|
|
690
|
+
class Tax < ::Stripe::RequestParams
|
|
691
|
+
# Tax amount.
|
|
692
|
+
attr_accessor :amount
|
|
693
|
+
# Tax rate applied.
|
|
694
|
+
attr_accessor :rate
|
|
695
|
+
# Type of tax applied.
|
|
696
|
+
attr_accessor :type
|
|
697
|
+
|
|
698
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
699
|
+
@amount = amount
|
|
700
|
+
@rate = rate
|
|
701
|
+
@type = type
|
|
702
|
+
end
|
|
703
|
+
end
|
|
704
|
+
# Indicates if the transaction is tax exempt.
|
|
705
|
+
attr_accessor :tax_exempt_indicator
|
|
706
|
+
# Array of tax details.
|
|
707
|
+
attr_accessor :taxes
|
|
708
|
+
|
|
709
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
710
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
711
|
+
@taxes = taxes
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
# Total amount in cents.
|
|
715
|
+
attr_accessor :amount
|
|
716
|
+
# Currency of the amount.
|
|
717
|
+
attr_accessor :currency
|
|
718
|
+
# Discount details for the rental.
|
|
719
|
+
attr_accessor :discounts
|
|
720
|
+
# Additional charges for the rental.
|
|
721
|
+
attr_accessor :extra_charges
|
|
722
|
+
# Rate per unit for the rental.
|
|
723
|
+
attr_accessor :rate_per_unit
|
|
724
|
+
# Unit of measurement for the rate.
|
|
725
|
+
attr_accessor :rate_unit
|
|
726
|
+
# Tax breakdown for the rental.
|
|
727
|
+
attr_accessor :tax
|
|
728
|
+
|
|
729
|
+
def initialize(
|
|
730
|
+
amount: nil,
|
|
731
|
+
currency: nil,
|
|
732
|
+
discounts: nil,
|
|
733
|
+
extra_charges: nil,
|
|
734
|
+
rate_per_unit: nil,
|
|
735
|
+
rate_unit: nil,
|
|
736
|
+
tax: nil
|
|
737
|
+
)
|
|
738
|
+
@amount = amount
|
|
739
|
+
@currency = currency
|
|
740
|
+
@discounts = discounts
|
|
741
|
+
@extra_charges = extra_charges
|
|
742
|
+
@rate_per_unit = rate_per_unit
|
|
743
|
+
@rate_unit = rate_unit
|
|
744
|
+
@tax = tax
|
|
745
|
+
end
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
class Vehicle < ::Stripe::RequestParams
|
|
749
|
+
# Make of the rental vehicle.
|
|
750
|
+
attr_accessor :make
|
|
751
|
+
# Model of the rental vehicle.
|
|
752
|
+
attr_accessor :model
|
|
753
|
+
# Odometer reading at the time of rental.
|
|
754
|
+
attr_accessor :odometer
|
|
755
|
+
# Type of the rental vehicle.
|
|
756
|
+
attr_accessor :type
|
|
757
|
+
# Class of the rental vehicle.
|
|
758
|
+
attr_accessor :vehicle_class
|
|
759
|
+
# Vehicle identification number (VIN).
|
|
760
|
+
attr_accessor :vehicle_identification_number
|
|
761
|
+
|
|
762
|
+
def initialize(
|
|
763
|
+
make: nil,
|
|
764
|
+
model: nil,
|
|
765
|
+
odometer: nil,
|
|
766
|
+
type: nil,
|
|
767
|
+
vehicle_class: nil,
|
|
768
|
+
vehicle_identification_number: nil
|
|
769
|
+
)
|
|
770
|
+
@make = make
|
|
771
|
+
@model = model
|
|
772
|
+
@odometer = odometer
|
|
773
|
+
@type = type
|
|
774
|
+
@vehicle_class = vehicle_class
|
|
775
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
776
|
+
end
|
|
777
|
+
end
|
|
778
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
779
|
+
attr_accessor :affiliate
|
|
780
|
+
# Booking confirmation number for the car rental.
|
|
781
|
+
attr_accessor :booking_number
|
|
782
|
+
# Name of the car rental company.
|
|
783
|
+
attr_accessor :carrier_name
|
|
784
|
+
# Customer service phone number for the car rental company.
|
|
785
|
+
attr_accessor :customer_service_phone_number
|
|
786
|
+
# Number of days the car is being rented.
|
|
787
|
+
attr_accessor :days_rented
|
|
788
|
+
# Distance details for the rental.
|
|
789
|
+
attr_accessor :distance
|
|
790
|
+
# List of drivers for the rental.
|
|
791
|
+
attr_accessor :drivers
|
|
792
|
+
# Drop-off location details.
|
|
793
|
+
attr_accessor :drop_off
|
|
794
|
+
# Insurance details for the rental.
|
|
795
|
+
attr_accessor :insurances
|
|
796
|
+
# Indicates if the customer was a no-show.
|
|
797
|
+
attr_accessor :no_show_indicator
|
|
798
|
+
# Pickup location details.
|
|
799
|
+
attr_accessor :pickup
|
|
800
|
+
# Name of the person renting the vehicle.
|
|
801
|
+
attr_accessor :renter_name
|
|
802
|
+
# Total cost breakdown for the rental.
|
|
803
|
+
attr_accessor :total
|
|
804
|
+
# Vehicle details for the rental.
|
|
805
|
+
attr_accessor :vehicle
|
|
806
|
+
|
|
807
|
+
def initialize(
|
|
808
|
+
affiliate: nil,
|
|
809
|
+
booking_number: nil,
|
|
810
|
+
carrier_name: nil,
|
|
811
|
+
customer_service_phone_number: nil,
|
|
812
|
+
days_rented: nil,
|
|
813
|
+
distance: nil,
|
|
814
|
+
drivers: nil,
|
|
815
|
+
drop_off: nil,
|
|
816
|
+
insurances: nil,
|
|
817
|
+
no_show_indicator: nil,
|
|
818
|
+
pickup: nil,
|
|
819
|
+
renter_name: nil,
|
|
820
|
+
total: nil,
|
|
821
|
+
vehicle: nil
|
|
822
|
+
)
|
|
823
|
+
@affiliate = affiliate
|
|
824
|
+
@booking_number = booking_number
|
|
825
|
+
@carrier_name = carrier_name
|
|
826
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
827
|
+
@days_rented = days_rented
|
|
828
|
+
@distance = distance
|
|
829
|
+
@drivers = drivers
|
|
830
|
+
@drop_off = drop_off
|
|
831
|
+
@insurances = insurances
|
|
832
|
+
@no_show_indicator = no_show_indicator
|
|
833
|
+
@pickup = pickup
|
|
834
|
+
@renter_name = renter_name
|
|
835
|
+
@total = total
|
|
836
|
+
@vehicle = vehicle
|
|
837
|
+
end
|
|
838
|
+
end
|
|
839
|
+
|
|
840
|
+
class EventDetails < ::Stripe::RequestParams
|
|
841
|
+
class Address < ::Stripe::RequestParams
|
|
842
|
+
# City, district, suburb, town, or village.
|
|
843
|
+
attr_accessor :city
|
|
844
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
845
|
+
attr_accessor :country
|
|
846
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
847
|
+
attr_accessor :line1
|
|
848
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
849
|
+
attr_accessor :line2
|
|
850
|
+
# ZIP or postal code.
|
|
851
|
+
attr_accessor :postal_code
|
|
852
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
853
|
+
attr_accessor :state
|
|
854
|
+
|
|
855
|
+
def initialize(
|
|
856
|
+
city: nil,
|
|
857
|
+
country: nil,
|
|
858
|
+
line1: nil,
|
|
859
|
+
line2: nil,
|
|
860
|
+
postal_code: nil,
|
|
861
|
+
state: nil
|
|
862
|
+
)
|
|
863
|
+
@city = city
|
|
864
|
+
@country = country
|
|
865
|
+
@line1 = line1
|
|
866
|
+
@line2 = line2
|
|
867
|
+
@postal_code = postal_code
|
|
868
|
+
@state = state
|
|
869
|
+
end
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
class Affiliate < ::Stripe::RequestParams
|
|
873
|
+
# The name of the affiliate that originated the purchase.
|
|
874
|
+
attr_accessor :name
|
|
875
|
+
|
|
876
|
+
def initialize(name: nil)
|
|
877
|
+
@name = name
|
|
878
|
+
end
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
class Delivery < ::Stripe::RequestParams
|
|
882
|
+
class Recipient < ::Stripe::RequestParams
|
|
883
|
+
# The email of the recipient the ticket is delivered to.
|
|
884
|
+
attr_accessor :email
|
|
885
|
+
# The name of the recipient the ticket is delivered to.
|
|
886
|
+
attr_accessor :name
|
|
887
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
888
|
+
attr_accessor :phone
|
|
889
|
+
|
|
890
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
891
|
+
@email = email
|
|
892
|
+
@name = name
|
|
893
|
+
@phone = phone
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
# The delivery method for the payment
|
|
897
|
+
attr_accessor :mode
|
|
898
|
+
# Details of the recipient.
|
|
899
|
+
attr_accessor :recipient
|
|
900
|
+
|
|
901
|
+
def initialize(mode: nil, recipient: nil)
|
|
902
|
+
@mode = mode
|
|
903
|
+
@recipient = recipient
|
|
904
|
+
end
|
|
905
|
+
end
|
|
906
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
907
|
+
attr_accessor :access_controlled_venue
|
|
908
|
+
# The event location's address.
|
|
909
|
+
attr_accessor :address
|
|
910
|
+
# Affiliate details for this purchase.
|
|
911
|
+
attr_accessor :affiliate
|
|
912
|
+
# The name of the company
|
|
913
|
+
attr_accessor :company
|
|
914
|
+
# Delivery details for this purchase.
|
|
915
|
+
attr_accessor :delivery
|
|
916
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
917
|
+
attr_accessor :ends_at
|
|
918
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
919
|
+
attr_accessor :genre
|
|
920
|
+
# The name of the event.
|
|
921
|
+
attr_accessor :name
|
|
922
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
923
|
+
attr_accessor :starts_at
|
|
924
|
+
|
|
925
|
+
def initialize(
|
|
926
|
+
access_controlled_venue: nil,
|
|
927
|
+
address: nil,
|
|
928
|
+
affiliate: nil,
|
|
929
|
+
company: nil,
|
|
930
|
+
delivery: nil,
|
|
931
|
+
ends_at: nil,
|
|
932
|
+
genre: nil,
|
|
933
|
+
name: nil,
|
|
934
|
+
starts_at: nil
|
|
935
|
+
)
|
|
936
|
+
@access_controlled_venue = access_controlled_venue
|
|
937
|
+
@address = address
|
|
938
|
+
@affiliate = affiliate
|
|
939
|
+
@company = company
|
|
940
|
+
@delivery = delivery
|
|
941
|
+
@ends_at = ends_at
|
|
942
|
+
@genre = genre
|
|
943
|
+
@name = name
|
|
944
|
+
@starts_at = starts_at
|
|
945
|
+
end
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
class Flight < ::Stripe::RequestParams
|
|
949
|
+
class Affiliate < ::Stripe::RequestParams
|
|
950
|
+
# The name of the affiliate that originated the purchase.
|
|
951
|
+
attr_accessor :name
|
|
952
|
+
|
|
953
|
+
def initialize(name: nil)
|
|
954
|
+
@name = name
|
|
955
|
+
end
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
class Delivery < ::Stripe::RequestParams
|
|
959
|
+
class Recipient < ::Stripe::RequestParams
|
|
960
|
+
# The email of the recipient the ticket is delivered to.
|
|
961
|
+
attr_accessor :email
|
|
962
|
+
# The name of the recipient the ticket is delivered to.
|
|
963
|
+
attr_accessor :name
|
|
964
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
965
|
+
attr_accessor :phone
|
|
966
|
+
|
|
967
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
968
|
+
@email = email
|
|
969
|
+
@name = name
|
|
970
|
+
@phone = phone
|
|
971
|
+
end
|
|
972
|
+
end
|
|
973
|
+
# The delivery method for the payment
|
|
974
|
+
attr_accessor :mode
|
|
975
|
+
# Details of the recipient.
|
|
976
|
+
attr_accessor :recipient
|
|
977
|
+
|
|
978
|
+
def initialize(mode: nil, recipient: nil)
|
|
979
|
+
@mode = mode
|
|
980
|
+
@recipient = recipient
|
|
981
|
+
end
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
class Passenger < ::Stripe::RequestParams
|
|
985
|
+
# Full name of the person or entity on the flight reservation.
|
|
986
|
+
attr_accessor :name
|
|
987
|
+
|
|
988
|
+
def initialize(name: nil)
|
|
989
|
+
@name = name
|
|
990
|
+
end
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
class Segment < ::Stripe::RequestParams
|
|
994
|
+
# The flight segment amount.
|
|
995
|
+
attr_accessor :amount
|
|
996
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
997
|
+
attr_accessor :arrival_airport
|
|
998
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
999
|
+
attr_accessor :arrives_at
|
|
1000
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1001
|
+
attr_accessor :carrier
|
|
1002
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1003
|
+
attr_accessor :departs_at
|
|
1004
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1005
|
+
attr_accessor :departure_airport
|
|
1006
|
+
# The flight number associated with the segment
|
|
1007
|
+
attr_accessor :flight_number
|
|
1008
|
+
# The fare class for the segment.
|
|
1009
|
+
attr_accessor :service_class
|
|
1010
|
+
|
|
1011
|
+
def initialize(
|
|
1012
|
+
amount: nil,
|
|
1013
|
+
arrival_airport: nil,
|
|
1014
|
+
arrives_at: nil,
|
|
1015
|
+
carrier: nil,
|
|
1016
|
+
departs_at: nil,
|
|
1017
|
+
departure_airport: nil,
|
|
1018
|
+
flight_number: nil,
|
|
1019
|
+
service_class: nil
|
|
1020
|
+
)
|
|
1021
|
+
@amount = amount
|
|
1022
|
+
@arrival_airport = arrival_airport
|
|
1023
|
+
@arrives_at = arrives_at
|
|
1024
|
+
@carrier = carrier
|
|
1025
|
+
@departs_at = departs_at
|
|
1026
|
+
@departure_airport = departure_airport
|
|
1027
|
+
@flight_number = flight_number
|
|
1028
|
+
@service_class = service_class
|
|
1029
|
+
end
|
|
1030
|
+
end
|
|
1031
|
+
# Affiliate details for this purchase.
|
|
1032
|
+
attr_accessor :affiliate
|
|
1033
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1034
|
+
attr_accessor :agency_number
|
|
1035
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1036
|
+
attr_accessor :carrier
|
|
1037
|
+
# Delivery details for this purchase.
|
|
1038
|
+
attr_accessor :delivery
|
|
1039
|
+
# The name of the person or entity on the reservation.
|
|
1040
|
+
attr_accessor :passenger_name
|
|
1041
|
+
# The details of the passengers in the travel reservation.
|
|
1042
|
+
attr_accessor :passengers
|
|
1043
|
+
# The individual flight segments associated with the trip.
|
|
1044
|
+
attr_accessor :segments
|
|
1045
|
+
# The ticket number associated with the travel reservation.
|
|
1046
|
+
attr_accessor :ticket_number
|
|
1047
|
+
|
|
1048
|
+
def initialize(
|
|
1049
|
+
affiliate: nil,
|
|
1050
|
+
agency_number: nil,
|
|
1051
|
+
carrier: nil,
|
|
1052
|
+
delivery: nil,
|
|
1053
|
+
passenger_name: nil,
|
|
1054
|
+
passengers: nil,
|
|
1055
|
+
segments: nil,
|
|
1056
|
+
ticket_number: nil
|
|
1057
|
+
)
|
|
1058
|
+
@affiliate = affiliate
|
|
1059
|
+
@agency_number = agency_number
|
|
1060
|
+
@carrier = carrier
|
|
1061
|
+
@delivery = delivery
|
|
1062
|
+
@passenger_name = passenger_name
|
|
1063
|
+
@passengers = passengers
|
|
1064
|
+
@segments = segments
|
|
1065
|
+
@ticket_number = ticket_number
|
|
1066
|
+
end
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1070
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1071
|
+
# Affiliate partner code.
|
|
1072
|
+
attr_accessor :code
|
|
1073
|
+
# Name of affiliate partner.
|
|
1074
|
+
attr_accessor :name
|
|
1075
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1076
|
+
attr_accessor :travel_authorization_code
|
|
1077
|
+
|
|
1078
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1079
|
+
@code = code
|
|
1080
|
+
@name = name
|
|
1081
|
+
@travel_authorization_code = travel_authorization_code
|
|
1082
|
+
end
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
class Insurance < ::Stripe::RequestParams
|
|
1086
|
+
# Insurance cost.
|
|
1087
|
+
attr_accessor :amount
|
|
1088
|
+
# Insurance currency.
|
|
1089
|
+
attr_accessor :currency
|
|
1090
|
+
# Insurance company name.
|
|
1091
|
+
attr_accessor :insurance_company_name
|
|
1092
|
+
# Type of insurance.
|
|
1093
|
+
attr_accessor :insurance_type
|
|
1094
|
+
|
|
1095
|
+
def initialize(
|
|
1096
|
+
amount: nil,
|
|
1097
|
+
currency: nil,
|
|
1098
|
+
insurance_company_name: nil,
|
|
1099
|
+
insurance_type: nil
|
|
1100
|
+
)
|
|
1101
|
+
@amount = amount
|
|
1102
|
+
@currency = currency
|
|
1103
|
+
@insurance_company_name = insurance_company_name
|
|
1104
|
+
@insurance_type = insurance_type
|
|
1105
|
+
end
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
class Passenger < ::Stripe::RequestParams
|
|
1109
|
+
# Passenger's full name.
|
|
1110
|
+
attr_accessor :name
|
|
1111
|
+
|
|
1112
|
+
def initialize(name: nil)
|
|
1113
|
+
@name = name
|
|
1114
|
+
end
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
class Segment < ::Stripe::RequestParams
|
|
1118
|
+
class Arrival < ::Stripe::RequestParams
|
|
1119
|
+
# Arrival airport IATA code.
|
|
1120
|
+
attr_accessor :airport
|
|
1121
|
+
# Arrival date/time.
|
|
1122
|
+
attr_accessor :arrives_at
|
|
1123
|
+
# Arrival city.
|
|
1124
|
+
attr_accessor :city
|
|
1125
|
+
# Arrival country.
|
|
1126
|
+
attr_accessor :country
|
|
1127
|
+
|
|
1128
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1129
|
+
@airport = airport
|
|
1130
|
+
@arrives_at = arrives_at
|
|
1131
|
+
@city = city
|
|
1132
|
+
@country = country
|
|
1133
|
+
end
|
|
1134
|
+
end
|
|
1135
|
+
|
|
1136
|
+
class Departure < ::Stripe::RequestParams
|
|
1137
|
+
# Departure airport IATA code.
|
|
1138
|
+
attr_accessor :airport
|
|
1139
|
+
# Departure city.
|
|
1140
|
+
attr_accessor :city
|
|
1141
|
+
# Departure country.
|
|
1142
|
+
attr_accessor :country
|
|
1143
|
+
# Departure date/time.
|
|
1144
|
+
attr_accessor :departs_at
|
|
1145
|
+
|
|
1146
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1147
|
+
@airport = airport
|
|
1148
|
+
@city = city
|
|
1149
|
+
@country = country
|
|
1150
|
+
@departs_at = departs_at
|
|
1151
|
+
end
|
|
1152
|
+
end
|
|
1153
|
+
# Segment fare amount.
|
|
1154
|
+
attr_accessor :amount
|
|
1155
|
+
# Arrival details.
|
|
1156
|
+
attr_accessor :arrival
|
|
1157
|
+
# Airline carrier code.
|
|
1158
|
+
attr_accessor :carrier_code
|
|
1159
|
+
# Carrier name.
|
|
1160
|
+
attr_accessor :carrier_name
|
|
1161
|
+
# Segment currency.
|
|
1162
|
+
attr_accessor :currency
|
|
1163
|
+
# Departure details.
|
|
1164
|
+
attr_accessor :departure
|
|
1165
|
+
# Exchange ticket number.
|
|
1166
|
+
attr_accessor :exchange_ticket_number
|
|
1167
|
+
# Fare basis code.
|
|
1168
|
+
attr_accessor :fare_basis_code
|
|
1169
|
+
# Additional fees.
|
|
1170
|
+
attr_accessor :fees
|
|
1171
|
+
# Flight number.
|
|
1172
|
+
attr_accessor :flight_number
|
|
1173
|
+
# Stopover indicator.
|
|
1174
|
+
attr_accessor :is_stop_over_indicator
|
|
1175
|
+
# Refundable ticket indicator.
|
|
1176
|
+
attr_accessor :refundable
|
|
1177
|
+
# Class of service.
|
|
1178
|
+
attr_accessor :service_class
|
|
1179
|
+
# Tax amount for segment.
|
|
1180
|
+
attr_accessor :tax_amount
|
|
1181
|
+
# Ticket number.
|
|
1182
|
+
attr_accessor :ticket_number
|
|
1183
|
+
|
|
1184
|
+
def initialize(
|
|
1185
|
+
amount: nil,
|
|
1186
|
+
arrival: nil,
|
|
1187
|
+
carrier_code: nil,
|
|
1188
|
+
carrier_name: nil,
|
|
1189
|
+
currency: nil,
|
|
1190
|
+
departure: nil,
|
|
1191
|
+
exchange_ticket_number: nil,
|
|
1192
|
+
fare_basis_code: nil,
|
|
1193
|
+
fees: nil,
|
|
1194
|
+
flight_number: nil,
|
|
1195
|
+
is_stop_over_indicator: nil,
|
|
1196
|
+
refundable: nil,
|
|
1197
|
+
service_class: nil,
|
|
1198
|
+
tax_amount: nil,
|
|
1199
|
+
ticket_number: nil
|
|
1200
|
+
)
|
|
1201
|
+
@amount = amount
|
|
1202
|
+
@arrival = arrival
|
|
1203
|
+
@carrier_code = carrier_code
|
|
1204
|
+
@carrier_name = carrier_name
|
|
1205
|
+
@currency = currency
|
|
1206
|
+
@departure = departure
|
|
1207
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1208
|
+
@fare_basis_code = fare_basis_code
|
|
1209
|
+
@fees = fees
|
|
1210
|
+
@flight_number = flight_number
|
|
1211
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1212
|
+
@refundable = refundable
|
|
1213
|
+
@service_class = service_class
|
|
1214
|
+
@tax_amount = tax_amount
|
|
1215
|
+
@ticket_number = ticket_number
|
|
1216
|
+
end
|
|
1217
|
+
end
|
|
1218
|
+
|
|
1219
|
+
class Total < ::Stripe::RequestParams
|
|
1220
|
+
class Discounts < ::Stripe::RequestParams
|
|
1221
|
+
# Corporate client discount code.
|
|
1222
|
+
attr_accessor :corporate_client_code
|
|
1223
|
+
|
|
1224
|
+
def initialize(corporate_client_code: nil)
|
|
1225
|
+
@corporate_client_code = corporate_client_code
|
|
1226
|
+
end
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1230
|
+
# Amount of additional charges.
|
|
1231
|
+
attr_accessor :amount
|
|
1232
|
+
# Type of additional charges.
|
|
1233
|
+
attr_accessor :type
|
|
1234
|
+
|
|
1235
|
+
def initialize(amount: nil, type: nil)
|
|
1236
|
+
@amount = amount
|
|
1237
|
+
@type = type
|
|
1238
|
+
end
|
|
1239
|
+
end
|
|
1240
|
+
|
|
1241
|
+
class Tax < ::Stripe::RequestParams
|
|
1242
|
+
class Tax < ::Stripe::RequestParams
|
|
1243
|
+
# Tax amount.
|
|
1244
|
+
attr_accessor :amount
|
|
1245
|
+
# Tax rate.
|
|
1246
|
+
attr_accessor :rate
|
|
1247
|
+
# Type of tax.
|
|
1248
|
+
attr_accessor :type
|
|
1249
|
+
|
|
1250
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1251
|
+
@amount = amount
|
|
1252
|
+
@rate = rate
|
|
1253
|
+
@type = type
|
|
1254
|
+
end
|
|
1255
|
+
end
|
|
1256
|
+
# Array of tax details.
|
|
1257
|
+
attr_accessor :taxes
|
|
1258
|
+
|
|
1259
|
+
def initialize(taxes: nil)
|
|
1260
|
+
@taxes = taxes
|
|
1261
|
+
end
|
|
1262
|
+
end
|
|
1263
|
+
# Total flight amount.
|
|
1264
|
+
attr_accessor :amount
|
|
1265
|
+
# Reason for credit.
|
|
1266
|
+
attr_accessor :credit_reason
|
|
1267
|
+
# Total currency.
|
|
1268
|
+
attr_accessor :currency
|
|
1269
|
+
# Discount details.
|
|
1270
|
+
attr_accessor :discounts
|
|
1271
|
+
# Additional charges.
|
|
1272
|
+
attr_accessor :extra_charges
|
|
1273
|
+
# Tax breakdown.
|
|
1274
|
+
attr_accessor :tax
|
|
1275
|
+
|
|
1276
|
+
def initialize(
|
|
1277
|
+
amount: nil,
|
|
1278
|
+
credit_reason: nil,
|
|
1279
|
+
currency: nil,
|
|
1280
|
+
discounts: nil,
|
|
1281
|
+
extra_charges: nil,
|
|
1282
|
+
tax: nil
|
|
1283
|
+
)
|
|
1284
|
+
@amount = amount
|
|
1285
|
+
@credit_reason = credit_reason
|
|
1286
|
+
@currency = currency
|
|
1287
|
+
@discounts = discounts
|
|
1288
|
+
@extra_charges = extra_charges
|
|
1289
|
+
@tax = tax
|
|
1290
|
+
end
|
|
1291
|
+
end
|
|
1292
|
+
# Affiliate details if applicable.
|
|
1293
|
+
attr_accessor :affiliate
|
|
1294
|
+
# Reservation reference.
|
|
1295
|
+
attr_accessor :booking_number
|
|
1296
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1297
|
+
attr_accessor :computerized_reservation_system
|
|
1298
|
+
# Ticket restrictions.
|
|
1299
|
+
attr_accessor :endorsements_and_restrictions
|
|
1300
|
+
# List of insurances.
|
|
1301
|
+
attr_accessor :insurances
|
|
1302
|
+
# List of passengers.
|
|
1303
|
+
attr_accessor :passengers
|
|
1304
|
+
# List of flight segments.
|
|
1305
|
+
attr_accessor :segments
|
|
1306
|
+
# Electronic ticket indicator.
|
|
1307
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1308
|
+
# Total cost breakdown.
|
|
1309
|
+
attr_accessor :total
|
|
1310
|
+
# Type of flight transaction.
|
|
1311
|
+
attr_accessor :transaction_type
|
|
1312
|
+
|
|
1313
|
+
def initialize(
|
|
1314
|
+
affiliate: nil,
|
|
1315
|
+
booking_number: nil,
|
|
1316
|
+
computerized_reservation_system: nil,
|
|
1317
|
+
endorsements_and_restrictions: nil,
|
|
1318
|
+
insurances: nil,
|
|
1319
|
+
passengers: nil,
|
|
1320
|
+
segments: nil,
|
|
1321
|
+
ticket_electronically_issued_indicator: nil,
|
|
1322
|
+
total: nil,
|
|
1323
|
+
transaction_type: nil
|
|
1324
|
+
)
|
|
1325
|
+
@affiliate = affiliate
|
|
1326
|
+
@booking_number = booking_number
|
|
1327
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1328
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1329
|
+
@insurances = insurances
|
|
1330
|
+
@passengers = passengers
|
|
1331
|
+
@segments = segments
|
|
1332
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1333
|
+
@total = total
|
|
1334
|
+
@transaction_type = transaction_type
|
|
1335
|
+
end
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
class Lodging < ::Stripe::RequestParams
|
|
1339
|
+
class Address < ::Stripe::RequestParams
|
|
1340
|
+
# City, district, suburb, town, or village.
|
|
1341
|
+
attr_accessor :city
|
|
1342
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1343
|
+
attr_accessor :country
|
|
1344
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1345
|
+
attr_accessor :line1
|
|
1346
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1347
|
+
attr_accessor :line2
|
|
1348
|
+
# ZIP or postal code.
|
|
1349
|
+
attr_accessor :postal_code
|
|
1350
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1351
|
+
attr_accessor :state
|
|
1352
|
+
|
|
1353
|
+
def initialize(
|
|
1354
|
+
city: nil,
|
|
1355
|
+
country: nil,
|
|
1356
|
+
line1: nil,
|
|
1357
|
+
line2: nil,
|
|
1358
|
+
postal_code: nil,
|
|
1359
|
+
state: nil
|
|
1360
|
+
)
|
|
1361
|
+
@city = city
|
|
1362
|
+
@country = country
|
|
1363
|
+
@line1 = line1
|
|
1364
|
+
@line2 = line2
|
|
1365
|
+
@postal_code = postal_code
|
|
1366
|
+
@state = state
|
|
1367
|
+
end
|
|
1368
|
+
end
|
|
1369
|
+
|
|
1370
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1371
|
+
# The name of the affiliate that originated the purchase.
|
|
1372
|
+
attr_accessor :name
|
|
1373
|
+
|
|
1374
|
+
def initialize(name: nil)
|
|
1375
|
+
@name = name
|
|
1376
|
+
end
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
class Delivery < ::Stripe::RequestParams
|
|
1380
|
+
class Recipient < ::Stripe::RequestParams
|
|
1381
|
+
# The email of the recipient the ticket is delivered to.
|
|
1382
|
+
attr_accessor :email
|
|
1383
|
+
# The name of the recipient the ticket is delivered to.
|
|
1384
|
+
attr_accessor :name
|
|
1385
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1386
|
+
attr_accessor :phone
|
|
1387
|
+
|
|
1388
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1389
|
+
@email = email
|
|
1390
|
+
@name = name
|
|
1391
|
+
@phone = phone
|
|
1392
|
+
end
|
|
1393
|
+
end
|
|
1394
|
+
# The delivery method for the payment
|
|
1395
|
+
attr_accessor :mode
|
|
1396
|
+
# Details of the recipient.
|
|
1397
|
+
attr_accessor :recipient
|
|
1398
|
+
|
|
1399
|
+
def initialize(mode: nil, recipient: nil)
|
|
1400
|
+
@mode = mode
|
|
1401
|
+
@recipient = recipient
|
|
1402
|
+
end
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1405
|
+
class Passenger < ::Stripe::RequestParams
|
|
1406
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1407
|
+
attr_accessor :name
|
|
1408
|
+
|
|
1409
|
+
def initialize(name: nil)
|
|
1410
|
+
@name = name
|
|
1411
|
+
end
|
|
1412
|
+
end
|
|
1413
|
+
# The lodging location's address.
|
|
1414
|
+
attr_accessor :address
|
|
1415
|
+
# The number of adults on the booking
|
|
1416
|
+
attr_accessor :adults
|
|
1417
|
+
# Affiliate details for this purchase.
|
|
1418
|
+
attr_accessor :affiliate
|
|
1419
|
+
# The booking number associated with the lodging reservation.
|
|
1420
|
+
attr_accessor :booking_number
|
|
1421
|
+
# The lodging category
|
|
1422
|
+
attr_accessor :category
|
|
1423
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1424
|
+
attr_accessor :checkin_at
|
|
1425
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1426
|
+
attr_accessor :checkout_at
|
|
1427
|
+
# The customer service phone number of the lodging company.
|
|
1428
|
+
attr_accessor :customer_service_phone_number
|
|
1429
|
+
# The daily lodging room rate.
|
|
1430
|
+
attr_accessor :daily_room_rate_amount
|
|
1431
|
+
# Delivery details for this purchase.
|
|
1432
|
+
attr_accessor :delivery
|
|
1433
|
+
# List of additional charges being billed.
|
|
1434
|
+
attr_accessor :extra_charges
|
|
1435
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1436
|
+
attr_accessor :fire_safety_act_compliance
|
|
1437
|
+
# The name of the lodging location.
|
|
1438
|
+
attr_accessor :name
|
|
1439
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1440
|
+
attr_accessor :no_show
|
|
1441
|
+
# The number of rooms on the booking
|
|
1442
|
+
attr_accessor :number_of_rooms
|
|
1443
|
+
# The details of the passengers in the travel reservation
|
|
1444
|
+
attr_accessor :passengers
|
|
1445
|
+
# The phone number of the lodging location.
|
|
1446
|
+
attr_accessor :property_phone_number
|
|
1447
|
+
# The room class for this purchase.
|
|
1448
|
+
attr_accessor :room_class
|
|
1449
|
+
# The number of room nights
|
|
1450
|
+
attr_accessor :room_nights
|
|
1451
|
+
# The total tax amount associating with the room reservation.
|
|
1452
|
+
attr_accessor :total_room_tax_amount
|
|
1453
|
+
# The total tax amount
|
|
1454
|
+
attr_accessor :total_tax_amount
|
|
1455
|
+
|
|
1456
|
+
def initialize(
|
|
1457
|
+
address: nil,
|
|
1458
|
+
adults: nil,
|
|
1459
|
+
affiliate: nil,
|
|
1460
|
+
booking_number: nil,
|
|
1461
|
+
category: nil,
|
|
1462
|
+
checkin_at: nil,
|
|
1463
|
+
checkout_at: nil,
|
|
1464
|
+
customer_service_phone_number: nil,
|
|
1465
|
+
daily_room_rate_amount: nil,
|
|
1466
|
+
delivery: nil,
|
|
1467
|
+
extra_charges: nil,
|
|
1468
|
+
fire_safety_act_compliance: nil,
|
|
1469
|
+
name: nil,
|
|
1470
|
+
no_show: nil,
|
|
1471
|
+
number_of_rooms: nil,
|
|
1472
|
+
passengers: nil,
|
|
1473
|
+
property_phone_number: nil,
|
|
1474
|
+
room_class: nil,
|
|
1475
|
+
room_nights: nil,
|
|
1476
|
+
total_room_tax_amount: nil,
|
|
1477
|
+
total_tax_amount: nil
|
|
1478
|
+
)
|
|
1479
|
+
@address = address
|
|
1480
|
+
@adults = adults
|
|
1481
|
+
@affiliate = affiliate
|
|
1482
|
+
@booking_number = booking_number
|
|
1483
|
+
@category = category
|
|
1484
|
+
@checkin_at = checkin_at
|
|
1485
|
+
@checkout_at = checkout_at
|
|
1486
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1487
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1488
|
+
@delivery = delivery
|
|
1489
|
+
@extra_charges = extra_charges
|
|
1490
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1491
|
+
@name = name
|
|
1492
|
+
@no_show = no_show
|
|
1493
|
+
@number_of_rooms = number_of_rooms
|
|
1494
|
+
@passengers = passengers
|
|
1495
|
+
@property_phone_number = property_phone_number
|
|
1496
|
+
@room_class = room_class
|
|
1497
|
+
@room_nights = room_nights
|
|
1498
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1499
|
+
@total_tax_amount = total_tax_amount
|
|
1500
|
+
end
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1504
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1505
|
+
# Type of accommodation.
|
|
1506
|
+
attr_accessor :accommodation_type
|
|
1507
|
+
# Bed type.
|
|
1508
|
+
attr_accessor :bed_type
|
|
1509
|
+
# Daily accommodation rate in cents.
|
|
1510
|
+
attr_accessor :daily_rate_amount
|
|
1511
|
+
# Number of nights.
|
|
1512
|
+
attr_accessor :nights
|
|
1513
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1514
|
+
attr_accessor :number_of_rooms
|
|
1515
|
+
# Rate type.
|
|
1516
|
+
attr_accessor :rate_type
|
|
1517
|
+
# Whether smoking is allowed.
|
|
1518
|
+
attr_accessor :smoking_indicator
|
|
1519
|
+
|
|
1520
|
+
def initialize(
|
|
1521
|
+
accommodation_type: nil,
|
|
1522
|
+
bed_type: nil,
|
|
1523
|
+
daily_rate_amount: nil,
|
|
1524
|
+
nights: nil,
|
|
1525
|
+
number_of_rooms: nil,
|
|
1526
|
+
rate_type: nil,
|
|
1527
|
+
smoking_indicator: nil
|
|
1528
|
+
)
|
|
1529
|
+
@accommodation_type = accommodation_type
|
|
1530
|
+
@bed_type = bed_type
|
|
1531
|
+
@daily_rate_amount = daily_rate_amount
|
|
1532
|
+
@nights = nights
|
|
1533
|
+
@number_of_rooms = number_of_rooms
|
|
1534
|
+
@rate_type = rate_type
|
|
1535
|
+
@smoking_indicator = smoking_indicator
|
|
1536
|
+
end
|
|
1537
|
+
end
|
|
1538
|
+
|
|
1539
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1540
|
+
# Affiliate partner code.
|
|
1541
|
+
attr_accessor :code
|
|
1542
|
+
# Affiliate partner name.
|
|
1543
|
+
attr_accessor :name
|
|
1544
|
+
|
|
1545
|
+
def initialize(code: nil, name: nil)
|
|
1546
|
+
@code = code
|
|
1547
|
+
@name = name
|
|
1548
|
+
end
|
|
1549
|
+
end
|
|
1550
|
+
|
|
1551
|
+
class Guest < ::Stripe::RequestParams
|
|
1552
|
+
# Guest's full name.
|
|
1553
|
+
attr_accessor :name
|
|
1554
|
+
|
|
1555
|
+
def initialize(name: nil)
|
|
1556
|
+
@name = name
|
|
1557
|
+
end
|
|
1558
|
+
end
|
|
1559
|
+
|
|
1560
|
+
class Host < ::Stripe::RequestParams
|
|
1561
|
+
class Address < ::Stripe::RequestParams
|
|
1562
|
+
# City, district, suburb, town, or village.
|
|
1563
|
+
attr_accessor :city
|
|
1564
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1565
|
+
attr_accessor :country
|
|
1566
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1567
|
+
attr_accessor :line1
|
|
1568
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1569
|
+
attr_accessor :line2
|
|
1570
|
+
# ZIP or postal code.
|
|
1571
|
+
attr_accessor :postal_code
|
|
1572
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1573
|
+
attr_accessor :state
|
|
1574
|
+
|
|
1575
|
+
def initialize(
|
|
1576
|
+
city: nil,
|
|
1577
|
+
country: nil,
|
|
1578
|
+
line1: nil,
|
|
1579
|
+
line2: nil,
|
|
1580
|
+
postal_code: nil,
|
|
1581
|
+
state: nil
|
|
1582
|
+
)
|
|
1583
|
+
@city = city
|
|
1584
|
+
@country = country
|
|
1585
|
+
@line1 = line1
|
|
1586
|
+
@line2 = line2
|
|
1587
|
+
@postal_code = postal_code
|
|
1588
|
+
@state = state
|
|
1589
|
+
end
|
|
1590
|
+
end
|
|
1591
|
+
# Address of the host.
|
|
1592
|
+
attr_accessor :address
|
|
1593
|
+
# Host's country of domicile.
|
|
1594
|
+
attr_accessor :country_of_domicile
|
|
1595
|
+
# Reference number for the host.
|
|
1596
|
+
attr_accessor :host_reference
|
|
1597
|
+
# Type of host.
|
|
1598
|
+
attr_accessor :host_type
|
|
1599
|
+
# Name of the lodging property or host.
|
|
1600
|
+
attr_accessor :name
|
|
1601
|
+
# Total number of reservations for the host.
|
|
1602
|
+
attr_accessor :number_of_reservations
|
|
1603
|
+
# Property phone number.
|
|
1604
|
+
attr_accessor :property_phone_number
|
|
1605
|
+
# Host's registration date.
|
|
1606
|
+
attr_accessor :registered_at
|
|
1607
|
+
|
|
1608
|
+
def initialize(
|
|
1609
|
+
address: nil,
|
|
1610
|
+
country_of_domicile: nil,
|
|
1611
|
+
host_reference: nil,
|
|
1612
|
+
host_type: nil,
|
|
1613
|
+
name: nil,
|
|
1614
|
+
number_of_reservations: nil,
|
|
1615
|
+
property_phone_number: nil,
|
|
1616
|
+
registered_at: nil
|
|
1617
|
+
)
|
|
1618
|
+
@address = address
|
|
1619
|
+
@country_of_domicile = country_of_domicile
|
|
1620
|
+
@host_reference = host_reference
|
|
1621
|
+
@host_type = host_type
|
|
1622
|
+
@name = name
|
|
1623
|
+
@number_of_reservations = number_of_reservations
|
|
1624
|
+
@property_phone_number = property_phone_number
|
|
1625
|
+
@registered_at = registered_at
|
|
1626
|
+
end
|
|
1627
|
+
end
|
|
1628
|
+
|
|
1629
|
+
class Insurance < ::Stripe::RequestParams
|
|
1630
|
+
# Price of the insurance coverage in cents.
|
|
1631
|
+
attr_accessor :amount
|
|
1632
|
+
# Currency of the insurance amount.
|
|
1633
|
+
attr_accessor :currency
|
|
1634
|
+
# Name of the insurance company.
|
|
1635
|
+
attr_accessor :insurance_company_name
|
|
1636
|
+
# Type of insurance coverage.
|
|
1637
|
+
attr_accessor :insurance_type
|
|
1638
|
+
|
|
1639
|
+
def initialize(
|
|
1640
|
+
amount: nil,
|
|
1641
|
+
currency: nil,
|
|
1642
|
+
insurance_company_name: nil,
|
|
1643
|
+
insurance_type: nil
|
|
1644
|
+
)
|
|
1645
|
+
@amount = amount
|
|
1646
|
+
@currency = currency
|
|
1647
|
+
@insurance_company_name = insurance_company_name
|
|
1648
|
+
@insurance_type = insurance_type
|
|
1649
|
+
end
|
|
1650
|
+
end
|
|
1651
|
+
|
|
1652
|
+
class Total < ::Stripe::RequestParams
|
|
1653
|
+
class Discounts < ::Stripe::RequestParams
|
|
1654
|
+
# Corporate client discount code.
|
|
1655
|
+
attr_accessor :corporate_client_code
|
|
1656
|
+
# Coupon code.
|
|
1657
|
+
attr_accessor :coupon
|
|
1658
|
+
|
|
1659
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1660
|
+
@corporate_client_code = corporate_client_code
|
|
1661
|
+
@coupon = coupon
|
|
1662
|
+
end
|
|
1663
|
+
end
|
|
1664
|
+
|
|
1665
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1666
|
+
# Amount of the extra charge in cents.
|
|
1667
|
+
attr_accessor :amount
|
|
1668
|
+
# Type of extra charge.
|
|
1669
|
+
attr_accessor :type
|
|
1670
|
+
|
|
1671
|
+
def initialize(amount: nil, type: nil)
|
|
1672
|
+
@amount = amount
|
|
1673
|
+
@type = type
|
|
1674
|
+
end
|
|
1675
|
+
end
|
|
1676
|
+
|
|
1677
|
+
class Tax < ::Stripe::RequestParams
|
|
1678
|
+
class Tax < ::Stripe::RequestParams
|
|
1679
|
+
# Tax amount in cents.
|
|
1680
|
+
attr_accessor :amount
|
|
1681
|
+
# Tax rate.
|
|
1682
|
+
attr_accessor :rate
|
|
1683
|
+
# Type of tax applied.
|
|
1684
|
+
attr_accessor :type
|
|
1685
|
+
|
|
1686
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1687
|
+
@amount = amount
|
|
1688
|
+
@rate = rate
|
|
1689
|
+
@type = type
|
|
1690
|
+
end
|
|
1691
|
+
end
|
|
1692
|
+
# Indicates whether the transaction is tax exempt.
|
|
1693
|
+
attr_accessor :tax_exempt_indicator
|
|
1694
|
+
# Tax details.
|
|
1695
|
+
attr_accessor :taxes
|
|
1696
|
+
|
|
1697
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1698
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1699
|
+
@taxes = taxes
|
|
1700
|
+
end
|
|
1701
|
+
end
|
|
1702
|
+
# Total price of the lodging reservation in cents.
|
|
1703
|
+
attr_accessor :amount
|
|
1704
|
+
# Cash advances in cents.
|
|
1705
|
+
attr_accessor :cash_advances
|
|
1706
|
+
# Currency of the total amount.
|
|
1707
|
+
attr_accessor :currency
|
|
1708
|
+
# Discount details for the lodging.
|
|
1709
|
+
attr_accessor :discounts
|
|
1710
|
+
# Additional charges for the lodging.
|
|
1711
|
+
attr_accessor :extra_charges
|
|
1712
|
+
# Prepaid amount in cents.
|
|
1713
|
+
attr_accessor :prepaid_amount
|
|
1714
|
+
# Tax breakdown for the lodging reservation.
|
|
1715
|
+
attr_accessor :tax
|
|
1716
|
+
|
|
1717
|
+
def initialize(
|
|
1718
|
+
amount: nil,
|
|
1719
|
+
cash_advances: nil,
|
|
1720
|
+
currency: nil,
|
|
1721
|
+
discounts: nil,
|
|
1722
|
+
extra_charges: nil,
|
|
1723
|
+
prepaid_amount: nil,
|
|
1724
|
+
tax: nil
|
|
1725
|
+
)
|
|
1726
|
+
@amount = amount
|
|
1727
|
+
@cash_advances = cash_advances
|
|
1728
|
+
@currency = currency
|
|
1729
|
+
@discounts = discounts
|
|
1730
|
+
@extra_charges = extra_charges
|
|
1731
|
+
@prepaid_amount = prepaid_amount
|
|
1732
|
+
@tax = tax
|
|
1733
|
+
end
|
|
1734
|
+
end
|
|
1735
|
+
# Accommodation details for the lodging.
|
|
1736
|
+
attr_accessor :accommodation
|
|
1737
|
+
# Affiliate details if applicable.
|
|
1738
|
+
attr_accessor :affiliate
|
|
1739
|
+
# Booking confirmation number for the lodging.
|
|
1740
|
+
attr_accessor :booking_number
|
|
1741
|
+
# Check-in date.
|
|
1742
|
+
attr_accessor :checkin_at
|
|
1743
|
+
# Check-out date.
|
|
1744
|
+
attr_accessor :checkout_at
|
|
1745
|
+
# Customer service phone number for the lodging company.
|
|
1746
|
+
attr_accessor :customer_service_phone_number
|
|
1747
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1748
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1749
|
+
# List of guests for the lodging.
|
|
1750
|
+
attr_accessor :guests
|
|
1751
|
+
# Host details for the lodging.
|
|
1752
|
+
attr_accessor :host
|
|
1753
|
+
# List of insurances for the lodging.
|
|
1754
|
+
attr_accessor :insurances
|
|
1755
|
+
# Whether the renter is a no-show.
|
|
1756
|
+
attr_accessor :no_show_indicator
|
|
1757
|
+
# Renter ID number for the lodging.
|
|
1758
|
+
attr_accessor :renter_id_number
|
|
1759
|
+
# Renter name for the lodging.
|
|
1760
|
+
attr_accessor :renter_name
|
|
1761
|
+
# Total details for the lodging.
|
|
1762
|
+
attr_accessor :total
|
|
1763
|
+
|
|
1764
|
+
def initialize(
|
|
1765
|
+
accommodation: nil,
|
|
1766
|
+
affiliate: nil,
|
|
1767
|
+
booking_number: nil,
|
|
1768
|
+
checkin_at: nil,
|
|
1769
|
+
checkout_at: nil,
|
|
1770
|
+
customer_service_phone_number: nil,
|
|
1771
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1772
|
+
guests: nil,
|
|
1773
|
+
host: nil,
|
|
1774
|
+
insurances: nil,
|
|
1775
|
+
no_show_indicator: nil,
|
|
1776
|
+
renter_id_number: nil,
|
|
1777
|
+
renter_name: nil,
|
|
1778
|
+
total: nil
|
|
1779
|
+
)
|
|
1780
|
+
@accommodation = accommodation
|
|
1781
|
+
@affiliate = affiliate
|
|
1782
|
+
@booking_number = booking_number
|
|
1783
|
+
@checkin_at = checkin_at
|
|
1784
|
+
@checkout_at = checkout_at
|
|
1785
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1786
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1787
|
+
@guests = guests
|
|
1788
|
+
@host = host
|
|
1789
|
+
@insurances = insurances
|
|
1790
|
+
@no_show_indicator = no_show_indicator
|
|
1791
|
+
@renter_id_number = renter_id_number
|
|
1792
|
+
@renter_name = renter_name
|
|
1793
|
+
@total = total
|
|
1794
|
+
end
|
|
1795
|
+
end
|
|
1796
|
+
|
|
1797
|
+
class Subscription < ::Stripe::RequestParams
|
|
1798
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1799
|
+
# The name of the affiliate that originated the purchase.
|
|
1800
|
+
attr_accessor :name
|
|
1801
|
+
|
|
1802
|
+
def initialize(name: nil)
|
|
1803
|
+
@name = name
|
|
1804
|
+
end
|
|
1805
|
+
end
|
|
1806
|
+
|
|
1807
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1808
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1809
|
+
attr_accessor :count
|
|
1810
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1811
|
+
attr_accessor :interval
|
|
1812
|
+
|
|
1813
|
+
def initialize(count: nil, interval: nil)
|
|
1814
|
+
@count = count
|
|
1815
|
+
@interval = interval
|
|
1816
|
+
end
|
|
1817
|
+
end
|
|
1818
|
+
# Affiliate details for this purchase.
|
|
1819
|
+
attr_accessor :affiliate
|
|
1820
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1821
|
+
attr_accessor :auto_renewal
|
|
1822
|
+
# Subscription billing details for this purchase.
|
|
1823
|
+
attr_accessor :billing_interval
|
|
1824
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1825
|
+
attr_accessor :ends_at
|
|
1826
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1827
|
+
attr_accessor :name
|
|
1828
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1829
|
+
attr_accessor :starts_at
|
|
1830
|
+
|
|
1831
|
+
def initialize(
|
|
1832
|
+
affiliate: nil,
|
|
1833
|
+
auto_renewal: nil,
|
|
1834
|
+
billing_interval: nil,
|
|
1835
|
+
ends_at: nil,
|
|
1836
|
+
name: nil,
|
|
1837
|
+
starts_at: nil
|
|
1838
|
+
)
|
|
1839
|
+
@affiliate = affiliate
|
|
1840
|
+
@auto_renewal = auto_renewal
|
|
1841
|
+
@billing_interval = billing_interval
|
|
1842
|
+
@ends_at = ends_at
|
|
1843
|
+
@name = name
|
|
1844
|
+
@starts_at = starts_at
|
|
1845
|
+
end
|
|
1846
|
+
end
|
|
1847
|
+
# Car rental details for this PaymentIntent.
|
|
1848
|
+
attr_accessor :car_rental
|
|
1849
|
+
# Car rental data for this PaymentIntent.
|
|
1850
|
+
attr_accessor :car_rental_data
|
|
256
1851
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
257
1852
|
#
|
|
258
1853
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
259
1854
|
attr_accessor :customer_reference
|
|
1855
|
+
# Event details for this PaymentIntent
|
|
1856
|
+
attr_accessor :event_details
|
|
1857
|
+
# Flight reservation details for this PaymentIntent
|
|
1858
|
+
attr_accessor :flight
|
|
1859
|
+
# Flight data for this PaymentIntent.
|
|
1860
|
+
attr_accessor :flight_data
|
|
1861
|
+
# Lodging reservation details for this PaymentIntent
|
|
1862
|
+
attr_accessor :lodging
|
|
1863
|
+
# Lodging data for this PaymentIntent.
|
|
1864
|
+
attr_accessor :lodging_data
|
|
260
1865
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
261
1866
|
#
|
|
262
1867
|
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
263
1868
|
#
|
|
264
1869
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
265
1870
|
attr_accessor :order_reference
|
|
1871
|
+
# Subscription details for this PaymentIntent
|
|
1872
|
+
attr_accessor :subscription
|
|
266
1873
|
|
|
267
|
-
def initialize(
|
|
1874
|
+
def initialize(
|
|
1875
|
+
car_rental: nil,
|
|
1876
|
+
car_rental_data: nil,
|
|
1877
|
+
customer_reference: nil,
|
|
1878
|
+
event_details: nil,
|
|
1879
|
+
flight: nil,
|
|
1880
|
+
flight_data: nil,
|
|
1881
|
+
lodging: nil,
|
|
1882
|
+
lodging_data: nil,
|
|
1883
|
+
order_reference: nil,
|
|
1884
|
+
subscription: nil
|
|
1885
|
+
)
|
|
1886
|
+
@car_rental = car_rental
|
|
1887
|
+
@car_rental_data = car_rental_data
|
|
268
1888
|
@customer_reference = customer_reference
|
|
1889
|
+
@event_details = event_details
|
|
1890
|
+
@flight = flight
|
|
1891
|
+
@flight_data = flight_data
|
|
1892
|
+
@lodging = lodging
|
|
1893
|
+
@lodging_data = lodging_data
|
|
269
1894
|
@order_reference = order_reference
|
|
1895
|
+
@subscription = subscription
|
|
270
1896
|
end
|
|
271
1897
|
end
|
|
272
1898
|
|
|
@@ -407,8 +2033,18 @@ module Stripe
|
|
|
407
2033
|
end
|
|
408
2034
|
|
|
409
2035
|
class Giropay < ::Stripe::RequestParams; end
|
|
2036
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
410
2037
|
class Grabpay < ::Stripe::RequestParams; end
|
|
411
2038
|
|
|
2039
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2040
|
+
# Bank where the account is held.
|
|
2041
|
+
attr_accessor :bank
|
|
2042
|
+
|
|
2043
|
+
def initialize(bank: nil)
|
|
2044
|
+
@bank = bank
|
|
2045
|
+
end
|
|
2046
|
+
end
|
|
2047
|
+
|
|
412
2048
|
class Ideal < ::Stripe::RequestParams
|
|
413
2049
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
414
2050
|
attr_accessor :bank
|
|
@@ -506,6 +2142,7 @@ module Stripe
|
|
|
506
2142
|
class Payco < ::Stripe::RequestParams; end
|
|
507
2143
|
class Paynow < ::Stripe::RequestParams; end
|
|
508
2144
|
class Paypal < ::Stripe::RequestParams; end
|
|
2145
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
509
2146
|
|
|
510
2147
|
class Payto < ::Stripe::RequestParams
|
|
511
2148
|
# The account number for the bank account.
|
|
@@ -524,6 +2161,7 @@ module Stripe
|
|
|
524
2161
|
|
|
525
2162
|
class Pix < ::Stripe::RequestParams; end
|
|
526
2163
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2164
|
+
class Qris < ::Stripe::RequestParams; end
|
|
527
2165
|
|
|
528
2166
|
class RadarOptions < ::Stripe::RequestParams
|
|
529
2167
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -534,6 +2172,29 @@ module Stripe
|
|
|
534
2172
|
end
|
|
535
2173
|
end
|
|
536
2174
|
|
|
2175
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2176
|
+
class Dob < ::Stripe::RequestParams
|
|
2177
|
+
# The day of birth, between 1 and 31.
|
|
2178
|
+
attr_accessor :day
|
|
2179
|
+
# The month of birth, between 1 and 12.
|
|
2180
|
+
attr_accessor :month
|
|
2181
|
+
# The four-digit year of birth.
|
|
2182
|
+
attr_accessor :year
|
|
2183
|
+
|
|
2184
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2185
|
+
@day = day
|
|
2186
|
+
@month = month
|
|
2187
|
+
@year = year
|
|
2188
|
+
end
|
|
2189
|
+
end
|
|
2190
|
+
# Customer's date of birth
|
|
2191
|
+
attr_accessor :dob
|
|
2192
|
+
|
|
2193
|
+
def initialize(dob: nil)
|
|
2194
|
+
@dob = dob
|
|
2195
|
+
end
|
|
2196
|
+
end
|
|
2197
|
+
|
|
537
2198
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
538
2199
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
539
2200
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -547,6 +2208,8 @@ module Stripe
|
|
|
547
2208
|
end
|
|
548
2209
|
end
|
|
549
2210
|
|
|
2211
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2212
|
+
|
|
550
2213
|
class Sofort < ::Stripe::RequestParams
|
|
551
2214
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
552
2215
|
attr_accessor :country
|
|
@@ -556,6 +2219,18 @@ module Stripe
|
|
|
556
2219
|
end
|
|
557
2220
|
end
|
|
558
2221
|
|
|
2222
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2223
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2224
|
+
attr_accessor :account
|
|
2225
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
2226
|
+
attr_accessor :source_type
|
|
2227
|
+
|
|
2228
|
+
def initialize(account: nil, source_type: nil)
|
|
2229
|
+
@account = account
|
|
2230
|
+
@source_type = source_type
|
|
2231
|
+
end
|
|
2232
|
+
end
|
|
2233
|
+
|
|
559
2234
|
class Swish < ::Stripe::RequestParams; end
|
|
560
2235
|
class Twint < ::Stripe::RequestParams; end
|
|
561
2236
|
|
|
@@ -628,8 +2303,12 @@ module Stripe
|
|
|
628
2303
|
attr_accessor :fpx
|
|
629
2304
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
630
2305
|
attr_accessor :giropay
|
|
2306
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2307
|
+
attr_accessor :gopay
|
|
631
2308
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
632
2309
|
attr_accessor :grabpay
|
|
2310
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2311
|
+
attr_accessor :id_bank_transfer
|
|
633
2312
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
634
2313
|
attr_accessor :ideal
|
|
635
2314
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -668,14 +2347,20 @@ module Stripe
|
|
|
668
2347
|
attr_accessor :paynow
|
|
669
2348
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
670
2349
|
attr_accessor :paypal
|
|
2350
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2351
|
+
attr_accessor :paypay
|
|
671
2352
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
672
2353
|
attr_accessor :payto
|
|
673
2354
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
674
2355
|
attr_accessor :pix
|
|
675
2356
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
676
2357
|
attr_accessor :promptpay
|
|
2358
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2359
|
+
attr_accessor :qris
|
|
677
2360
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
678
2361
|
attr_accessor :radar_options
|
|
2362
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2363
|
+
attr_accessor :rechnung
|
|
679
2364
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
680
2365
|
attr_accessor :revolut_pay
|
|
681
2366
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -684,8 +2369,12 @@ module Stripe
|
|
|
684
2369
|
attr_accessor :satispay
|
|
685
2370
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
686
2371
|
attr_accessor :sepa_debit
|
|
2372
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2373
|
+
attr_accessor :shopeepay
|
|
687
2374
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
688
2375
|
attr_accessor :sofort
|
|
2376
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2377
|
+
attr_accessor :stripe_balance
|
|
689
2378
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
690
2379
|
attr_accessor :swish
|
|
691
2380
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -720,7 +2409,9 @@ module Stripe
|
|
|
720
2409
|
eps: nil,
|
|
721
2410
|
fpx: nil,
|
|
722
2411
|
giropay: nil,
|
|
2412
|
+
gopay: nil,
|
|
723
2413
|
grabpay: nil,
|
|
2414
|
+
id_bank_transfer: nil,
|
|
724
2415
|
ideal: nil,
|
|
725
2416
|
interac_present: nil,
|
|
726
2417
|
kakao_pay: nil,
|
|
@@ -740,15 +2431,20 @@ module Stripe
|
|
|
740
2431
|
payco: nil,
|
|
741
2432
|
paynow: nil,
|
|
742
2433
|
paypal: nil,
|
|
2434
|
+
paypay: nil,
|
|
743
2435
|
payto: nil,
|
|
744
2436
|
pix: nil,
|
|
745
2437
|
promptpay: nil,
|
|
2438
|
+
qris: nil,
|
|
746
2439
|
radar_options: nil,
|
|
2440
|
+
rechnung: nil,
|
|
747
2441
|
revolut_pay: nil,
|
|
748
2442
|
samsung_pay: nil,
|
|
749
2443
|
satispay: nil,
|
|
750
2444
|
sepa_debit: nil,
|
|
2445
|
+
shopeepay: nil,
|
|
751
2446
|
sofort: nil,
|
|
2447
|
+
stripe_balance: nil,
|
|
752
2448
|
swish: nil,
|
|
753
2449
|
twint: nil,
|
|
754
2450
|
type: nil,
|
|
@@ -776,7 +2472,9 @@ module Stripe
|
|
|
776
2472
|
@eps = eps
|
|
777
2473
|
@fpx = fpx
|
|
778
2474
|
@giropay = giropay
|
|
2475
|
+
@gopay = gopay
|
|
779
2476
|
@grabpay = grabpay
|
|
2477
|
+
@id_bank_transfer = id_bank_transfer
|
|
780
2478
|
@ideal = ideal
|
|
781
2479
|
@interac_present = interac_present
|
|
782
2480
|
@kakao_pay = kakao_pay
|
|
@@ -796,15 +2494,20 @@ module Stripe
|
|
|
796
2494
|
@payco = payco
|
|
797
2495
|
@paynow = paynow
|
|
798
2496
|
@paypal = paypal
|
|
2497
|
+
@paypay = paypay
|
|
799
2498
|
@payto = payto
|
|
800
2499
|
@pix = pix
|
|
801
2500
|
@promptpay = promptpay
|
|
2501
|
+
@qris = qris
|
|
802
2502
|
@radar_options = radar_options
|
|
2503
|
+
@rechnung = rechnung
|
|
803
2504
|
@revolut_pay = revolut_pay
|
|
804
2505
|
@samsung_pay = samsung_pay
|
|
805
2506
|
@satispay = satispay
|
|
806
2507
|
@sepa_debit = sepa_debit
|
|
2508
|
+
@shopeepay = shopeepay
|
|
807
2509
|
@sofort = sofort
|
|
2510
|
+
@stripe_balance = stripe_balance
|
|
808
2511
|
@swish = swish
|
|
809
2512
|
@twint = twint
|
|
810
2513
|
@type = type
|
|
@@ -1175,6 +2878,48 @@ module Stripe
|
|
|
1175
2878
|
end
|
|
1176
2879
|
end
|
|
1177
2880
|
|
|
2881
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2882
|
+
class Address < ::Stripe::RequestParams
|
|
2883
|
+
# City, district, suburb, town, or village.
|
|
2884
|
+
attr_accessor :city
|
|
2885
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2886
|
+
attr_accessor :country
|
|
2887
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2888
|
+
attr_accessor :line1
|
|
2889
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2890
|
+
attr_accessor :line2
|
|
2891
|
+
# ZIP or postal code.
|
|
2892
|
+
attr_accessor :postal_code
|
|
2893
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2894
|
+
attr_accessor :state
|
|
2895
|
+
|
|
2896
|
+
def initialize(
|
|
2897
|
+
city: nil,
|
|
2898
|
+
country: nil,
|
|
2899
|
+
line1: nil,
|
|
2900
|
+
line2: nil,
|
|
2901
|
+
postal_code: nil,
|
|
2902
|
+
state: nil
|
|
2903
|
+
)
|
|
2904
|
+
@city = city
|
|
2905
|
+
@country = country
|
|
2906
|
+
@line1 = line1
|
|
2907
|
+
@line2 = line2
|
|
2908
|
+
@postal_code = postal_code
|
|
2909
|
+
@state = state
|
|
2910
|
+
end
|
|
2911
|
+
end
|
|
2912
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2913
|
+
attr_accessor :address
|
|
2914
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2915
|
+
attr_accessor :phone
|
|
2916
|
+
|
|
2917
|
+
def initialize(address: nil, phone: nil)
|
|
2918
|
+
@address = address
|
|
2919
|
+
@phone = phone
|
|
2920
|
+
end
|
|
2921
|
+
end
|
|
2922
|
+
|
|
1178
2923
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1179
2924
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1180
2925
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1269,6 +3014,8 @@ module Stripe
|
|
|
1269
3014
|
attr_accessor :moto
|
|
1270
3015
|
# 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.
|
|
1271
3016
|
attr_accessor :network
|
|
3017
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3018
|
+
attr_accessor :request_decremental_authorization
|
|
1272
3019
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1273
3020
|
attr_accessor :request_extended_authorization
|
|
1274
3021
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1277,6 +3024,8 @@ module Stripe
|
|
|
1277
3024
|
attr_accessor :request_multicapture
|
|
1278
3025
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1279
3026
|
attr_accessor :request_overcapture
|
|
3027
|
+
# Request partial authorization on this PaymentIntent.
|
|
3028
|
+
attr_accessor :request_partial_authorization
|
|
1280
3029
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1281
3030
|
attr_accessor :request_three_d_secure
|
|
1282
3031
|
# 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).
|
|
@@ -1295,6 +3044,8 @@ module Stripe
|
|
|
1295
3044
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1296
3045
|
# 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.
|
|
1297
3046
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3047
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3048
|
+
attr_accessor :statement_details
|
|
1298
3049
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1299
3050
|
# the authentication details to use for this payment.
|
|
1300
3051
|
attr_accessor :three_d_secure
|
|
@@ -1306,15 +3057,18 @@ module Stripe
|
|
|
1306
3057
|
mandate_options: nil,
|
|
1307
3058
|
moto: nil,
|
|
1308
3059
|
network: nil,
|
|
3060
|
+
request_decremental_authorization: nil,
|
|
1309
3061
|
request_extended_authorization: nil,
|
|
1310
3062
|
request_incremental_authorization: nil,
|
|
1311
3063
|
request_multicapture: nil,
|
|
1312
3064
|
request_overcapture: nil,
|
|
3065
|
+
request_partial_authorization: nil,
|
|
1313
3066
|
request_three_d_secure: nil,
|
|
1314
3067
|
require_cvc_recollection: nil,
|
|
1315
3068
|
setup_future_usage: nil,
|
|
1316
3069
|
statement_descriptor_suffix_kana: nil,
|
|
1317
3070
|
statement_descriptor_suffix_kanji: nil,
|
|
3071
|
+
statement_details: nil,
|
|
1318
3072
|
three_d_secure: nil
|
|
1319
3073
|
)
|
|
1320
3074
|
@capture_method = capture_method
|
|
@@ -1323,15 +3077,18 @@ module Stripe
|
|
|
1323
3077
|
@mandate_options = mandate_options
|
|
1324
3078
|
@moto = moto
|
|
1325
3079
|
@network = network
|
|
3080
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1326
3081
|
@request_extended_authorization = request_extended_authorization
|
|
1327
3082
|
@request_incremental_authorization = request_incremental_authorization
|
|
1328
3083
|
@request_multicapture = request_multicapture
|
|
1329
3084
|
@request_overcapture = request_overcapture
|
|
3085
|
+
@request_partial_authorization = request_partial_authorization
|
|
1330
3086
|
@request_three_d_secure = request_three_d_secure
|
|
1331
3087
|
@require_cvc_recollection = require_cvc_recollection
|
|
1332
3088
|
@setup_future_usage = setup_future_usage
|
|
1333
3089
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1334
3090
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3091
|
+
@statement_details = statement_details
|
|
1335
3092
|
@three_d_secure = three_d_secure
|
|
1336
3093
|
end
|
|
1337
3094
|
end
|
|
@@ -1452,14 +3209,31 @@ module Stripe
|
|
|
1452
3209
|
# 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`.
|
|
1453
3210
|
attr_accessor :setup_future_usage
|
|
1454
3211
|
|
|
1455
|
-
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
1456
|
-
@bank_transfer = bank_transfer
|
|
1457
|
-
@funding_type = funding_type
|
|
3212
|
+
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
|
3213
|
+
@bank_transfer = bank_transfer
|
|
3214
|
+
@funding_type = funding_type
|
|
3215
|
+
@setup_future_usage = setup_future_usage
|
|
3216
|
+
end
|
|
3217
|
+
end
|
|
3218
|
+
|
|
3219
|
+
class Eps < ::Stripe::RequestParams
|
|
3220
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3221
|
+
#
|
|
3222
|
+
# 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.
|
|
3223
|
+
#
|
|
3224
|
+
# 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.
|
|
3225
|
+
#
|
|
3226
|
+
# 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).
|
|
3227
|
+
#
|
|
3228
|
+
# 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`.
|
|
3229
|
+
attr_accessor :setup_future_usage
|
|
3230
|
+
|
|
3231
|
+
def initialize(setup_future_usage: nil)
|
|
1458
3232
|
@setup_future_usage = setup_future_usage
|
|
1459
3233
|
end
|
|
1460
3234
|
end
|
|
1461
3235
|
|
|
1462
|
-
class
|
|
3236
|
+
class Fpx < ::Stripe::RequestParams
|
|
1463
3237
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1464
3238
|
#
|
|
1465
3239
|
# 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.
|
|
@@ -1476,7 +3250,7 @@ module Stripe
|
|
|
1476
3250
|
end
|
|
1477
3251
|
end
|
|
1478
3252
|
|
|
1479
|
-
class
|
|
3253
|
+
class Giropay < ::Stripe::RequestParams
|
|
1480
3254
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1481
3255
|
#
|
|
1482
3256
|
# 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.
|
|
@@ -1493,7 +3267,7 @@ module Stripe
|
|
|
1493
3267
|
end
|
|
1494
3268
|
end
|
|
1495
3269
|
|
|
1496
|
-
class
|
|
3270
|
+
class Gopay < ::Stripe::RequestParams
|
|
1497
3271
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1498
3272
|
#
|
|
1499
3273
|
# 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.
|
|
@@ -1527,6 +3301,29 @@ module Stripe
|
|
|
1527
3301
|
end
|
|
1528
3302
|
end
|
|
1529
3303
|
|
|
3304
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3305
|
+
# 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.
|
|
3306
|
+
attr_accessor :expires_after
|
|
3307
|
+
# 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.
|
|
3308
|
+
attr_accessor :expires_at
|
|
3309
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3310
|
+
#
|
|
3311
|
+
# 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.
|
|
3312
|
+
#
|
|
3313
|
+
# 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.
|
|
3314
|
+
#
|
|
3315
|
+
# 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).
|
|
3316
|
+
#
|
|
3317
|
+
# 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`.
|
|
3318
|
+
attr_accessor :setup_future_usage
|
|
3319
|
+
|
|
3320
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3321
|
+
@expires_after = expires_after
|
|
3322
|
+
@expires_at = expires_at
|
|
3323
|
+
@setup_future_usage = setup_future_usage
|
|
3324
|
+
end
|
|
3325
|
+
end
|
|
3326
|
+
|
|
1530
3327
|
class Ideal < ::Stripe::RequestParams
|
|
1531
3328
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1532
3329
|
#
|
|
@@ -1633,6 +3430,939 @@ module Stripe
|
|
|
1633
3430
|
@reference = reference
|
|
1634
3431
|
end
|
|
1635
3432
|
end
|
|
3433
|
+
|
|
3434
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3435
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3436
|
+
class Arrival < ::Stripe::RequestParams
|
|
3437
|
+
class Address < ::Stripe::RequestParams
|
|
3438
|
+
# The city or town.
|
|
3439
|
+
attr_accessor :city
|
|
3440
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3441
|
+
attr_accessor :country
|
|
3442
|
+
# The postal code formatted according to country.
|
|
3443
|
+
attr_accessor :postal_code
|
|
3444
|
+
# The state, county, province, or region formatted according to country.
|
|
3445
|
+
attr_accessor :region
|
|
3446
|
+
# Line 1 of the street address.
|
|
3447
|
+
attr_accessor :street_address
|
|
3448
|
+
# Line 2 of the street address.
|
|
3449
|
+
attr_accessor :street_address2
|
|
3450
|
+
|
|
3451
|
+
def initialize(
|
|
3452
|
+
city: nil,
|
|
3453
|
+
country: nil,
|
|
3454
|
+
postal_code: nil,
|
|
3455
|
+
region: nil,
|
|
3456
|
+
street_address: nil,
|
|
3457
|
+
street_address2: nil
|
|
3458
|
+
)
|
|
3459
|
+
@city = city
|
|
3460
|
+
@country = country
|
|
3461
|
+
@postal_code = postal_code
|
|
3462
|
+
@region = region
|
|
3463
|
+
@street_address = street_address
|
|
3464
|
+
@street_address2 = street_address2
|
|
3465
|
+
end
|
|
3466
|
+
end
|
|
3467
|
+
# Address of the arrival location.
|
|
3468
|
+
attr_accessor :address
|
|
3469
|
+
# Identifier name or reference for the arrival location.
|
|
3470
|
+
attr_accessor :arrival_location
|
|
3471
|
+
|
|
3472
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3473
|
+
@address = address
|
|
3474
|
+
@arrival_location = arrival_location
|
|
3475
|
+
end
|
|
3476
|
+
end
|
|
3477
|
+
|
|
3478
|
+
class Departure < ::Stripe::RequestParams
|
|
3479
|
+
class Address < ::Stripe::RequestParams
|
|
3480
|
+
# The city or town.
|
|
3481
|
+
attr_accessor :city
|
|
3482
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3483
|
+
attr_accessor :country
|
|
3484
|
+
# The postal code formatted according to country.
|
|
3485
|
+
attr_accessor :postal_code
|
|
3486
|
+
# The state, county, province, or region formatted according to country.
|
|
3487
|
+
attr_accessor :region
|
|
3488
|
+
# Line 1 of the street address.
|
|
3489
|
+
attr_accessor :street_address
|
|
3490
|
+
# Line 2 of the street address.
|
|
3491
|
+
attr_accessor :street_address2
|
|
3492
|
+
|
|
3493
|
+
def initialize(
|
|
3494
|
+
city: nil,
|
|
3495
|
+
country: nil,
|
|
3496
|
+
postal_code: nil,
|
|
3497
|
+
region: nil,
|
|
3498
|
+
street_address: nil,
|
|
3499
|
+
street_address2: nil
|
|
3500
|
+
)
|
|
3501
|
+
@city = city
|
|
3502
|
+
@country = country
|
|
3503
|
+
@postal_code = postal_code
|
|
3504
|
+
@region = region
|
|
3505
|
+
@street_address = street_address
|
|
3506
|
+
@street_address2 = street_address2
|
|
3507
|
+
end
|
|
3508
|
+
end
|
|
3509
|
+
# Address of the departure location.
|
|
3510
|
+
attr_accessor :address
|
|
3511
|
+
# Timestamp of departure.
|
|
3512
|
+
attr_accessor :departs_at
|
|
3513
|
+
# Identifier name or reference for the origin location.
|
|
3514
|
+
attr_accessor :departure_location
|
|
3515
|
+
|
|
3516
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3517
|
+
@address = address
|
|
3518
|
+
@departs_at = departs_at
|
|
3519
|
+
@departure_location = departure_location
|
|
3520
|
+
end
|
|
3521
|
+
end
|
|
3522
|
+
|
|
3523
|
+
class Insurance < ::Stripe::RequestParams
|
|
3524
|
+
# Insurance currency.
|
|
3525
|
+
attr_accessor :currency
|
|
3526
|
+
# Name of the company providing the insurance.
|
|
3527
|
+
attr_accessor :insurance_company_name
|
|
3528
|
+
# Type of insurance.
|
|
3529
|
+
attr_accessor :insurance_type
|
|
3530
|
+
# Price of insurance in cents.
|
|
3531
|
+
attr_accessor :price
|
|
3532
|
+
|
|
3533
|
+
def initialize(
|
|
3534
|
+
currency: nil,
|
|
3535
|
+
insurance_company_name: nil,
|
|
3536
|
+
insurance_type: nil,
|
|
3537
|
+
price: nil
|
|
3538
|
+
)
|
|
3539
|
+
@currency = currency
|
|
3540
|
+
@insurance_company_name = insurance_company_name
|
|
3541
|
+
@insurance_type = insurance_type
|
|
3542
|
+
@price = price
|
|
3543
|
+
end
|
|
3544
|
+
end
|
|
3545
|
+
|
|
3546
|
+
class Passenger < ::Stripe::RequestParams
|
|
3547
|
+
# The family name of the person.
|
|
3548
|
+
attr_accessor :family_name
|
|
3549
|
+
# The given name of the person.
|
|
3550
|
+
attr_accessor :given_name
|
|
3551
|
+
|
|
3552
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3553
|
+
@family_name = family_name
|
|
3554
|
+
@given_name = given_name
|
|
3555
|
+
end
|
|
3556
|
+
end
|
|
3557
|
+
# Name of associated or partner company for the service.
|
|
3558
|
+
attr_accessor :affiliate_name
|
|
3559
|
+
# Arrival details.
|
|
3560
|
+
attr_accessor :arrival
|
|
3561
|
+
# Name of transportation company.
|
|
3562
|
+
attr_accessor :carrier_name
|
|
3563
|
+
# Currency.
|
|
3564
|
+
attr_accessor :currency
|
|
3565
|
+
# Departure details.
|
|
3566
|
+
attr_accessor :departure
|
|
3567
|
+
# List of insurances for this reservation.
|
|
3568
|
+
attr_accessor :insurances
|
|
3569
|
+
# List of passengers that this reservation applies to.
|
|
3570
|
+
attr_accessor :passengers
|
|
3571
|
+
# Price in cents.
|
|
3572
|
+
attr_accessor :price
|
|
3573
|
+
# Ticket class.
|
|
3574
|
+
attr_accessor :ticket_class
|
|
3575
|
+
|
|
3576
|
+
def initialize(
|
|
3577
|
+
affiliate_name: nil,
|
|
3578
|
+
arrival: nil,
|
|
3579
|
+
carrier_name: nil,
|
|
3580
|
+
currency: nil,
|
|
3581
|
+
departure: nil,
|
|
3582
|
+
insurances: nil,
|
|
3583
|
+
passengers: nil,
|
|
3584
|
+
price: nil,
|
|
3585
|
+
ticket_class: nil
|
|
3586
|
+
)
|
|
3587
|
+
@affiliate_name = affiliate_name
|
|
3588
|
+
@arrival = arrival
|
|
3589
|
+
@carrier_name = carrier_name
|
|
3590
|
+
@currency = currency
|
|
3591
|
+
@departure = departure
|
|
3592
|
+
@insurances = insurances
|
|
3593
|
+
@passengers = passengers
|
|
3594
|
+
@price = price
|
|
3595
|
+
@ticket_class = ticket_class
|
|
3596
|
+
end
|
|
3597
|
+
end
|
|
3598
|
+
|
|
3599
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3600
|
+
class Address < ::Stripe::RequestParams
|
|
3601
|
+
# The city or town.
|
|
3602
|
+
attr_accessor :city
|
|
3603
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3604
|
+
attr_accessor :country
|
|
3605
|
+
# The postal code formatted according to country.
|
|
3606
|
+
attr_accessor :postal_code
|
|
3607
|
+
# The state, county, province, or region formatted according to country.
|
|
3608
|
+
attr_accessor :region
|
|
3609
|
+
# Line 1 of the street address.
|
|
3610
|
+
attr_accessor :street_address
|
|
3611
|
+
# Line 2 of the street address.
|
|
3612
|
+
attr_accessor :street_address2
|
|
3613
|
+
|
|
3614
|
+
def initialize(
|
|
3615
|
+
city: nil,
|
|
3616
|
+
country: nil,
|
|
3617
|
+
postal_code: nil,
|
|
3618
|
+
region: nil,
|
|
3619
|
+
street_address: nil,
|
|
3620
|
+
street_address2: nil
|
|
3621
|
+
)
|
|
3622
|
+
@city = city
|
|
3623
|
+
@country = country
|
|
3624
|
+
@postal_code = postal_code
|
|
3625
|
+
@region = region
|
|
3626
|
+
@street_address = street_address
|
|
3627
|
+
@street_address2 = street_address2
|
|
3628
|
+
end
|
|
3629
|
+
end
|
|
3630
|
+
|
|
3631
|
+
class Insurance < ::Stripe::RequestParams
|
|
3632
|
+
# Insurance currency.
|
|
3633
|
+
attr_accessor :currency
|
|
3634
|
+
# Name of the company providing the insurance.
|
|
3635
|
+
attr_accessor :insurance_company_name
|
|
3636
|
+
# Type of insurance.
|
|
3637
|
+
attr_accessor :insurance_type
|
|
3638
|
+
# Price of insurance in cents.
|
|
3639
|
+
attr_accessor :price
|
|
3640
|
+
|
|
3641
|
+
def initialize(
|
|
3642
|
+
currency: nil,
|
|
3643
|
+
insurance_company_name: nil,
|
|
3644
|
+
insurance_type: nil,
|
|
3645
|
+
price: nil
|
|
3646
|
+
)
|
|
3647
|
+
@currency = currency
|
|
3648
|
+
@insurance_company_name = insurance_company_name
|
|
3649
|
+
@insurance_type = insurance_type
|
|
3650
|
+
@price = price
|
|
3651
|
+
end
|
|
3652
|
+
end
|
|
3653
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3654
|
+
attr_accessor :access_controlled_venue
|
|
3655
|
+
# Address of the event.
|
|
3656
|
+
attr_accessor :address
|
|
3657
|
+
# Name of associated or partner company for the service.
|
|
3658
|
+
attr_accessor :affiliate_name
|
|
3659
|
+
# End timestamp of the event.
|
|
3660
|
+
attr_accessor :ends_at
|
|
3661
|
+
# Company selling the ticket.
|
|
3662
|
+
attr_accessor :event_company_name
|
|
3663
|
+
# Name of the event.
|
|
3664
|
+
attr_accessor :event_name
|
|
3665
|
+
# Type of the event.
|
|
3666
|
+
attr_accessor :event_type
|
|
3667
|
+
# List of insurances for this event.
|
|
3668
|
+
attr_accessor :insurances
|
|
3669
|
+
# Start timestamp of the event.
|
|
3670
|
+
attr_accessor :starts_at
|
|
3671
|
+
# Name of the venue where the event takes place.
|
|
3672
|
+
attr_accessor :venue_name
|
|
3673
|
+
|
|
3674
|
+
def initialize(
|
|
3675
|
+
access_controlled_venue: nil,
|
|
3676
|
+
address: nil,
|
|
3677
|
+
affiliate_name: nil,
|
|
3678
|
+
ends_at: nil,
|
|
3679
|
+
event_company_name: nil,
|
|
3680
|
+
event_name: nil,
|
|
3681
|
+
event_type: nil,
|
|
3682
|
+
insurances: nil,
|
|
3683
|
+
starts_at: nil,
|
|
3684
|
+
venue_name: nil
|
|
3685
|
+
)
|
|
3686
|
+
@access_controlled_venue = access_controlled_venue
|
|
3687
|
+
@address = address
|
|
3688
|
+
@affiliate_name = affiliate_name
|
|
3689
|
+
@ends_at = ends_at
|
|
3690
|
+
@event_company_name = event_company_name
|
|
3691
|
+
@event_name = event_name
|
|
3692
|
+
@event_type = event_type
|
|
3693
|
+
@insurances = insurances
|
|
3694
|
+
@starts_at = starts_at
|
|
3695
|
+
@venue_name = venue_name
|
|
3696
|
+
end
|
|
3697
|
+
end
|
|
3698
|
+
|
|
3699
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3700
|
+
class Arrival < ::Stripe::RequestParams
|
|
3701
|
+
class Address < ::Stripe::RequestParams
|
|
3702
|
+
# The city or town.
|
|
3703
|
+
attr_accessor :city
|
|
3704
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3705
|
+
attr_accessor :country
|
|
3706
|
+
# The postal code formatted according to country.
|
|
3707
|
+
attr_accessor :postal_code
|
|
3708
|
+
# The state, county, province, or region formatted according to country.
|
|
3709
|
+
attr_accessor :region
|
|
3710
|
+
# Line 1 of the street address.
|
|
3711
|
+
attr_accessor :street_address
|
|
3712
|
+
# Line 2 of the street address.
|
|
3713
|
+
attr_accessor :street_address2
|
|
3714
|
+
|
|
3715
|
+
def initialize(
|
|
3716
|
+
city: nil,
|
|
3717
|
+
country: nil,
|
|
3718
|
+
postal_code: nil,
|
|
3719
|
+
region: nil,
|
|
3720
|
+
street_address: nil,
|
|
3721
|
+
street_address2: nil
|
|
3722
|
+
)
|
|
3723
|
+
@city = city
|
|
3724
|
+
@country = country
|
|
3725
|
+
@postal_code = postal_code
|
|
3726
|
+
@region = region
|
|
3727
|
+
@street_address = street_address
|
|
3728
|
+
@street_address2 = street_address2
|
|
3729
|
+
end
|
|
3730
|
+
end
|
|
3731
|
+
# Address of the arrival location.
|
|
3732
|
+
attr_accessor :address
|
|
3733
|
+
# Identifier name or reference for the arrival location.
|
|
3734
|
+
attr_accessor :arrival_location
|
|
3735
|
+
|
|
3736
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3737
|
+
@address = address
|
|
3738
|
+
@arrival_location = arrival_location
|
|
3739
|
+
end
|
|
3740
|
+
end
|
|
3741
|
+
|
|
3742
|
+
class Departure < ::Stripe::RequestParams
|
|
3743
|
+
class Address < ::Stripe::RequestParams
|
|
3744
|
+
# The city or town.
|
|
3745
|
+
attr_accessor :city
|
|
3746
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3747
|
+
attr_accessor :country
|
|
3748
|
+
# The postal code formatted according to country.
|
|
3749
|
+
attr_accessor :postal_code
|
|
3750
|
+
# The state, county, province, or region formatted according to country.
|
|
3751
|
+
attr_accessor :region
|
|
3752
|
+
# Line 1 of the street address.
|
|
3753
|
+
attr_accessor :street_address
|
|
3754
|
+
# Line 2 of the street address.
|
|
3755
|
+
attr_accessor :street_address2
|
|
3756
|
+
|
|
3757
|
+
def initialize(
|
|
3758
|
+
city: nil,
|
|
3759
|
+
country: nil,
|
|
3760
|
+
postal_code: nil,
|
|
3761
|
+
region: nil,
|
|
3762
|
+
street_address: nil,
|
|
3763
|
+
street_address2: nil
|
|
3764
|
+
)
|
|
3765
|
+
@city = city
|
|
3766
|
+
@country = country
|
|
3767
|
+
@postal_code = postal_code
|
|
3768
|
+
@region = region
|
|
3769
|
+
@street_address = street_address
|
|
3770
|
+
@street_address2 = street_address2
|
|
3771
|
+
end
|
|
3772
|
+
end
|
|
3773
|
+
# Address of the departure location.
|
|
3774
|
+
attr_accessor :address
|
|
3775
|
+
# Timestamp of departure.
|
|
3776
|
+
attr_accessor :departs_at
|
|
3777
|
+
# Identifier name or reference for the origin location.
|
|
3778
|
+
attr_accessor :departure_location
|
|
3779
|
+
|
|
3780
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3781
|
+
@address = address
|
|
3782
|
+
@departs_at = departs_at
|
|
3783
|
+
@departure_location = departure_location
|
|
3784
|
+
end
|
|
3785
|
+
end
|
|
3786
|
+
|
|
3787
|
+
class Insurance < ::Stripe::RequestParams
|
|
3788
|
+
# Insurance currency.
|
|
3789
|
+
attr_accessor :currency
|
|
3790
|
+
# Name of the company providing the insurance.
|
|
3791
|
+
attr_accessor :insurance_company_name
|
|
3792
|
+
# Type of insurance.
|
|
3793
|
+
attr_accessor :insurance_type
|
|
3794
|
+
# Price of insurance in cents.
|
|
3795
|
+
attr_accessor :price
|
|
3796
|
+
|
|
3797
|
+
def initialize(
|
|
3798
|
+
currency: nil,
|
|
3799
|
+
insurance_company_name: nil,
|
|
3800
|
+
insurance_type: nil,
|
|
3801
|
+
price: nil
|
|
3802
|
+
)
|
|
3803
|
+
@currency = currency
|
|
3804
|
+
@insurance_company_name = insurance_company_name
|
|
3805
|
+
@insurance_type = insurance_type
|
|
3806
|
+
@price = price
|
|
3807
|
+
end
|
|
3808
|
+
end
|
|
3809
|
+
|
|
3810
|
+
class Passenger < ::Stripe::RequestParams
|
|
3811
|
+
# The family name of the person.
|
|
3812
|
+
attr_accessor :family_name
|
|
3813
|
+
# The given name of the person.
|
|
3814
|
+
attr_accessor :given_name
|
|
3815
|
+
|
|
3816
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3817
|
+
@family_name = family_name
|
|
3818
|
+
@given_name = given_name
|
|
3819
|
+
end
|
|
3820
|
+
end
|
|
3821
|
+
# Name of associated or partner company for the service.
|
|
3822
|
+
attr_accessor :affiliate_name
|
|
3823
|
+
# Arrival details.
|
|
3824
|
+
attr_accessor :arrival
|
|
3825
|
+
# Name of transportation company.
|
|
3826
|
+
attr_accessor :carrier_name
|
|
3827
|
+
# Currency.
|
|
3828
|
+
attr_accessor :currency
|
|
3829
|
+
# Departure details.
|
|
3830
|
+
attr_accessor :departure
|
|
3831
|
+
# List of insurances for this reservation.
|
|
3832
|
+
attr_accessor :insurances
|
|
3833
|
+
# List of passengers that this reservation applies to.
|
|
3834
|
+
attr_accessor :passengers
|
|
3835
|
+
# Price in cents.
|
|
3836
|
+
attr_accessor :price
|
|
3837
|
+
# Ticket class.
|
|
3838
|
+
attr_accessor :ticket_class
|
|
3839
|
+
|
|
3840
|
+
def initialize(
|
|
3841
|
+
affiliate_name: nil,
|
|
3842
|
+
arrival: nil,
|
|
3843
|
+
carrier_name: nil,
|
|
3844
|
+
currency: nil,
|
|
3845
|
+
departure: nil,
|
|
3846
|
+
insurances: nil,
|
|
3847
|
+
passengers: nil,
|
|
3848
|
+
price: nil,
|
|
3849
|
+
ticket_class: nil
|
|
3850
|
+
)
|
|
3851
|
+
@affiliate_name = affiliate_name
|
|
3852
|
+
@arrival = arrival
|
|
3853
|
+
@carrier_name = carrier_name
|
|
3854
|
+
@currency = currency
|
|
3855
|
+
@departure = departure
|
|
3856
|
+
@insurances = insurances
|
|
3857
|
+
@passengers = passengers
|
|
3858
|
+
@price = price
|
|
3859
|
+
@ticket_class = ticket_class
|
|
3860
|
+
end
|
|
3861
|
+
end
|
|
3862
|
+
|
|
3863
|
+
class Insurance < ::Stripe::RequestParams
|
|
3864
|
+
# Insurance currency.
|
|
3865
|
+
attr_accessor :currency
|
|
3866
|
+
# Name of the company providing the insurance.
|
|
3867
|
+
attr_accessor :insurance_company_name
|
|
3868
|
+
# Type of insurance
|
|
3869
|
+
attr_accessor :insurance_type
|
|
3870
|
+
# Price of insurance in cents.
|
|
3871
|
+
attr_accessor :price
|
|
3872
|
+
|
|
3873
|
+
def initialize(
|
|
3874
|
+
currency: nil,
|
|
3875
|
+
insurance_company_name: nil,
|
|
3876
|
+
insurance_type: nil,
|
|
3877
|
+
price: nil
|
|
3878
|
+
)
|
|
3879
|
+
@currency = currency
|
|
3880
|
+
@insurance_company_name = insurance_company_name
|
|
3881
|
+
@insurance_type = insurance_type
|
|
3882
|
+
@price = price
|
|
3883
|
+
end
|
|
3884
|
+
end
|
|
3885
|
+
|
|
3886
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3887
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3888
|
+
# The city or town.
|
|
3889
|
+
attr_accessor :city
|
|
3890
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3891
|
+
attr_accessor :country
|
|
3892
|
+
# The postal code formatted according to country.
|
|
3893
|
+
attr_accessor :postal_code
|
|
3894
|
+
# The state, county, province, or region formatted according to country.
|
|
3895
|
+
attr_accessor :region
|
|
3896
|
+
# Line 1 of the street address.
|
|
3897
|
+
attr_accessor :street_address
|
|
3898
|
+
# Line 2 of the street address.
|
|
3899
|
+
attr_accessor :street_address2
|
|
3900
|
+
|
|
3901
|
+
def initialize(
|
|
3902
|
+
city: nil,
|
|
3903
|
+
country: nil,
|
|
3904
|
+
postal_code: nil,
|
|
3905
|
+
region: nil,
|
|
3906
|
+
street_address: nil,
|
|
3907
|
+
street_address2: nil
|
|
3908
|
+
)
|
|
3909
|
+
@city = city
|
|
3910
|
+
@country = country
|
|
3911
|
+
@postal_code = postal_code
|
|
3912
|
+
@region = region
|
|
3913
|
+
@street_address = street_address
|
|
3914
|
+
@street_address2 = street_address2
|
|
3915
|
+
end
|
|
3916
|
+
end
|
|
3917
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3918
|
+
attr_accessor :line_item_references
|
|
3919
|
+
# The address of the selling or delivering merchant.
|
|
3920
|
+
attr_accessor :marketplace_seller_address
|
|
3921
|
+
# The name of the marketplace seller.
|
|
3922
|
+
attr_accessor :marketplace_seller_name
|
|
3923
|
+
# The unique identifier for the marketplace seller.
|
|
3924
|
+
attr_accessor :marketplace_seller_reference
|
|
3925
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3926
|
+
attr_accessor :number_of_transactions
|
|
3927
|
+
# The category of the product.
|
|
3928
|
+
attr_accessor :product_category
|
|
3929
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
3930
|
+
attr_accessor :seller_last_login_at
|
|
3931
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3932
|
+
attr_accessor :seller_rating
|
|
3933
|
+
# The date when the seller's account with the marketplace was created.
|
|
3934
|
+
attr_accessor :seller_registered_at
|
|
3935
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
3936
|
+
attr_accessor :seller_updated_at
|
|
3937
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3938
|
+
attr_accessor :shipping_references
|
|
3939
|
+
# The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
|
|
3940
|
+
attr_accessor :volume_of_transactions
|
|
3941
|
+
|
|
3942
|
+
def initialize(
|
|
3943
|
+
line_item_references: nil,
|
|
3944
|
+
marketplace_seller_address: nil,
|
|
3945
|
+
marketplace_seller_name: nil,
|
|
3946
|
+
marketplace_seller_reference: nil,
|
|
3947
|
+
number_of_transactions: nil,
|
|
3948
|
+
product_category: nil,
|
|
3949
|
+
seller_last_login_at: nil,
|
|
3950
|
+
seller_rating: nil,
|
|
3951
|
+
seller_registered_at: nil,
|
|
3952
|
+
seller_updated_at: nil,
|
|
3953
|
+
shipping_references: nil,
|
|
3954
|
+
volume_of_transactions: nil
|
|
3955
|
+
)
|
|
3956
|
+
@line_item_references = line_item_references
|
|
3957
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
3958
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
3959
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
3960
|
+
@number_of_transactions = number_of_transactions
|
|
3961
|
+
@product_category = product_category
|
|
3962
|
+
@seller_last_login_at = seller_last_login_at
|
|
3963
|
+
@seller_rating = seller_rating
|
|
3964
|
+
@seller_registered_at = seller_registered_at
|
|
3965
|
+
@seller_updated_at = seller_updated_at
|
|
3966
|
+
@shipping_references = shipping_references
|
|
3967
|
+
@volume_of_transactions = volume_of_transactions
|
|
3968
|
+
end
|
|
3969
|
+
end
|
|
3970
|
+
|
|
3971
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
3972
|
+
class Arrival < ::Stripe::RequestParams
|
|
3973
|
+
class Address < ::Stripe::RequestParams
|
|
3974
|
+
# The city or town.
|
|
3975
|
+
attr_accessor :city
|
|
3976
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3977
|
+
attr_accessor :country
|
|
3978
|
+
# The postal code formatted according to country.
|
|
3979
|
+
attr_accessor :postal_code
|
|
3980
|
+
# The state, county, province, or region formatted according to country.
|
|
3981
|
+
attr_accessor :region
|
|
3982
|
+
# Line 1 of the street address.
|
|
3983
|
+
attr_accessor :street_address
|
|
3984
|
+
# Line 2 of the street address.
|
|
3985
|
+
attr_accessor :street_address2
|
|
3986
|
+
|
|
3987
|
+
def initialize(
|
|
3988
|
+
city: nil,
|
|
3989
|
+
country: nil,
|
|
3990
|
+
postal_code: nil,
|
|
3991
|
+
region: nil,
|
|
3992
|
+
street_address: nil,
|
|
3993
|
+
street_address2: nil
|
|
3994
|
+
)
|
|
3995
|
+
@city = city
|
|
3996
|
+
@country = country
|
|
3997
|
+
@postal_code = postal_code
|
|
3998
|
+
@region = region
|
|
3999
|
+
@street_address = street_address
|
|
4000
|
+
@street_address2 = street_address2
|
|
4001
|
+
end
|
|
4002
|
+
end
|
|
4003
|
+
# Address of the arrival location.
|
|
4004
|
+
attr_accessor :address
|
|
4005
|
+
# Identifier name or reference for the arrival location.
|
|
4006
|
+
attr_accessor :arrival_location
|
|
4007
|
+
|
|
4008
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4009
|
+
@address = address
|
|
4010
|
+
@arrival_location = arrival_location
|
|
4011
|
+
end
|
|
4012
|
+
end
|
|
4013
|
+
|
|
4014
|
+
class Departure < ::Stripe::RequestParams
|
|
4015
|
+
class Address < ::Stripe::RequestParams
|
|
4016
|
+
# The city or town.
|
|
4017
|
+
attr_accessor :city
|
|
4018
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4019
|
+
attr_accessor :country
|
|
4020
|
+
# The postal code formatted according to country.
|
|
4021
|
+
attr_accessor :postal_code
|
|
4022
|
+
# The state, county, province, or region formatted according to country.
|
|
4023
|
+
attr_accessor :region
|
|
4024
|
+
# Line 1 of the street address.
|
|
4025
|
+
attr_accessor :street_address
|
|
4026
|
+
# Line 2 of the street address.
|
|
4027
|
+
attr_accessor :street_address2
|
|
4028
|
+
|
|
4029
|
+
def initialize(
|
|
4030
|
+
city: nil,
|
|
4031
|
+
country: nil,
|
|
4032
|
+
postal_code: nil,
|
|
4033
|
+
region: nil,
|
|
4034
|
+
street_address: nil,
|
|
4035
|
+
street_address2: nil
|
|
4036
|
+
)
|
|
4037
|
+
@city = city
|
|
4038
|
+
@country = country
|
|
4039
|
+
@postal_code = postal_code
|
|
4040
|
+
@region = region
|
|
4041
|
+
@street_address = street_address
|
|
4042
|
+
@street_address2 = street_address2
|
|
4043
|
+
end
|
|
4044
|
+
end
|
|
4045
|
+
# Address of the departure location.
|
|
4046
|
+
attr_accessor :address
|
|
4047
|
+
# Timestamp of departure.
|
|
4048
|
+
attr_accessor :departs_at
|
|
4049
|
+
# Identifier name or reference for the origin location.
|
|
4050
|
+
attr_accessor :departure_location
|
|
4051
|
+
|
|
4052
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4053
|
+
@address = address
|
|
4054
|
+
@departs_at = departs_at
|
|
4055
|
+
@departure_location = departure_location
|
|
4056
|
+
end
|
|
4057
|
+
end
|
|
4058
|
+
|
|
4059
|
+
class Insurance < ::Stripe::RequestParams
|
|
4060
|
+
# Insurance currency.
|
|
4061
|
+
attr_accessor :currency
|
|
4062
|
+
# Name of the company providing the insurance.
|
|
4063
|
+
attr_accessor :insurance_company_name
|
|
4064
|
+
# Type of insurance.
|
|
4065
|
+
attr_accessor :insurance_type
|
|
4066
|
+
# Price of insurance in cents.
|
|
4067
|
+
attr_accessor :price
|
|
4068
|
+
|
|
4069
|
+
def initialize(
|
|
4070
|
+
currency: nil,
|
|
4071
|
+
insurance_company_name: nil,
|
|
4072
|
+
insurance_type: nil,
|
|
4073
|
+
price: nil
|
|
4074
|
+
)
|
|
4075
|
+
@currency = currency
|
|
4076
|
+
@insurance_company_name = insurance_company_name
|
|
4077
|
+
@insurance_type = insurance_type
|
|
4078
|
+
@price = price
|
|
4079
|
+
end
|
|
4080
|
+
end
|
|
4081
|
+
|
|
4082
|
+
class Passenger < ::Stripe::RequestParams
|
|
4083
|
+
# The family name of the person.
|
|
4084
|
+
attr_accessor :family_name
|
|
4085
|
+
# The given name of the person.
|
|
4086
|
+
attr_accessor :given_name
|
|
4087
|
+
|
|
4088
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4089
|
+
@family_name = family_name
|
|
4090
|
+
@given_name = given_name
|
|
4091
|
+
end
|
|
4092
|
+
end
|
|
4093
|
+
# Name of associated or partner company for the service.
|
|
4094
|
+
attr_accessor :affiliate_name
|
|
4095
|
+
# Arrival details.
|
|
4096
|
+
attr_accessor :arrival
|
|
4097
|
+
# Name of transportation company.
|
|
4098
|
+
attr_accessor :carrier_name
|
|
4099
|
+
# Currency.
|
|
4100
|
+
attr_accessor :currency
|
|
4101
|
+
# Departure details.
|
|
4102
|
+
attr_accessor :departure
|
|
4103
|
+
# List of insurances for this reservation.
|
|
4104
|
+
attr_accessor :insurances
|
|
4105
|
+
# List of passengers that this reservation applies to.
|
|
4106
|
+
attr_accessor :passengers
|
|
4107
|
+
# Price in cents.
|
|
4108
|
+
attr_accessor :price
|
|
4109
|
+
# Ticket class.
|
|
4110
|
+
attr_accessor :ticket_class
|
|
4111
|
+
|
|
4112
|
+
def initialize(
|
|
4113
|
+
affiliate_name: nil,
|
|
4114
|
+
arrival: nil,
|
|
4115
|
+
carrier_name: nil,
|
|
4116
|
+
currency: nil,
|
|
4117
|
+
departure: nil,
|
|
4118
|
+
insurances: nil,
|
|
4119
|
+
passengers: nil,
|
|
4120
|
+
price: nil,
|
|
4121
|
+
ticket_class: nil
|
|
4122
|
+
)
|
|
4123
|
+
@affiliate_name = affiliate_name
|
|
4124
|
+
@arrival = arrival
|
|
4125
|
+
@carrier_name = carrier_name
|
|
4126
|
+
@currency = currency
|
|
4127
|
+
@departure = departure
|
|
4128
|
+
@insurances = insurances
|
|
4129
|
+
@passengers = passengers
|
|
4130
|
+
@price = price
|
|
4131
|
+
@ticket_class = ticket_class
|
|
4132
|
+
end
|
|
4133
|
+
end
|
|
4134
|
+
|
|
4135
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4136
|
+
class Arrival < ::Stripe::RequestParams
|
|
4137
|
+
class Address < ::Stripe::RequestParams
|
|
4138
|
+
# The city or town.
|
|
4139
|
+
attr_accessor :city
|
|
4140
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4141
|
+
attr_accessor :country
|
|
4142
|
+
# The postal code formatted according to country.
|
|
4143
|
+
attr_accessor :postal_code
|
|
4144
|
+
# The state, county, province, or region formatted according to country.
|
|
4145
|
+
attr_accessor :region
|
|
4146
|
+
# Line 1 of the street address.
|
|
4147
|
+
attr_accessor :street_address
|
|
4148
|
+
# Line 2 of the street address.
|
|
4149
|
+
attr_accessor :street_address2
|
|
4150
|
+
|
|
4151
|
+
def initialize(
|
|
4152
|
+
city: nil,
|
|
4153
|
+
country: nil,
|
|
4154
|
+
postal_code: nil,
|
|
4155
|
+
region: nil,
|
|
4156
|
+
street_address: nil,
|
|
4157
|
+
street_address2: nil
|
|
4158
|
+
)
|
|
4159
|
+
@city = city
|
|
4160
|
+
@country = country
|
|
4161
|
+
@postal_code = postal_code
|
|
4162
|
+
@region = region
|
|
4163
|
+
@street_address = street_address
|
|
4164
|
+
@street_address2 = street_address2
|
|
4165
|
+
end
|
|
4166
|
+
end
|
|
4167
|
+
# Address of the arrival location.
|
|
4168
|
+
attr_accessor :address
|
|
4169
|
+
# Identifier name or reference for the arrival location.
|
|
4170
|
+
attr_accessor :arrival_location
|
|
4171
|
+
|
|
4172
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4173
|
+
@address = address
|
|
4174
|
+
@arrival_location = arrival_location
|
|
4175
|
+
end
|
|
4176
|
+
end
|
|
4177
|
+
|
|
4178
|
+
class Departure < ::Stripe::RequestParams
|
|
4179
|
+
class Address < ::Stripe::RequestParams
|
|
4180
|
+
# The city or town.
|
|
4181
|
+
attr_accessor :city
|
|
4182
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4183
|
+
attr_accessor :country
|
|
4184
|
+
# The postal code formatted according to country.
|
|
4185
|
+
attr_accessor :postal_code
|
|
4186
|
+
# The state, county, province, or region formatted according to country.
|
|
4187
|
+
attr_accessor :region
|
|
4188
|
+
# Line 1 of the street address.
|
|
4189
|
+
attr_accessor :street_address
|
|
4190
|
+
# Line 2 of the street address.
|
|
4191
|
+
attr_accessor :street_address2
|
|
4192
|
+
|
|
4193
|
+
def initialize(
|
|
4194
|
+
city: nil,
|
|
4195
|
+
country: nil,
|
|
4196
|
+
postal_code: nil,
|
|
4197
|
+
region: nil,
|
|
4198
|
+
street_address: nil,
|
|
4199
|
+
street_address2: nil
|
|
4200
|
+
)
|
|
4201
|
+
@city = city
|
|
4202
|
+
@country = country
|
|
4203
|
+
@postal_code = postal_code
|
|
4204
|
+
@region = region
|
|
4205
|
+
@street_address = street_address
|
|
4206
|
+
@street_address2 = street_address2
|
|
4207
|
+
end
|
|
4208
|
+
end
|
|
4209
|
+
# Address of the departure location.
|
|
4210
|
+
attr_accessor :address
|
|
4211
|
+
# Timestamp of departure.
|
|
4212
|
+
attr_accessor :departs_at
|
|
4213
|
+
# Identifier name or reference for the origin location.
|
|
4214
|
+
attr_accessor :departure_location
|
|
4215
|
+
|
|
4216
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4217
|
+
@address = address
|
|
4218
|
+
@departs_at = departs_at
|
|
4219
|
+
@departure_location = departure_location
|
|
4220
|
+
end
|
|
4221
|
+
end
|
|
4222
|
+
|
|
4223
|
+
class Insurance < ::Stripe::RequestParams
|
|
4224
|
+
# Insurance currency.
|
|
4225
|
+
attr_accessor :currency
|
|
4226
|
+
# Name of the company providing the insurance.
|
|
4227
|
+
attr_accessor :insurance_company_name
|
|
4228
|
+
# Type of insurance.
|
|
4229
|
+
attr_accessor :insurance_type
|
|
4230
|
+
# Price of insurance in cents.
|
|
4231
|
+
attr_accessor :price
|
|
4232
|
+
|
|
4233
|
+
def initialize(
|
|
4234
|
+
currency: nil,
|
|
4235
|
+
insurance_company_name: nil,
|
|
4236
|
+
insurance_type: nil,
|
|
4237
|
+
price: nil
|
|
4238
|
+
)
|
|
4239
|
+
@currency = currency
|
|
4240
|
+
@insurance_company_name = insurance_company_name
|
|
4241
|
+
@insurance_type = insurance_type
|
|
4242
|
+
@price = price
|
|
4243
|
+
end
|
|
4244
|
+
end
|
|
4245
|
+
|
|
4246
|
+
class Passenger < ::Stripe::RequestParams
|
|
4247
|
+
# The family name of the person.
|
|
4248
|
+
attr_accessor :family_name
|
|
4249
|
+
# The given name of the person.
|
|
4250
|
+
attr_accessor :given_name
|
|
4251
|
+
|
|
4252
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4253
|
+
@family_name = family_name
|
|
4254
|
+
@given_name = given_name
|
|
4255
|
+
end
|
|
4256
|
+
end
|
|
4257
|
+
# Name of associated or partner company for the service.
|
|
4258
|
+
attr_accessor :affiliate_name
|
|
4259
|
+
# Arrival details.
|
|
4260
|
+
attr_accessor :arrival
|
|
4261
|
+
# Name of transportation company.
|
|
4262
|
+
attr_accessor :carrier_name
|
|
4263
|
+
# Currency.
|
|
4264
|
+
attr_accessor :currency
|
|
4265
|
+
# Departure details.
|
|
4266
|
+
attr_accessor :departure
|
|
4267
|
+
# List of insurances for this reservation.
|
|
4268
|
+
attr_accessor :insurances
|
|
4269
|
+
# List of passengers that this reservation applies to.
|
|
4270
|
+
attr_accessor :passengers
|
|
4271
|
+
# Price in cents.
|
|
4272
|
+
attr_accessor :price
|
|
4273
|
+
# Ticket class.
|
|
4274
|
+
attr_accessor :ticket_class
|
|
4275
|
+
|
|
4276
|
+
def initialize(
|
|
4277
|
+
affiliate_name: nil,
|
|
4278
|
+
arrival: nil,
|
|
4279
|
+
carrier_name: nil,
|
|
4280
|
+
currency: nil,
|
|
4281
|
+
departure: nil,
|
|
4282
|
+
insurances: nil,
|
|
4283
|
+
passengers: nil,
|
|
4284
|
+
price: nil,
|
|
4285
|
+
ticket_class: nil
|
|
4286
|
+
)
|
|
4287
|
+
@affiliate_name = affiliate_name
|
|
4288
|
+
@arrival = arrival
|
|
4289
|
+
@carrier_name = carrier_name
|
|
4290
|
+
@currency = currency
|
|
4291
|
+
@departure = departure
|
|
4292
|
+
@insurances = insurances
|
|
4293
|
+
@passengers = passengers
|
|
4294
|
+
@price = price
|
|
4295
|
+
@ticket_class = ticket_class
|
|
4296
|
+
end
|
|
4297
|
+
end
|
|
4298
|
+
|
|
4299
|
+
class Voucher < ::Stripe::RequestParams
|
|
4300
|
+
# Name of associated or partner company for this voucher.
|
|
4301
|
+
attr_accessor :affiliate_name
|
|
4302
|
+
# The voucher validity end time.
|
|
4303
|
+
attr_accessor :ends_at
|
|
4304
|
+
# The voucher validity start time.
|
|
4305
|
+
attr_accessor :starts_at
|
|
4306
|
+
# The issuer or provider of this voucher.
|
|
4307
|
+
attr_accessor :voucher_company
|
|
4308
|
+
# The name or reference to identify the voucher.
|
|
4309
|
+
attr_accessor :voucher_name
|
|
4310
|
+
# The type of this voucher.
|
|
4311
|
+
attr_accessor :voucher_type
|
|
4312
|
+
|
|
4313
|
+
def initialize(
|
|
4314
|
+
affiliate_name: nil,
|
|
4315
|
+
ends_at: nil,
|
|
4316
|
+
starts_at: nil,
|
|
4317
|
+
voucher_company: nil,
|
|
4318
|
+
voucher_name: nil,
|
|
4319
|
+
voucher_type: nil
|
|
4320
|
+
)
|
|
4321
|
+
@affiliate_name = affiliate_name
|
|
4322
|
+
@ends_at = ends_at
|
|
4323
|
+
@starts_at = starts_at
|
|
4324
|
+
@voucher_company = voucher_company
|
|
4325
|
+
@voucher_name = voucher_name
|
|
4326
|
+
@voucher_type = voucher_type
|
|
4327
|
+
end
|
|
4328
|
+
end
|
|
4329
|
+
# Supplementary bus reservation details.
|
|
4330
|
+
attr_accessor :bus_reservation_details
|
|
4331
|
+
# Supplementary event reservation details.
|
|
4332
|
+
attr_accessor :event_reservation_details
|
|
4333
|
+
# Supplementary ferry reservation details.
|
|
4334
|
+
attr_accessor :ferry_reservation_details
|
|
4335
|
+
# Supplementary insurance details.
|
|
4336
|
+
attr_accessor :insurances
|
|
4337
|
+
# Supplementary marketplace seller details.
|
|
4338
|
+
attr_accessor :marketplace_sellers
|
|
4339
|
+
# Supplementary round trip reservation details.
|
|
4340
|
+
attr_accessor :round_trip_reservation_details
|
|
4341
|
+
# Supplementary train reservation details.
|
|
4342
|
+
attr_accessor :train_reservation_details
|
|
4343
|
+
# Voucher details, such as a gift card or discount code.
|
|
4344
|
+
attr_accessor :vouchers
|
|
4345
|
+
|
|
4346
|
+
def initialize(
|
|
4347
|
+
bus_reservation_details: nil,
|
|
4348
|
+
event_reservation_details: nil,
|
|
4349
|
+
ferry_reservation_details: nil,
|
|
4350
|
+
insurances: nil,
|
|
4351
|
+
marketplace_sellers: nil,
|
|
4352
|
+
round_trip_reservation_details: nil,
|
|
4353
|
+
train_reservation_details: nil,
|
|
4354
|
+
vouchers: nil
|
|
4355
|
+
)
|
|
4356
|
+
@bus_reservation_details = bus_reservation_details
|
|
4357
|
+
@event_reservation_details = event_reservation_details
|
|
4358
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4359
|
+
@insurances = insurances
|
|
4360
|
+
@marketplace_sellers = marketplace_sellers
|
|
4361
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4362
|
+
@train_reservation_details = train_reservation_details
|
|
4363
|
+
@vouchers = vouchers
|
|
4364
|
+
end
|
|
4365
|
+
end
|
|
1636
4366
|
# Controls when the funds are captured from the customer's account.
|
|
1637
4367
|
#
|
|
1638
4368
|
# 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.
|
|
@@ -1655,19 +4385,23 @@ module Stripe
|
|
|
1655
4385
|
attr_accessor :setup_future_usage
|
|
1656
4386
|
# Subscription details if setting up or charging a subscription.
|
|
1657
4387
|
attr_accessor :subscriptions
|
|
4388
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4389
|
+
attr_accessor :supplementary_purchase_data
|
|
1658
4390
|
|
|
1659
4391
|
def initialize(
|
|
1660
4392
|
capture_method: nil,
|
|
1661
4393
|
on_demand: nil,
|
|
1662
4394
|
preferred_locale: nil,
|
|
1663
4395
|
setup_future_usage: nil,
|
|
1664
|
-
subscriptions: nil
|
|
4396
|
+
subscriptions: nil,
|
|
4397
|
+
supplementary_purchase_data: nil
|
|
1665
4398
|
)
|
|
1666
4399
|
@capture_method = capture_method
|
|
1667
4400
|
@on_demand = on_demand
|
|
1668
4401
|
@preferred_locale = preferred_locale
|
|
1669
4402
|
@setup_future_usage = setup_future_usage
|
|
1670
4403
|
@subscriptions = subscriptions
|
|
4404
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1671
4405
|
end
|
|
1672
4406
|
end
|
|
1673
4407
|
|
|
@@ -1928,12 +4662,65 @@ module Stripe
|
|
|
1928
4662
|
end
|
|
1929
4663
|
|
|
1930
4664
|
class Paypal < ::Stripe::RequestParams
|
|
4665
|
+
class LineItem < ::Stripe::RequestParams
|
|
4666
|
+
class Tax < ::Stripe::RequestParams
|
|
4667
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4668
|
+
attr_accessor :amount
|
|
4669
|
+
# The tax behavior for the line item.
|
|
4670
|
+
attr_accessor :behavior
|
|
4671
|
+
|
|
4672
|
+
def initialize(amount: nil, behavior: nil)
|
|
4673
|
+
@amount = amount
|
|
4674
|
+
@behavior = behavior
|
|
4675
|
+
end
|
|
4676
|
+
end
|
|
4677
|
+
# Type of the line item.
|
|
4678
|
+
attr_accessor :category
|
|
4679
|
+
# Description of the line item.
|
|
4680
|
+
attr_accessor :description
|
|
4681
|
+
# Descriptive name of the line item.
|
|
4682
|
+
attr_accessor :name
|
|
4683
|
+
# Quantity of the line item. Must be a positive number.
|
|
4684
|
+
attr_accessor :quantity
|
|
4685
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4686
|
+
attr_accessor :sku
|
|
4687
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4688
|
+
attr_accessor :sold_by
|
|
4689
|
+
# The tax information for the line item.
|
|
4690
|
+
attr_accessor :tax
|
|
4691
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4692
|
+
attr_accessor :unit_amount
|
|
4693
|
+
|
|
4694
|
+
def initialize(
|
|
4695
|
+
category: nil,
|
|
4696
|
+
description: nil,
|
|
4697
|
+
name: nil,
|
|
4698
|
+
quantity: nil,
|
|
4699
|
+
sku: nil,
|
|
4700
|
+
sold_by: nil,
|
|
4701
|
+
tax: nil,
|
|
4702
|
+
unit_amount: nil
|
|
4703
|
+
)
|
|
4704
|
+
@category = category
|
|
4705
|
+
@description = description
|
|
4706
|
+
@name = name
|
|
4707
|
+
@quantity = quantity
|
|
4708
|
+
@sku = sku
|
|
4709
|
+
@sold_by = sold_by
|
|
4710
|
+
@tax = tax
|
|
4711
|
+
@unit_amount = unit_amount
|
|
4712
|
+
end
|
|
4713
|
+
end
|
|
1931
4714
|
# Controls when the funds will be captured from the customer's account.
|
|
1932
4715
|
attr_accessor :capture_method
|
|
4716
|
+
# The line items purchased by the customer.
|
|
4717
|
+
attr_accessor :line_items
|
|
1933
4718
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1934
4719
|
attr_accessor :preferred_locale
|
|
1935
4720
|
# 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.
|
|
1936
4721
|
attr_accessor :reference
|
|
4722
|
+
# 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.
|
|
4723
|
+
attr_accessor :reference_id
|
|
1937
4724
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1938
4725
|
attr_accessor :risk_correlation_id
|
|
1939
4726
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1946,19 +4733,40 @@ module Stripe
|
|
|
1946
4733
|
#
|
|
1947
4734
|
# 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`.
|
|
1948
4735
|
attr_accessor :setup_future_usage
|
|
4736
|
+
# 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.
|
|
4737
|
+
attr_accessor :subsellers
|
|
1949
4738
|
|
|
1950
4739
|
def initialize(
|
|
1951
4740
|
capture_method: nil,
|
|
4741
|
+
line_items: nil,
|
|
1952
4742
|
preferred_locale: nil,
|
|
1953
4743
|
reference: nil,
|
|
4744
|
+
reference_id: nil,
|
|
1954
4745
|
risk_correlation_id: nil,
|
|
1955
|
-
setup_future_usage: nil
|
|
4746
|
+
setup_future_usage: nil,
|
|
4747
|
+
subsellers: nil
|
|
1956
4748
|
)
|
|
1957
4749
|
@capture_method = capture_method
|
|
4750
|
+
@line_items = line_items
|
|
1958
4751
|
@preferred_locale = preferred_locale
|
|
1959
4752
|
@reference = reference
|
|
4753
|
+
@reference_id = reference_id
|
|
1960
4754
|
@risk_correlation_id = risk_correlation_id
|
|
1961
4755
|
@setup_future_usage = setup_future_usage
|
|
4756
|
+
@subsellers = subsellers
|
|
4757
|
+
end
|
|
4758
|
+
end
|
|
4759
|
+
|
|
4760
|
+
class Paypay < ::Stripe::RequestParams
|
|
4761
|
+
# Controls when the funds are captured from the customer's account.
|
|
4762
|
+
#
|
|
4763
|
+
# 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.
|
|
4764
|
+
#
|
|
4765
|
+
# 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.
|
|
4766
|
+
attr_accessor :capture_method
|
|
4767
|
+
|
|
4768
|
+
def initialize(capture_method: nil)
|
|
4769
|
+
@capture_method = capture_method
|
|
1962
4770
|
end
|
|
1963
4771
|
end
|
|
1964
4772
|
|
|
@@ -2013,12 +4821,52 @@ module Stripe
|
|
|
2013
4821
|
end
|
|
2014
4822
|
|
|
2015
4823
|
class Pix < ::Stripe::RequestParams
|
|
4824
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
4825
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
4826
|
+
attr_accessor :amount
|
|
4827
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4828
|
+
attr_accessor :amount_includes_iof
|
|
4829
|
+
# Type of amount. Defaults to `maximum`.
|
|
4830
|
+
attr_accessor :amount_type
|
|
4831
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
4832
|
+
attr_accessor :currency
|
|
4833
|
+
# 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.
|
|
4834
|
+
attr_accessor :end_date
|
|
4835
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
4836
|
+
attr_accessor :payment_schedule
|
|
4837
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
4838
|
+
attr_accessor :reference
|
|
4839
|
+
# 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.
|
|
4840
|
+
attr_accessor :start_date
|
|
4841
|
+
|
|
4842
|
+
def initialize(
|
|
4843
|
+
amount: nil,
|
|
4844
|
+
amount_includes_iof: nil,
|
|
4845
|
+
amount_type: nil,
|
|
4846
|
+
currency: nil,
|
|
4847
|
+
end_date: nil,
|
|
4848
|
+
payment_schedule: nil,
|
|
4849
|
+
reference: nil,
|
|
4850
|
+
start_date: nil
|
|
4851
|
+
)
|
|
4852
|
+
@amount = amount
|
|
4853
|
+
@amount_includes_iof = amount_includes_iof
|
|
4854
|
+
@amount_type = amount_type
|
|
4855
|
+
@currency = currency
|
|
4856
|
+
@end_date = end_date
|
|
4857
|
+
@payment_schedule = payment_schedule
|
|
4858
|
+
@reference = reference
|
|
4859
|
+
@start_date = start_date
|
|
4860
|
+
end
|
|
4861
|
+
end
|
|
2016
4862
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
2017
4863
|
attr_accessor :amount_includes_iof
|
|
2018
4864
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
2019
4865
|
attr_accessor :expires_after_seconds
|
|
2020
4866
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
2021
4867
|
attr_accessor :expires_at
|
|
4868
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4869
|
+
attr_accessor :mandate_options
|
|
2022
4870
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2023
4871
|
#
|
|
2024
4872
|
# 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.
|
|
@@ -2034,11 +4882,13 @@ module Stripe
|
|
|
2034
4882
|
amount_includes_iof: nil,
|
|
2035
4883
|
expires_after_seconds: nil,
|
|
2036
4884
|
expires_at: nil,
|
|
4885
|
+
mandate_options: nil,
|
|
2037
4886
|
setup_future_usage: nil
|
|
2038
4887
|
)
|
|
2039
4888
|
@amount_includes_iof = amount_includes_iof
|
|
2040
4889
|
@expires_after_seconds = expires_after_seconds
|
|
2041
4890
|
@expires_at = expires_at
|
|
4891
|
+
@mandate_options = mandate_options
|
|
2042
4892
|
@setup_future_usage = setup_future_usage
|
|
2043
4893
|
end
|
|
2044
4894
|
end
|
|
@@ -2060,6 +4910,25 @@ module Stripe
|
|
|
2060
4910
|
end
|
|
2061
4911
|
end
|
|
2062
4912
|
|
|
4913
|
+
class Qris < ::Stripe::RequestParams
|
|
4914
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4915
|
+
#
|
|
4916
|
+
# 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.
|
|
4917
|
+
#
|
|
4918
|
+
# 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.
|
|
4919
|
+
#
|
|
4920
|
+
# 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).
|
|
4921
|
+
#
|
|
4922
|
+
# 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`.
|
|
4923
|
+
attr_accessor :setup_future_usage
|
|
4924
|
+
|
|
4925
|
+
def initialize(setup_future_usage: nil)
|
|
4926
|
+
@setup_future_usage = setup_future_usage
|
|
4927
|
+
end
|
|
4928
|
+
end
|
|
4929
|
+
|
|
4930
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
4931
|
+
|
|
2063
4932
|
class RevolutPay < ::Stripe::RequestParams
|
|
2064
4933
|
# Controls when the funds are captured from the customer's account.
|
|
2065
4934
|
#
|
|
@@ -2139,6 +5008,23 @@ module Stripe
|
|
|
2139
5008
|
end
|
|
2140
5009
|
end
|
|
2141
5010
|
|
|
5011
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5012
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5013
|
+
#
|
|
5014
|
+
# 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.
|
|
5015
|
+
#
|
|
5016
|
+
# 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.
|
|
5017
|
+
#
|
|
5018
|
+
# 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).
|
|
5019
|
+
#
|
|
5020
|
+
# 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`.
|
|
5021
|
+
attr_accessor :setup_future_usage
|
|
5022
|
+
|
|
5023
|
+
def initialize(setup_future_usage: nil)
|
|
5024
|
+
@setup_future_usage = setup_future_usage
|
|
5025
|
+
end
|
|
5026
|
+
end
|
|
5027
|
+
|
|
2142
5028
|
class Sofort < ::Stripe::RequestParams
|
|
2143
5029
|
# Language shown to the payer on redirect.
|
|
2144
5030
|
attr_accessor :preferred_language
|
|
@@ -2159,6 +5045,23 @@ module Stripe
|
|
|
2159
5045
|
end
|
|
2160
5046
|
end
|
|
2161
5047
|
|
|
5048
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5049
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5050
|
+
#
|
|
5051
|
+
# 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.
|
|
5052
|
+
#
|
|
5053
|
+
# 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.
|
|
5054
|
+
#
|
|
5055
|
+
# 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).
|
|
5056
|
+
#
|
|
5057
|
+
# 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`.
|
|
5058
|
+
attr_accessor :setup_future_usage
|
|
5059
|
+
|
|
5060
|
+
def initialize(setup_future_usage: nil)
|
|
5061
|
+
@setup_future_usage = setup_future_usage
|
|
5062
|
+
end
|
|
5063
|
+
end
|
|
5064
|
+
|
|
2162
5065
|
class Swish < ::Stripe::RequestParams
|
|
2163
5066
|
# A reference for this payment to be displayed in the Swish app.
|
|
2164
5067
|
attr_accessor :reference
|
|
@@ -2201,13 +5104,27 @@ module Stripe
|
|
|
2201
5104
|
class Filters < ::Stripe::RequestParams
|
|
2202
5105
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2203
5106
|
attr_accessor :account_subcategories
|
|
5107
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5108
|
+
attr_accessor :institution
|
|
2204
5109
|
|
|
2205
|
-
def initialize(account_subcategories: nil)
|
|
5110
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2206
5111
|
@account_subcategories = account_subcategories
|
|
5112
|
+
@institution = institution
|
|
5113
|
+
end
|
|
5114
|
+
end
|
|
5115
|
+
|
|
5116
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5117
|
+
# Settings for configuring manual entry of account details.
|
|
5118
|
+
attr_accessor :mode
|
|
5119
|
+
|
|
5120
|
+
def initialize(mode: nil)
|
|
5121
|
+
@mode = mode
|
|
2207
5122
|
end
|
|
2208
5123
|
end
|
|
2209
5124
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2210
5125
|
attr_accessor :filters
|
|
5126
|
+
# Customize manual entry behavior
|
|
5127
|
+
attr_accessor :manual_entry
|
|
2211
5128
|
# 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`.
|
|
2212
5129
|
attr_accessor :permissions
|
|
2213
5130
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2215,8 +5132,15 @@ module Stripe
|
|
|
2215
5132
|
# 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.
|
|
2216
5133
|
attr_accessor :return_url
|
|
2217
5134
|
|
|
2218
|
-
def initialize(
|
|
5135
|
+
def initialize(
|
|
5136
|
+
filters: nil,
|
|
5137
|
+
manual_entry: nil,
|
|
5138
|
+
permissions: nil,
|
|
5139
|
+
prefetch: nil,
|
|
5140
|
+
return_url: nil
|
|
5141
|
+
)
|
|
2219
5142
|
@filters = filters
|
|
5143
|
+
@manual_entry = manual_entry
|
|
2220
5144
|
@permissions = permissions
|
|
2221
5145
|
@prefetch = prefetch
|
|
2222
5146
|
@return_url = return_url
|
|
@@ -2361,8 +5285,12 @@ module Stripe
|
|
|
2361
5285
|
attr_accessor :fpx
|
|
2362
5286
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2363
5287
|
attr_accessor :giropay
|
|
5288
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5289
|
+
attr_accessor :gopay
|
|
2364
5290
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2365
5291
|
attr_accessor :grabpay
|
|
5292
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5293
|
+
attr_accessor :id_bank_transfer
|
|
2366
5294
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2367
5295
|
attr_accessor :ideal
|
|
2368
5296
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2399,12 +5327,18 @@ module Stripe
|
|
|
2399
5327
|
attr_accessor :paynow
|
|
2400
5328
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2401
5329
|
attr_accessor :paypal
|
|
5330
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5331
|
+
attr_accessor :paypay
|
|
2402
5332
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2403
5333
|
attr_accessor :payto
|
|
2404
5334
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2405
5335
|
attr_accessor :pix
|
|
2406
5336
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2407
5337
|
attr_accessor :promptpay
|
|
5338
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5339
|
+
attr_accessor :qris
|
|
5340
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5341
|
+
attr_accessor :rechnung
|
|
2408
5342
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2409
5343
|
attr_accessor :revolut_pay
|
|
2410
5344
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2413,8 +5347,12 @@ module Stripe
|
|
|
2413
5347
|
attr_accessor :satispay
|
|
2414
5348
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2415
5349
|
attr_accessor :sepa_debit
|
|
5350
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5351
|
+
attr_accessor :shopeepay
|
|
2416
5352
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2417
5353
|
attr_accessor :sofort
|
|
5354
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5355
|
+
attr_accessor :stripe_balance
|
|
2418
5356
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2419
5357
|
attr_accessor :swish
|
|
2420
5358
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2447,7 +5385,9 @@ module Stripe
|
|
|
2447
5385
|
eps: nil,
|
|
2448
5386
|
fpx: nil,
|
|
2449
5387
|
giropay: nil,
|
|
5388
|
+
gopay: nil,
|
|
2450
5389
|
grabpay: nil,
|
|
5390
|
+
id_bank_transfer: nil,
|
|
2451
5391
|
ideal: nil,
|
|
2452
5392
|
interac_present: nil,
|
|
2453
5393
|
kakao_pay: nil,
|
|
@@ -2466,14 +5406,19 @@ module Stripe
|
|
|
2466
5406
|
payco: nil,
|
|
2467
5407
|
paynow: nil,
|
|
2468
5408
|
paypal: nil,
|
|
5409
|
+
paypay: nil,
|
|
2469
5410
|
payto: nil,
|
|
2470
5411
|
pix: nil,
|
|
2471
5412
|
promptpay: nil,
|
|
5413
|
+
qris: nil,
|
|
5414
|
+
rechnung: nil,
|
|
2472
5415
|
revolut_pay: nil,
|
|
2473
5416
|
samsung_pay: nil,
|
|
2474
5417
|
satispay: nil,
|
|
2475
5418
|
sepa_debit: nil,
|
|
5419
|
+
shopeepay: nil,
|
|
2476
5420
|
sofort: nil,
|
|
5421
|
+
stripe_balance: nil,
|
|
2477
5422
|
swish: nil,
|
|
2478
5423
|
twint: nil,
|
|
2479
5424
|
us_bank_account: nil,
|
|
@@ -2500,7 +5445,9 @@ module Stripe
|
|
|
2500
5445
|
@eps = eps
|
|
2501
5446
|
@fpx = fpx
|
|
2502
5447
|
@giropay = giropay
|
|
5448
|
+
@gopay = gopay
|
|
2503
5449
|
@grabpay = grabpay
|
|
5450
|
+
@id_bank_transfer = id_bank_transfer
|
|
2504
5451
|
@ideal = ideal
|
|
2505
5452
|
@interac_present = interac_present
|
|
2506
5453
|
@kakao_pay = kakao_pay
|
|
@@ -2519,14 +5466,19 @@ module Stripe
|
|
|
2519
5466
|
@payco = payco
|
|
2520
5467
|
@paynow = paynow
|
|
2521
5468
|
@paypal = paypal
|
|
5469
|
+
@paypay = paypay
|
|
2522
5470
|
@payto = payto
|
|
2523
5471
|
@pix = pix
|
|
2524
5472
|
@promptpay = promptpay
|
|
5473
|
+
@qris = qris
|
|
5474
|
+
@rechnung = rechnung
|
|
2525
5475
|
@revolut_pay = revolut_pay
|
|
2526
5476
|
@samsung_pay = samsung_pay
|
|
2527
5477
|
@satispay = satispay
|
|
2528
5478
|
@sepa_debit = sepa_debit
|
|
5479
|
+
@shopeepay = shopeepay
|
|
2529
5480
|
@sofort = sofort
|
|
5481
|
+
@stripe_balance = stripe_balance
|
|
2530
5482
|
@swish = swish
|
|
2531
5483
|
@twint = twint
|
|
2532
5484
|
@us_bank_account = us_bank_account
|
|
@@ -2655,6 +5607,8 @@ module Stripe
|
|
|
2655
5607
|
attr_accessor :excluded_payment_method_types
|
|
2656
5608
|
# Specifies which fields in the response should be expanded.
|
|
2657
5609
|
attr_accessor :expand
|
|
5610
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5611
|
+
attr_accessor :fx_quote
|
|
2658
5612
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2659
5613
|
attr_accessor :hooks
|
|
2660
5614
|
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
@@ -2691,6 +5645,8 @@ module Stripe
|
|
|
2691
5645
|
attr_accessor :receipt_email
|
|
2692
5646
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
2693
5647
|
attr_accessor :return_url
|
|
5648
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
5649
|
+
attr_accessor :secret_key_confirmation
|
|
2694
5650
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2695
5651
|
#
|
|
2696
5652
|
# 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.
|
|
@@ -2731,6 +5687,7 @@ module Stripe
|
|
|
2731
5687
|
error_on_requires_action: nil,
|
|
2732
5688
|
excluded_payment_method_types: nil,
|
|
2733
5689
|
expand: nil,
|
|
5690
|
+
fx_quote: nil,
|
|
2734
5691
|
hooks: nil,
|
|
2735
5692
|
mandate: nil,
|
|
2736
5693
|
mandate_data: nil,
|
|
@@ -2746,6 +5703,7 @@ module Stripe
|
|
|
2746
5703
|
radar_options: nil,
|
|
2747
5704
|
receipt_email: nil,
|
|
2748
5705
|
return_url: nil,
|
|
5706
|
+
secret_key_confirmation: nil,
|
|
2749
5707
|
setup_future_usage: nil,
|
|
2750
5708
|
shipping: nil,
|
|
2751
5709
|
statement_descriptor: nil,
|
|
@@ -2769,6 +5727,7 @@ module Stripe
|
|
|
2769
5727
|
@error_on_requires_action = error_on_requires_action
|
|
2770
5728
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2771
5729
|
@expand = expand
|
|
5730
|
+
@fx_quote = fx_quote
|
|
2772
5731
|
@hooks = hooks
|
|
2773
5732
|
@mandate = mandate
|
|
2774
5733
|
@mandate_data = mandate_data
|
|
@@ -2784,6 +5743,7 @@ module Stripe
|
|
|
2784
5743
|
@radar_options = radar_options
|
|
2785
5744
|
@receipt_email = receipt_email
|
|
2786
5745
|
@return_url = return_url
|
|
5746
|
+
@secret_key_confirmation = secret_key_confirmation
|
|
2787
5747
|
@setup_future_usage = setup_future_usage
|
|
2788
5748
|
@shipping = shipping
|
|
2789
5749
|
@statement_descriptor = statement_descriptor
|