stripe 19.2.0 → 19.3.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 +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -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_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_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 +63 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -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 +336 -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 +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -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/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -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_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- 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 +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -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/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -0
- data/lib/stripe/params/quote_create_params.rb +809 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +817 -4
- data/lib/stripe/params/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 +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +67 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -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 +78 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -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 +37 -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/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/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 +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +92 -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 +88 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +426 -0
- data/lib/stripe/resources/account.rb +259 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +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 +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_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 +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -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 +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1561 -8
- 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 +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- 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_payment.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources.rb +417 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/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/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/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/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- 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 +3 -1
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data_service.rb +15 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/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 +66 -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/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/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 +8 -1
- data/lib/stripe/services.rb +209 -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 +582 -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/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -145,139 +145,1781 @@ module Stripe
|
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
+
class Surcharge < ::Stripe::RequestParams
|
|
149
|
+
# Portion of the amount that corresponds to a surcharge.
|
|
150
|
+
attr_accessor :amount
|
|
151
|
+
# Indicate whether to enforce validations on the surcharge amount.
|
|
152
|
+
attr_accessor :enforce_validation
|
|
153
|
+
|
|
154
|
+
def initialize(amount: nil, enforce_validation: nil)
|
|
155
|
+
@amount = amount
|
|
156
|
+
@enforce_validation = enforce_validation
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
148
160
|
class Tax < ::Stripe::RequestParams
|
|
149
161
|
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
150
162
|
#
|
|
151
163
|
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
152
164
|
attr_accessor :total_tax_amount
|
|
153
165
|
|
|
154
|
-
def initialize(total_tax_amount: nil)
|
|
166
|
+
def initialize(total_tax_amount: nil)
|
|
167
|
+
@total_tax_amount = total_tax_amount
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
171
|
+
#
|
|
172
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
173
|
+
attr_accessor :discount_amount
|
|
174
|
+
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
175
|
+
#
|
|
176
|
+
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
177
|
+
#
|
|
178
|
+
# For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
|
|
179
|
+
attr_accessor :enforce_arithmetic_validation
|
|
180
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
181
|
+
attr_accessor :line_items
|
|
182
|
+
# Contains information about the shipping portion of the amount.
|
|
183
|
+
attr_accessor :shipping
|
|
184
|
+
# Contains information about the surcharge portion of the amount.
|
|
185
|
+
attr_accessor :surcharge
|
|
186
|
+
# Contains information about the tax portion of the amount.
|
|
187
|
+
attr_accessor :tax
|
|
188
|
+
|
|
189
|
+
def initialize(
|
|
190
|
+
discount_amount: nil,
|
|
191
|
+
enforce_arithmetic_validation: nil,
|
|
192
|
+
line_items: nil,
|
|
193
|
+
shipping: nil,
|
|
194
|
+
surcharge: nil,
|
|
195
|
+
tax: nil
|
|
196
|
+
)
|
|
197
|
+
@discount_amount = discount_amount
|
|
198
|
+
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
199
|
+
@line_items = line_items
|
|
200
|
+
@shipping = shipping
|
|
201
|
+
@surcharge = surcharge
|
|
202
|
+
@tax = tax
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
class AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
207
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
208
|
+
#
|
|
209
|
+
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
210
|
+
attr_accessor :allow_redirects
|
|
211
|
+
# Whether this feature is enabled.
|
|
212
|
+
attr_accessor :enabled
|
|
213
|
+
|
|
214
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
|
215
|
+
@allow_redirects = allow_redirects
|
|
216
|
+
@enabled = enabled
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class Hooks < ::Stripe::RequestParams
|
|
221
|
+
class Inputs < ::Stripe::RequestParams
|
|
222
|
+
class Tax < ::Stripe::RequestParams
|
|
223
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
224
|
+
attr_accessor :calculation
|
|
225
|
+
|
|
226
|
+
def initialize(calculation: nil)
|
|
227
|
+
@calculation = calculation
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
# Tax arguments for automations
|
|
231
|
+
attr_accessor :tax
|
|
232
|
+
|
|
233
|
+
def initialize(tax: nil)
|
|
234
|
+
@tax = tax
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
# Arguments passed in automations
|
|
238
|
+
attr_accessor :inputs
|
|
239
|
+
|
|
240
|
+
def initialize(inputs: nil)
|
|
241
|
+
@inputs = inputs
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
class MandateData < ::Stripe::RequestParams
|
|
246
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
247
|
+
class Offline < ::Stripe::RequestParams; end
|
|
248
|
+
|
|
249
|
+
class Online < ::Stripe::RequestParams
|
|
250
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
251
|
+
attr_accessor :ip_address
|
|
252
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
253
|
+
attr_accessor :user_agent
|
|
254
|
+
|
|
255
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
256
|
+
@ip_address = ip_address
|
|
257
|
+
@user_agent = user_agent
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
# The time at which the customer accepted the Mandate.
|
|
261
|
+
attr_accessor :accepted_at
|
|
262
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
263
|
+
attr_accessor :offline
|
|
264
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
265
|
+
attr_accessor :online
|
|
266
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
267
|
+
attr_accessor :type
|
|
268
|
+
|
|
269
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
270
|
+
@accepted_at = accepted_at
|
|
271
|
+
@offline = offline
|
|
272
|
+
@online = online
|
|
273
|
+
@type = type
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
277
|
+
attr_accessor :customer_acceptance
|
|
278
|
+
|
|
279
|
+
def initialize(customer_acceptance: nil)
|
|
280
|
+
@customer_acceptance = customer_acceptance
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
285
|
+
class CarRental < ::Stripe::RequestParams
|
|
286
|
+
class Affiliate < ::Stripe::RequestParams
|
|
287
|
+
# The name of the affiliate that originated the purchase.
|
|
288
|
+
attr_accessor :name
|
|
289
|
+
|
|
290
|
+
def initialize(name: nil)
|
|
291
|
+
@name = name
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class Delivery < ::Stripe::RequestParams
|
|
296
|
+
class Recipient < ::Stripe::RequestParams
|
|
297
|
+
# The email of the recipient the ticket is delivered to.
|
|
298
|
+
attr_accessor :email
|
|
299
|
+
# The name of the recipient the ticket is delivered to.
|
|
300
|
+
attr_accessor :name
|
|
301
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
302
|
+
attr_accessor :phone
|
|
303
|
+
|
|
304
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
305
|
+
@email = email
|
|
306
|
+
@name = name
|
|
307
|
+
@phone = phone
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
# The delivery method for the payment
|
|
311
|
+
attr_accessor :mode
|
|
312
|
+
# Details of the recipient.
|
|
313
|
+
attr_accessor :recipient
|
|
314
|
+
|
|
315
|
+
def initialize(mode: nil, recipient: nil)
|
|
316
|
+
@mode = mode
|
|
317
|
+
@recipient = recipient
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
class Distance < ::Stripe::RequestParams
|
|
322
|
+
# Distance traveled.
|
|
323
|
+
attr_accessor :amount
|
|
324
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
325
|
+
attr_accessor :unit
|
|
326
|
+
|
|
327
|
+
def initialize(amount: nil, unit: nil)
|
|
328
|
+
@amount = amount
|
|
329
|
+
@unit = unit
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
class Driver < ::Stripe::RequestParams
|
|
334
|
+
# Driver's identification number.
|
|
335
|
+
attr_accessor :driver_identification_number
|
|
336
|
+
# Driver's tax number.
|
|
337
|
+
attr_accessor :driver_tax_number
|
|
338
|
+
# Full name of the person or entity on the car reservation.
|
|
339
|
+
attr_accessor :name
|
|
340
|
+
|
|
341
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
342
|
+
@driver_identification_number = driver_identification_number
|
|
343
|
+
@driver_tax_number = driver_tax_number
|
|
344
|
+
@name = name
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
349
|
+
# City, district, suburb, town, or village.
|
|
350
|
+
attr_accessor :city
|
|
351
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
352
|
+
attr_accessor :country
|
|
353
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
354
|
+
attr_accessor :line1
|
|
355
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
356
|
+
attr_accessor :line2
|
|
357
|
+
# ZIP or postal code.
|
|
358
|
+
attr_accessor :postal_code
|
|
359
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
360
|
+
attr_accessor :state
|
|
361
|
+
|
|
362
|
+
def initialize(
|
|
363
|
+
city: nil,
|
|
364
|
+
country: nil,
|
|
365
|
+
line1: nil,
|
|
366
|
+
line2: nil,
|
|
367
|
+
postal_code: nil,
|
|
368
|
+
state: nil
|
|
369
|
+
)
|
|
370
|
+
@city = city
|
|
371
|
+
@country = country
|
|
372
|
+
@line1 = line1
|
|
373
|
+
@line2 = line2
|
|
374
|
+
@postal_code = postal_code
|
|
375
|
+
@state = state
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
380
|
+
# City, district, suburb, town, or village.
|
|
381
|
+
attr_accessor :city
|
|
382
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
383
|
+
attr_accessor :country
|
|
384
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
385
|
+
attr_accessor :line1
|
|
386
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
387
|
+
attr_accessor :line2
|
|
388
|
+
# ZIP or postal code.
|
|
389
|
+
attr_accessor :postal_code
|
|
390
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
391
|
+
attr_accessor :state
|
|
392
|
+
|
|
393
|
+
def initialize(
|
|
394
|
+
city: nil,
|
|
395
|
+
country: nil,
|
|
396
|
+
line1: nil,
|
|
397
|
+
line2: nil,
|
|
398
|
+
postal_code: nil,
|
|
399
|
+
state: nil
|
|
400
|
+
)
|
|
401
|
+
@city = city
|
|
402
|
+
@country = country
|
|
403
|
+
@line1 = line1
|
|
404
|
+
@line2 = line2
|
|
405
|
+
@postal_code = postal_code
|
|
406
|
+
@state = state
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
# Affiliate details for this purchase.
|
|
410
|
+
attr_accessor :affiliate
|
|
411
|
+
# The booking number associated with the car rental.
|
|
412
|
+
attr_accessor :booking_number
|
|
413
|
+
# Class code of the car.
|
|
414
|
+
attr_accessor :car_class_code
|
|
415
|
+
# Make of the car.
|
|
416
|
+
attr_accessor :car_make
|
|
417
|
+
# Model of the car.
|
|
418
|
+
attr_accessor :car_model
|
|
419
|
+
# The name of the rental car company.
|
|
420
|
+
attr_accessor :company
|
|
421
|
+
# The customer service phone number of the car rental company.
|
|
422
|
+
attr_accessor :customer_service_phone_number
|
|
423
|
+
# Number of days the car is being rented.
|
|
424
|
+
attr_accessor :days_rented
|
|
425
|
+
# Delivery details for this purchase.
|
|
426
|
+
attr_accessor :delivery
|
|
427
|
+
# The details of the distance traveled during the rental period.
|
|
428
|
+
attr_accessor :distance
|
|
429
|
+
# The details of the passengers in the travel reservation
|
|
430
|
+
attr_accessor :drivers
|
|
431
|
+
# List of additional charges being billed.
|
|
432
|
+
attr_accessor :extra_charges
|
|
433
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
434
|
+
attr_accessor :no_show
|
|
435
|
+
# Car pick-up address.
|
|
436
|
+
attr_accessor :pickup_address
|
|
437
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
438
|
+
attr_accessor :pickup_at
|
|
439
|
+
# Name of the pickup location.
|
|
440
|
+
attr_accessor :pickup_location_name
|
|
441
|
+
# Rental rate.
|
|
442
|
+
attr_accessor :rate_amount
|
|
443
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
444
|
+
attr_accessor :rate_interval
|
|
445
|
+
# The name of the person or entity renting the car.
|
|
446
|
+
attr_accessor :renter_name
|
|
447
|
+
# Car return address.
|
|
448
|
+
attr_accessor :return_address
|
|
449
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
450
|
+
attr_accessor :return_at
|
|
451
|
+
# Name of the return location.
|
|
452
|
+
attr_accessor :return_location_name
|
|
453
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
454
|
+
attr_accessor :tax_exempt
|
|
455
|
+
# The vehicle identification number.
|
|
456
|
+
attr_accessor :vehicle_identification_number
|
|
457
|
+
|
|
458
|
+
def initialize(
|
|
459
|
+
affiliate: nil,
|
|
460
|
+
booking_number: nil,
|
|
461
|
+
car_class_code: nil,
|
|
462
|
+
car_make: nil,
|
|
463
|
+
car_model: nil,
|
|
464
|
+
company: nil,
|
|
465
|
+
customer_service_phone_number: nil,
|
|
466
|
+
days_rented: nil,
|
|
467
|
+
delivery: nil,
|
|
468
|
+
distance: nil,
|
|
469
|
+
drivers: nil,
|
|
470
|
+
extra_charges: nil,
|
|
471
|
+
no_show: nil,
|
|
472
|
+
pickup_address: nil,
|
|
473
|
+
pickup_at: nil,
|
|
474
|
+
pickup_location_name: nil,
|
|
475
|
+
rate_amount: nil,
|
|
476
|
+
rate_interval: nil,
|
|
477
|
+
renter_name: nil,
|
|
478
|
+
return_address: nil,
|
|
479
|
+
return_at: nil,
|
|
480
|
+
return_location_name: nil,
|
|
481
|
+
tax_exempt: nil,
|
|
482
|
+
vehicle_identification_number: nil
|
|
483
|
+
)
|
|
484
|
+
@affiliate = affiliate
|
|
485
|
+
@booking_number = booking_number
|
|
486
|
+
@car_class_code = car_class_code
|
|
487
|
+
@car_make = car_make
|
|
488
|
+
@car_model = car_model
|
|
489
|
+
@company = company
|
|
490
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
491
|
+
@days_rented = days_rented
|
|
492
|
+
@delivery = delivery
|
|
493
|
+
@distance = distance
|
|
494
|
+
@drivers = drivers
|
|
495
|
+
@extra_charges = extra_charges
|
|
496
|
+
@no_show = no_show
|
|
497
|
+
@pickup_address = pickup_address
|
|
498
|
+
@pickup_at = pickup_at
|
|
499
|
+
@pickup_location_name = pickup_location_name
|
|
500
|
+
@rate_amount = rate_amount
|
|
501
|
+
@rate_interval = rate_interval
|
|
502
|
+
@renter_name = renter_name
|
|
503
|
+
@return_address = return_address
|
|
504
|
+
@return_at = return_at
|
|
505
|
+
@return_location_name = return_location_name
|
|
506
|
+
@tax_exempt = tax_exempt
|
|
507
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
508
|
+
end
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
512
|
+
class Affiliate < ::Stripe::RequestParams
|
|
513
|
+
# Affiliate partner code.
|
|
514
|
+
attr_accessor :code
|
|
515
|
+
# Name of affiliate partner.
|
|
516
|
+
attr_accessor :name
|
|
517
|
+
|
|
518
|
+
def initialize(code: nil, name: nil)
|
|
519
|
+
@code = code
|
|
520
|
+
@name = name
|
|
521
|
+
end
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
class Distance < ::Stripe::RequestParams
|
|
525
|
+
# Distance traveled.
|
|
526
|
+
attr_accessor :amount
|
|
527
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
528
|
+
attr_accessor :unit
|
|
529
|
+
|
|
530
|
+
def initialize(amount: nil, unit: nil)
|
|
531
|
+
@amount = amount
|
|
532
|
+
@unit = unit
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
class Driver < ::Stripe::RequestParams
|
|
537
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
538
|
+
# Day of birth (1-31).
|
|
539
|
+
attr_accessor :day
|
|
540
|
+
# Month of birth (1-12).
|
|
541
|
+
attr_accessor :month
|
|
542
|
+
# Year of birth (must be greater than 1900).
|
|
543
|
+
attr_accessor :year
|
|
544
|
+
|
|
545
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
546
|
+
@day = day
|
|
547
|
+
@month = month
|
|
548
|
+
@year = year
|
|
549
|
+
end
|
|
550
|
+
end
|
|
551
|
+
# Driver's date of birth.
|
|
552
|
+
attr_accessor :date_of_birth
|
|
553
|
+
# Driver's identification number.
|
|
554
|
+
attr_accessor :driver_identification_number
|
|
555
|
+
# Driver's tax number.
|
|
556
|
+
attr_accessor :driver_tax_number
|
|
557
|
+
# Driver's full name.
|
|
558
|
+
attr_accessor :name
|
|
559
|
+
|
|
560
|
+
def initialize(
|
|
561
|
+
date_of_birth: nil,
|
|
562
|
+
driver_identification_number: nil,
|
|
563
|
+
driver_tax_number: nil,
|
|
564
|
+
name: nil
|
|
565
|
+
)
|
|
566
|
+
@date_of_birth = date_of_birth
|
|
567
|
+
@driver_identification_number = driver_identification_number
|
|
568
|
+
@driver_tax_number = driver_tax_number
|
|
569
|
+
@name = name
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
class DropOff < ::Stripe::RequestParams
|
|
574
|
+
class Address < ::Stripe::RequestParams
|
|
575
|
+
# City, district, suburb, town, or village.
|
|
576
|
+
attr_accessor :city
|
|
577
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
578
|
+
attr_accessor :country
|
|
579
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
580
|
+
attr_accessor :line1
|
|
581
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
582
|
+
attr_accessor :line2
|
|
583
|
+
# ZIP or postal code.
|
|
584
|
+
attr_accessor :postal_code
|
|
585
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
586
|
+
attr_accessor :state
|
|
587
|
+
|
|
588
|
+
def initialize(
|
|
589
|
+
city: nil,
|
|
590
|
+
country: nil,
|
|
591
|
+
line1: nil,
|
|
592
|
+
line2: nil,
|
|
593
|
+
postal_code: nil,
|
|
594
|
+
state: nil
|
|
595
|
+
)
|
|
596
|
+
@city = city
|
|
597
|
+
@country = country
|
|
598
|
+
@line1 = line1
|
|
599
|
+
@line2 = line2
|
|
600
|
+
@postal_code = postal_code
|
|
601
|
+
@state = state
|
|
602
|
+
end
|
|
603
|
+
end
|
|
604
|
+
# Address of the rental location.
|
|
605
|
+
attr_accessor :address
|
|
606
|
+
# Location name.
|
|
607
|
+
attr_accessor :location_name
|
|
608
|
+
# Timestamp for the location.
|
|
609
|
+
attr_accessor :time
|
|
610
|
+
|
|
611
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
612
|
+
@address = address
|
|
613
|
+
@location_name = location_name
|
|
614
|
+
@time = time
|
|
615
|
+
end
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
class Insurance < ::Stripe::RequestParams
|
|
619
|
+
# Amount of the insurance coverage in cents.
|
|
620
|
+
attr_accessor :amount
|
|
621
|
+
# Currency of the insurance amount.
|
|
622
|
+
attr_accessor :currency
|
|
623
|
+
# Name of the insurance company.
|
|
624
|
+
attr_accessor :insurance_company_name
|
|
625
|
+
# Type of insurance coverage.
|
|
626
|
+
attr_accessor :insurance_type
|
|
627
|
+
|
|
628
|
+
def initialize(
|
|
629
|
+
amount: nil,
|
|
630
|
+
currency: nil,
|
|
631
|
+
insurance_company_name: nil,
|
|
632
|
+
insurance_type: nil
|
|
633
|
+
)
|
|
634
|
+
@amount = amount
|
|
635
|
+
@currency = currency
|
|
636
|
+
@insurance_company_name = insurance_company_name
|
|
637
|
+
@insurance_type = insurance_type
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
class Pickup < ::Stripe::RequestParams
|
|
642
|
+
class Address < ::Stripe::RequestParams
|
|
643
|
+
# City, district, suburb, town, or village.
|
|
644
|
+
attr_accessor :city
|
|
645
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
646
|
+
attr_accessor :country
|
|
647
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
648
|
+
attr_accessor :line1
|
|
649
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
650
|
+
attr_accessor :line2
|
|
651
|
+
# ZIP or postal code.
|
|
652
|
+
attr_accessor :postal_code
|
|
653
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
654
|
+
attr_accessor :state
|
|
655
|
+
|
|
656
|
+
def initialize(
|
|
657
|
+
city: nil,
|
|
658
|
+
country: nil,
|
|
659
|
+
line1: nil,
|
|
660
|
+
line2: nil,
|
|
661
|
+
postal_code: nil,
|
|
662
|
+
state: nil
|
|
663
|
+
)
|
|
664
|
+
@city = city
|
|
665
|
+
@country = country
|
|
666
|
+
@line1 = line1
|
|
667
|
+
@line2 = line2
|
|
668
|
+
@postal_code = postal_code
|
|
669
|
+
@state = state
|
|
670
|
+
end
|
|
671
|
+
end
|
|
672
|
+
# Address of the rental location.
|
|
673
|
+
attr_accessor :address
|
|
674
|
+
# Location name.
|
|
675
|
+
attr_accessor :location_name
|
|
676
|
+
# Timestamp for the location.
|
|
677
|
+
attr_accessor :time
|
|
678
|
+
|
|
679
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
680
|
+
@address = address
|
|
681
|
+
@location_name = location_name
|
|
682
|
+
@time = time
|
|
683
|
+
end
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
class Total < ::Stripe::RequestParams
|
|
687
|
+
class Discounts < ::Stripe::RequestParams
|
|
688
|
+
# Corporate client discount code.
|
|
689
|
+
attr_accessor :corporate_client_code
|
|
690
|
+
# Coupon code applied to the rental.
|
|
691
|
+
attr_accessor :coupon
|
|
692
|
+
# Maximum number of free miles or kilometers included.
|
|
693
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
694
|
+
|
|
695
|
+
def initialize(
|
|
696
|
+
corporate_client_code: nil,
|
|
697
|
+
coupon: nil,
|
|
698
|
+
maximum_free_miles_or_kilometers: nil
|
|
699
|
+
)
|
|
700
|
+
@corporate_client_code = corporate_client_code
|
|
701
|
+
@coupon = coupon
|
|
702
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
703
|
+
end
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
707
|
+
# Amount of the extra charge in cents.
|
|
708
|
+
attr_accessor :amount
|
|
709
|
+
# Type of extra charge.
|
|
710
|
+
attr_accessor :type
|
|
711
|
+
|
|
712
|
+
def initialize(amount: nil, type: nil)
|
|
713
|
+
@amount = amount
|
|
714
|
+
@type = type
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
class Tax < ::Stripe::RequestParams
|
|
719
|
+
class Tax < ::Stripe::RequestParams
|
|
720
|
+
# Tax amount.
|
|
721
|
+
attr_accessor :amount
|
|
722
|
+
# Tax rate applied.
|
|
723
|
+
attr_accessor :rate
|
|
724
|
+
# Type of tax applied.
|
|
725
|
+
attr_accessor :type
|
|
726
|
+
|
|
727
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
728
|
+
@amount = amount
|
|
729
|
+
@rate = rate
|
|
730
|
+
@type = type
|
|
731
|
+
end
|
|
732
|
+
end
|
|
733
|
+
# Indicates if the transaction is tax exempt.
|
|
734
|
+
attr_accessor :tax_exempt_indicator
|
|
735
|
+
# Array of tax details.
|
|
736
|
+
attr_accessor :taxes
|
|
737
|
+
|
|
738
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
739
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
740
|
+
@taxes = taxes
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
# Total amount in cents.
|
|
744
|
+
attr_accessor :amount
|
|
745
|
+
# Currency of the amount.
|
|
746
|
+
attr_accessor :currency
|
|
747
|
+
# Discount details for the rental.
|
|
748
|
+
attr_accessor :discounts
|
|
749
|
+
# Additional charges for the rental.
|
|
750
|
+
attr_accessor :extra_charges
|
|
751
|
+
# Rate per unit for the rental.
|
|
752
|
+
attr_accessor :rate_per_unit
|
|
753
|
+
# Unit of measurement for the rate.
|
|
754
|
+
attr_accessor :rate_unit
|
|
755
|
+
# Tax breakdown for the rental.
|
|
756
|
+
attr_accessor :tax
|
|
757
|
+
|
|
758
|
+
def initialize(
|
|
759
|
+
amount: nil,
|
|
760
|
+
currency: nil,
|
|
761
|
+
discounts: nil,
|
|
762
|
+
extra_charges: nil,
|
|
763
|
+
rate_per_unit: nil,
|
|
764
|
+
rate_unit: nil,
|
|
765
|
+
tax: nil
|
|
766
|
+
)
|
|
767
|
+
@amount = amount
|
|
768
|
+
@currency = currency
|
|
769
|
+
@discounts = discounts
|
|
770
|
+
@extra_charges = extra_charges
|
|
771
|
+
@rate_per_unit = rate_per_unit
|
|
772
|
+
@rate_unit = rate_unit
|
|
773
|
+
@tax = tax
|
|
774
|
+
end
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
class Vehicle < ::Stripe::RequestParams
|
|
778
|
+
# Make of the rental vehicle.
|
|
779
|
+
attr_accessor :make
|
|
780
|
+
# Model of the rental vehicle.
|
|
781
|
+
attr_accessor :model
|
|
782
|
+
# Odometer reading at the time of rental.
|
|
783
|
+
attr_accessor :odometer
|
|
784
|
+
# Type of the rental vehicle.
|
|
785
|
+
attr_accessor :type
|
|
786
|
+
# Class of the rental vehicle.
|
|
787
|
+
attr_accessor :vehicle_class
|
|
788
|
+
# Vehicle identification number (VIN).
|
|
789
|
+
attr_accessor :vehicle_identification_number
|
|
790
|
+
|
|
791
|
+
def initialize(
|
|
792
|
+
make: nil,
|
|
793
|
+
model: nil,
|
|
794
|
+
odometer: nil,
|
|
795
|
+
type: nil,
|
|
796
|
+
vehicle_class: nil,
|
|
797
|
+
vehicle_identification_number: nil
|
|
798
|
+
)
|
|
799
|
+
@make = make
|
|
800
|
+
@model = model
|
|
801
|
+
@odometer = odometer
|
|
802
|
+
@type = type
|
|
803
|
+
@vehicle_class = vehicle_class
|
|
804
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
805
|
+
end
|
|
806
|
+
end
|
|
807
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
808
|
+
attr_accessor :affiliate
|
|
809
|
+
# Booking confirmation number for the car rental.
|
|
810
|
+
attr_accessor :booking_number
|
|
811
|
+
# Name of the car rental company.
|
|
812
|
+
attr_accessor :carrier_name
|
|
813
|
+
# Customer service phone number for the car rental company.
|
|
814
|
+
attr_accessor :customer_service_phone_number
|
|
815
|
+
# Number of days the car is being rented.
|
|
816
|
+
attr_accessor :days_rented
|
|
817
|
+
# Distance details for the rental.
|
|
818
|
+
attr_accessor :distance
|
|
819
|
+
# List of drivers for the rental.
|
|
820
|
+
attr_accessor :drivers
|
|
821
|
+
# Drop-off location details.
|
|
822
|
+
attr_accessor :drop_off
|
|
823
|
+
# Insurance details for the rental.
|
|
824
|
+
attr_accessor :insurances
|
|
825
|
+
# Indicates if the customer was a no-show.
|
|
826
|
+
attr_accessor :no_show_indicator
|
|
827
|
+
# Pickup location details.
|
|
828
|
+
attr_accessor :pickup
|
|
829
|
+
# Name of the person renting the vehicle.
|
|
830
|
+
attr_accessor :renter_name
|
|
831
|
+
# Total cost breakdown for the rental.
|
|
832
|
+
attr_accessor :total
|
|
833
|
+
# Vehicle details for the rental.
|
|
834
|
+
attr_accessor :vehicle
|
|
835
|
+
|
|
836
|
+
def initialize(
|
|
837
|
+
affiliate: nil,
|
|
838
|
+
booking_number: nil,
|
|
839
|
+
carrier_name: nil,
|
|
840
|
+
customer_service_phone_number: nil,
|
|
841
|
+
days_rented: nil,
|
|
842
|
+
distance: nil,
|
|
843
|
+
drivers: nil,
|
|
844
|
+
drop_off: nil,
|
|
845
|
+
insurances: nil,
|
|
846
|
+
no_show_indicator: nil,
|
|
847
|
+
pickup: nil,
|
|
848
|
+
renter_name: nil,
|
|
849
|
+
total: nil,
|
|
850
|
+
vehicle: nil
|
|
851
|
+
)
|
|
852
|
+
@affiliate = affiliate
|
|
853
|
+
@booking_number = booking_number
|
|
854
|
+
@carrier_name = carrier_name
|
|
855
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
856
|
+
@days_rented = days_rented
|
|
857
|
+
@distance = distance
|
|
858
|
+
@drivers = drivers
|
|
859
|
+
@drop_off = drop_off
|
|
860
|
+
@insurances = insurances
|
|
861
|
+
@no_show_indicator = no_show_indicator
|
|
862
|
+
@pickup = pickup
|
|
863
|
+
@renter_name = renter_name
|
|
864
|
+
@total = total
|
|
865
|
+
@vehicle = vehicle
|
|
866
|
+
end
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
class EventDetails < ::Stripe::RequestParams
|
|
870
|
+
class Address < ::Stripe::RequestParams
|
|
871
|
+
# City, district, suburb, town, or village.
|
|
872
|
+
attr_accessor :city
|
|
873
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
874
|
+
attr_accessor :country
|
|
875
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
876
|
+
attr_accessor :line1
|
|
877
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
878
|
+
attr_accessor :line2
|
|
879
|
+
# ZIP or postal code.
|
|
880
|
+
attr_accessor :postal_code
|
|
881
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
882
|
+
attr_accessor :state
|
|
883
|
+
|
|
884
|
+
def initialize(
|
|
885
|
+
city: nil,
|
|
886
|
+
country: nil,
|
|
887
|
+
line1: nil,
|
|
888
|
+
line2: nil,
|
|
889
|
+
postal_code: nil,
|
|
890
|
+
state: nil
|
|
891
|
+
)
|
|
892
|
+
@city = city
|
|
893
|
+
@country = country
|
|
894
|
+
@line1 = line1
|
|
895
|
+
@line2 = line2
|
|
896
|
+
@postal_code = postal_code
|
|
897
|
+
@state = state
|
|
898
|
+
end
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
class Affiliate < ::Stripe::RequestParams
|
|
902
|
+
# The name of the affiliate that originated the purchase.
|
|
903
|
+
attr_accessor :name
|
|
904
|
+
|
|
905
|
+
def initialize(name: nil)
|
|
906
|
+
@name = name
|
|
907
|
+
end
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
class Delivery < ::Stripe::RequestParams
|
|
911
|
+
class Recipient < ::Stripe::RequestParams
|
|
912
|
+
# The email of the recipient the ticket is delivered to.
|
|
913
|
+
attr_accessor :email
|
|
914
|
+
# The name of the recipient the ticket is delivered to.
|
|
915
|
+
attr_accessor :name
|
|
916
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
917
|
+
attr_accessor :phone
|
|
918
|
+
|
|
919
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
920
|
+
@email = email
|
|
921
|
+
@name = name
|
|
922
|
+
@phone = phone
|
|
923
|
+
end
|
|
924
|
+
end
|
|
925
|
+
# The delivery method for the payment
|
|
926
|
+
attr_accessor :mode
|
|
927
|
+
# Details of the recipient.
|
|
928
|
+
attr_accessor :recipient
|
|
929
|
+
|
|
930
|
+
def initialize(mode: nil, recipient: nil)
|
|
931
|
+
@mode = mode
|
|
932
|
+
@recipient = recipient
|
|
933
|
+
end
|
|
934
|
+
end
|
|
935
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
936
|
+
attr_accessor :access_controlled_venue
|
|
937
|
+
# The event location's address.
|
|
938
|
+
attr_accessor :address
|
|
939
|
+
# Affiliate details for this purchase.
|
|
940
|
+
attr_accessor :affiliate
|
|
941
|
+
# The name of the company
|
|
942
|
+
attr_accessor :company
|
|
943
|
+
# Delivery details for this purchase.
|
|
944
|
+
attr_accessor :delivery
|
|
945
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
946
|
+
attr_accessor :ends_at
|
|
947
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
948
|
+
attr_accessor :genre
|
|
949
|
+
# The name of the event.
|
|
950
|
+
attr_accessor :name
|
|
951
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
952
|
+
attr_accessor :starts_at
|
|
953
|
+
|
|
954
|
+
def initialize(
|
|
955
|
+
access_controlled_venue: nil,
|
|
956
|
+
address: nil,
|
|
957
|
+
affiliate: nil,
|
|
958
|
+
company: nil,
|
|
959
|
+
delivery: nil,
|
|
960
|
+
ends_at: nil,
|
|
961
|
+
genre: nil,
|
|
962
|
+
name: nil,
|
|
963
|
+
starts_at: nil
|
|
964
|
+
)
|
|
965
|
+
@access_controlled_venue = access_controlled_venue
|
|
966
|
+
@address = address
|
|
967
|
+
@affiliate = affiliate
|
|
968
|
+
@company = company
|
|
969
|
+
@delivery = delivery
|
|
970
|
+
@ends_at = ends_at
|
|
971
|
+
@genre = genre
|
|
972
|
+
@name = name
|
|
973
|
+
@starts_at = starts_at
|
|
974
|
+
end
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
class Flight < ::Stripe::RequestParams
|
|
978
|
+
class Affiliate < ::Stripe::RequestParams
|
|
979
|
+
# The name of the affiliate that originated the purchase.
|
|
980
|
+
attr_accessor :name
|
|
981
|
+
|
|
982
|
+
def initialize(name: nil)
|
|
983
|
+
@name = name
|
|
984
|
+
end
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
class Delivery < ::Stripe::RequestParams
|
|
988
|
+
class Recipient < ::Stripe::RequestParams
|
|
989
|
+
# The email of the recipient the ticket is delivered to.
|
|
990
|
+
attr_accessor :email
|
|
991
|
+
# The name of the recipient the ticket is delivered to.
|
|
992
|
+
attr_accessor :name
|
|
993
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
994
|
+
attr_accessor :phone
|
|
995
|
+
|
|
996
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
997
|
+
@email = email
|
|
998
|
+
@name = name
|
|
999
|
+
@phone = phone
|
|
1000
|
+
end
|
|
1001
|
+
end
|
|
1002
|
+
# The delivery method for the payment
|
|
1003
|
+
attr_accessor :mode
|
|
1004
|
+
# Details of the recipient.
|
|
1005
|
+
attr_accessor :recipient
|
|
1006
|
+
|
|
1007
|
+
def initialize(mode: nil, recipient: nil)
|
|
1008
|
+
@mode = mode
|
|
1009
|
+
@recipient = recipient
|
|
1010
|
+
end
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
class Passenger < ::Stripe::RequestParams
|
|
1014
|
+
# Full name of the person or entity on the flight reservation.
|
|
1015
|
+
attr_accessor :name
|
|
1016
|
+
|
|
1017
|
+
def initialize(name: nil)
|
|
1018
|
+
@name = name
|
|
1019
|
+
end
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
class Segment < ::Stripe::RequestParams
|
|
1023
|
+
# The flight segment amount.
|
|
1024
|
+
attr_accessor :amount
|
|
1025
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1026
|
+
attr_accessor :arrival_airport
|
|
1027
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1028
|
+
attr_accessor :arrives_at
|
|
1029
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1030
|
+
attr_accessor :carrier
|
|
1031
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1032
|
+
attr_accessor :departs_at
|
|
1033
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1034
|
+
attr_accessor :departure_airport
|
|
1035
|
+
# The flight number associated with the segment
|
|
1036
|
+
attr_accessor :flight_number
|
|
1037
|
+
# The fare class for the segment.
|
|
1038
|
+
attr_accessor :service_class
|
|
1039
|
+
|
|
1040
|
+
def initialize(
|
|
1041
|
+
amount: nil,
|
|
1042
|
+
arrival_airport: nil,
|
|
1043
|
+
arrives_at: nil,
|
|
1044
|
+
carrier: nil,
|
|
1045
|
+
departs_at: nil,
|
|
1046
|
+
departure_airport: nil,
|
|
1047
|
+
flight_number: nil,
|
|
1048
|
+
service_class: nil
|
|
1049
|
+
)
|
|
1050
|
+
@amount = amount
|
|
1051
|
+
@arrival_airport = arrival_airport
|
|
1052
|
+
@arrives_at = arrives_at
|
|
1053
|
+
@carrier = carrier
|
|
1054
|
+
@departs_at = departs_at
|
|
1055
|
+
@departure_airport = departure_airport
|
|
1056
|
+
@flight_number = flight_number
|
|
1057
|
+
@service_class = service_class
|
|
1058
|
+
end
|
|
1059
|
+
end
|
|
1060
|
+
# Affiliate details for this purchase.
|
|
1061
|
+
attr_accessor :affiliate
|
|
1062
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1063
|
+
attr_accessor :agency_number
|
|
1064
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1065
|
+
attr_accessor :carrier
|
|
1066
|
+
# Delivery details for this purchase.
|
|
1067
|
+
attr_accessor :delivery
|
|
1068
|
+
# The name of the person or entity on the reservation.
|
|
1069
|
+
attr_accessor :passenger_name
|
|
1070
|
+
# The details of the passengers in the travel reservation.
|
|
1071
|
+
attr_accessor :passengers
|
|
1072
|
+
# The individual flight segments associated with the trip.
|
|
1073
|
+
attr_accessor :segments
|
|
1074
|
+
# The ticket number associated with the travel reservation.
|
|
1075
|
+
attr_accessor :ticket_number
|
|
1076
|
+
|
|
1077
|
+
def initialize(
|
|
1078
|
+
affiliate: nil,
|
|
1079
|
+
agency_number: nil,
|
|
1080
|
+
carrier: nil,
|
|
1081
|
+
delivery: nil,
|
|
1082
|
+
passenger_name: nil,
|
|
1083
|
+
passengers: nil,
|
|
1084
|
+
segments: nil,
|
|
1085
|
+
ticket_number: nil
|
|
1086
|
+
)
|
|
1087
|
+
@affiliate = affiliate
|
|
1088
|
+
@agency_number = agency_number
|
|
1089
|
+
@carrier = carrier
|
|
1090
|
+
@delivery = delivery
|
|
1091
|
+
@passenger_name = passenger_name
|
|
1092
|
+
@passengers = passengers
|
|
1093
|
+
@segments = segments
|
|
1094
|
+
@ticket_number = ticket_number
|
|
1095
|
+
end
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1099
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1100
|
+
# Affiliate partner code.
|
|
1101
|
+
attr_accessor :code
|
|
1102
|
+
# Name of affiliate partner.
|
|
1103
|
+
attr_accessor :name
|
|
1104
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1105
|
+
attr_accessor :travel_authorization_code
|
|
1106
|
+
|
|
1107
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1108
|
+
@code = code
|
|
1109
|
+
@name = name
|
|
1110
|
+
@travel_authorization_code = travel_authorization_code
|
|
1111
|
+
end
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1114
|
+
class Insurance < ::Stripe::RequestParams
|
|
1115
|
+
# Insurance cost.
|
|
1116
|
+
attr_accessor :amount
|
|
1117
|
+
# Insurance currency.
|
|
1118
|
+
attr_accessor :currency
|
|
1119
|
+
# Insurance company name.
|
|
1120
|
+
attr_accessor :insurance_company_name
|
|
1121
|
+
# Type of insurance.
|
|
1122
|
+
attr_accessor :insurance_type
|
|
1123
|
+
|
|
1124
|
+
def initialize(
|
|
1125
|
+
amount: nil,
|
|
1126
|
+
currency: nil,
|
|
1127
|
+
insurance_company_name: nil,
|
|
1128
|
+
insurance_type: nil
|
|
1129
|
+
)
|
|
1130
|
+
@amount = amount
|
|
1131
|
+
@currency = currency
|
|
1132
|
+
@insurance_company_name = insurance_company_name
|
|
1133
|
+
@insurance_type = insurance_type
|
|
1134
|
+
end
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
class Passenger < ::Stripe::RequestParams
|
|
1138
|
+
# Passenger's full name.
|
|
1139
|
+
attr_accessor :name
|
|
1140
|
+
|
|
1141
|
+
def initialize(name: nil)
|
|
1142
|
+
@name = name
|
|
1143
|
+
end
|
|
1144
|
+
end
|
|
1145
|
+
|
|
1146
|
+
class Segment < ::Stripe::RequestParams
|
|
1147
|
+
class Arrival < ::Stripe::RequestParams
|
|
1148
|
+
# Arrival airport IATA code.
|
|
1149
|
+
attr_accessor :airport
|
|
1150
|
+
# Arrival date/time.
|
|
1151
|
+
attr_accessor :arrives_at
|
|
1152
|
+
# Arrival city.
|
|
1153
|
+
attr_accessor :city
|
|
1154
|
+
# Arrival country.
|
|
1155
|
+
attr_accessor :country
|
|
1156
|
+
|
|
1157
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1158
|
+
@airport = airport
|
|
1159
|
+
@arrives_at = arrives_at
|
|
1160
|
+
@city = city
|
|
1161
|
+
@country = country
|
|
1162
|
+
end
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
class Departure < ::Stripe::RequestParams
|
|
1166
|
+
# Departure airport IATA code.
|
|
1167
|
+
attr_accessor :airport
|
|
1168
|
+
# Departure city.
|
|
1169
|
+
attr_accessor :city
|
|
1170
|
+
# Departure country.
|
|
1171
|
+
attr_accessor :country
|
|
1172
|
+
# Departure date/time.
|
|
1173
|
+
attr_accessor :departs_at
|
|
1174
|
+
|
|
1175
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1176
|
+
@airport = airport
|
|
1177
|
+
@city = city
|
|
1178
|
+
@country = country
|
|
1179
|
+
@departs_at = departs_at
|
|
1180
|
+
end
|
|
1181
|
+
end
|
|
1182
|
+
# Segment fare amount.
|
|
1183
|
+
attr_accessor :amount
|
|
1184
|
+
# Arrival details.
|
|
1185
|
+
attr_accessor :arrival
|
|
1186
|
+
# Airline carrier code.
|
|
1187
|
+
attr_accessor :carrier_code
|
|
1188
|
+
# Carrier name.
|
|
1189
|
+
attr_accessor :carrier_name
|
|
1190
|
+
# Segment currency.
|
|
1191
|
+
attr_accessor :currency
|
|
1192
|
+
# Departure details.
|
|
1193
|
+
attr_accessor :departure
|
|
1194
|
+
# Exchange ticket number.
|
|
1195
|
+
attr_accessor :exchange_ticket_number
|
|
1196
|
+
# Fare basis code.
|
|
1197
|
+
attr_accessor :fare_basis_code
|
|
1198
|
+
# Additional fees.
|
|
1199
|
+
attr_accessor :fees
|
|
1200
|
+
# Flight number.
|
|
1201
|
+
attr_accessor :flight_number
|
|
1202
|
+
# Stopover indicator.
|
|
1203
|
+
attr_accessor :is_stop_over_indicator
|
|
1204
|
+
# Refundable ticket indicator.
|
|
1205
|
+
attr_accessor :refundable
|
|
1206
|
+
# Class of service.
|
|
1207
|
+
attr_accessor :service_class
|
|
1208
|
+
# Tax amount for segment.
|
|
1209
|
+
attr_accessor :tax_amount
|
|
1210
|
+
# Ticket number.
|
|
1211
|
+
attr_accessor :ticket_number
|
|
1212
|
+
|
|
1213
|
+
def initialize(
|
|
1214
|
+
amount: nil,
|
|
1215
|
+
arrival: nil,
|
|
1216
|
+
carrier_code: nil,
|
|
1217
|
+
carrier_name: nil,
|
|
1218
|
+
currency: nil,
|
|
1219
|
+
departure: nil,
|
|
1220
|
+
exchange_ticket_number: nil,
|
|
1221
|
+
fare_basis_code: nil,
|
|
1222
|
+
fees: nil,
|
|
1223
|
+
flight_number: nil,
|
|
1224
|
+
is_stop_over_indicator: nil,
|
|
1225
|
+
refundable: nil,
|
|
1226
|
+
service_class: nil,
|
|
1227
|
+
tax_amount: nil,
|
|
1228
|
+
ticket_number: nil
|
|
1229
|
+
)
|
|
1230
|
+
@amount = amount
|
|
1231
|
+
@arrival = arrival
|
|
1232
|
+
@carrier_code = carrier_code
|
|
1233
|
+
@carrier_name = carrier_name
|
|
1234
|
+
@currency = currency
|
|
1235
|
+
@departure = departure
|
|
1236
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1237
|
+
@fare_basis_code = fare_basis_code
|
|
1238
|
+
@fees = fees
|
|
1239
|
+
@flight_number = flight_number
|
|
1240
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1241
|
+
@refundable = refundable
|
|
1242
|
+
@service_class = service_class
|
|
1243
|
+
@tax_amount = tax_amount
|
|
1244
|
+
@ticket_number = ticket_number
|
|
1245
|
+
end
|
|
1246
|
+
end
|
|
1247
|
+
|
|
1248
|
+
class Total < ::Stripe::RequestParams
|
|
1249
|
+
class Discounts < ::Stripe::RequestParams
|
|
1250
|
+
# Corporate client discount code.
|
|
1251
|
+
attr_accessor :corporate_client_code
|
|
1252
|
+
|
|
1253
|
+
def initialize(corporate_client_code: nil)
|
|
1254
|
+
@corporate_client_code = corporate_client_code
|
|
1255
|
+
end
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1259
|
+
# Amount of additional charges.
|
|
1260
|
+
attr_accessor :amount
|
|
1261
|
+
# Type of additional charges.
|
|
1262
|
+
attr_accessor :type
|
|
1263
|
+
|
|
1264
|
+
def initialize(amount: nil, type: nil)
|
|
1265
|
+
@amount = amount
|
|
1266
|
+
@type = type
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
class Tax < ::Stripe::RequestParams
|
|
1271
|
+
class Tax < ::Stripe::RequestParams
|
|
1272
|
+
# Tax amount.
|
|
1273
|
+
attr_accessor :amount
|
|
1274
|
+
# Tax rate.
|
|
1275
|
+
attr_accessor :rate
|
|
1276
|
+
# Type of tax.
|
|
1277
|
+
attr_accessor :type
|
|
1278
|
+
|
|
1279
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1280
|
+
@amount = amount
|
|
1281
|
+
@rate = rate
|
|
1282
|
+
@type = type
|
|
1283
|
+
end
|
|
1284
|
+
end
|
|
1285
|
+
# Array of tax details.
|
|
1286
|
+
attr_accessor :taxes
|
|
1287
|
+
|
|
1288
|
+
def initialize(taxes: nil)
|
|
1289
|
+
@taxes = taxes
|
|
1290
|
+
end
|
|
1291
|
+
end
|
|
1292
|
+
# Total flight amount.
|
|
1293
|
+
attr_accessor :amount
|
|
1294
|
+
# Reason for credit.
|
|
1295
|
+
attr_accessor :credit_reason
|
|
1296
|
+
# Total currency.
|
|
1297
|
+
attr_accessor :currency
|
|
1298
|
+
# Discount details.
|
|
1299
|
+
attr_accessor :discounts
|
|
1300
|
+
# Additional charges.
|
|
1301
|
+
attr_accessor :extra_charges
|
|
1302
|
+
# Tax breakdown.
|
|
1303
|
+
attr_accessor :tax
|
|
1304
|
+
|
|
1305
|
+
def initialize(
|
|
1306
|
+
amount: nil,
|
|
1307
|
+
credit_reason: nil,
|
|
1308
|
+
currency: nil,
|
|
1309
|
+
discounts: nil,
|
|
1310
|
+
extra_charges: nil,
|
|
1311
|
+
tax: nil
|
|
1312
|
+
)
|
|
1313
|
+
@amount = amount
|
|
1314
|
+
@credit_reason = credit_reason
|
|
1315
|
+
@currency = currency
|
|
1316
|
+
@discounts = discounts
|
|
1317
|
+
@extra_charges = extra_charges
|
|
1318
|
+
@tax = tax
|
|
1319
|
+
end
|
|
1320
|
+
end
|
|
1321
|
+
# Affiliate details if applicable.
|
|
1322
|
+
attr_accessor :affiliate
|
|
1323
|
+
# Reservation reference.
|
|
1324
|
+
attr_accessor :booking_number
|
|
1325
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1326
|
+
attr_accessor :computerized_reservation_system
|
|
1327
|
+
# Ticket restrictions.
|
|
1328
|
+
attr_accessor :endorsements_and_restrictions
|
|
1329
|
+
# List of insurances.
|
|
1330
|
+
attr_accessor :insurances
|
|
1331
|
+
# List of passengers.
|
|
1332
|
+
attr_accessor :passengers
|
|
1333
|
+
# List of flight segments.
|
|
1334
|
+
attr_accessor :segments
|
|
1335
|
+
# Electronic ticket indicator.
|
|
1336
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1337
|
+
# Total cost breakdown.
|
|
1338
|
+
attr_accessor :total
|
|
1339
|
+
# Type of flight transaction.
|
|
1340
|
+
attr_accessor :transaction_type
|
|
1341
|
+
|
|
1342
|
+
def initialize(
|
|
1343
|
+
affiliate: nil,
|
|
1344
|
+
booking_number: nil,
|
|
1345
|
+
computerized_reservation_system: nil,
|
|
1346
|
+
endorsements_and_restrictions: nil,
|
|
1347
|
+
insurances: nil,
|
|
1348
|
+
passengers: nil,
|
|
1349
|
+
segments: nil,
|
|
1350
|
+
ticket_electronically_issued_indicator: nil,
|
|
1351
|
+
total: nil,
|
|
1352
|
+
transaction_type: nil
|
|
1353
|
+
)
|
|
1354
|
+
@affiliate = affiliate
|
|
1355
|
+
@booking_number = booking_number
|
|
1356
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1357
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1358
|
+
@insurances = insurances
|
|
1359
|
+
@passengers = passengers
|
|
1360
|
+
@segments = segments
|
|
1361
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1362
|
+
@total = total
|
|
1363
|
+
@transaction_type = transaction_type
|
|
1364
|
+
end
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
class Lodging < ::Stripe::RequestParams
|
|
1368
|
+
class Address < ::Stripe::RequestParams
|
|
1369
|
+
# City, district, suburb, town, or village.
|
|
1370
|
+
attr_accessor :city
|
|
1371
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1372
|
+
attr_accessor :country
|
|
1373
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1374
|
+
attr_accessor :line1
|
|
1375
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1376
|
+
attr_accessor :line2
|
|
1377
|
+
# ZIP or postal code.
|
|
1378
|
+
attr_accessor :postal_code
|
|
1379
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1380
|
+
attr_accessor :state
|
|
1381
|
+
|
|
1382
|
+
def initialize(
|
|
1383
|
+
city: nil,
|
|
1384
|
+
country: nil,
|
|
1385
|
+
line1: nil,
|
|
1386
|
+
line2: nil,
|
|
1387
|
+
postal_code: nil,
|
|
1388
|
+
state: nil
|
|
1389
|
+
)
|
|
1390
|
+
@city = city
|
|
1391
|
+
@country = country
|
|
1392
|
+
@line1 = line1
|
|
1393
|
+
@line2 = line2
|
|
1394
|
+
@postal_code = postal_code
|
|
1395
|
+
@state = state
|
|
1396
|
+
end
|
|
1397
|
+
end
|
|
1398
|
+
|
|
1399
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1400
|
+
# The name of the affiliate that originated the purchase.
|
|
1401
|
+
attr_accessor :name
|
|
1402
|
+
|
|
1403
|
+
def initialize(name: nil)
|
|
1404
|
+
@name = name
|
|
1405
|
+
end
|
|
1406
|
+
end
|
|
1407
|
+
|
|
1408
|
+
class Delivery < ::Stripe::RequestParams
|
|
1409
|
+
class Recipient < ::Stripe::RequestParams
|
|
1410
|
+
# The email of the recipient the ticket is delivered to.
|
|
1411
|
+
attr_accessor :email
|
|
1412
|
+
# The name of the recipient the ticket is delivered to.
|
|
1413
|
+
attr_accessor :name
|
|
1414
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1415
|
+
attr_accessor :phone
|
|
1416
|
+
|
|
1417
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1418
|
+
@email = email
|
|
1419
|
+
@name = name
|
|
1420
|
+
@phone = phone
|
|
1421
|
+
end
|
|
1422
|
+
end
|
|
1423
|
+
# The delivery method for the payment
|
|
1424
|
+
attr_accessor :mode
|
|
1425
|
+
# Details of the recipient.
|
|
1426
|
+
attr_accessor :recipient
|
|
1427
|
+
|
|
1428
|
+
def initialize(mode: nil, recipient: nil)
|
|
1429
|
+
@mode = mode
|
|
1430
|
+
@recipient = recipient
|
|
1431
|
+
end
|
|
1432
|
+
end
|
|
1433
|
+
|
|
1434
|
+
class Passenger < ::Stripe::RequestParams
|
|
1435
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1436
|
+
attr_accessor :name
|
|
1437
|
+
|
|
1438
|
+
def initialize(name: nil)
|
|
1439
|
+
@name = name
|
|
1440
|
+
end
|
|
1441
|
+
end
|
|
1442
|
+
# The lodging location's address.
|
|
1443
|
+
attr_accessor :address
|
|
1444
|
+
# The number of adults on the booking
|
|
1445
|
+
attr_accessor :adults
|
|
1446
|
+
# Affiliate details for this purchase.
|
|
1447
|
+
attr_accessor :affiliate
|
|
1448
|
+
# The booking number associated with the lodging reservation.
|
|
1449
|
+
attr_accessor :booking_number
|
|
1450
|
+
# The lodging category
|
|
1451
|
+
attr_accessor :category
|
|
1452
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1453
|
+
attr_accessor :checkin_at
|
|
1454
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1455
|
+
attr_accessor :checkout_at
|
|
1456
|
+
# The customer service phone number of the lodging company.
|
|
1457
|
+
attr_accessor :customer_service_phone_number
|
|
1458
|
+
# The daily lodging room rate.
|
|
1459
|
+
attr_accessor :daily_room_rate_amount
|
|
1460
|
+
# Delivery details for this purchase.
|
|
1461
|
+
attr_accessor :delivery
|
|
1462
|
+
# List of additional charges being billed.
|
|
1463
|
+
attr_accessor :extra_charges
|
|
1464
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1465
|
+
attr_accessor :fire_safety_act_compliance
|
|
1466
|
+
# The name of the lodging location.
|
|
1467
|
+
attr_accessor :name
|
|
1468
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1469
|
+
attr_accessor :no_show
|
|
1470
|
+
# The number of rooms on the booking
|
|
1471
|
+
attr_accessor :number_of_rooms
|
|
1472
|
+
# The details of the passengers in the travel reservation
|
|
1473
|
+
attr_accessor :passengers
|
|
1474
|
+
# The phone number of the lodging location.
|
|
1475
|
+
attr_accessor :property_phone_number
|
|
1476
|
+
# The room class for this purchase.
|
|
1477
|
+
attr_accessor :room_class
|
|
1478
|
+
# The number of room nights
|
|
1479
|
+
attr_accessor :room_nights
|
|
1480
|
+
# The total tax amount associating with the room reservation.
|
|
1481
|
+
attr_accessor :total_room_tax_amount
|
|
1482
|
+
# The total tax amount
|
|
1483
|
+
attr_accessor :total_tax_amount
|
|
1484
|
+
|
|
1485
|
+
def initialize(
|
|
1486
|
+
address: nil,
|
|
1487
|
+
adults: nil,
|
|
1488
|
+
affiliate: nil,
|
|
1489
|
+
booking_number: nil,
|
|
1490
|
+
category: nil,
|
|
1491
|
+
checkin_at: nil,
|
|
1492
|
+
checkout_at: nil,
|
|
1493
|
+
customer_service_phone_number: nil,
|
|
1494
|
+
daily_room_rate_amount: nil,
|
|
1495
|
+
delivery: nil,
|
|
1496
|
+
extra_charges: nil,
|
|
1497
|
+
fire_safety_act_compliance: nil,
|
|
1498
|
+
name: nil,
|
|
1499
|
+
no_show: nil,
|
|
1500
|
+
number_of_rooms: nil,
|
|
1501
|
+
passengers: nil,
|
|
1502
|
+
property_phone_number: nil,
|
|
1503
|
+
room_class: nil,
|
|
1504
|
+
room_nights: nil,
|
|
1505
|
+
total_room_tax_amount: nil,
|
|
1506
|
+
total_tax_amount: nil
|
|
1507
|
+
)
|
|
1508
|
+
@address = address
|
|
1509
|
+
@adults = adults
|
|
1510
|
+
@affiliate = affiliate
|
|
1511
|
+
@booking_number = booking_number
|
|
1512
|
+
@category = category
|
|
1513
|
+
@checkin_at = checkin_at
|
|
1514
|
+
@checkout_at = checkout_at
|
|
1515
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1516
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1517
|
+
@delivery = delivery
|
|
1518
|
+
@extra_charges = extra_charges
|
|
1519
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1520
|
+
@name = name
|
|
1521
|
+
@no_show = no_show
|
|
1522
|
+
@number_of_rooms = number_of_rooms
|
|
1523
|
+
@passengers = passengers
|
|
1524
|
+
@property_phone_number = property_phone_number
|
|
1525
|
+
@room_class = room_class
|
|
1526
|
+
@room_nights = room_nights
|
|
1527
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
155
1528
|
@total_tax_amount = total_tax_amount
|
|
156
1529
|
end
|
|
157
1530
|
end
|
|
158
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
159
|
-
#
|
|
160
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
|
-
attr_accessor :discount_amount
|
|
162
|
-
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
163
|
-
#
|
|
164
|
-
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
165
|
-
#
|
|
166
|
-
# For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
|
|
167
|
-
attr_accessor :enforce_arithmetic_validation
|
|
168
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
169
|
-
attr_accessor :line_items
|
|
170
|
-
# Contains information about the shipping portion of the amount.
|
|
171
|
-
attr_accessor :shipping
|
|
172
|
-
# Contains information about the tax portion of the amount.
|
|
173
|
-
attr_accessor :tax
|
|
174
1531
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
1532
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1533
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1534
|
+
# Type of accommodation.
|
|
1535
|
+
attr_accessor :accommodation_type
|
|
1536
|
+
# Bed type.
|
|
1537
|
+
attr_accessor :bed_type
|
|
1538
|
+
# Daily accommodation rate in cents.
|
|
1539
|
+
attr_accessor :daily_rate_amount
|
|
1540
|
+
# Number of nights.
|
|
1541
|
+
attr_accessor :nights
|
|
1542
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1543
|
+
attr_accessor :number_of_rooms
|
|
1544
|
+
# Rate type.
|
|
1545
|
+
attr_accessor :rate_type
|
|
1546
|
+
# Whether smoking is allowed.
|
|
1547
|
+
attr_accessor :smoking_indicator
|
|
189
1548
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
1549
|
+
def initialize(
|
|
1550
|
+
accommodation_type: nil,
|
|
1551
|
+
bed_type: nil,
|
|
1552
|
+
daily_rate_amount: nil,
|
|
1553
|
+
nights: nil,
|
|
1554
|
+
number_of_rooms: nil,
|
|
1555
|
+
rate_type: nil,
|
|
1556
|
+
smoking_indicator: nil
|
|
1557
|
+
)
|
|
1558
|
+
@accommodation_type = accommodation_type
|
|
1559
|
+
@bed_type = bed_type
|
|
1560
|
+
@daily_rate_amount = daily_rate_amount
|
|
1561
|
+
@nights = nights
|
|
1562
|
+
@number_of_rooms = number_of_rooms
|
|
1563
|
+
@rate_type = rate_type
|
|
1564
|
+
@smoking_indicator = smoking_indicator
|
|
1565
|
+
end
|
|
1566
|
+
end
|
|
197
1567
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
1568
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1569
|
+
# Affiliate partner code.
|
|
1570
|
+
attr_accessor :code
|
|
1571
|
+
# Affiliate partner name.
|
|
1572
|
+
attr_accessor :name
|
|
203
1573
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
1574
|
+
def initialize(code: nil, name: nil)
|
|
1575
|
+
@code = code
|
|
1576
|
+
@name = name
|
|
1577
|
+
end
|
|
1578
|
+
end
|
|
209
1579
|
|
|
210
|
-
|
|
211
|
-
|
|
1580
|
+
class Guest < ::Stripe::RequestParams
|
|
1581
|
+
# Guest's full name.
|
|
1582
|
+
attr_accessor :name
|
|
1583
|
+
|
|
1584
|
+
def initialize(name: nil)
|
|
1585
|
+
@name = name
|
|
212
1586
|
end
|
|
213
1587
|
end
|
|
214
|
-
# Tax arguments for automations
|
|
215
|
-
attr_accessor :tax
|
|
216
1588
|
|
|
217
|
-
|
|
218
|
-
|
|
1589
|
+
class Host < ::Stripe::RequestParams
|
|
1590
|
+
class Address < ::Stripe::RequestParams
|
|
1591
|
+
# City, district, suburb, town, or village.
|
|
1592
|
+
attr_accessor :city
|
|
1593
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1594
|
+
attr_accessor :country
|
|
1595
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1596
|
+
attr_accessor :line1
|
|
1597
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1598
|
+
attr_accessor :line2
|
|
1599
|
+
# ZIP or postal code.
|
|
1600
|
+
attr_accessor :postal_code
|
|
1601
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1602
|
+
attr_accessor :state
|
|
1603
|
+
|
|
1604
|
+
def initialize(
|
|
1605
|
+
city: nil,
|
|
1606
|
+
country: nil,
|
|
1607
|
+
line1: nil,
|
|
1608
|
+
line2: nil,
|
|
1609
|
+
postal_code: nil,
|
|
1610
|
+
state: nil
|
|
1611
|
+
)
|
|
1612
|
+
@city = city
|
|
1613
|
+
@country = country
|
|
1614
|
+
@line1 = line1
|
|
1615
|
+
@line2 = line2
|
|
1616
|
+
@postal_code = postal_code
|
|
1617
|
+
@state = state
|
|
1618
|
+
end
|
|
1619
|
+
end
|
|
1620
|
+
# Address of the host.
|
|
1621
|
+
attr_accessor :address
|
|
1622
|
+
# Host's country of domicile.
|
|
1623
|
+
attr_accessor :country_of_domicile
|
|
1624
|
+
# Reference number for the host.
|
|
1625
|
+
attr_accessor :host_reference
|
|
1626
|
+
# Type of host.
|
|
1627
|
+
attr_accessor :host_type
|
|
1628
|
+
# Name of the lodging property or host.
|
|
1629
|
+
attr_accessor :name
|
|
1630
|
+
# Total number of reservations for the host.
|
|
1631
|
+
attr_accessor :number_of_reservations
|
|
1632
|
+
# Property phone number.
|
|
1633
|
+
attr_accessor :property_phone_number
|
|
1634
|
+
# Host's registration date.
|
|
1635
|
+
attr_accessor :registered_at
|
|
1636
|
+
|
|
1637
|
+
def initialize(
|
|
1638
|
+
address: nil,
|
|
1639
|
+
country_of_domicile: nil,
|
|
1640
|
+
host_reference: nil,
|
|
1641
|
+
host_type: nil,
|
|
1642
|
+
name: nil,
|
|
1643
|
+
number_of_reservations: nil,
|
|
1644
|
+
property_phone_number: nil,
|
|
1645
|
+
registered_at: nil
|
|
1646
|
+
)
|
|
1647
|
+
@address = address
|
|
1648
|
+
@country_of_domicile = country_of_domicile
|
|
1649
|
+
@host_reference = host_reference
|
|
1650
|
+
@host_type = host_type
|
|
1651
|
+
@name = name
|
|
1652
|
+
@number_of_reservations = number_of_reservations
|
|
1653
|
+
@property_phone_number = property_phone_number
|
|
1654
|
+
@registered_at = registered_at
|
|
1655
|
+
end
|
|
219
1656
|
end
|
|
220
|
-
end
|
|
221
|
-
# Arguments passed in automations
|
|
222
|
-
attr_accessor :inputs
|
|
223
1657
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1658
|
+
class Insurance < ::Stripe::RequestParams
|
|
1659
|
+
# Price of the insurance coverage in cents.
|
|
1660
|
+
attr_accessor :amount
|
|
1661
|
+
# Currency of the insurance amount.
|
|
1662
|
+
attr_accessor :currency
|
|
1663
|
+
# Name of the insurance company.
|
|
1664
|
+
attr_accessor :insurance_company_name
|
|
1665
|
+
# Type of insurance coverage.
|
|
1666
|
+
attr_accessor :insurance_type
|
|
228
1667
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
1668
|
+
def initialize(
|
|
1669
|
+
amount: nil,
|
|
1670
|
+
currency: nil,
|
|
1671
|
+
insurance_company_name: nil,
|
|
1672
|
+
insurance_type: nil
|
|
1673
|
+
)
|
|
1674
|
+
@amount = amount
|
|
1675
|
+
@currency = currency
|
|
1676
|
+
@insurance_company_name = insurance_company_name
|
|
1677
|
+
@insurance_type = insurance_type
|
|
1678
|
+
end
|
|
1679
|
+
end
|
|
232
1680
|
|
|
233
|
-
class
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
1681
|
+
class Total < ::Stripe::RequestParams
|
|
1682
|
+
class Discounts < ::Stripe::RequestParams
|
|
1683
|
+
# Corporate client discount code.
|
|
1684
|
+
attr_accessor :corporate_client_code
|
|
1685
|
+
# Coupon code.
|
|
1686
|
+
attr_accessor :coupon
|
|
238
1687
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
1688
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1689
|
+
@corporate_client_code = corporate_client_code
|
|
1690
|
+
@coupon = coupon
|
|
1691
|
+
end
|
|
1692
|
+
end
|
|
1693
|
+
|
|
1694
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1695
|
+
# Amount of the extra charge in cents.
|
|
1696
|
+
attr_accessor :amount
|
|
1697
|
+
# Type of extra charge.
|
|
1698
|
+
attr_accessor :type
|
|
1699
|
+
|
|
1700
|
+
def initialize(amount: nil, type: nil)
|
|
1701
|
+
@amount = amount
|
|
1702
|
+
@type = type
|
|
1703
|
+
end
|
|
1704
|
+
end
|
|
1705
|
+
|
|
1706
|
+
class Tax < ::Stripe::RequestParams
|
|
1707
|
+
class Tax < ::Stripe::RequestParams
|
|
1708
|
+
# Tax amount in cents.
|
|
1709
|
+
attr_accessor :amount
|
|
1710
|
+
# Tax rate.
|
|
1711
|
+
attr_accessor :rate
|
|
1712
|
+
# Type of tax applied.
|
|
1713
|
+
attr_accessor :type
|
|
1714
|
+
|
|
1715
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1716
|
+
@amount = amount
|
|
1717
|
+
@rate = rate
|
|
1718
|
+
@type = type
|
|
1719
|
+
end
|
|
1720
|
+
end
|
|
1721
|
+
# Indicates whether the transaction is tax exempt.
|
|
1722
|
+
attr_accessor :tax_exempt_indicator
|
|
1723
|
+
# Tax details.
|
|
1724
|
+
attr_accessor :taxes
|
|
1725
|
+
|
|
1726
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1727
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1728
|
+
@taxes = taxes
|
|
1729
|
+
end
|
|
1730
|
+
end
|
|
1731
|
+
# Total price of the lodging reservation in cents.
|
|
1732
|
+
attr_accessor :amount
|
|
1733
|
+
# Cash advances in cents.
|
|
1734
|
+
attr_accessor :cash_advances
|
|
1735
|
+
# Currency of the total amount.
|
|
1736
|
+
attr_accessor :currency
|
|
1737
|
+
# Discount details for the lodging.
|
|
1738
|
+
attr_accessor :discounts
|
|
1739
|
+
# Additional charges for the lodging.
|
|
1740
|
+
attr_accessor :extra_charges
|
|
1741
|
+
# Prepaid amount in cents.
|
|
1742
|
+
attr_accessor :prepaid_amount
|
|
1743
|
+
# Tax breakdown for the lodging reservation.
|
|
1744
|
+
attr_accessor :tax
|
|
1745
|
+
|
|
1746
|
+
def initialize(
|
|
1747
|
+
amount: nil,
|
|
1748
|
+
cash_advances: nil,
|
|
1749
|
+
currency: nil,
|
|
1750
|
+
discounts: nil,
|
|
1751
|
+
extra_charges: nil,
|
|
1752
|
+
prepaid_amount: nil,
|
|
1753
|
+
tax: nil
|
|
1754
|
+
)
|
|
1755
|
+
@amount = amount
|
|
1756
|
+
@cash_advances = cash_advances
|
|
1757
|
+
@currency = currency
|
|
1758
|
+
@discounts = discounts
|
|
1759
|
+
@extra_charges = extra_charges
|
|
1760
|
+
@prepaid_amount = prepaid_amount
|
|
1761
|
+
@tax = tax
|
|
242
1762
|
end
|
|
243
1763
|
end
|
|
244
|
-
#
|
|
245
|
-
attr_accessor :
|
|
246
|
-
#
|
|
247
|
-
attr_accessor :
|
|
248
|
-
#
|
|
249
|
-
attr_accessor :
|
|
250
|
-
#
|
|
251
|
-
attr_accessor :
|
|
1764
|
+
# Accommodation details for the lodging.
|
|
1765
|
+
attr_accessor :accommodation
|
|
1766
|
+
# Affiliate details if applicable.
|
|
1767
|
+
attr_accessor :affiliate
|
|
1768
|
+
# Booking confirmation number for the lodging.
|
|
1769
|
+
attr_accessor :booking_number
|
|
1770
|
+
# Check-in date.
|
|
1771
|
+
attr_accessor :checkin_at
|
|
1772
|
+
# Check-out date.
|
|
1773
|
+
attr_accessor :checkout_at
|
|
1774
|
+
# Customer service phone number for the lodging company.
|
|
1775
|
+
attr_accessor :customer_service_phone_number
|
|
1776
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1777
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1778
|
+
# List of guests for the lodging.
|
|
1779
|
+
attr_accessor :guests
|
|
1780
|
+
# Host details for the lodging.
|
|
1781
|
+
attr_accessor :host
|
|
1782
|
+
# List of insurances for the lodging.
|
|
1783
|
+
attr_accessor :insurances
|
|
1784
|
+
# Whether the renter is a no-show.
|
|
1785
|
+
attr_accessor :no_show_indicator
|
|
1786
|
+
# Renter ID number for the lodging.
|
|
1787
|
+
attr_accessor :renter_id_number
|
|
1788
|
+
# Renter name for the lodging.
|
|
1789
|
+
attr_accessor :renter_name
|
|
1790
|
+
# Total details for the lodging.
|
|
1791
|
+
attr_accessor :total
|
|
252
1792
|
|
|
253
|
-
def initialize(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
1793
|
+
def initialize(
|
|
1794
|
+
accommodation: nil,
|
|
1795
|
+
affiliate: nil,
|
|
1796
|
+
booking_number: nil,
|
|
1797
|
+
checkin_at: nil,
|
|
1798
|
+
checkout_at: nil,
|
|
1799
|
+
customer_service_phone_number: nil,
|
|
1800
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1801
|
+
guests: nil,
|
|
1802
|
+
host: nil,
|
|
1803
|
+
insurances: nil,
|
|
1804
|
+
no_show_indicator: nil,
|
|
1805
|
+
renter_id_number: nil,
|
|
1806
|
+
renter_name: nil,
|
|
1807
|
+
total: nil
|
|
1808
|
+
)
|
|
1809
|
+
@accommodation = accommodation
|
|
1810
|
+
@affiliate = affiliate
|
|
1811
|
+
@booking_number = booking_number
|
|
1812
|
+
@checkin_at = checkin_at
|
|
1813
|
+
@checkout_at = checkout_at
|
|
1814
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1815
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1816
|
+
@guests = guests
|
|
1817
|
+
@host = host
|
|
1818
|
+
@insurances = insurances
|
|
1819
|
+
@no_show_indicator = no_show_indicator
|
|
1820
|
+
@renter_id_number = renter_id_number
|
|
1821
|
+
@renter_name = renter_name
|
|
1822
|
+
@total = total
|
|
258
1823
|
end
|
|
259
1824
|
end
|
|
260
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
261
|
-
attr_accessor :customer_acceptance
|
|
262
1825
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
1826
|
+
class Subscription < ::Stripe::RequestParams
|
|
1827
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1828
|
+
# The name of the affiliate that originated the purchase.
|
|
1829
|
+
attr_accessor :name
|
|
267
1830
|
|
|
268
|
-
|
|
1831
|
+
def initialize(name: nil)
|
|
1832
|
+
@name = name
|
|
1833
|
+
end
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1837
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1838
|
+
attr_accessor :count
|
|
1839
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1840
|
+
attr_accessor :interval
|
|
1841
|
+
|
|
1842
|
+
def initialize(count: nil, interval: nil)
|
|
1843
|
+
@count = count
|
|
1844
|
+
@interval = interval
|
|
1845
|
+
end
|
|
1846
|
+
end
|
|
1847
|
+
# Affiliate details for this purchase.
|
|
1848
|
+
attr_accessor :affiliate
|
|
1849
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1850
|
+
attr_accessor :auto_renewal
|
|
1851
|
+
# Subscription billing details for this purchase.
|
|
1852
|
+
attr_accessor :billing_interval
|
|
1853
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1854
|
+
attr_accessor :ends_at
|
|
1855
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1856
|
+
attr_accessor :name
|
|
1857
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1858
|
+
attr_accessor :starts_at
|
|
1859
|
+
|
|
1860
|
+
def initialize(
|
|
1861
|
+
affiliate: nil,
|
|
1862
|
+
auto_renewal: nil,
|
|
1863
|
+
billing_interval: nil,
|
|
1864
|
+
ends_at: nil,
|
|
1865
|
+
name: nil,
|
|
1866
|
+
starts_at: nil
|
|
1867
|
+
)
|
|
1868
|
+
@affiliate = affiliate
|
|
1869
|
+
@auto_renewal = auto_renewal
|
|
1870
|
+
@billing_interval = billing_interval
|
|
1871
|
+
@ends_at = ends_at
|
|
1872
|
+
@name = name
|
|
1873
|
+
@starts_at = starts_at
|
|
1874
|
+
end
|
|
1875
|
+
end
|
|
1876
|
+
# Car rental details for this PaymentIntent.
|
|
1877
|
+
attr_accessor :car_rental
|
|
1878
|
+
# Car rental data for this PaymentIntent.
|
|
1879
|
+
attr_accessor :car_rental_data
|
|
269
1880
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
270
1881
|
#
|
|
271
1882
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
272
1883
|
attr_accessor :customer_reference
|
|
1884
|
+
# Event details for this PaymentIntent
|
|
1885
|
+
attr_accessor :event_details
|
|
1886
|
+
# Flight reservation details for this PaymentIntent
|
|
1887
|
+
attr_accessor :flight
|
|
1888
|
+
# Flight data for this PaymentIntent.
|
|
1889
|
+
attr_accessor :flight_data
|
|
1890
|
+
# Lodging reservation details for this PaymentIntent
|
|
1891
|
+
attr_accessor :lodging
|
|
1892
|
+
# Lodging data for this PaymentIntent.
|
|
1893
|
+
attr_accessor :lodging_data
|
|
273
1894
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
274
1895
|
#
|
|
275
1896
|
# 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.
|
|
276
1897
|
attr_accessor :order_reference
|
|
1898
|
+
# Subscription details for this PaymentIntent
|
|
1899
|
+
attr_accessor :subscription
|
|
277
1900
|
|
|
278
|
-
def initialize(
|
|
1901
|
+
def initialize(
|
|
1902
|
+
car_rental: nil,
|
|
1903
|
+
car_rental_data: nil,
|
|
1904
|
+
customer_reference: nil,
|
|
1905
|
+
event_details: nil,
|
|
1906
|
+
flight: nil,
|
|
1907
|
+
flight_data: nil,
|
|
1908
|
+
lodging: nil,
|
|
1909
|
+
lodging_data: nil,
|
|
1910
|
+
order_reference: nil,
|
|
1911
|
+
subscription: nil
|
|
1912
|
+
)
|
|
1913
|
+
@car_rental = car_rental
|
|
1914
|
+
@car_rental_data = car_rental_data
|
|
279
1915
|
@customer_reference = customer_reference
|
|
1916
|
+
@event_details = event_details
|
|
1917
|
+
@flight = flight
|
|
1918
|
+
@flight_data = flight_data
|
|
1919
|
+
@lodging = lodging
|
|
1920
|
+
@lodging_data = lodging_data
|
|
280
1921
|
@order_reference = order_reference
|
|
1922
|
+
@subscription = subscription
|
|
281
1923
|
end
|
|
282
1924
|
end
|
|
283
1925
|
|
|
@@ -419,8 +2061,18 @@ module Stripe
|
|
|
419
2061
|
end
|
|
420
2062
|
|
|
421
2063
|
class Giropay < ::Stripe::RequestParams; end
|
|
2064
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
422
2065
|
class Grabpay < ::Stripe::RequestParams; end
|
|
423
2066
|
|
|
2067
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2068
|
+
# Bank where the account is held.
|
|
2069
|
+
attr_accessor :bank
|
|
2070
|
+
|
|
2071
|
+
def initialize(bank: nil)
|
|
2072
|
+
@bank = bank
|
|
2073
|
+
end
|
|
2074
|
+
end
|
|
2075
|
+
|
|
424
2076
|
class Ideal < ::Stripe::RequestParams
|
|
425
2077
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
426
2078
|
attr_accessor :bank
|
|
@@ -518,6 +2170,7 @@ module Stripe
|
|
|
518
2170
|
class Payco < ::Stripe::RequestParams; end
|
|
519
2171
|
class Paynow < ::Stripe::RequestParams; end
|
|
520
2172
|
class Paypal < ::Stripe::RequestParams; end
|
|
2173
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
521
2174
|
|
|
522
2175
|
class Payto < ::Stripe::RequestParams
|
|
523
2176
|
# The account number for the bank account.
|
|
@@ -536,13 +2189,37 @@ module Stripe
|
|
|
536
2189
|
|
|
537
2190
|
class Pix < ::Stripe::RequestParams; end
|
|
538
2191
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2192
|
+
class Qris < ::Stripe::RequestParams; end
|
|
539
2193
|
|
|
540
2194
|
class RadarOptions < ::Stripe::RequestParams
|
|
541
2195
|
# 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.
|
|
542
2196
|
attr_accessor :session
|
|
543
2197
|
|
|
544
|
-
def initialize(session: nil)
|
|
545
|
-
@session = session
|
|
2198
|
+
def initialize(session: nil)
|
|
2199
|
+
@session = session
|
|
2200
|
+
end
|
|
2201
|
+
end
|
|
2202
|
+
|
|
2203
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2204
|
+
class Dob < ::Stripe::RequestParams
|
|
2205
|
+
# The day of birth, between 1 and 31.
|
|
2206
|
+
attr_accessor :day
|
|
2207
|
+
# The month of birth, between 1 and 12.
|
|
2208
|
+
attr_accessor :month
|
|
2209
|
+
# The four-digit year of birth.
|
|
2210
|
+
attr_accessor :year
|
|
2211
|
+
|
|
2212
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2213
|
+
@day = day
|
|
2214
|
+
@month = month
|
|
2215
|
+
@year = year
|
|
2216
|
+
end
|
|
2217
|
+
end
|
|
2218
|
+
# Customer's date of birth
|
|
2219
|
+
attr_accessor :dob
|
|
2220
|
+
|
|
2221
|
+
def initialize(dob: nil)
|
|
2222
|
+
@dob = dob
|
|
546
2223
|
end
|
|
547
2224
|
end
|
|
548
2225
|
|
|
@@ -560,6 +2237,8 @@ module Stripe
|
|
|
560
2237
|
end
|
|
561
2238
|
end
|
|
562
2239
|
|
|
2240
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2241
|
+
|
|
563
2242
|
class Sofort < ::Stripe::RequestParams
|
|
564
2243
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
565
2244
|
attr_accessor :country
|
|
@@ -569,6 +2248,15 @@ module Stripe
|
|
|
569
2248
|
end
|
|
570
2249
|
end
|
|
571
2250
|
|
|
2251
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2252
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2253
|
+
attr_accessor :account
|
|
2254
|
+
|
|
2255
|
+
def initialize(account: nil)
|
|
2256
|
+
@account = account
|
|
2257
|
+
end
|
|
2258
|
+
end
|
|
2259
|
+
|
|
572
2260
|
class Sunbit < ::Stripe::RequestParams; end
|
|
573
2261
|
class Swish < ::Stripe::RequestParams; end
|
|
574
2262
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -670,8 +2358,12 @@ module Stripe
|
|
|
670
2358
|
attr_accessor :fpx
|
|
671
2359
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
672
2360
|
attr_accessor :giropay
|
|
2361
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2362
|
+
attr_accessor :gopay
|
|
673
2363
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
674
2364
|
attr_accessor :grabpay
|
|
2365
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2366
|
+
attr_accessor :id_bank_transfer
|
|
675
2367
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
676
2368
|
attr_accessor :ideal
|
|
677
2369
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -710,14 +2402,20 @@ module Stripe
|
|
|
710
2402
|
attr_accessor :paynow
|
|
711
2403
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
712
2404
|
attr_accessor :paypal
|
|
2405
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2406
|
+
attr_accessor :paypay
|
|
713
2407
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
714
2408
|
attr_accessor :payto
|
|
715
2409
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
716
2410
|
attr_accessor :pix
|
|
717
2411
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
718
2412
|
attr_accessor :promptpay
|
|
2413
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2414
|
+
attr_accessor :qris
|
|
719
2415
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
720
2416
|
attr_accessor :radar_options
|
|
2417
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2418
|
+
attr_accessor :rechnung
|
|
721
2419
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
722
2420
|
attr_accessor :revolut_pay
|
|
723
2421
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -728,8 +2426,14 @@ module Stripe
|
|
|
728
2426
|
attr_accessor :scalapay
|
|
729
2427
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
730
2428
|
attr_accessor :sepa_debit
|
|
2429
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2430
|
+
attr_accessor :shared_payment_granted_token
|
|
2431
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2432
|
+
attr_accessor :shopeepay
|
|
731
2433
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
732
2434
|
attr_accessor :sofort
|
|
2435
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2436
|
+
attr_accessor :stripe_balance
|
|
733
2437
|
# If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
734
2438
|
attr_accessor :sunbit
|
|
735
2439
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -769,7 +2473,9 @@ module Stripe
|
|
|
769
2473
|
eps: nil,
|
|
770
2474
|
fpx: nil,
|
|
771
2475
|
giropay: nil,
|
|
2476
|
+
gopay: nil,
|
|
772
2477
|
grabpay: nil,
|
|
2478
|
+
id_bank_transfer: nil,
|
|
773
2479
|
ideal: nil,
|
|
774
2480
|
interac_present: nil,
|
|
775
2481
|
kakao_pay: nil,
|
|
@@ -789,16 +2495,22 @@ module Stripe
|
|
|
789
2495
|
payco: nil,
|
|
790
2496
|
paynow: nil,
|
|
791
2497
|
paypal: nil,
|
|
2498
|
+
paypay: nil,
|
|
792
2499
|
payto: nil,
|
|
793
2500
|
pix: nil,
|
|
794
2501
|
promptpay: nil,
|
|
2502
|
+
qris: nil,
|
|
795
2503
|
radar_options: nil,
|
|
2504
|
+
rechnung: nil,
|
|
796
2505
|
revolut_pay: nil,
|
|
797
2506
|
samsung_pay: nil,
|
|
798
2507
|
satispay: nil,
|
|
799
2508
|
scalapay: nil,
|
|
800
2509
|
sepa_debit: nil,
|
|
2510
|
+
shared_payment_granted_token: nil,
|
|
2511
|
+
shopeepay: nil,
|
|
801
2512
|
sofort: nil,
|
|
2513
|
+
stripe_balance: nil,
|
|
802
2514
|
sunbit: nil,
|
|
803
2515
|
swish: nil,
|
|
804
2516
|
twint: nil,
|
|
@@ -829,7 +2541,9 @@ module Stripe
|
|
|
829
2541
|
@eps = eps
|
|
830
2542
|
@fpx = fpx
|
|
831
2543
|
@giropay = giropay
|
|
2544
|
+
@gopay = gopay
|
|
832
2545
|
@grabpay = grabpay
|
|
2546
|
+
@id_bank_transfer = id_bank_transfer
|
|
833
2547
|
@ideal = ideal
|
|
834
2548
|
@interac_present = interac_present
|
|
835
2549
|
@kakao_pay = kakao_pay
|
|
@@ -849,16 +2563,22 @@ module Stripe
|
|
|
849
2563
|
@payco = payco
|
|
850
2564
|
@paynow = paynow
|
|
851
2565
|
@paypal = paypal
|
|
2566
|
+
@paypay = paypay
|
|
852
2567
|
@payto = payto
|
|
853
2568
|
@pix = pix
|
|
854
2569
|
@promptpay = promptpay
|
|
2570
|
+
@qris = qris
|
|
855
2571
|
@radar_options = radar_options
|
|
2572
|
+
@rechnung = rechnung
|
|
856
2573
|
@revolut_pay = revolut_pay
|
|
857
2574
|
@samsung_pay = samsung_pay
|
|
858
2575
|
@satispay = satispay
|
|
859
2576
|
@scalapay = scalapay
|
|
860
2577
|
@sepa_debit = sepa_debit
|
|
2578
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
2579
|
+
@shopeepay = shopeepay
|
|
861
2580
|
@sofort = sofort
|
|
2581
|
+
@stripe_balance = stripe_balance
|
|
862
2582
|
@sunbit = sunbit
|
|
863
2583
|
@swish = swish
|
|
864
2584
|
@twint = twint
|
|
@@ -1233,6 +2953,48 @@ module Stripe
|
|
|
1233
2953
|
end
|
|
1234
2954
|
end
|
|
1235
2955
|
|
|
2956
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2957
|
+
class Address < ::Stripe::RequestParams
|
|
2958
|
+
# City, district, suburb, town, or village.
|
|
2959
|
+
attr_accessor :city
|
|
2960
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2961
|
+
attr_accessor :country
|
|
2962
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2963
|
+
attr_accessor :line1
|
|
2964
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2965
|
+
attr_accessor :line2
|
|
2966
|
+
# ZIP or postal code.
|
|
2967
|
+
attr_accessor :postal_code
|
|
2968
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2969
|
+
attr_accessor :state
|
|
2970
|
+
|
|
2971
|
+
def initialize(
|
|
2972
|
+
city: nil,
|
|
2973
|
+
country: nil,
|
|
2974
|
+
line1: nil,
|
|
2975
|
+
line2: nil,
|
|
2976
|
+
postal_code: nil,
|
|
2977
|
+
state: nil
|
|
2978
|
+
)
|
|
2979
|
+
@city = city
|
|
2980
|
+
@country = country
|
|
2981
|
+
@line1 = line1
|
|
2982
|
+
@line2 = line2
|
|
2983
|
+
@postal_code = postal_code
|
|
2984
|
+
@state = state
|
|
2985
|
+
end
|
|
2986
|
+
end
|
|
2987
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2988
|
+
attr_accessor :address
|
|
2989
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2990
|
+
attr_accessor :phone
|
|
2991
|
+
|
|
2992
|
+
def initialize(address: nil, phone: nil)
|
|
2993
|
+
@address = address
|
|
2994
|
+
@phone = phone
|
|
2995
|
+
end
|
|
2996
|
+
end
|
|
2997
|
+
|
|
1236
2998
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1237
2999
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1238
3000
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1327,6 +3089,8 @@ module Stripe
|
|
|
1327
3089
|
attr_accessor :moto
|
|
1328
3090
|
# 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.
|
|
1329
3091
|
attr_accessor :network
|
|
3092
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3093
|
+
attr_accessor :request_decremental_authorization
|
|
1330
3094
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1331
3095
|
attr_accessor :request_extended_authorization
|
|
1332
3096
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1335,6 +3099,8 @@ module Stripe
|
|
|
1335
3099
|
attr_accessor :request_multicapture
|
|
1336
3100
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1337
3101
|
attr_accessor :request_overcapture
|
|
3102
|
+
# Request partial authorization on this PaymentIntent.
|
|
3103
|
+
attr_accessor :request_partial_authorization
|
|
1338
3104
|
# 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.
|
|
1339
3105
|
attr_accessor :request_three_d_secure
|
|
1340
3106
|
# 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).
|
|
@@ -1353,6 +3119,8 @@ module Stripe
|
|
|
1353
3119
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1354
3120
|
# 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.
|
|
1355
3121
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3122
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3123
|
+
attr_accessor :statement_details
|
|
1356
3124
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1357
3125
|
# the authentication details to use for this payment.
|
|
1358
3126
|
attr_accessor :three_d_secure
|
|
@@ -1364,15 +3132,18 @@ module Stripe
|
|
|
1364
3132
|
mandate_options: nil,
|
|
1365
3133
|
moto: nil,
|
|
1366
3134
|
network: nil,
|
|
3135
|
+
request_decremental_authorization: nil,
|
|
1367
3136
|
request_extended_authorization: nil,
|
|
1368
3137
|
request_incremental_authorization: nil,
|
|
1369
3138
|
request_multicapture: nil,
|
|
1370
3139
|
request_overcapture: nil,
|
|
3140
|
+
request_partial_authorization: nil,
|
|
1371
3141
|
request_three_d_secure: nil,
|
|
1372
3142
|
require_cvc_recollection: nil,
|
|
1373
3143
|
setup_future_usage: nil,
|
|
1374
3144
|
statement_descriptor_suffix_kana: nil,
|
|
1375
3145
|
statement_descriptor_suffix_kanji: nil,
|
|
3146
|
+
statement_details: nil,
|
|
1376
3147
|
three_d_secure: nil
|
|
1377
3148
|
)
|
|
1378
3149
|
@capture_method = capture_method
|
|
@@ -1381,15 +3152,18 @@ module Stripe
|
|
|
1381
3152
|
@mandate_options = mandate_options
|
|
1382
3153
|
@moto = moto
|
|
1383
3154
|
@network = network
|
|
3155
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1384
3156
|
@request_extended_authorization = request_extended_authorization
|
|
1385
3157
|
@request_incremental_authorization = request_incremental_authorization
|
|
1386
3158
|
@request_multicapture = request_multicapture
|
|
1387
3159
|
@request_overcapture = request_overcapture
|
|
3160
|
+
@request_partial_authorization = request_partial_authorization
|
|
1388
3161
|
@request_three_d_secure = request_three_d_secure
|
|
1389
3162
|
@require_cvc_recollection = require_cvc_recollection
|
|
1390
3163
|
@setup_future_usage = setup_future_usage
|
|
1391
3164
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1392
3165
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3166
|
+
@statement_details = statement_details
|
|
1393
3167
|
@three_d_secure = three_d_secure
|
|
1394
3168
|
end
|
|
1395
3169
|
end
|
|
@@ -1568,6 +3342,23 @@ module Stripe
|
|
|
1568
3342
|
end
|
|
1569
3343
|
end
|
|
1570
3344
|
|
|
3345
|
+
class Gopay < ::Stripe::RequestParams
|
|
3346
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3347
|
+
#
|
|
3348
|
+
# 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.
|
|
3349
|
+
#
|
|
3350
|
+
# 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.
|
|
3351
|
+
#
|
|
3352
|
+
# 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).
|
|
3353
|
+
#
|
|
3354
|
+
# 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`.
|
|
3355
|
+
attr_accessor :setup_future_usage
|
|
3356
|
+
|
|
3357
|
+
def initialize(setup_future_usage: nil)
|
|
3358
|
+
@setup_future_usage = setup_future_usage
|
|
3359
|
+
end
|
|
3360
|
+
end
|
|
3361
|
+
|
|
1571
3362
|
class Grabpay < ::Stripe::RequestParams
|
|
1572
3363
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1573
3364
|
#
|
|
@@ -1585,6 +3376,29 @@ module Stripe
|
|
|
1585
3376
|
end
|
|
1586
3377
|
end
|
|
1587
3378
|
|
|
3379
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3380
|
+
# 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.
|
|
3381
|
+
attr_accessor :expires_after
|
|
3382
|
+
# 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.
|
|
3383
|
+
attr_accessor :expires_at
|
|
3384
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3385
|
+
#
|
|
3386
|
+
# 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.
|
|
3387
|
+
#
|
|
3388
|
+
# 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.
|
|
3389
|
+
#
|
|
3390
|
+
# 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).
|
|
3391
|
+
#
|
|
3392
|
+
# 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`.
|
|
3393
|
+
attr_accessor :setup_future_usage
|
|
3394
|
+
|
|
3395
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3396
|
+
@expires_after = expires_after
|
|
3397
|
+
@expires_at = expires_at
|
|
3398
|
+
@setup_future_usage = setup_future_usage
|
|
3399
|
+
end
|
|
3400
|
+
end
|
|
3401
|
+
|
|
1588
3402
|
class Ideal < ::Stripe::RequestParams
|
|
1589
3403
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1590
3404
|
#
|
|
@@ -1691,6 +3505,939 @@ module Stripe
|
|
|
1691
3505
|
@reference = reference
|
|
1692
3506
|
end
|
|
1693
3507
|
end
|
|
3508
|
+
|
|
3509
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3510
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3511
|
+
class Arrival < ::Stripe::RequestParams
|
|
3512
|
+
class Address < ::Stripe::RequestParams
|
|
3513
|
+
# The city or town.
|
|
3514
|
+
attr_accessor :city
|
|
3515
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3516
|
+
attr_accessor :country
|
|
3517
|
+
# The postal code formatted according to country.
|
|
3518
|
+
attr_accessor :postal_code
|
|
3519
|
+
# The state, county, province, or region formatted according to country.
|
|
3520
|
+
attr_accessor :region
|
|
3521
|
+
# Line 1 of the street address.
|
|
3522
|
+
attr_accessor :street_address
|
|
3523
|
+
# Line 2 of the street address.
|
|
3524
|
+
attr_accessor :street_address2
|
|
3525
|
+
|
|
3526
|
+
def initialize(
|
|
3527
|
+
city: nil,
|
|
3528
|
+
country: nil,
|
|
3529
|
+
postal_code: nil,
|
|
3530
|
+
region: nil,
|
|
3531
|
+
street_address: nil,
|
|
3532
|
+
street_address2: nil
|
|
3533
|
+
)
|
|
3534
|
+
@city = city
|
|
3535
|
+
@country = country
|
|
3536
|
+
@postal_code = postal_code
|
|
3537
|
+
@region = region
|
|
3538
|
+
@street_address = street_address
|
|
3539
|
+
@street_address2 = street_address2
|
|
3540
|
+
end
|
|
3541
|
+
end
|
|
3542
|
+
# Address of the arrival location.
|
|
3543
|
+
attr_accessor :address
|
|
3544
|
+
# Identifier name or reference for the arrival location.
|
|
3545
|
+
attr_accessor :arrival_location
|
|
3546
|
+
|
|
3547
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3548
|
+
@address = address
|
|
3549
|
+
@arrival_location = arrival_location
|
|
3550
|
+
end
|
|
3551
|
+
end
|
|
3552
|
+
|
|
3553
|
+
class Departure < ::Stripe::RequestParams
|
|
3554
|
+
class Address < ::Stripe::RequestParams
|
|
3555
|
+
# The city or town.
|
|
3556
|
+
attr_accessor :city
|
|
3557
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3558
|
+
attr_accessor :country
|
|
3559
|
+
# The postal code formatted according to country.
|
|
3560
|
+
attr_accessor :postal_code
|
|
3561
|
+
# The state, county, province, or region formatted according to country.
|
|
3562
|
+
attr_accessor :region
|
|
3563
|
+
# Line 1 of the street address.
|
|
3564
|
+
attr_accessor :street_address
|
|
3565
|
+
# Line 2 of the street address.
|
|
3566
|
+
attr_accessor :street_address2
|
|
3567
|
+
|
|
3568
|
+
def initialize(
|
|
3569
|
+
city: nil,
|
|
3570
|
+
country: nil,
|
|
3571
|
+
postal_code: nil,
|
|
3572
|
+
region: nil,
|
|
3573
|
+
street_address: nil,
|
|
3574
|
+
street_address2: nil
|
|
3575
|
+
)
|
|
3576
|
+
@city = city
|
|
3577
|
+
@country = country
|
|
3578
|
+
@postal_code = postal_code
|
|
3579
|
+
@region = region
|
|
3580
|
+
@street_address = street_address
|
|
3581
|
+
@street_address2 = street_address2
|
|
3582
|
+
end
|
|
3583
|
+
end
|
|
3584
|
+
# Address of the departure location.
|
|
3585
|
+
attr_accessor :address
|
|
3586
|
+
# Timestamp of departure.
|
|
3587
|
+
attr_accessor :departs_at
|
|
3588
|
+
# Identifier name or reference for the origin location.
|
|
3589
|
+
attr_accessor :departure_location
|
|
3590
|
+
|
|
3591
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3592
|
+
@address = address
|
|
3593
|
+
@departs_at = departs_at
|
|
3594
|
+
@departure_location = departure_location
|
|
3595
|
+
end
|
|
3596
|
+
end
|
|
3597
|
+
|
|
3598
|
+
class Insurance < ::Stripe::RequestParams
|
|
3599
|
+
# Insurance currency.
|
|
3600
|
+
attr_accessor :currency
|
|
3601
|
+
# Name of the company providing the insurance.
|
|
3602
|
+
attr_accessor :insurance_company_name
|
|
3603
|
+
# Type of insurance.
|
|
3604
|
+
attr_accessor :insurance_type
|
|
3605
|
+
# Price of insurance in cents.
|
|
3606
|
+
attr_accessor :price
|
|
3607
|
+
|
|
3608
|
+
def initialize(
|
|
3609
|
+
currency: nil,
|
|
3610
|
+
insurance_company_name: nil,
|
|
3611
|
+
insurance_type: nil,
|
|
3612
|
+
price: nil
|
|
3613
|
+
)
|
|
3614
|
+
@currency = currency
|
|
3615
|
+
@insurance_company_name = insurance_company_name
|
|
3616
|
+
@insurance_type = insurance_type
|
|
3617
|
+
@price = price
|
|
3618
|
+
end
|
|
3619
|
+
end
|
|
3620
|
+
|
|
3621
|
+
class Passenger < ::Stripe::RequestParams
|
|
3622
|
+
# The family name of the person.
|
|
3623
|
+
attr_accessor :family_name
|
|
3624
|
+
# The given name of the person.
|
|
3625
|
+
attr_accessor :given_name
|
|
3626
|
+
|
|
3627
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3628
|
+
@family_name = family_name
|
|
3629
|
+
@given_name = given_name
|
|
3630
|
+
end
|
|
3631
|
+
end
|
|
3632
|
+
# Name of associated or partner company for the service.
|
|
3633
|
+
attr_accessor :affiliate_name
|
|
3634
|
+
# Arrival details.
|
|
3635
|
+
attr_accessor :arrival
|
|
3636
|
+
# Name of transportation company.
|
|
3637
|
+
attr_accessor :carrier_name
|
|
3638
|
+
# Currency.
|
|
3639
|
+
attr_accessor :currency
|
|
3640
|
+
# Departure details.
|
|
3641
|
+
attr_accessor :departure
|
|
3642
|
+
# List of insurances for this reservation.
|
|
3643
|
+
attr_accessor :insurances
|
|
3644
|
+
# List of passengers that this reservation applies to.
|
|
3645
|
+
attr_accessor :passengers
|
|
3646
|
+
# Price in cents.
|
|
3647
|
+
attr_accessor :price
|
|
3648
|
+
# Ticket class.
|
|
3649
|
+
attr_accessor :ticket_class
|
|
3650
|
+
|
|
3651
|
+
def initialize(
|
|
3652
|
+
affiliate_name: nil,
|
|
3653
|
+
arrival: nil,
|
|
3654
|
+
carrier_name: nil,
|
|
3655
|
+
currency: nil,
|
|
3656
|
+
departure: nil,
|
|
3657
|
+
insurances: nil,
|
|
3658
|
+
passengers: nil,
|
|
3659
|
+
price: nil,
|
|
3660
|
+
ticket_class: nil
|
|
3661
|
+
)
|
|
3662
|
+
@affiliate_name = affiliate_name
|
|
3663
|
+
@arrival = arrival
|
|
3664
|
+
@carrier_name = carrier_name
|
|
3665
|
+
@currency = currency
|
|
3666
|
+
@departure = departure
|
|
3667
|
+
@insurances = insurances
|
|
3668
|
+
@passengers = passengers
|
|
3669
|
+
@price = price
|
|
3670
|
+
@ticket_class = ticket_class
|
|
3671
|
+
end
|
|
3672
|
+
end
|
|
3673
|
+
|
|
3674
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3675
|
+
class Address < ::Stripe::RequestParams
|
|
3676
|
+
# The city or town.
|
|
3677
|
+
attr_accessor :city
|
|
3678
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3679
|
+
attr_accessor :country
|
|
3680
|
+
# The postal code formatted according to country.
|
|
3681
|
+
attr_accessor :postal_code
|
|
3682
|
+
# The state, county, province, or region formatted according to country.
|
|
3683
|
+
attr_accessor :region
|
|
3684
|
+
# Line 1 of the street address.
|
|
3685
|
+
attr_accessor :street_address
|
|
3686
|
+
# Line 2 of the street address.
|
|
3687
|
+
attr_accessor :street_address2
|
|
3688
|
+
|
|
3689
|
+
def initialize(
|
|
3690
|
+
city: nil,
|
|
3691
|
+
country: nil,
|
|
3692
|
+
postal_code: nil,
|
|
3693
|
+
region: nil,
|
|
3694
|
+
street_address: nil,
|
|
3695
|
+
street_address2: nil
|
|
3696
|
+
)
|
|
3697
|
+
@city = city
|
|
3698
|
+
@country = country
|
|
3699
|
+
@postal_code = postal_code
|
|
3700
|
+
@region = region
|
|
3701
|
+
@street_address = street_address
|
|
3702
|
+
@street_address2 = street_address2
|
|
3703
|
+
end
|
|
3704
|
+
end
|
|
3705
|
+
|
|
3706
|
+
class Insurance < ::Stripe::RequestParams
|
|
3707
|
+
# Insurance currency.
|
|
3708
|
+
attr_accessor :currency
|
|
3709
|
+
# Name of the company providing the insurance.
|
|
3710
|
+
attr_accessor :insurance_company_name
|
|
3711
|
+
# Type of insurance.
|
|
3712
|
+
attr_accessor :insurance_type
|
|
3713
|
+
# Price of insurance in cents.
|
|
3714
|
+
attr_accessor :price
|
|
3715
|
+
|
|
3716
|
+
def initialize(
|
|
3717
|
+
currency: nil,
|
|
3718
|
+
insurance_company_name: nil,
|
|
3719
|
+
insurance_type: nil,
|
|
3720
|
+
price: nil
|
|
3721
|
+
)
|
|
3722
|
+
@currency = currency
|
|
3723
|
+
@insurance_company_name = insurance_company_name
|
|
3724
|
+
@insurance_type = insurance_type
|
|
3725
|
+
@price = price
|
|
3726
|
+
end
|
|
3727
|
+
end
|
|
3728
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3729
|
+
attr_accessor :access_controlled_venue
|
|
3730
|
+
# Address of the event.
|
|
3731
|
+
attr_accessor :address
|
|
3732
|
+
# Name of associated or partner company for the service.
|
|
3733
|
+
attr_accessor :affiliate_name
|
|
3734
|
+
# End timestamp of the event.
|
|
3735
|
+
attr_accessor :ends_at
|
|
3736
|
+
# Company selling the ticket.
|
|
3737
|
+
attr_accessor :event_company_name
|
|
3738
|
+
# Name of the event.
|
|
3739
|
+
attr_accessor :event_name
|
|
3740
|
+
# Type of the event.
|
|
3741
|
+
attr_accessor :event_type
|
|
3742
|
+
# List of insurances for this event.
|
|
3743
|
+
attr_accessor :insurances
|
|
3744
|
+
# Start timestamp of the event.
|
|
3745
|
+
attr_accessor :starts_at
|
|
3746
|
+
# Name of the venue where the event takes place.
|
|
3747
|
+
attr_accessor :venue_name
|
|
3748
|
+
|
|
3749
|
+
def initialize(
|
|
3750
|
+
access_controlled_venue: nil,
|
|
3751
|
+
address: nil,
|
|
3752
|
+
affiliate_name: nil,
|
|
3753
|
+
ends_at: nil,
|
|
3754
|
+
event_company_name: nil,
|
|
3755
|
+
event_name: nil,
|
|
3756
|
+
event_type: nil,
|
|
3757
|
+
insurances: nil,
|
|
3758
|
+
starts_at: nil,
|
|
3759
|
+
venue_name: nil
|
|
3760
|
+
)
|
|
3761
|
+
@access_controlled_venue = access_controlled_venue
|
|
3762
|
+
@address = address
|
|
3763
|
+
@affiliate_name = affiliate_name
|
|
3764
|
+
@ends_at = ends_at
|
|
3765
|
+
@event_company_name = event_company_name
|
|
3766
|
+
@event_name = event_name
|
|
3767
|
+
@event_type = event_type
|
|
3768
|
+
@insurances = insurances
|
|
3769
|
+
@starts_at = starts_at
|
|
3770
|
+
@venue_name = venue_name
|
|
3771
|
+
end
|
|
3772
|
+
end
|
|
3773
|
+
|
|
3774
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3775
|
+
class Arrival < ::Stripe::RequestParams
|
|
3776
|
+
class Address < ::Stripe::RequestParams
|
|
3777
|
+
# The city or town.
|
|
3778
|
+
attr_accessor :city
|
|
3779
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3780
|
+
attr_accessor :country
|
|
3781
|
+
# The postal code formatted according to country.
|
|
3782
|
+
attr_accessor :postal_code
|
|
3783
|
+
# The state, county, province, or region formatted according to country.
|
|
3784
|
+
attr_accessor :region
|
|
3785
|
+
# Line 1 of the street address.
|
|
3786
|
+
attr_accessor :street_address
|
|
3787
|
+
# Line 2 of the street address.
|
|
3788
|
+
attr_accessor :street_address2
|
|
3789
|
+
|
|
3790
|
+
def initialize(
|
|
3791
|
+
city: nil,
|
|
3792
|
+
country: nil,
|
|
3793
|
+
postal_code: nil,
|
|
3794
|
+
region: nil,
|
|
3795
|
+
street_address: nil,
|
|
3796
|
+
street_address2: nil
|
|
3797
|
+
)
|
|
3798
|
+
@city = city
|
|
3799
|
+
@country = country
|
|
3800
|
+
@postal_code = postal_code
|
|
3801
|
+
@region = region
|
|
3802
|
+
@street_address = street_address
|
|
3803
|
+
@street_address2 = street_address2
|
|
3804
|
+
end
|
|
3805
|
+
end
|
|
3806
|
+
# Address of the arrival location.
|
|
3807
|
+
attr_accessor :address
|
|
3808
|
+
# Identifier name or reference for the arrival location.
|
|
3809
|
+
attr_accessor :arrival_location
|
|
3810
|
+
|
|
3811
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3812
|
+
@address = address
|
|
3813
|
+
@arrival_location = arrival_location
|
|
3814
|
+
end
|
|
3815
|
+
end
|
|
3816
|
+
|
|
3817
|
+
class Departure < ::Stripe::RequestParams
|
|
3818
|
+
class Address < ::Stripe::RequestParams
|
|
3819
|
+
# The city or town.
|
|
3820
|
+
attr_accessor :city
|
|
3821
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3822
|
+
attr_accessor :country
|
|
3823
|
+
# The postal code formatted according to country.
|
|
3824
|
+
attr_accessor :postal_code
|
|
3825
|
+
# The state, county, province, or region formatted according to country.
|
|
3826
|
+
attr_accessor :region
|
|
3827
|
+
# Line 1 of the street address.
|
|
3828
|
+
attr_accessor :street_address
|
|
3829
|
+
# Line 2 of the street address.
|
|
3830
|
+
attr_accessor :street_address2
|
|
3831
|
+
|
|
3832
|
+
def initialize(
|
|
3833
|
+
city: nil,
|
|
3834
|
+
country: nil,
|
|
3835
|
+
postal_code: nil,
|
|
3836
|
+
region: nil,
|
|
3837
|
+
street_address: nil,
|
|
3838
|
+
street_address2: nil
|
|
3839
|
+
)
|
|
3840
|
+
@city = city
|
|
3841
|
+
@country = country
|
|
3842
|
+
@postal_code = postal_code
|
|
3843
|
+
@region = region
|
|
3844
|
+
@street_address = street_address
|
|
3845
|
+
@street_address2 = street_address2
|
|
3846
|
+
end
|
|
3847
|
+
end
|
|
3848
|
+
# Address of the departure location.
|
|
3849
|
+
attr_accessor :address
|
|
3850
|
+
# Timestamp of departure.
|
|
3851
|
+
attr_accessor :departs_at
|
|
3852
|
+
# Identifier name or reference for the origin location.
|
|
3853
|
+
attr_accessor :departure_location
|
|
3854
|
+
|
|
3855
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3856
|
+
@address = address
|
|
3857
|
+
@departs_at = departs_at
|
|
3858
|
+
@departure_location = departure_location
|
|
3859
|
+
end
|
|
3860
|
+
end
|
|
3861
|
+
|
|
3862
|
+
class Insurance < ::Stripe::RequestParams
|
|
3863
|
+
# Insurance currency.
|
|
3864
|
+
attr_accessor :currency
|
|
3865
|
+
# Name of the company providing the insurance.
|
|
3866
|
+
attr_accessor :insurance_company_name
|
|
3867
|
+
# Type of insurance.
|
|
3868
|
+
attr_accessor :insurance_type
|
|
3869
|
+
# Price of insurance in cents.
|
|
3870
|
+
attr_accessor :price
|
|
3871
|
+
|
|
3872
|
+
def initialize(
|
|
3873
|
+
currency: nil,
|
|
3874
|
+
insurance_company_name: nil,
|
|
3875
|
+
insurance_type: nil,
|
|
3876
|
+
price: nil
|
|
3877
|
+
)
|
|
3878
|
+
@currency = currency
|
|
3879
|
+
@insurance_company_name = insurance_company_name
|
|
3880
|
+
@insurance_type = insurance_type
|
|
3881
|
+
@price = price
|
|
3882
|
+
end
|
|
3883
|
+
end
|
|
3884
|
+
|
|
3885
|
+
class Passenger < ::Stripe::RequestParams
|
|
3886
|
+
# The family name of the person.
|
|
3887
|
+
attr_accessor :family_name
|
|
3888
|
+
# The given name of the person.
|
|
3889
|
+
attr_accessor :given_name
|
|
3890
|
+
|
|
3891
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3892
|
+
@family_name = family_name
|
|
3893
|
+
@given_name = given_name
|
|
3894
|
+
end
|
|
3895
|
+
end
|
|
3896
|
+
# Name of associated or partner company for the service.
|
|
3897
|
+
attr_accessor :affiliate_name
|
|
3898
|
+
# Arrival details.
|
|
3899
|
+
attr_accessor :arrival
|
|
3900
|
+
# Name of transportation company.
|
|
3901
|
+
attr_accessor :carrier_name
|
|
3902
|
+
# Currency.
|
|
3903
|
+
attr_accessor :currency
|
|
3904
|
+
# Departure details.
|
|
3905
|
+
attr_accessor :departure
|
|
3906
|
+
# List of insurances for this reservation.
|
|
3907
|
+
attr_accessor :insurances
|
|
3908
|
+
# List of passengers that this reservation applies to.
|
|
3909
|
+
attr_accessor :passengers
|
|
3910
|
+
# Price in cents.
|
|
3911
|
+
attr_accessor :price
|
|
3912
|
+
# Ticket class.
|
|
3913
|
+
attr_accessor :ticket_class
|
|
3914
|
+
|
|
3915
|
+
def initialize(
|
|
3916
|
+
affiliate_name: nil,
|
|
3917
|
+
arrival: nil,
|
|
3918
|
+
carrier_name: nil,
|
|
3919
|
+
currency: nil,
|
|
3920
|
+
departure: nil,
|
|
3921
|
+
insurances: nil,
|
|
3922
|
+
passengers: nil,
|
|
3923
|
+
price: nil,
|
|
3924
|
+
ticket_class: nil
|
|
3925
|
+
)
|
|
3926
|
+
@affiliate_name = affiliate_name
|
|
3927
|
+
@arrival = arrival
|
|
3928
|
+
@carrier_name = carrier_name
|
|
3929
|
+
@currency = currency
|
|
3930
|
+
@departure = departure
|
|
3931
|
+
@insurances = insurances
|
|
3932
|
+
@passengers = passengers
|
|
3933
|
+
@price = price
|
|
3934
|
+
@ticket_class = ticket_class
|
|
3935
|
+
end
|
|
3936
|
+
end
|
|
3937
|
+
|
|
3938
|
+
class Insurance < ::Stripe::RequestParams
|
|
3939
|
+
# Insurance currency.
|
|
3940
|
+
attr_accessor :currency
|
|
3941
|
+
# Name of the company providing the insurance.
|
|
3942
|
+
attr_accessor :insurance_company_name
|
|
3943
|
+
# Type of insurance
|
|
3944
|
+
attr_accessor :insurance_type
|
|
3945
|
+
# Price of insurance in cents.
|
|
3946
|
+
attr_accessor :price
|
|
3947
|
+
|
|
3948
|
+
def initialize(
|
|
3949
|
+
currency: nil,
|
|
3950
|
+
insurance_company_name: nil,
|
|
3951
|
+
insurance_type: nil,
|
|
3952
|
+
price: nil
|
|
3953
|
+
)
|
|
3954
|
+
@currency = currency
|
|
3955
|
+
@insurance_company_name = insurance_company_name
|
|
3956
|
+
@insurance_type = insurance_type
|
|
3957
|
+
@price = price
|
|
3958
|
+
end
|
|
3959
|
+
end
|
|
3960
|
+
|
|
3961
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3962
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3963
|
+
# The city or town.
|
|
3964
|
+
attr_accessor :city
|
|
3965
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3966
|
+
attr_accessor :country
|
|
3967
|
+
# The postal code formatted according to country.
|
|
3968
|
+
attr_accessor :postal_code
|
|
3969
|
+
# The state, county, province, or region formatted according to country.
|
|
3970
|
+
attr_accessor :region
|
|
3971
|
+
# Line 1 of the street address.
|
|
3972
|
+
attr_accessor :street_address
|
|
3973
|
+
# Line 2 of the street address.
|
|
3974
|
+
attr_accessor :street_address2
|
|
3975
|
+
|
|
3976
|
+
def initialize(
|
|
3977
|
+
city: nil,
|
|
3978
|
+
country: nil,
|
|
3979
|
+
postal_code: nil,
|
|
3980
|
+
region: nil,
|
|
3981
|
+
street_address: nil,
|
|
3982
|
+
street_address2: nil
|
|
3983
|
+
)
|
|
3984
|
+
@city = city
|
|
3985
|
+
@country = country
|
|
3986
|
+
@postal_code = postal_code
|
|
3987
|
+
@region = region
|
|
3988
|
+
@street_address = street_address
|
|
3989
|
+
@street_address2 = street_address2
|
|
3990
|
+
end
|
|
3991
|
+
end
|
|
3992
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3993
|
+
attr_accessor :line_item_references
|
|
3994
|
+
# The address of the selling or delivering merchant.
|
|
3995
|
+
attr_accessor :marketplace_seller_address
|
|
3996
|
+
# The name of the marketplace seller.
|
|
3997
|
+
attr_accessor :marketplace_seller_name
|
|
3998
|
+
# The unique identifier for the marketplace seller.
|
|
3999
|
+
attr_accessor :marketplace_seller_reference
|
|
4000
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
4001
|
+
attr_accessor :number_of_transactions
|
|
4002
|
+
# The category of the product.
|
|
4003
|
+
attr_accessor :product_category
|
|
4004
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
4005
|
+
attr_accessor :seller_last_login_at
|
|
4006
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
4007
|
+
attr_accessor :seller_rating
|
|
4008
|
+
# The date when the seller's account with the marketplace was created.
|
|
4009
|
+
attr_accessor :seller_registered_at
|
|
4010
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
4011
|
+
attr_accessor :seller_updated_at
|
|
4012
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
4013
|
+
attr_accessor :shipping_references
|
|
4014
|
+
# 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.
|
|
4015
|
+
attr_accessor :volume_of_transactions
|
|
4016
|
+
|
|
4017
|
+
def initialize(
|
|
4018
|
+
line_item_references: nil,
|
|
4019
|
+
marketplace_seller_address: nil,
|
|
4020
|
+
marketplace_seller_name: nil,
|
|
4021
|
+
marketplace_seller_reference: nil,
|
|
4022
|
+
number_of_transactions: nil,
|
|
4023
|
+
product_category: nil,
|
|
4024
|
+
seller_last_login_at: nil,
|
|
4025
|
+
seller_rating: nil,
|
|
4026
|
+
seller_registered_at: nil,
|
|
4027
|
+
seller_updated_at: nil,
|
|
4028
|
+
shipping_references: nil,
|
|
4029
|
+
volume_of_transactions: nil
|
|
4030
|
+
)
|
|
4031
|
+
@line_item_references = line_item_references
|
|
4032
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
4033
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
4034
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
4035
|
+
@number_of_transactions = number_of_transactions
|
|
4036
|
+
@product_category = product_category
|
|
4037
|
+
@seller_last_login_at = seller_last_login_at
|
|
4038
|
+
@seller_rating = seller_rating
|
|
4039
|
+
@seller_registered_at = seller_registered_at
|
|
4040
|
+
@seller_updated_at = seller_updated_at
|
|
4041
|
+
@shipping_references = shipping_references
|
|
4042
|
+
@volume_of_transactions = volume_of_transactions
|
|
4043
|
+
end
|
|
4044
|
+
end
|
|
4045
|
+
|
|
4046
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4047
|
+
class Arrival < ::Stripe::RequestParams
|
|
4048
|
+
class Address < ::Stripe::RequestParams
|
|
4049
|
+
# The city or town.
|
|
4050
|
+
attr_accessor :city
|
|
4051
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4052
|
+
attr_accessor :country
|
|
4053
|
+
# The postal code formatted according to country.
|
|
4054
|
+
attr_accessor :postal_code
|
|
4055
|
+
# The state, county, province, or region formatted according to country.
|
|
4056
|
+
attr_accessor :region
|
|
4057
|
+
# Line 1 of the street address.
|
|
4058
|
+
attr_accessor :street_address
|
|
4059
|
+
# Line 2 of the street address.
|
|
4060
|
+
attr_accessor :street_address2
|
|
4061
|
+
|
|
4062
|
+
def initialize(
|
|
4063
|
+
city: nil,
|
|
4064
|
+
country: nil,
|
|
4065
|
+
postal_code: nil,
|
|
4066
|
+
region: nil,
|
|
4067
|
+
street_address: nil,
|
|
4068
|
+
street_address2: nil
|
|
4069
|
+
)
|
|
4070
|
+
@city = city
|
|
4071
|
+
@country = country
|
|
4072
|
+
@postal_code = postal_code
|
|
4073
|
+
@region = region
|
|
4074
|
+
@street_address = street_address
|
|
4075
|
+
@street_address2 = street_address2
|
|
4076
|
+
end
|
|
4077
|
+
end
|
|
4078
|
+
# Address of the arrival location.
|
|
4079
|
+
attr_accessor :address
|
|
4080
|
+
# Identifier name or reference for the arrival location.
|
|
4081
|
+
attr_accessor :arrival_location
|
|
4082
|
+
|
|
4083
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4084
|
+
@address = address
|
|
4085
|
+
@arrival_location = arrival_location
|
|
4086
|
+
end
|
|
4087
|
+
end
|
|
4088
|
+
|
|
4089
|
+
class Departure < ::Stripe::RequestParams
|
|
4090
|
+
class Address < ::Stripe::RequestParams
|
|
4091
|
+
# The city or town.
|
|
4092
|
+
attr_accessor :city
|
|
4093
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4094
|
+
attr_accessor :country
|
|
4095
|
+
# The postal code formatted according to country.
|
|
4096
|
+
attr_accessor :postal_code
|
|
4097
|
+
# The state, county, province, or region formatted according to country.
|
|
4098
|
+
attr_accessor :region
|
|
4099
|
+
# Line 1 of the street address.
|
|
4100
|
+
attr_accessor :street_address
|
|
4101
|
+
# Line 2 of the street address.
|
|
4102
|
+
attr_accessor :street_address2
|
|
4103
|
+
|
|
4104
|
+
def initialize(
|
|
4105
|
+
city: nil,
|
|
4106
|
+
country: nil,
|
|
4107
|
+
postal_code: nil,
|
|
4108
|
+
region: nil,
|
|
4109
|
+
street_address: nil,
|
|
4110
|
+
street_address2: nil
|
|
4111
|
+
)
|
|
4112
|
+
@city = city
|
|
4113
|
+
@country = country
|
|
4114
|
+
@postal_code = postal_code
|
|
4115
|
+
@region = region
|
|
4116
|
+
@street_address = street_address
|
|
4117
|
+
@street_address2 = street_address2
|
|
4118
|
+
end
|
|
4119
|
+
end
|
|
4120
|
+
# Address of the departure location.
|
|
4121
|
+
attr_accessor :address
|
|
4122
|
+
# Timestamp of departure.
|
|
4123
|
+
attr_accessor :departs_at
|
|
4124
|
+
# Identifier name or reference for the origin location.
|
|
4125
|
+
attr_accessor :departure_location
|
|
4126
|
+
|
|
4127
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4128
|
+
@address = address
|
|
4129
|
+
@departs_at = departs_at
|
|
4130
|
+
@departure_location = departure_location
|
|
4131
|
+
end
|
|
4132
|
+
end
|
|
4133
|
+
|
|
4134
|
+
class Insurance < ::Stripe::RequestParams
|
|
4135
|
+
# Insurance currency.
|
|
4136
|
+
attr_accessor :currency
|
|
4137
|
+
# Name of the company providing the insurance.
|
|
4138
|
+
attr_accessor :insurance_company_name
|
|
4139
|
+
# Type of insurance.
|
|
4140
|
+
attr_accessor :insurance_type
|
|
4141
|
+
# Price of insurance in cents.
|
|
4142
|
+
attr_accessor :price
|
|
4143
|
+
|
|
4144
|
+
def initialize(
|
|
4145
|
+
currency: nil,
|
|
4146
|
+
insurance_company_name: nil,
|
|
4147
|
+
insurance_type: nil,
|
|
4148
|
+
price: nil
|
|
4149
|
+
)
|
|
4150
|
+
@currency = currency
|
|
4151
|
+
@insurance_company_name = insurance_company_name
|
|
4152
|
+
@insurance_type = insurance_type
|
|
4153
|
+
@price = price
|
|
4154
|
+
end
|
|
4155
|
+
end
|
|
4156
|
+
|
|
4157
|
+
class Passenger < ::Stripe::RequestParams
|
|
4158
|
+
# The family name of the person.
|
|
4159
|
+
attr_accessor :family_name
|
|
4160
|
+
# The given name of the person.
|
|
4161
|
+
attr_accessor :given_name
|
|
4162
|
+
|
|
4163
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4164
|
+
@family_name = family_name
|
|
4165
|
+
@given_name = given_name
|
|
4166
|
+
end
|
|
4167
|
+
end
|
|
4168
|
+
# Name of associated or partner company for the service.
|
|
4169
|
+
attr_accessor :affiliate_name
|
|
4170
|
+
# Arrival details.
|
|
4171
|
+
attr_accessor :arrival
|
|
4172
|
+
# Name of transportation company.
|
|
4173
|
+
attr_accessor :carrier_name
|
|
4174
|
+
# Currency.
|
|
4175
|
+
attr_accessor :currency
|
|
4176
|
+
# Departure details.
|
|
4177
|
+
attr_accessor :departure
|
|
4178
|
+
# List of insurances for this reservation.
|
|
4179
|
+
attr_accessor :insurances
|
|
4180
|
+
# List of passengers that this reservation applies to.
|
|
4181
|
+
attr_accessor :passengers
|
|
4182
|
+
# Price in cents.
|
|
4183
|
+
attr_accessor :price
|
|
4184
|
+
# Ticket class.
|
|
4185
|
+
attr_accessor :ticket_class
|
|
4186
|
+
|
|
4187
|
+
def initialize(
|
|
4188
|
+
affiliate_name: nil,
|
|
4189
|
+
arrival: nil,
|
|
4190
|
+
carrier_name: nil,
|
|
4191
|
+
currency: nil,
|
|
4192
|
+
departure: nil,
|
|
4193
|
+
insurances: nil,
|
|
4194
|
+
passengers: nil,
|
|
4195
|
+
price: nil,
|
|
4196
|
+
ticket_class: nil
|
|
4197
|
+
)
|
|
4198
|
+
@affiliate_name = affiliate_name
|
|
4199
|
+
@arrival = arrival
|
|
4200
|
+
@carrier_name = carrier_name
|
|
4201
|
+
@currency = currency
|
|
4202
|
+
@departure = departure
|
|
4203
|
+
@insurances = insurances
|
|
4204
|
+
@passengers = passengers
|
|
4205
|
+
@price = price
|
|
4206
|
+
@ticket_class = ticket_class
|
|
4207
|
+
end
|
|
4208
|
+
end
|
|
4209
|
+
|
|
4210
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4211
|
+
class Arrival < ::Stripe::RequestParams
|
|
4212
|
+
class Address < ::Stripe::RequestParams
|
|
4213
|
+
# The city or town.
|
|
4214
|
+
attr_accessor :city
|
|
4215
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4216
|
+
attr_accessor :country
|
|
4217
|
+
# The postal code formatted according to country.
|
|
4218
|
+
attr_accessor :postal_code
|
|
4219
|
+
# The state, county, province, or region formatted according to country.
|
|
4220
|
+
attr_accessor :region
|
|
4221
|
+
# Line 1 of the street address.
|
|
4222
|
+
attr_accessor :street_address
|
|
4223
|
+
# Line 2 of the street address.
|
|
4224
|
+
attr_accessor :street_address2
|
|
4225
|
+
|
|
4226
|
+
def initialize(
|
|
4227
|
+
city: nil,
|
|
4228
|
+
country: nil,
|
|
4229
|
+
postal_code: nil,
|
|
4230
|
+
region: nil,
|
|
4231
|
+
street_address: nil,
|
|
4232
|
+
street_address2: nil
|
|
4233
|
+
)
|
|
4234
|
+
@city = city
|
|
4235
|
+
@country = country
|
|
4236
|
+
@postal_code = postal_code
|
|
4237
|
+
@region = region
|
|
4238
|
+
@street_address = street_address
|
|
4239
|
+
@street_address2 = street_address2
|
|
4240
|
+
end
|
|
4241
|
+
end
|
|
4242
|
+
# Address of the arrival location.
|
|
4243
|
+
attr_accessor :address
|
|
4244
|
+
# Identifier name or reference for the arrival location.
|
|
4245
|
+
attr_accessor :arrival_location
|
|
4246
|
+
|
|
4247
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4248
|
+
@address = address
|
|
4249
|
+
@arrival_location = arrival_location
|
|
4250
|
+
end
|
|
4251
|
+
end
|
|
4252
|
+
|
|
4253
|
+
class Departure < ::Stripe::RequestParams
|
|
4254
|
+
class Address < ::Stripe::RequestParams
|
|
4255
|
+
# The city or town.
|
|
4256
|
+
attr_accessor :city
|
|
4257
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4258
|
+
attr_accessor :country
|
|
4259
|
+
# The postal code formatted according to country.
|
|
4260
|
+
attr_accessor :postal_code
|
|
4261
|
+
# The state, county, province, or region formatted according to country.
|
|
4262
|
+
attr_accessor :region
|
|
4263
|
+
# Line 1 of the street address.
|
|
4264
|
+
attr_accessor :street_address
|
|
4265
|
+
# Line 2 of the street address.
|
|
4266
|
+
attr_accessor :street_address2
|
|
4267
|
+
|
|
4268
|
+
def initialize(
|
|
4269
|
+
city: nil,
|
|
4270
|
+
country: nil,
|
|
4271
|
+
postal_code: nil,
|
|
4272
|
+
region: nil,
|
|
4273
|
+
street_address: nil,
|
|
4274
|
+
street_address2: nil
|
|
4275
|
+
)
|
|
4276
|
+
@city = city
|
|
4277
|
+
@country = country
|
|
4278
|
+
@postal_code = postal_code
|
|
4279
|
+
@region = region
|
|
4280
|
+
@street_address = street_address
|
|
4281
|
+
@street_address2 = street_address2
|
|
4282
|
+
end
|
|
4283
|
+
end
|
|
4284
|
+
# Address of the departure location.
|
|
4285
|
+
attr_accessor :address
|
|
4286
|
+
# Timestamp of departure.
|
|
4287
|
+
attr_accessor :departs_at
|
|
4288
|
+
# Identifier name or reference for the origin location.
|
|
4289
|
+
attr_accessor :departure_location
|
|
4290
|
+
|
|
4291
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4292
|
+
@address = address
|
|
4293
|
+
@departs_at = departs_at
|
|
4294
|
+
@departure_location = departure_location
|
|
4295
|
+
end
|
|
4296
|
+
end
|
|
4297
|
+
|
|
4298
|
+
class Insurance < ::Stripe::RequestParams
|
|
4299
|
+
# Insurance currency.
|
|
4300
|
+
attr_accessor :currency
|
|
4301
|
+
# Name of the company providing the insurance.
|
|
4302
|
+
attr_accessor :insurance_company_name
|
|
4303
|
+
# Type of insurance.
|
|
4304
|
+
attr_accessor :insurance_type
|
|
4305
|
+
# Price of insurance in cents.
|
|
4306
|
+
attr_accessor :price
|
|
4307
|
+
|
|
4308
|
+
def initialize(
|
|
4309
|
+
currency: nil,
|
|
4310
|
+
insurance_company_name: nil,
|
|
4311
|
+
insurance_type: nil,
|
|
4312
|
+
price: nil
|
|
4313
|
+
)
|
|
4314
|
+
@currency = currency
|
|
4315
|
+
@insurance_company_name = insurance_company_name
|
|
4316
|
+
@insurance_type = insurance_type
|
|
4317
|
+
@price = price
|
|
4318
|
+
end
|
|
4319
|
+
end
|
|
4320
|
+
|
|
4321
|
+
class Passenger < ::Stripe::RequestParams
|
|
4322
|
+
# The family name of the person.
|
|
4323
|
+
attr_accessor :family_name
|
|
4324
|
+
# The given name of the person.
|
|
4325
|
+
attr_accessor :given_name
|
|
4326
|
+
|
|
4327
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4328
|
+
@family_name = family_name
|
|
4329
|
+
@given_name = given_name
|
|
4330
|
+
end
|
|
4331
|
+
end
|
|
4332
|
+
# Name of associated or partner company for the service.
|
|
4333
|
+
attr_accessor :affiliate_name
|
|
4334
|
+
# Arrival details.
|
|
4335
|
+
attr_accessor :arrival
|
|
4336
|
+
# Name of transportation company.
|
|
4337
|
+
attr_accessor :carrier_name
|
|
4338
|
+
# Currency.
|
|
4339
|
+
attr_accessor :currency
|
|
4340
|
+
# Departure details.
|
|
4341
|
+
attr_accessor :departure
|
|
4342
|
+
# List of insurances for this reservation.
|
|
4343
|
+
attr_accessor :insurances
|
|
4344
|
+
# List of passengers that this reservation applies to.
|
|
4345
|
+
attr_accessor :passengers
|
|
4346
|
+
# Price in cents.
|
|
4347
|
+
attr_accessor :price
|
|
4348
|
+
# Ticket class.
|
|
4349
|
+
attr_accessor :ticket_class
|
|
4350
|
+
|
|
4351
|
+
def initialize(
|
|
4352
|
+
affiliate_name: nil,
|
|
4353
|
+
arrival: nil,
|
|
4354
|
+
carrier_name: nil,
|
|
4355
|
+
currency: nil,
|
|
4356
|
+
departure: nil,
|
|
4357
|
+
insurances: nil,
|
|
4358
|
+
passengers: nil,
|
|
4359
|
+
price: nil,
|
|
4360
|
+
ticket_class: nil
|
|
4361
|
+
)
|
|
4362
|
+
@affiliate_name = affiliate_name
|
|
4363
|
+
@arrival = arrival
|
|
4364
|
+
@carrier_name = carrier_name
|
|
4365
|
+
@currency = currency
|
|
4366
|
+
@departure = departure
|
|
4367
|
+
@insurances = insurances
|
|
4368
|
+
@passengers = passengers
|
|
4369
|
+
@price = price
|
|
4370
|
+
@ticket_class = ticket_class
|
|
4371
|
+
end
|
|
4372
|
+
end
|
|
4373
|
+
|
|
4374
|
+
class Voucher < ::Stripe::RequestParams
|
|
4375
|
+
# Name of associated or partner company for this voucher.
|
|
4376
|
+
attr_accessor :affiliate_name
|
|
4377
|
+
# The voucher validity end time.
|
|
4378
|
+
attr_accessor :ends_at
|
|
4379
|
+
# The voucher validity start time.
|
|
4380
|
+
attr_accessor :starts_at
|
|
4381
|
+
# The issuer or provider of this voucher.
|
|
4382
|
+
attr_accessor :voucher_company
|
|
4383
|
+
# The name or reference to identify the voucher.
|
|
4384
|
+
attr_accessor :voucher_name
|
|
4385
|
+
# The type of this voucher.
|
|
4386
|
+
attr_accessor :voucher_type
|
|
4387
|
+
|
|
4388
|
+
def initialize(
|
|
4389
|
+
affiliate_name: nil,
|
|
4390
|
+
ends_at: nil,
|
|
4391
|
+
starts_at: nil,
|
|
4392
|
+
voucher_company: nil,
|
|
4393
|
+
voucher_name: nil,
|
|
4394
|
+
voucher_type: nil
|
|
4395
|
+
)
|
|
4396
|
+
@affiliate_name = affiliate_name
|
|
4397
|
+
@ends_at = ends_at
|
|
4398
|
+
@starts_at = starts_at
|
|
4399
|
+
@voucher_company = voucher_company
|
|
4400
|
+
@voucher_name = voucher_name
|
|
4401
|
+
@voucher_type = voucher_type
|
|
4402
|
+
end
|
|
4403
|
+
end
|
|
4404
|
+
# Supplementary bus reservation details.
|
|
4405
|
+
attr_accessor :bus_reservation_details
|
|
4406
|
+
# Supplementary event reservation details.
|
|
4407
|
+
attr_accessor :event_reservation_details
|
|
4408
|
+
# Supplementary ferry reservation details.
|
|
4409
|
+
attr_accessor :ferry_reservation_details
|
|
4410
|
+
# Supplementary insurance details.
|
|
4411
|
+
attr_accessor :insurances
|
|
4412
|
+
# Supplementary marketplace seller details.
|
|
4413
|
+
attr_accessor :marketplace_sellers
|
|
4414
|
+
# Supplementary round trip reservation details.
|
|
4415
|
+
attr_accessor :round_trip_reservation_details
|
|
4416
|
+
# Supplementary train reservation details.
|
|
4417
|
+
attr_accessor :train_reservation_details
|
|
4418
|
+
# Voucher details, such as a gift card or discount code.
|
|
4419
|
+
attr_accessor :vouchers
|
|
4420
|
+
|
|
4421
|
+
def initialize(
|
|
4422
|
+
bus_reservation_details: nil,
|
|
4423
|
+
event_reservation_details: nil,
|
|
4424
|
+
ferry_reservation_details: nil,
|
|
4425
|
+
insurances: nil,
|
|
4426
|
+
marketplace_sellers: nil,
|
|
4427
|
+
round_trip_reservation_details: nil,
|
|
4428
|
+
train_reservation_details: nil,
|
|
4429
|
+
vouchers: nil
|
|
4430
|
+
)
|
|
4431
|
+
@bus_reservation_details = bus_reservation_details
|
|
4432
|
+
@event_reservation_details = event_reservation_details
|
|
4433
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4434
|
+
@insurances = insurances
|
|
4435
|
+
@marketplace_sellers = marketplace_sellers
|
|
4436
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4437
|
+
@train_reservation_details = train_reservation_details
|
|
4438
|
+
@vouchers = vouchers
|
|
4439
|
+
end
|
|
4440
|
+
end
|
|
1694
4441
|
# Controls when the funds are captured from the customer's account.
|
|
1695
4442
|
#
|
|
1696
4443
|
# 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.
|
|
@@ -1713,19 +4460,23 @@ module Stripe
|
|
|
1713
4460
|
attr_accessor :setup_future_usage
|
|
1714
4461
|
# Subscription details if setting up or charging a subscription.
|
|
1715
4462
|
attr_accessor :subscriptions
|
|
4463
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4464
|
+
attr_accessor :supplementary_purchase_data
|
|
1716
4465
|
|
|
1717
4466
|
def initialize(
|
|
1718
4467
|
capture_method: nil,
|
|
1719
4468
|
on_demand: nil,
|
|
1720
4469
|
preferred_locale: nil,
|
|
1721
4470
|
setup_future_usage: nil,
|
|
1722
|
-
subscriptions: nil
|
|
4471
|
+
subscriptions: nil,
|
|
4472
|
+
supplementary_purchase_data: nil
|
|
1723
4473
|
)
|
|
1724
4474
|
@capture_method = capture_method
|
|
1725
4475
|
@on_demand = on_demand
|
|
1726
4476
|
@preferred_locale = preferred_locale
|
|
1727
4477
|
@setup_future_usage = setup_future_usage
|
|
1728
4478
|
@subscriptions = subscriptions
|
|
4479
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1729
4480
|
end
|
|
1730
4481
|
end
|
|
1731
4482
|
|
|
@@ -1986,12 +4737,65 @@ module Stripe
|
|
|
1986
4737
|
end
|
|
1987
4738
|
|
|
1988
4739
|
class Paypal < ::Stripe::RequestParams
|
|
4740
|
+
class LineItem < ::Stripe::RequestParams
|
|
4741
|
+
class Tax < ::Stripe::RequestParams
|
|
4742
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4743
|
+
attr_accessor :amount
|
|
4744
|
+
# The tax behavior for the line item.
|
|
4745
|
+
attr_accessor :behavior
|
|
4746
|
+
|
|
4747
|
+
def initialize(amount: nil, behavior: nil)
|
|
4748
|
+
@amount = amount
|
|
4749
|
+
@behavior = behavior
|
|
4750
|
+
end
|
|
4751
|
+
end
|
|
4752
|
+
# Type of the line item.
|
|
4753
|
+
attr_accessor :category
|
|
4754
|
+
# Description of the line item.
|
|
4755
|
+
attr_accessor :description
|
|
4756
|
+
# Descriptive name of the line item.
|
|
4757
|
+
attr_accessor :name
|
|
4758
|
+
# Quantity of the line item. Must be a positive number.
|
|
4759
|
+
attr_accessor :quantity
|
|
4760
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4761
|
+
attr_accessor :sku
|
|
4762
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4763
|
+
attr_accessor :sold_by
|
|
4764
|
+
# The tax information for the line item.
|
|
4765
|
+
attr_accessor :tax
|
|
4766
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4767
|
+
attr_accessor :unit_amount
|
|
4768
|
+
|
|
4769
|
+
def initialize(
|
|
4770
|
+
category: nil,
|
|
4771
|
+
description: nil,
|
|
4772
|
+
name: nil,
|
|
4773
|
+
quantity: nil,
|
|
4774
|
+
sku: nil,
|
|
4775
|
+
sold_by: nil,
|
|
4776
|
+
tax: nil,
|
|
4777
|
+
unit_amount: nil
|
|
4778
|
+
)
|
|
4779
|
+
@category = category
|
|
4780
|
+
@description = description
|
|
4781
|
+
@name = name
|
|
4782
|
+
@quantity = quantity
|
|
4783
|
+
@sku = sku
|
|
4784
|
+
@sold_by = sold_by
|
|
4785
|
+
@tax = tax
|
|
4786
|
+
@unit_amount = unit_amount
|
|
4787
|
+
end
|
|
4788
|
+
end
|
|
1989
4789
|
# Controls when the funds will be captured from the customer's account.
|
|
1990
4790
|
attr_accessor :capture_method
|
|
4791
|
+
# The line items purchased by the customer.
|
|
4792
|
+
attr_accessor :line_items
|
|
1991
4793
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1992
4794
|
attr_accessor :preferred_locale
|
|
1993
4795
|
# 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.
|
|
1994
4796
|
attr_accessor :reference
|
|
4797
|
+
# 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.
|
|
4798
|
+
attr_accessor :reference_id
|
|
1995
4799
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1996
4800
|
attr_accessor :risk_correlation_id
|
|
1997
4801
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -2004,19 +4808,40 @@ module Stripe
|
|
|
2004
4808
|
#
|
|
2005
4809
|
# 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`.
|
|
2006
4810
|
attr_accessor :setup_future_usage
|
|
4811
|
+
# 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.
|
|
4812
|
+
attr_accessor :subsellers
|
|
2007
4813
|
|
|
2008
4814
|
def initialize(
|
|
2009
4815
|
capture_method: nil,
|
|
4816
|
+
line_items: nil,
|
|
2010
4817
|
preferred_locale: nil,
|
|
2011
4818
|
reference: nil,
|
|
4819
|
+
reference_id: nil,
|
|
2012
4820
|
risk_correlation_id: nil,
|
|
2013
|
-
setup_future_usage: nil
|
|
4821
|
+
setup_future_usage: nil,
|
|
4822
|
+
subsellers: nil
|
|
2014
4823
|
)
|
|
2015
4824
|
@capture_method = capture_method
|
|
4825
|
+
@line_items = line_items
|
|
2016
4826
|
@preferred_locale = preferred_locale
|
|
2017
4827
|
@reference = reference
|
|
4828
|
+
@reference_id = reference_id
|
|
2018
4829
|
@risk_correlation_id = risk_correlation_id
|
|
2019
4830
|
@setup_future_usage = setup_future_usage
|
|
4831
|
+
@subsellers = subsellers
|
|
4832
|
+
end
|
|
4833
|
+
end
|
|
4834
|
+
|
|
4835
|
+
class Paypay < ::Stripe::RequestParams
|
|
4836
|
+
# Controls when the funds are captured from the customer's account.
|
|
4837
|
+
#
|
|
4838
|
+
# 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.
|
|
4839
|
+
#
|
|
4840
|
+
# 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.
|
|
4841
|
+
attr_accessor :capture_method
|
|
4842
|
+
|
|
4843
|
+
def initialize(capture_method: nil)
|
|
4844
|
+
@capture_method = capture_method
|
|
2020
4845
|
end
|
|
2021
4846
|
end
|
|
2022
4847
|
|
|
@@ -2158,6 +4983,25 @@ module Stripe
|
|
|
2158
4983
|
end
|
|
2159
4984
|
end
|
|
2160
4985
|
|
|
4986
|
+
class Qris < ::Stripe::RequestParams
|
|
4987
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4988
|
+
#
|
|
4989
|
+
# 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.
|
|
4990
|
+
#
|
|
4991
|
+
# 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.
|
|
4992
|
+
#
|
|
4993
|
+
# 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).
|
|
4994
|
+
#
|
|
4995
|
+
# 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`.
|
|
4996
|
+
attr_accessor :setup_future_usage
|
|
4997
|
+
|
|
4998
|
+
def initialize(setup_future_usage: nil)
|
|
4999
|
+
@setup_future_usage = setup_future_usage
|
|
5000
|
+
end
|
|
5001
|
+
end
|
|
5002
|
+
|
|
5003
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
5004
|
+
|
|
2161
5005
|
class RevolutPay < ::Stripe::RequestParams
|
|
2162
5006
|
# Controls when the funds are captured from the customer's account.
|
|
2163
5007
|
#
|
|
@@ -2250,6 +5094,23 @@ module Stripe
|
|
|
2250
5094
|
end
|
|
2251
5095
|
end
|
|
2252
5096
|
|
|
5097
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5098
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5099
|
+
#
|
|
5100
|
+
# 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.
|
|
5101
|
+
#
|
|
5102
|
+
# 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.
|
|
5103
|
+
#
|
|
5104
|
+
# 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).
|
|
5105
|
+
#
|
|
5106
|
+
# 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`.
|
|
5107
|
+
attr_accessor :setup_future_usage
|
|
5108
|
+
|
|
5109
|
+
def initialize(setup_future_usage: nil)
|
|
5110
|
+
@setup_future_usage = setup_future_usage
|
|
5111
|
+
end
|
|
5112
|
+
end
|
|
5113
|
+
|
|
2253
5114
|
class Sofort < ::Stripe::RequestParams
|
|
2254
5115
|
# Language shown to the payer on redirect.
|
|
2255
5116
|
attr_accessor :preferred_language
|
|
@@ -2270,6 +5131,23 @@ module Stripe
|
|
|
2270
5131
|
end
|
|
2271
5132
|
end
|
|
2272
5133
|
|
|
5134
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5135
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5136
|
+
#
|
|
5137
|
+
# 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.
|
|
5138
|
+
#
|
|
5139
|
+
# 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.
|
|
5140
|
+
#
|
|
5141
|
+
# 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).
|
|
5142
|
+
#
|
|
5143
|
+
# 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`.
|
|
5144
|
+
attr_accessor :setup_future_usage
|
|
5145
|
+
|
|
5146
|
+
def initialize(setup_future_usage: nil)
|
|
5147
|
+
@setup_future_usage = setup_future_usage
|
|
5148
|
+
end
|
|
5149
|
+
end
|
|
5150
|
+
|
|
2273
5151
|
class Swish < ::Stripe::RequestParams
|
|
2274
5152
|
# A reference for this payment to be displayed in the Swish app.
|
|
2275
5153
|
attr_accessor :reference
|
|
@@ -2341,13 +5219,27 @@ module Stripe
|
|
|
2341
5219
|
class Filters < ::Stripe::RequestParams
|
|
2342
5220
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2343
5221
|
attr_accessor :account_subcategories
|
|
5222
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5223
|
+
attr_accessor :institution
|
|
2344
5224
|
|
|
2345
|
-
def initialize(account_subcategories: nil)
|
|
5225
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2346
5226
|
@account_subcategories = account_subcategories
|
|
5227
|
+
@institution = institution
|
|
5228
|
+
end
|
|
5229
|
+
end
|
|
5230
|
+
|
|
5231
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5232
|
+
# Settings for configuring manual entry of account details.
|
|
5233
|
+
attr_accessor :mode
|
|
5234
|
+
|
|
5235
|
+
def initialize(mode: nil)
|
|
5236
|
+
@mode = mode
|
|
2347
5237
|
end
|
|
2348
5238
|
end
|
|
2349
5239
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2350
5240
|
attr_accessor :filters
|
|
5241
|
+
# Customize manual entry behavior
|
|
5242
|
+
attr_accessor :manual_entry
|
|
2351
5243
|
# 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`.
|
|
2352
5244
|
attr_accessor :permissions
|
|
2353
5245
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2355,8 +5247,15 @@ module Stripe
|
|
|
2355
5247
|
# 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.
|
|
2356
5248
|
attr_accessor :return_url
|
|
2357
5249
|
|
|
2358
|
-
def initialize(
|
|
5250
|
+
def initialize(
|
|
5251
|
+
filters: nil,
|
|
5252
|
+
manual_entry: nil,
|
|
5253
|
+
permissions: nil,
|
|
5254
|
+
prefetch: nil,
|
|
5255
|
+
return_url: nil
|
|
5256
|
+
)
|
|
2359
5257
|
@filters = filters
|
|
5258
|
+
@manual_entry = manual_entry
|
|
2360
5259
|
@permissions = permissions
|
|
2361
5260
|
@prefetch = prefetch
|
|
2362
5261
|
@return_url = return_url
|
|
@@ -2503,8 +5402,12 @@ module Stripe
|
|
|
2503
5402
|
attr_accessor :fpx
|
|
2504
5403
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2505
5404
|
attr_accessor :giropay
|
|
5405
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5406
|
+
attr_accessor :gopay
|
|
2506
5407
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2507
5408
|
attr_accessor :grabpay
|
|
5409
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5410
|
+
attr_accessor :id_bank_transfer
|
|
2508
5411
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2509
5412
|
attr_accessor :ideal
|
|
2510
5413
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2541,12 +5444,18 @@ module Stripe
|
|
|
2541
5444
|
attr_accessor :paynow
|
|
2542
5445
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2543
5446
|
attr_accessor :paypal
|
|
5447
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5448
|
+
attr_accessor :paypay
|
|
2544
5449
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2545
5450
|
attr_accessor :payto
|
|
2546
5451
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2547
5452
|
attr_accessor :pix
|
|
2548
5453
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2549
5454
|
attr_accessor :promptpay
|
|
5455
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5456
|
+
attr_accessor :qris
|
|
5457
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5458
|
+
attr_accessor :rechnung
|
|
2550
5459
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2551
5460
|
attr_accessor :revolut_pay
|
|
2552
5461
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2557,8 +5466,12 @@ module Stripe
|
|
|
2557
5466
|
attr_accessor :scalapay
|
|
2558
5467
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2559
5468
|
attr_accessor :sepa_debit
|
|
5469
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5470
|
+
attr_accessor :shopeepay
|
|
2560
5471
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2561
5472
|
attr_accessor :sofort
|
|
5473
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5474
|
+
attr_accessor :stripe_balance
|
|
2562
5475
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2563
5476
|
attr_accessor :swish
|
|
2564
5477
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2594,7 +5507,9 @@ module Stripe
|
|
|
2594
5507
|
eps: nil,
|
|
2595
5508
|
fpx: nil,
|
|
2596
5509
|
giropay: nil,
|
|
5510
|
+
gopay: nil,
|
|
2597
5511
|
grabpay: nil,
|
|
5512
|
+
id_bank_transfer: nil,
|
|
2598
5513
|
ideal: nil,
|
|
2599
5514
|
interac_present: nil,
|
|
2600
5515
|
kakao_pay: nil,
|
|
@@ -2613,15 +5528,20 @@ module Stripe
|
|
|
2613
5528
|
payco: nil,
|
|
2614
5529
|
paynow: nil,
|
|
2615
5530
|
paypal: nil,
|
|
5531
|
+
paypay: nil,
|
|
2616
5532
|
payto: nil,
|
|
2617
5533
|
pix: nil,
|
|
2618
5534
|
promptpay: nil,
|
|
5535
|
+
qris: nil,
|
|
5536
|
+
rechnung: nil,
|
|
2619
5537
|
revolut_pay: nil,
|
|
2620
5538
|
samsung_pay: nil,
|
|
2621
5539
|
satispay: nil,
|
|
2622
5540
|
scalapay: nil,
|
|
2623
5541
|
sepa_debit: nil,
|
|
5542
|
+
shopeepay: nil,
|
|
2624
5543
|
sofort: nil,
|
|
5544
|
+
stripe_balance: nil,
|
|
2625
5545
|
swish: nil,
|
|
2626
5546
|
twint: nil,
|
|
2627
5547
|
upi: nil,
|
|
@@ -2650,7 +5570,9 @@ module Stripe
|
|
|
2650
5570
|
@eps = eps
|
|
2651
5571
|
@fpx = fpx
|
|
2652
5572
|
@giropay = giropay
|
|
5573
|
+
@gopay = gopay
|
|
2653
5574
|
@grabpay = grabpay
|
|
5575
|
+
@id_bank_transfer = id_bank_transfer
|
|
2654
5576
|
@ideal = ideal
|
|
2655
5577
|
@interac_present = interac_present
|
|
2656
5578
|
@kakao_pay = kakao_pay
|
|
@@ -2669,15 +5591,20 @@ module Stripe
|
|
|
2669
5591
|
@payco = payco
|
|
2670
5592
|
@paynow = paynow
|
|
2671
5593
|
@paypal = paypal
|
|
5594
|
+
@paypay = paypay
|
|
2672
5595
|
@payto = payto
|
|
2673
5596
|
@pix = pix
|
|
2674
5597
|
@promptpay = promptpay
|
|
5598
|
+
@qris = qris
|
|
5599
|
+
@rechnung = rechnung
|
|
2675
5600
|
@revolut_pay = revolut_pay
|
|
2676
5601
|
@samsung_pay = samsung_pay
|
|
2677
5602
|
@satispay = satispay
|
|
2678
5603
|
@scalapay = scalapay
|
|
2679
5604
|
@sepa_debit = sepa_debit
|
|
5605
|
+
@shopeepay = shopeepay
|
|
2680
5606
|
@sofort = sofort
|
|
5607
|
+
@stripe_balance = stripe_balance
|
|
2681
5608
|
@swish = swish
|
|
2682
5609
|
@twint = twint
|
|
2683
5610
|
@upi = upi
|
|
@@ -2833,6 +5760,8 @@ module Stripe
|
|
|
2833
5760
|
attr_accessor :excluded_payment_method_types
|
|
2834
5761
|
# Specifies which fields in the response should be expanded.
|
|
2835
5762
|
attr_accessor :expand
|
|
5763
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5764
|
+
attr_accessor :fx_quote
|
|
2836
5765
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2837
5766
|
attr_accessor :hooks
|
|
2838
5767
|
# 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).
|
|
@@ -2869,6 +5798,8 @@ module Stripe
|
|
|
2869
5798
|
attr_accessor :receipt_email
|
|
2870
5799
|
# 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).
|
|
2871
5800
|
attr_accessor :return_url
|
|
5801
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
5802
|
+
attr_accessor :secret_key_confirmation
|
|
2872
5803
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2873
5804
|
#
|
|
2874
5805
|
# 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.
|
|
@@ -2909,6 +5840,7 @@ module Stripe
|
|
|
2909
5840
|
error_on_requires_action: nil,
|
|
2910
5841
|
excluded_payment_method_types: nil,
|
|
2911
5842
|
expand: nil,
|
|
5843
|
+
fx_quote: nil,
|
|
2912
5844
|
hooks: nil,
|
|
2913
5845
|
mandate: nil,
|
|
2914
5846
|
mandate_data: nil,
|
|
@@ -2924,6 +5856,7 @@ module Stripe
|
|
|
2924
5856
|
radar_options: nil,
|
|
2925
5857
|
receipt_email: nil,
|
|
2926
5858
|
return_url: nil,
|
|
5859
|
+
secret_key_confirmation: nil,
|
|
2927
5860
|
setup_future_usage: nil,
|
|
2928
5861
|
shipping: nil,
|
|
2929
5862
|
statement_descriptor: nil,
|
|
@@ -2947,6 +5880,7 @@ module Stripe
|
|
|
2947
5880
|
@error_on_requires_action = error_on_requires_action
|
|
2948
5881
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2949
5882
|
@expand = expand
|
|
5883
|
+
@fx_quote = fx_quote
|
|
2950
5884
|
@hooks = hooks
|
|
2951
5885
|
@mandate = mandate
|
|
2952
5886
|
@mandate_data = mandate_data
|
|
@@ -2962,6 +5896,7 @@ module Stripe
|
|
|
2962
5896
|
@radar_options = radar_options
|
|
2963
5897
|
@receipt_email = receipt_email
|
|
2964
5898
|
@return_url = return_url
|
|
5899
|
+
@secret_key_confirmation = secret_key_confirmation
|
|
2965
5900
|
@setup_future_usage = setup_future_usage
|
|
2966
5901
|
@shipping = shipping
|
|
2967
5902
|
@statement_descriptor = statement_descriptor
|