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,125 +145,1767 @@ 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 Hooks < ::Stripe::RequestParams
|
|
207
|
+
class Inputs < ::Stripe::RequestParams
|
|
208
|
+
class Tax < ::Stripe::RequestParams
|
|
209
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
210
|
+
attr_accessor :calculation
|
|
211
|
+
|
|
212
|
+
def initialize(calculation: nil)
|
|
213
|
+
@calculation = calculation
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
# Tax arguments for automations
|
|
217
|
+
attr_accessor :tax
|
|
218
|
+
|
|
219
|
+
def initialize(tax: nil)
|
|
220
|
+
@tax = tax
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
# Arguments passed in automations
|
|
224
|
+
attr_accessor :inputs
|
|
225
|
+
|
|
226
|
+
def initialize(inputs: nil)
|
|
227
|
+
@inputs = inputs
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
class MandateData < ::Stripe::RequestParams
|
|
232
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
233
|
+
class Offline < ::Stripe::RequestParams; end
|
|
234
|
+
|
|
235
|
+
class Online < ::Stripe::RequestParams
|
|
236
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
237
|
+
attr_accessor :ip_address
|
|
238
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
239
|
+
attr_accessor :user_agent
|
|
240
|
+
|
|
241
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
242
|
+
@ip_address = ip_address
|
|
243
|
+
@user_agent = user_agent
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
# The time at which the customer accepted the Mandate.
|
|
247
|
+
attr_accessor :accepted_at
|
|
248
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
249
|
+
attr_accessor :offline
|
|
250
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
251
|
+
attr_accessor :online
|
|
252
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
253
|
+
attr_accessor :type
|
|
254
|
+
|
|
255
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
256
|
+
@accepted_at = accepted_at
|
|
257
|
+
@offline = offline
|
|
258
|
+
@online = online
|
|
259
|
+
@type = type
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
263
|
+
attr_accessor :customer_acceptance
|
|
264
|
+
|
|
265
|
+
def initialize(customer_acceptance: nil)
|
|
266
|
+
@customer_acceptance = customer_acceptance
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
271
|
+
class CarRental < ::Stripe::RequestParams
|
|
272
|
+
class Affiliate < ::Stripe::RequestParams
|
|
273
|
+
# The name of the affiliate that originated the purchase.
|
|
274
|
+
attr_accessor :name
|
|
275
|
+
|
|
276
|
+
def initialize(name: nil)
|
|
277
|
+
@name = name
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
class Delivery < ::Stripe::RequestParams
|
|
282
|
+
class Recipient < ::Stripe::RequestParams
|
|
283
|
+
# The email of the recipient the ticket is delivered to.
|
|
284
|
+
attr_accessor :email
|
|
285
|
+
# The name of the recipient the ticket is delivered to.
|
|
286
|
+
attr_accessor :name
|
|
287
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
288
|
+
attr_accessor :phone
|
|
289
|
+
|
|
290
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
291
|
+
@email = email
|
|
292
|
+
@name = name
|
|
293
|
+
@phone = phone
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
# The delivery method for the payment
|
|
297
|
+
attr_accessor :mode
|
|
298
|
+
# Details of the recipient.
|
|
299
|
+
attr_accessor :recipient
|
|
300
|
+
|
|
301
|
+
def initialize(mode: nil, recipient: nil)
|
|
302
|
+
@mode = mode
|
|
303
|
+
@recipient = recipient
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
class Distance < ::Stripe::RequestParams
|
|
308
|
+
# Distance traveled.
|
|
309
|
+
attr_accessor :amount
|
|
310
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
311
|
+
attr_accessor :unit
|
|
312
|
+
|
|
313
|
+
def initialize(amount: nil, unit: nil)
|
|
314
|
+
@amount = amount
|
|
315
|
+
@unit = unit
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
class Driver < ::Stripe::RequestParams
|
|
320
|
+
# Driver's identification number.
|
|
321
|
+
attr_accessor :driver_identification_number
|
|
322
|
+
# Driver's tax number.
|
|
323
|
+
attr_accessor :driver_tax_number
|
|
324
|
+
# Full name of the person or entity on the car reservation.
|
|
325
|
+
attr_accessor :name
|
|
326
|
+
|
|
327
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
328
|
+
@driver_identification_number = driver_identification_number
|
|
329
|
+
@driver_tax_number = driver_tax_number
|
|
330
|
+
@name = name
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
335
|
+
# City, district, suburb, town, or village.
|
|
336
|
+
attr_accessor :city
|
|
337
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
338
|
+
attr_accessor :country
|
|
339
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
340
|
+
attr_accessor :line1
|
|
341
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
342
|
+
attr_accessor :line2
|
|
343
|
+
# ZIP or postal code.
|
|
344
|
+
attr_accessor :postal_code
|
|
345
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
346
|
+
attr_accessor :state
|
|
347
|
+
|
|
348
|
+
def initialize(
|
|
349
|
+
city: nil,
|
|
350
|
+
country: nil,
|
|
351
|
+
line1: nil,
|
|
352
|
+
line2: nil,
|
|
353
|
+
postal_code: nil,
|
|
354
|
+
state: nil
|
|
355
|
+
)
|
|
356
|
+
@city = city
|
|
357
|
+
@country = country
|
|
358
|
+
@line1 = line1
|
|
359
|
+
@line2 = line2
|
|
360
|
+
@postal_code = postal_code
|
|
361
|
+
@state = state
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
366
|
+
# City, district, suburb, town, or village.
|
|
367
|
+
attr_accessor :city
|
|
368
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
369
|
+
attr_accessor :country
|
|
370
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
371
|
+
attr_accessor :line1
|
|
372
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
373
|
+
attr_accessor :line2
|
|
374
|
+
# ZIP or postal code.
|
|
375
|
+
attr_accessor :postal_code
|
|
376
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
377
|
+
attr_accessor :state
|
|
378
|
+
|
|
379
|
+
def initialize(
|
|
380
|
+
city: nil,
|
|
381
|
+
country: nil,
|
|
382
|
+
line1: nil,
|
|
383
|
+
line2: nil,
|
|
384
|
+
postal_code: nil,
|
|
385
|
+
state: nil
|
|
386
|
+
)
|
|
387
|
+
@city = city
|
|
388
|
+
@country = country
|
|
389
|
+
@line1 = line1
|
|
390
|
+
@line2 = line2
|
|
391
|
+
@postal_code = postal_code
|
|
392
|
+
@state = state
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
# Affiliate details for this purchase.
|
|
396
|
+
attr_accessor :affiliate
|
|
397
|
+
# The booking number associated with the car rental.
|
|
398
|
+
attr_accessor :booking_number
|
|
399
|
+
# Class code of the car.
|
|
400
|
+
attr_accessor :car_class_code
|
|
401
|
+
# Make of the car.
|
|
402
|
+
attr_accessor :car_make
|
|
403
|
+
# Model of the car.
|
|
404
|
+
attr_accessor :car_model
|
|
405
|
+
# The name of the rental car company.
|
|
406
|
+
attr_accessor :company
|
|
407
|
+
# The customer service phone number of the car rental company.
|
|
408
|
+
attr_accessor :customer_service_phone_number
|
|
409
|
+
# Number of days the car is being rented.
|
|
410
|
+
attr_accessor :days_rented
|
|
411
|
+
# Delivery details for this purchase.
|
|
412
|
+
attr_accessor :delivery
|
|
413
|
+
# The details of the distance traveled during the rental period.
|
|
414
|
+
attr_accessor :distance
|
|
415
|
+
# The details of the passengers in the travel reservation
|
|
416
|
+
attr_accessor :drivers
|
|
417
|
+
# List of additional charges being billed.
|
|
418
|
+
attr_accessor :extra_charges
|
|
419
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
420
|
+
attr_accessor :no_show
|
|
421
|
+
# Car pick-up address.
|
|
422
|
+
attr_accessor :pickup_address
|
|
423
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
424
|
+
attr_accessor :pickup_at
|
|
425
|
+
# Name of the pickup location.
|
|
426
|
+
attr_accessor :pickup_location_name
|
|
427
|
+
# Rental rate.
|
|
428
|
+
attr_accessor :rate_amount
|
|
429
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
430
|
+
attr_accessor :rate_interval
|
|
431
|
+
# The name of the person or entity renting the car.
|
|
432
|
+
attr_accessor :renter_name
|
|
433
|
+
# Car return address.
|
|
434
|
+
attr_accessor :return_address
|
|
435
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
436
|
+
attr_accessor :return_at
|
|
437
|
+
# Name of the return location.
|
|
438
|
+
attr_accessor :return_location_name
|
|
439
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
440
|
+
attr_accessor :tax_exempt
|
|
441
|
+
# The vehicle identification number.
|
|
442
|
+
attr_accessor :vehicle_identification_number
|
|
443
|
+
|
|
444
|
+
def initialize(
|
|
445
|
+
affiliate: nil,
|
|
446
|
+
booking_number: nil,
|
|
447
|
+
car_class_code: nil,
|
|
448
|
+
car_make: nil,
|
|
449
|
+
car_model: nil,
|
|
450
|
+
company: nil,
|
|
451
|
+
customer_service_phone_number: nil,
|
|
452
|
+
days_rented: nil,
|
|
453
|
+
delivery: nil,
|
|
454
|
+
distance: nil,
|
|
455
|
+
drivers: nil,
|
|
456
|
+
extra_charges: nil,
|
|
457
|
+
no_show: nil,
|
|
458
|
+
pickup_address: nil,
|
|
459
|
+
pickup_at: nil,
|
|
460
|
+
pickup_location_name: nil,
|
|
461
|
+
rate_amount: nil,
|
|
462
|
+
rate_interval: nil,
|
|
463
|
+
renter_name: nil,
|
|
464
|
+
return_address: nil,
|
|
465
|
+
return_at: nil,
|
|
466
|
+
return_location_name: nil,
|
|
467
|
+
tax_exempt: nil,
|
|
468
|
+
vehicle_identification_number: nil
|
|
469
|
+
)
|
|
470
|
+
@affiliate = affiliate
|
|
471
|
+
@booking_number = booking_number
|
|
472
|
+
@car_class_code = car_class_code
|
|
473
|
+
@car_make = car_make
|
|
474
|
+
@car_model = car_model
|
|
475
|
+
@company = company
|
|
476
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
477
|
+
@days_rented = days_rented
|
|
478
|
+
@delivery = delivery
|
|
479
|
+
@distance = distance
|
|
480
|
+
@drivers = drivers
|
|
481
|
+
@extra_charges = extra_charges
|
|
482
|
+
@no_show = no_show
|
|
483
|
+
@pickup_address = pickup_address
|
|
484
|
+
@pickup_at = pickup_at
|
|
485
|
+
@pickup_location_name = pickup_location_name
|
|
486
|
+
@rate_amount = rate_amount
|
|
487
|
+
@rate_interval = rate_interval
|
|
488
|
+
@renter_name = renter_name
|
|
489
|
+
@return_address = return_address
|
|
490
|
+
@return_at = return_at
|
|
491
|
+
@return_location_name = return_location_name
|
|
492
|
+
@tax_exempt = tax_exempt
|
|
493
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
494
|
+
end
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
498
|
+
class Affiliate < ::Stripe::RequestParams
|
|
499
|
+
# Affiliate partner code.
|
|
500
|
+
attr_accessor :code
|
|
501
|
+
# Name of affiliate partner.
|
|
502
|
+
attr_accessor :name
|
|
503
|
+
|
|
504
|
+
def initialize(code: nil, name: nil)
|
|
505
|
+
@code = code
|
|
506
|
+
@name = name
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
class Distance < ::Stripe::RequestParams
|
|
511
|
+
# Distance traveled.
|
|
512
|
+
attr_accessor :amount
|
|
513
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
514
|
+
attr_accessor :unit
|
|
515
|
+
|
|
516
|
+
def initialize(amount: nil, unit: nil)
|
|
517
|
+
@amount = amount
|
|
518
|
+
@unit = unit
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
class Driver < ::Stripe::RequestParams
|
|
523
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
524
|
+
# Day of birth (1-31).
|
|
525
|
+
attr_accessor :day
|
|
526
|
+
# Month of birth (1-12).
|
|
527
|
+
attr_accessor :month
|
|
528
|
+
# Year of birth (must be greater than 1900).
|
|
529
|
+
attr_accessor :year
|
|
530
|
+
|
|
531
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
532
|
+
@day = day
|
|
533
|
+
@month = month
|
|
534
|
+
@year = year
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
# Driver's date of birth.
|
|
538
|
+
attr_accessor :date_of_birth
|
|
539
|
+
# Driver's identification number.
|
|
540
|
+
attr_accessor :driver_identification_number
|
|
541
|
+
# Driver's tax number.
|
|
542
|
+
attr_accessor :driver_tax_number
|
|
543
|
+
# Driver's full name.
|
|
544
|
+
attr_accessor :name
|
|
545
|
+
|
|
546
|
+
def initialize(
|
|
547
|
+
date_of_birth: nil,
|
|
548
|
+
driver_identification_number: nil,
|
|
549
|
+
driver_tax_number: nil,
|
|
550
|
+
name: nil
|
|
551
|
+
)
|
|
552
|
+
@date_of_birth = date_of_birth
|
|
553
|
+
@driver_identification_number = driver_identification_number
|
|
554
|
+
@driver_tax_number = driver_tax_number
|
|
555
|
+
@name = name
|
|
556
|
+
end
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
class DropOff < ::Stripe::RequestParams
|
|
560
|
+
class Address < ::Stripe::RequestParams
|
|
561
|
+
# City, district, suburb, town, or village.
|
|
562
|
+
attr_accessor :city
|
|
563
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
564
|
+
attr_accessor :country
|
|
565
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
566
|
+
attr_accessor :line1
|
|
567
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
568
|
+
attr_accessor :line2
|
|
569
|
+
# ZIP or postal code.
|
|
570
|
+
attr_accessor :postal_code
|
|
571
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
572
|
+
attr_accessor :state
|
|
573
|
+
|
|
574
|
+
def initialize(
|
|
575
|
+
city: nil,
|
|
576
|
+
country: nil,
|
|
577
|
+
line1: nil,
|
|
578
|
+
line2: nil,
|
|
579
|
+
postal_code: nil,
|
|
580
|
+
state: nil
|
|
581
|
+
)
|
|
582
|
+
@city = city
|
|
583
|
+
@country = country
|
|
584
|
+
@line1 = line1
|
|
585
|
+
@line2 = line2
|
|
586
|
+
@postal_code = postal_code
|
|
587
|
+
@state = state
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
# Address of the rental location.
|
|
591
|
+
attr_accessor :address
|
|
592
|
+
# Location name.
|
|
593
|
+
attr_accessor :location_name
|
|
594
|
+
# Timestamp for the location.
|
|
595
|
+
attr_accessor :time
|
|
596
|
+
|
|
597
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
598
|
+
@address = address
|
|
599
|
+
@location_name = location_name
|
|
600
|
+
@time = time
|
|
601
|
+
end
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
class Insurance < ::Stripe::RequestParams
|
|
605
|
+
# Amount of the insurance coverage in cents.
|
|
606
|
+
attr_accessor :amount
|
|
607
|
+
# Currency of the insurance amount.
|
|
608
|
+
attr_accessor :currency
|
|
609
|
+
# Name of the insurance company.
|
|
610
|
+
attr_accessor :insurance_company_name
|
|
611
|
+
# Type of insurance coverage.
|
|
612
|
+
attr_accessor :insurance_type
|
|
613
|
+
|
|
614
|
+
def initialize(
|
|
615
|
+
amount: nil,
|
|
616
|
+
currency: nil,
|
|
617
|
+
insurance_company_name: nil,
|
|
618
|
+
insurance_type: nil
|
|
619
|
+
)
|
|
620
|
+
@amount = amount
|
|
621
|
+
@currency = currency
|
|
622
|
+
@insurance_company_name = insurance_company_name
|
|
623
|
+
@insurance_type = insurance_type
|
|
624
|
+
end
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
class Pickup < ::Stripe::RequestParams
|
|
628
|
+
class Address < ::Stripe::RequestParams
|
|
629
|
+
# City, district, suburb, town, or village.
|
|
630
|
+
attr_accessor :city
|
|
631
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
632
|
+
attr_accessor :country
|
|
633
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
634
|
+
attr_accessor :line1
|
|
635
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
636
|
+
attr_accessor :line2
|
|
637
|
+
# ZIP or postal code.
|
|
638
|
+
attr_accessor :postal_code
|
|
639
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
640
|
+
attr_accessor :state
|
|
641
|
+
|
|
642
|
+
def initialize(
|
|
643
|
+
city: nil,
|
|
644
|
+
country: nil,
|
|
645
|
+
line1: nil,
|
|
646
|
+
line2: nil,
|
|
647
|
+
postal_code: nil,
|
|
648
|
+
state: nil
|
|
649
|
+
)
|
|
650
|
+
@city = city
|
|
651
|
+
@country = country
|
|
652
|
+
@line1 = line1
|
|
653
|
+
@line2 = line2
|
|
654
|
+
@postal_code = postal_code
|
|
655
|
+
@state = state
|
|
656
|
+
end
|
|
657
|
+
end
|
|
658
|
+
# Address of the rental location.
|
|
659
|
+
attr_accessor :address
|
|
660
|
+
# Location name.
|
|
661
|
+
attr_accessor :location_name
|
|
662
|
+
# Timestamp for the location.
|
|
663
|
+
attr_accessor :time
|
|
664
|
+
|
|
665
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
666
|
+
@address = address
|
|
667
|
+
@location_name = location_name
|
|
668
|
+
@time = time
|
|
669
|
+
end
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
class Total < ::Stripe::RequestParams
|
|
673
|
+
class Discounts < ::Stripe::RequestParams
|
|
674
|
+
# Corporate client discount code.
|
|
675
|
+
attr_accessor :corporate_client_code
|
|
676
|
+
# Coupon code applied to the rental.
|
|
677
|
+
attr_accessor :coupon
|
|
678
|
+
# Maximum number of free miles or kilometers included.
|
|
679
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
680
|
+
|
|
681
|
+
def initialize(
|
|
682
|
+
corporate_client_code: nil,
|
|
683
|
+
coupon: nil,
|
|
684
|
+
maximum_free_miles_or_kilometers: nil
|
|
685
|
+
)
|
|
686
|
+
@corporate_client_code = corporate_client_code
|
|
687
|
+
@coupon = coupon
|
|
688
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
689
|
+
end
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
693
|
+
# Amount of the extra charge in cents.
|
|
694
|
+
attr_accessor :amount
|
|
695
|
+
# Type of extra charge.
|
|
696
|
+
attr_accessor :type
|
|
697
|
+
|
|
698
|
+
def initialize(amount: nil, type: nil)
|
|
699
|
+
@amount = amount
|
|
700
|
+
@type = type
|
|
701
|
+
end
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
class Tax < ::Stripe::RequestParams
|
|
705
|
+
class Tax < ::Stripe::RequestParams
|
|
706
|
+
# Tax amount.
|
|
707
|
+
attr_accessor :amount
|
|
708
|
+
# Tax rate applied.
|
|
709
|
+
attr_accessor :rate
|
|
710
|
+
# Type of tax applied.
|
|
711
|
+
attr_accessor :type
|
|
712
|
+
|
|
713
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
714
|
+
@amount = amount
|
|
715
|
+
@rate = rate
|
|
716
|
+
@type = type
|
|
717
|
+
end
|
|
718
|
+
end
|
|
719
|
+
# Indicates if the transaction is tax exempt.
|
|
720
|
+
attr_accessor :tax_exempt_indicator
|
|
721
|
+
# Array of tax details.
|
|
722
|
+
attr_accessor :taxes
|
|
723
|
+
|
|
724
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
725
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
726
|
+
@taxes = taxes
|
|
727
|
+
end
|
|
728
|
+
end
|
|
729
|
+
# Total amount in cents.
|
|
730
|
+
attr_accessor :amount
|
|
731
|
+
# Currency of the amount.
|
|
732
|
+
attr_accessor :currency
|
|
733
|
+
# Discount details for the rental.
|
|
734
|
+
attr_accessor :discounts
|
|
735
|
+
# Additional charges for the rental.
|
|
736
|
+
attr_accessor :extra_charges
|
|
737
|
+
# Rate per unit for the rental.
|
|
738
|
+
attr_accessor :rate_per_unit
|
|
739
|
+
# Unit of measurement for the rate.
|
|
740
|
+
attr_accessor :rate_unit
|
|
741
|
+
# Tax breakdown for the rental.
|
|
742
|
+
attr_accessor :tax
|
|
743
|
+
|
|
744
|
+
def initialize(
|
|
745
|
+
amount: nil,
|
|
746
|
+
currency: nil,
|
|
747
|
+
discounts: nil,
|
|
748
|
+
extra_charges: nil,
|
|
749
|
+
rate_per_unit: nil,
|
|
750
|
+
rate_unit: nil,
|
|
751
|
+
tax: nil
|
|
752
|
+
)
|
|
753
|
+
@amount = amount
|
|
754
|
+
@currency = currency
|
|
755
|
+
@discounts = discounts
|
|
756
|
+
@extra_charges = extra_charges
|
|
757
|
+
@rate_per_unit = rate_per_unit
|
|
758
|
+
@rate_unit = rate_unit
|
|
759
|
+
@tax = tax
|
|
760
|
+
end
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
class Vehicle < ::Stripe::RequestParams
|
|
764
|
+
# Make of the rental vehicle.
|
|
765
|
+
attr_accessor :make
|
|
766
|
+
# Model of the rental vehicle.
|
|
767
|
+
attr_accessor :model
|
|
768
|
+
# Odometer reading at the time of rental.
|
|
769
|
+
attr_accessor :odometer
|
|
770
|
+
# Type of the rental vehicle.
|
|
771
|
+
attr_accessor :type
|
|
772
|
+
# Class of the rental vehicle.
|
|
773
|
+
attr_accessor :vehicle_class
|
|
774
|
+
# Vehicle identification number (VIN).
|
|
775
|
+
attr_accessor :vehicle_identification_number
|
|
776
|
+
|
|
777
|
+
def initialize(
|
|
778
|
+
make: nil,
|
|
779
|
+
model: nil,
|
|
780
|
+
odometer: nil,
|
|
781
|
+
type: nil,
|
|
782
|
+
vehicle_class: nil,
|
|
783
|
+
vehicle_identification_number: nil
|
|
784
|
+
)
|
|
785
|
+
@make = make
|
|
786
|
+
@model = model
|
|
787
|
+
@odometer = odometer
|
|
788
|
+
@type = type
|
|
789
|
+
@vehicle_class = vehicle_class
|
|
790
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
791
|
+
end
|
|
792
|
+
end
|
|
793
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
794
|
+
attr_accessor :affiliate
|
|
795
|
+
# Booking confirmation number for the car rental.
|
|
796
|
+
attr_accessor :booking_number
|
|
797
|
+
# Name of the car rental company.
|
|
798
|
+
attr_accessor :carrier_name
|
|
799
|
+
# Customer service phone number for the car rental company.
|
|
800
|
+
attr_accessor :customer_service_phone_number
|
|
801
|
+
# Number of days the car is being rented.
|
|
802
|
+
attr_accessor :days_rented
|
|
803
|
+
# Distance details for the rental.
|
|
804
|
+
attr_accessor :distance
|
|
805
|
+
# List of drivers for the rental.
|
|
806
|
+
attr_accessor :drivers
|
|
807
|
+
# Drop-off location details.
|
|
808
|
+
attr_accessor :drop_off
|
|
809
|
+
# Insurance details for the rental.
|
|
810
|
+
attr_accessor :insurances
|
|
811
|
+
# Indicates if the customer was a no-show.
|
|
812
|
+
attr_accessor :no_show_indicator
|
|
813
|
+
# Pickup location details.
|
|
814
|
+
attr_accessor :pickup
|
|
815
|
+
# Name of the person renting the vehicle.
|
|
816
|
+
attr_accessor :renter_name
|
|
817
|
+
# Total cost breakdown for the rental.
|
|
818
|
+
attr_accessor :total
|
|
819
|
+
# Vehicle details for the rental.
|
|
820
|
+
attr_accessor :vehicle
|
|
821
|
+
|
|
822
|
+
def initialize(
|
|
823
|
+
affiliate: nil,
|
|
824
|
+
booking_number: nil,
|
|
825
|
+
carrier_name: nil,
|
|
826
|
+
customer_service_phone_number: nil,
|
|
827
|
+
days_rented: nil,
|
|
828
|
+
distance: nil,
|
|
829
|
+
drivers: nil,
|
|
830
|
+
drop_off: nil,
|
|
831
|
+
insurances: nil,
|
|
832
|
+
no_show_indicator: nil,
|
|
833
|
+
pickup: nil,
|
|
834
|
+
renter_name: nil,
|
|
835
|
+
total: nil,
|
|
836
|
+
vehicle: nil
|
|
837
|
+
)
|
|
838
|
+
@affiliate = affiliate
|
|
839
|
+
@booking_number = booking_number
|
|
840
|
+
@carrier_name = carrier_name
|
|
841
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
842
|
+
@days_rented = days_rented
|
|
843
|
+
@distance = distance
|
|
844
|
+
@drivers = drivers
|
|
845
|
+
@drop_off = drop_off
|
|
846
|
+
@insurances = insurances
|
|
847
|
+
@no_show_indicator = no_show_indicator
|
|
848
|
+
@pickup = pickup
|
|
849
|
+
@renter_name = renter_name
|
|
850
|
+
@total = total
|
|
851
|
+
@vehicle = vehicle
|
|
852
|
+
end
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
class EventDetails < ::Stripe::RequestParams
|
|
856
|
+
class Address < ::Stripe::RequestParams
|
|
857
|
+
# City, district, suburb, town, or village.
|
|
858
|
+
attr_accessor :city
|
|
859
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
860
|
+
attr_accessor :country
|
|
861
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
862
|
+
attr_accessor :line1
|
|
863
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
864
|
+
attr_accessor :line2
|
|
865
|
+
# ZIP or postal code.
|
|
866
|
+
attr_accessor :postal_code
|
|
867
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
868
|
+
attr_accessor :state
|
|
869
|
+
|
|
870
|
+
def initialize(
|
|
871
|
+
city: nil,
|
|
872
|
+
country: nil,
|
|
873
|
+
line1: nil,
|
|
874
|
+
line2: nil,
|
|
875
|
+
postal_code: nil,
|
|
876
|
+
state: nil
|
|
877
|
+
)
|
|
878
|
+
@city = city
|
|
879
|
+
@country = country
|
|
880
|
+
@line1 = line1
|
|
881
|
+
@line2 = line2
|
|
882
|
+
@postal_code = postal_code
|
|
883
|
+
@state = state
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
class Affiliate < ::Stripe::RequestParams
|
|
888
|
+
# The name of the affiliate that originated the purchase.
|
|
889
|
+
attr_accessor :name
|
|
890
|
+
|
|
891
|
+
def initialize(name: nil)
|
|
892
|
+
@name = name
|
|
893
|
+
end
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
class Delivery < ::Stripe::RequestParams
|
|
897
|
+
class Recipient < ::Stripe::RequestParams
|
|
898
|
+
# The email of the recipient the ticket is delivered to.
|
|
899
|
+
attr_accessor :email
|
|
900
|
+
# The name of the recipient the ticket is delivered to.
|
|
901
|
+
attr_accessor :name
|
|
902
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
903
|
+
attr_accessor :phone
|
|
904
|
+
|
|
905
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
906
|
+
@email = email
|
|
907
|
+
@name = name
|
|
908
|
+
@phone = phone
|
|
909
|
+
end
|
|
910
|
+
end
|
|
911
|
+
# The delivery method for the payment
|
|
912
|
+
attr_accessor :mode
|
|
913
|
+
# Details of the recipient.
|
|
914
|
+
attr_accessor :recipient
|
|
915
|
+
|
|
916
|
+
def initialize(mode: nil, recipient: nil)
|
|
917
|
+
@mode = mode
|
|
918
|
+
@recipient = recipient
|
|
919
|
+
end
|
|
920
|
+
end
|
|
921
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
922
|
+
attr_accessor :access_controlled_venue
|
|
923
|
+
# The event location's address.
|
|
924
|
+
attr_accessor :address
|
|
925
|
+
# Affiliate details for this purchase.
|
|
926
|
+
attr_accessor :affiliate
|
|
927
|
+
# The name of the company
|
|
928
|
+
attr_accessor :company
|
|
929
|
+
# Delivery details for this purchase.
|
|
930
|
+
attr_accessor :delivery
|
|
931
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
932
|
+
attr_accessor :ends_at
|
|
933
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
934
|
+
attr_accessor :genre
|
|
935
|
+
# The name of the event.
|
|
936
|
+
attr_accessor :name
|
|
937
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
938
|
+
attr_accessor :starts_at
|
|
939
|
+
|
|
940
|
+
def initialize(
|
|
941
|
+
access_controlled_venue: nil,
|
|
942
|
+
address: nil,
|
|
943
|
+
affiliate: nil,
|
|
944
|
+
company: nil,
|
|
945
|
+
delivery: nil,
|
|
946
|
+
ends_at: nil,
|
|
947
|
+
genre: nil,
|
|
948
|
+
name: nil,
|
|
949
|
+
starts_at: nil
|
|
950
|
+
)
|
|
951
|
+
@access_controlled_venue = access_controlled_venue
|
|
952
|
+
@address = address
|
|
953
|
+
@affiliate = affiliate
|
|
954
|
+
@company = company
|
|
955
|
+
@delivery = delivery
|
|
956
|
+
@ends_at = ends_at
|
|
957
|
+
@genre = genre
|
|
958
|
+
@name = name
|
|
959
|
+
@starts_at = starts_at
|
|
960
|
+
end
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
class Flight < ::Stripe::RequestParams
|
|
964
|
+
class Affiliate < ::Stripe::RequestParams
|
|
965
|
+
# The name of the affiliate that originated the purchase.
|
|
966
|
+
attr_accessor :name
|
|
967
|
+
|
|
968
|
+
def initialize(name: nil)
|
|
969
|
+
@name = name
|
|
970
|
+
end
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
class Delivery < ::Stripe::RequestParams
|
|
974
|
+
class Recipient < ::Stripe::RequestParams
|
|
975
|
+
# The email of the recipient the ticket is delivered to.
|
|
976
|
+
attr_accessor :email
|
|
977
|
+
# The name of the recipient the ticket is delivered to.
|
|
978
|
+
attr_accessor :name
|
|
979
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
980
|
+
attr_accessor :phone
|
|
981
|
+
|
|
982
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
983
|
+
@email = email
|
|
984
|
+
@name = name
|
|
985
|
+
@phone = phone
|
|
986
|
+
end
|
|
987
|
+
end
|
|
988
|
+
# The delivery method for the payment
|
|
989
|
+
attr_accessor :mode
|
|
990
|
+
# Details of the recipient.
|
|
991
|
+
attr_accessor :recipient
|
|
992
|
+
|
|
993
|
+
def initialize(mode: nil, recipient: nil)
|
|
994
|
+
@mode = mode
|
|
995
|
+
@recipient = recipient
|
|
996
|
+
end
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
class Passenger < ::Stripe::RequestParams
|
|
1000
|
+
# Full name of the person or entity on the flight reservation.
|
|
1001
|
+
attr_accessor :name
|
|
1002
|
+
|
|
1003
|
+
def initialize(name: nil)
|
|
1004
|
+
@name = name
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
|
|
1008
|
+
class Segment < ::Stripe::RequestParams
|
|
1009
|
+
# The flight segment amount.
|
|
1010
|
+
attr_accessor :amount
|
|
1011
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1012
|
+
attr_accessor :arrival_airport
|
|
1013
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1014
|
+
attr_accessor :arrives_at
|
|
1015
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1016
|
+
attr_accessor :carrier
|
|
1017
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1018
|
+
attr_accessor :departs_at
|
|
1019
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1020
|
+
attr_accessor :departure_airport
|
|
1021
|
+
# The flight number associated with the segment
|
|
1022
|
+
attr_accessor :flight_number
|
|
1023
|
+
# The fare class for the segment.
|
|
1024
|
+
attr_accessor :service_class
|
|
1025
|
+
|
|
1026
|
+
def initialize(
|
|
1027
|
+
amount: nil,
|
|
1028
|
+
arrival_airport: nil,
|
|
1029
|
+
arrives_at: nil,
|
|
1030
|
+
carrier: nil,
|
|
1031
|
+
departs_at: nil,
|
|
1032
|
+
departure_airport: nil,
|
|
1033
|
+
flight_number: nil,
|
|
1034
|
+
service_class: nil
|
|
1035
|
+
)
|
|
1036
|
+
@amount = amount
|
|
1037
|
+
@arrival_airport = arrival_airport
|
|
1038
|
+
@arrives_at = arrives_at
|
|
1039
|
+
@carrier = carrier
|
|
1040
|
+
@departs_at = departs_at
|
|
1041
|
+
@departure_airport = departure_airport
|
|
1042
|
+
@flight_number = flight_number
|
|
1043
|
+
@service_class = service_class
|
|
1044
|
+
end
|
|
1045
|
+
end
|
|
1046
|
+
# Affiliate details for this purchase.
|
|
1047
|
+
attr_accessor :affiliate
|
|
1048
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1049
|
+
attr_accessor :agency_number
|
|
1050
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1051
|
+
attr_accessor :carrier
|
|
1052
|
+
# Delivery details for this purchase.
|
|
1053
|
+
attr_accessor :delivery
|
|
1054
|
+
# The name of the person or entity on the reservation.
|
|
1055
|
+
attr_accessor :passenger_name
|
|
1056
|
+
# The details of the passengers in the travel reservation.
|
|
1057
|
+
attr_accessor :passengers
|
|
1058
|
+
# The individual flight segments associated with the trip.
|
|
1059
|
+
attr_accessor :segments
|
|
1060
|
+
# The ticket number associated with the travel reservation.
|
|
1061
|
+
attr_accessor :ticket_number
|
|
1062
|
+
|
|
1063
|
+
def initialize(
|
|
1064
|
+
affiliate: nil,
|
|
1065
|
+
agency_number: nil,
|
|
1066
|
+
carrier: nil,
|
|
1067
|
+
delivery: nil,
|
|
1068
|
+
passenger_name: nil,
|
|
1069
|
+
passengers: nil,
|
|
1070
|
+
segments: nil,
|
|
1071
|
+
ticket_number: nil
|
|
1072
|
+
)
|
|
1073
|
+
@affiliate = affiliate
|
|
1074
|
+
@agency_number = agency_number
|
|
1075
|
+
@carrier = carrier
|
|
1076
|
+
@delivery = delivery
|
|
1077
|
+
@passenger_name = passenger_name
|
|
1078
|
+
@passengers = passengers
|
|
1079
|
+
@segments = segments
|
|
1080
|
+
@ticket_number = ticket_number
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1085
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1086
|
+
# Affiliate partner code.
|
|
1087
|
+
attr_accessor :code
|
|
1088
|
+
# Name of affiliate partner.
|
|
1089
|
+
attr_accessor :name
|
|
1090
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1091
|
+
attr_accessor :travel_authorization_code
|
|
1092
|
+
|
|
1093
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1094
|
+
@code = code
|
|
1095
|
+
@name = name
|
|
1096
|
+
@travel_authorization_code = travel_authorization_code
|
|
1097
|
+
end
|
|
1098
|
+
end
|
|
1099
|
+
|
|
1100
|
+
class Insurance < ::Stripe::RequestParams
|
|
1101
|
+
# Insurance cost.
|
|
1102
|
+
attr_accessor :amount
|
|
1103
|
+
# Insurance currency.
|
|
1104
|
+
attr_accessor :currency
|
|
1105
|
+
# Insurance company name.
|
|
1106
|
+
attr_accessor :insurance_company_name
|
|
1107
|
+
# Type of insurance.
|
|
1108
|
+
attr_accessor :insurance_type
|
|
1109
|
+
|
|
1110
|
+
def initialize(
|
|
1111
|
+
amount: nil,
|
|
1112
|
+
currency: nil,
|
|
1113
|
+
insurance_company_name: nil,
|
|
1114
|
+
insurance_type: nil
|
|
1115
|
+
)
|
|
1116
|
+
@amount = amount
|
|
1117
|
+
@currency = currency
|
|
1118
|
+
@insurance_company_name = insurance_company_name
|
|
1119
|
+
@insurance_type = insurance_type
|
|
1120
|
+
end
|
|
1121
|
+
end
|
|
1122
|
+
|
|
1123
|
+
class Passenger < ::Stripe::RequestParams
|
|
1124
|
+
# Passenger's full name.
|
|
1125
|
+
attr_accessor :name
|
|
1126
|
+
|
|
1127
|
+
def initialize(name: nil)
|
|
1128
|
+
@name = name
|
|
1129
|
+
end
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
class Segment < ::Stripe::RequestParams
|
|
1133
|
+
class Arrival < ::Stripe::RequestParams
|
|
1134
|
+
# Arrival airport IATA code.
|
|
1135
|
+
attr_accessor :airport
|
|
1136
|
+
# Arrival date/time.
|
|
1137
|
+
attr_accessor :arrives_at
|
|
1138
|
+
# Arrival city.
|
|
1139
|
+
attr_accessor :city
|
|
1140
|
+
# Arrival country.
|
|
1141
|
+
attr_accessor :country
|
|
1142
|
+
|
|
1143
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1144
|
+
@airport = airport
|
|
1145
|
+
@arrives_at = arrives_at
|
|
1146
|
+
@city = city
|
|
1147
|
+
@country = country
|
|
1148
|
+
end
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
class Departure < ::Stripe::RequestParams
|
|
1152
|
+
# Departure airport IATA code.
|
|
1153
|
+
attr_accessor :airport
|
|
1154
|
+
# Departure city.
|
|
1155
|
+
attr_accessor :city
|
|
1156
|
+
# Departure country.
|
|
1157
|
+
attr_accessor :country
|
|
1158
|
+
# Departure date/time.
|
|
1159
|
+
attr_accessor :departs_at
|
|
1160
|
+
|
|
1161
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1162
|
+
@airport = airport
|
|
1163
|
+
@city = city
|
|
1164
|
+
@country = country
|
|
1165
|
+
@departs_at = departs_at
|
|
1166
|
+
end
|
|
1167
|
+
end
|
|
1168
|
+
# Segment fare amount.
|
|
1169
|
+
attr_accessor :amount
|
|
1170
|
+
# Arrival details.
|
|
1171
|
+
attr_accessor :arrival
|
|
1172
|
+
# Airline carrier code.
|
|
1173
|
+
attr_accessor :carrier_code
|
|
1174
|
+
# Carrier name.
|
|
1175
|
+
attr_accessor :carrier_name
|
|
1176
|
+
# Segment currency.
|
|
1177
|
+
attr_accessor :currency
|
|
1178
|
+
# Departure details.
|
|
1179
|
+
attr_accessor :departure
|
|
1180
|
+
# Exchange ticket number.
|
|
1181
|
+
attr_accessor :exchange_ticket_number
|
|
1182
|
+
# Fare basis code.
|
|
1183
|
+
attr_accessor :fare_basis_code
|
|
1184
|
+
# Additional fees.
|
|
1185
|
+
attr_accessor :fees
|
|
1186
|
+
# Flight number.
|
|
1187
|
+
attr_accessor :flight_number
|
|
1188
|
+
# Stopover indicator.
|
|
1189
|
+
attr_accessor :is_stop_over_indicator
|
|
1190
|
+
# Refundable ticket indicator.
|
|
1191
|
+
attr_accessor :refundable
|
|
1192
|
+
# Class of service.
|
|
1193
|
+
attr_accessor :service_class
|
|
1194
|
+
# Tax amount for segment.
|
|
1195
|
+
attr_accessor :tax_amount
|
|
1196
|
+
# Ticket number.
|
|
1197
|
+
attr_accessor :ticket_number
|
|
1198
|
+
|
|
1199
|
+
def initialize(
|
|
1200
|
+
amount: nil,
|
|
1201
|
+
arrival: nil,
|
|
1202
|
+
carrier_code: nil,
|
|
1203
|
+
carrier_name: nil,
|
|
1204
|
+
currency: nil,
|
|
1205
|
+
departure: nil,
|
|
1206
|
+
exchange_ticket_number: nil,
|
|
1207
|
+
fare_basis_code: nil,
|
|
1208
|
+
fees: nil,
|
|
1209
|
+
flight_number: nil,
|
|
1210
|
+
is_stop_over_indicator: nil,
|
|
1211
|
+
refundable: nil,
|
|
1212
|
+
service_class: nil,
|
|
1213
|
+
tax_amount: nil,
|
|
1214
|
+
ticket_number: nil
|
|
1215
|
+
)
|
|
1216
|
+
@amount = amount
|
|
1217
|
+
@arrival = arrival
|
|
1218
|
+
@carrier_code = carrier_code
|
|
1219
|
+
@carrier_name = carrier_name
|
|
1220
|
+
@currency = currency
|
|
1221
|
+
@departure = departure
|
|
1222
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1223
|
+
@fare_basis_code = fare_basis_code
|
|
1224
|
+
@fees = fees
|
|
1225
|
+
@flight_number = flight_number
|
|
1226
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1227
|
+
@refundable = refundable
|
|
1228
|
+
@service_class = service_class
|
|
1229
|
+
@tax_amount = tax_amount
|
|
1230
|
+
@ticket_number = ticket_number
|
|
1231
|
+
end
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
class Total < ::Stripe::RequestParams
|
|
1235
|
+
class Discounts < ::Stripe::RequestParams
|
|
1236
|
+
# Corporate client discount code.
|
|
1237
|
+
attr_accessor :corporate_client_code
|
|
1238
|
+
|
|
1239
|
+
def initialize(corporate_client_code: nil)
|
|
1240
|
+
@corporate_client_code = corporate_client_code
|
|
1241
|
+
end
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1244
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1245
|
+
# Amount of additional charges.
|
|
1246
|
+
attr_accessor :amount
|
|
1247
|
+
# Type of additional charges.
|
|
1248
|
+
attr_accessor :type
|
|
1249
|
+
|
|
1250
|
+
def initialize(amount: nil, type: nil)
|
|
1251
|
+
@amount = amount
|
|
1252
|
+
@type = type
|
|
1253
|
+
end
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1256
|
+
class Tax < ::Stripe::RequestParams
|
|
1257
|
+
class Tax < ::Stripe::RequestParams
|
|
1258
|
+
# Tax amount.
|
|
1259
|
+
attr_accessor :amount
|
|
1260
|
+
# Tax rate.
|
|
1261
|
+
attr_accessor :rate
|
|
1262
|
+
# Type of tax.
|
|
1263
|
+
attr_accessor :type
|
|
1264
|
+
|
|
1265
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1266
|
+
@amount = amount
|
|
1267
|
+
@rate = rate
|
|
1268
|
+
@type = type
|
|
1269
|
+
end
|
|
1270
|
+
end
|
|
1271
|
+
# Array of tax details.
|
|
1272
|
+
attr_accessor :taxes
|
|
1273
|
+
|
|
1274
|
+
def initialize(taxes: nil)
|
|
1275
|
+
@taxes = taxes
|
|
1276
|
+
end
|
|
1277
|
+
end
|
|
1278
|
+
# Total flight amount.
|
|
1279
|
+
attr_accessor :amount
|
|
1280
|
+
# Reason for credit.
|
|
1281
|
+
attr_accessor :credit_reason
|
|
1282
|
+
# Total currency.
|
|
1283
|
+
attr_accessor :currency
|
|
1284
|
+
# Discount details.
|
|
1285
|
+
attr_accessor :discounts
|
|
1286
|
+
# Additional charges.
|
|
1287
|
+
attr_accessor :extra_charges
|
|
1288
|
+
# Tax breakdown.
|
|
1289
|
+
attr_accessor :tax
|
|
1290
|
+
|
|
1291
|
+
def initialize(
|
|
1292
|
+
amount: nil,
|
|
1293
|
+
credit_reason: nil,
|
|
1294
|
+
currency: nil,
|
|
1295
|
+
discounts: nil,
|
|
1296
|
+
extra_charges: nil,
|
|
1297
|
+
tax: nil
|
|
1298
|
+
)
|
|
1299
|
+
@amount = amount
|
|
1300
|
+
@credit_reason = credit_reason
|
|
1301
|
+
@currency = currency
|
|
1302
|
+
@discounts = discounts
|
|
1303
|
+
@extra_charges = extra_charges
|
|
1304
|
+
@tax = tax
|
|
1305
|
+
end
|
|
1306
|
+
end
|
|
1307
|
+
# Affiliate details if applicable.
|
|
1308
|
+
attr_accessor :affiliate
|
|
1309
|
+
# Reservation reference.
|
|
1310
|
+
attr_accessor :booking_number
|
|
1311
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1312
|
+
attr_accessor :computerized_reservation_system
|
|
1313
|
+
# Ticket restrictions.
|
|
1314
|
+
attr_accessor :endorsements_and_restrictions
|
|
1315
|
+
# List of insurances.
|
|
1316
|
+
attr_accessor :insurances
|
|
1317
|
+
# List of passengers.
|
|
1318
|
+
attr_accessor :passengers
|
|
1319
|
+
# List of flight segments.
|
|
1320
|
+
attr_accessor :segments
|
|
1321
|
+
# Electronic ticket indicator.
|
|
1322
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1323
|
+
# Total cost breakdown.
|
|
1324
|
+
attr_accessor :total
|
|
1325
|
+
# Type of flight transaction.
|
|
1326
|
+
attr_accessor :transaction_type
|
|
1327
|
+
|
|
1328
|
+
def initialize(
|
|
1329
|
+
affiliate: nil,
|
|
1330
|
+
booking_number: nil,
|
|
1331
|
+
computerized_reservation_system: nil,
|
|
1332
|
+
endorsements_and_restrictions: nil,
|
|
1333
|
+
insurances: nil,
|
|
1334
|
+
passengers: nil,
|
|
1335
|
+
segments: nil,
|
|
1336
|
+
ticket_electronically_issued_indicator: nil,
|
|
1337
|
+
total: nil,
|
|
1338
|
+
transaction_type: nil
|
|
1339
|
+
)
|
|
1340
|
+
@affiliate = affiliate
|
|
1341
|
+
@booking_number = booking_number
|
|
1342
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1343
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1344
|
+
@insurances = insurances
|
|
1345
|
+
@passengers = passengers
|
|
1346
|
+
@segments = segments
|
|
1347
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1348
|
+
@total = total
|
|
1349
|
+
@transaction_type = transaction_type
|
|
1350
|
+
end
|
|
1351
|
+
end
|
|
1352
|
+
|
|
1353
|
+
class Lodging < ::Stripe::RequestParams
|
|
1354
|
+
class Address < ::Stripe::RequestParams
|
|
1355
|
+
# City, district, suburb, town, or village.
|
|
1356
|
+
attr_accessor :city
|
|
1357
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1358
|
+
attr_accessor :country
|
|
1359
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1360
|
+
attr_accessor :line1
|
|
1361
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1362
|
+
attr_accessor :line2
|
|
1363
|
+
# ZIP or postal code.
|
|
1364
|
+
attr_accessor :postal_code
|
|
1365
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1366
|
+
attr_accessor :state
|
|
1367
|
+
|
|
1368
|
+
def initialize(
|
|
1369
|
+
city: nil,
|
|
1370
|
+
country: nil,
|
|
1371
|
+
line1: nil,
|
|
1372
|
+
line2: nil,
|
|
1373
|
+
postal_code: nil,
|
|
1374
|
+
state: nil
|
|
1375
|
+
)
|
|
1376
|
+
@city = city
|
|
1377
|
+
@country = country
|
|
1378
|
+
@line1 = line1
|
|
1379
|
+
@line2 = line2
|
|
1380
|
+
@postal_code = postal_code
|
|
1381
|
+
@state = state
|
|
1382
|
+
end
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1385
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1386
|
+
# The name of the affiliate that originated the purchase.
|
|
1387
|
+
attr_accessor :name
|
|
1388
|
+
|
|
1389
|
+
def initialize(name: nil)
|
|
1390
|
+
@name = name
|
|
1391
|
+
end
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
class Delivery < ::Stripe::RequestParams
|
|
1395
|
+
class Recipient < ::Stripe::RequestParams
|
|
1396
|
+
# The email of the recipient the ticket is delivered to.
|
|
1397
|
+
attr_accessor :email
|
|
1398
|
+
# The name of the recipient the ticket is delivered to.
|
|
1399
|
+
attr_accessor :name
|
|
1400
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1401
|
+
attr_accessor :phone
|
|
1402
|
+
|
|
1403
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1404
|
+
@email = email
|
|
1405
|
+
@name = name
|
|
1406
|
+
@phone = phone
|
|
1407
|
+
end
|
|
1408
|
+
end
|
|
1409
|
+
# The delivery method for the payment
|
|
1410
|
+
attr_accessor :mode
|
|
1411
|
+
# Details of the recipient.
|
|
1412
|
+
attr_accessor :recipient
|
|
1413
|
+
|
|
1414
|
+
def initialize(mode: nil, recipient: nil)
|
|
1415
|
+
@mode = mode
|
|
1416
|
+
@recipient = recipient
|
|
1417
|
+
end
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
class Passenger < ::Stripe::RequestParams
|
|
1421
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1422
|
+
attr_accessor :name
|
|
1423
|
+
|
|
1424
|
+
def initialize(name: nil)
|
|
1425
|
+
@name = name
|
|
1426
|
+
end
|
|
1427
|
+
end
|
|
1428
|
+
# The lodging location's address.
|
|
1429
|
+
attr_accessor :address
|
|
1430
|
+
# The number of adults on the booking
|
|
1431
|
+
attr_accessor :adults
|
|
1432
|
+
# Affiliate details for this purchase.
|
|
1433
|
+
attr_accessor :affiliate
|
|
1434
|
+
# The booking number associated with the lodging reservation.
|
|
1435
|
+
attr_accessor :booking_number
|
|
1436
|
+
# The lodging category
|
|
1437
|
+
attr_accessor :category
|
|
1438
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1439
|
+
attr_accessor :checkin_at
|
|
1440
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1441
|
+
attr_accessor :checkout_at
|
|
1442
|
+
# The customer service phone number of the lodging company.
|
|
1443
|
+
attr_accessor :customer_service_phone_number
|
|
1444
|
+
# The daily lodging room rate.
|
|
1445
|
+
attr_accessor :daily_room_rate_amount
|
|
1446
|
+
# Delivery details for this purchase.
|
|
1447
|
+
attr_accessor :delivery
|
|
1448
|
+
# List of additional charges being billed.
|
|
1449
|
+
attr_accessor :extra_charges
|
|
1450
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1451
|
+
attr_accessor :fire_safety_act_compliance
|
|
1452
|
+
# The name of the lodging location.
|
|
1453
|
+
attr_accessor :name
|
|
1454
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1455
|
+
attr_accessor :no_show
|
|
1456
|
+
# The number of rooms on the booking
|
|
1457
|
+
attr_accessor :number_of_rooms
|
|
1458
|
+
# The details of the passengers in the travel reservation
|
|
1459
|
+
attr_accessor :passengers
|
|
1460
|
+
# The phone number of the lodging location.
|
|
1461
|
+
attr_accessor :property_phone_number
|
|
1462
|
+
# The room class for this purchase.
|
|
1463
|
+
attr_accessor :room_class
|
|
1464
|
+
# The number of room nights
|
|
1465
|
+
attr_accessor :room_nights
|
|
1466
|
+
# The total tax amount associating with the room reservation.
|
|
1467
|
+
attr_accessor :total_room_tax_amount
|
|
1468
|
+
# The total tax amount
|
|
1469
|
+
attr_accessor :total_tax_amount
|
|
1470
|
+
|
|
1471
|
+
def initialize(
|
|
1472
|
+
address: nil,
|
|
1473
|
+
adults: nil,
|
|
1474
|
+
affiliate: nil,
|
|
1475
|
+
booking_number: nil,
|
|
1476
|
+
category: nil,
|
|
1477
|
+
checkin_at: nil,
|
|
1478
|
+
checkout_at: nil,
|
|
1479
|
+
customer_service_phone_number: nil,
|
|
1480
|
+
daily_room_rate_amount: nil,
|
|
1481
|
+
delivery: nil,
|
|
1482
|
+
extra_charges: nil,
|
|
1483
|
+
fire_safety_act_compliance: nil,
|
|
1484
|
+
name: nil,
|
|
1485
|
+
no_show: nil,
|
|
1486
|
+
number_of_rooms: nil,
|
|
1487
|
+
passengers: nil,
|
|
1488
|
+
property_phone_number: nil,
|
|
1489
|
+
room_class: nil,
|
|
1490
|
+
room_nights: nil,
|
|
1491
|
+
total_room_tax_amount: nil,
|
|
1492
|
+
total_tax_amount: nil
|
|
1493
|
+
)
|
|
1494
|
+
@address = address
|
|
1495
|
+
@adults = adults
|
|
1496
|
+
@affiliate = affiliate
|
|
1497
|
+
@booking_number = booking_number
|
|
1498
|
+
@category = category
|
|
1499
|
+
@checkin_at = checkin_at
|
|
1500
|
+
@checkout_at = checkout_at
|
|
1501
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1502
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1503
|
+
@delivery = delivery
|
|
1504
|
+
@extra_charges = extra_charges
|
|
1505
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1506
|
+
@name = name
|
|
1507
|
+
@no_show = no_show
|
|
1508
|
+
@number_of_rooms = number_of_rooms
|
|
1509
|
+
@passengers = passengers
|
|
1510
|
+
@property_phone_number = property_phone_number
|
|
1511
|
+
@room_class = room_class
|
|
1512
|
+
@room_nights = room_nights
|
|
1513
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
155
1514
|
@total_tax_amount = total_tax_amount
|
|
156
1515
|
end
|
|
157
1516
|
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
1517
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
1518
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1519
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1520
|
+
# Type of accommodation.
|
|
1521
|
+
attr_accessor :accommodation_type
|
|
1522
|
+
# Bed type.
|
|
1523
|
+
attr_accessor :bed_type
|
|
1524
|
+
# Daily accommodation rate in cents.
|
|
1525
|
+
attr_accessor :daily_rate_amount
|
|
1526
|
+
# Number of nights.
|
|
1527
|
+
attr_accessor :nights
|
|
1528
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1529
|
+
attr_accessor :number_of_rooms
|
|
1530
|
+
# Rate type.
|
|
1531
|
+
attr_accessor :rate_type
|
|
1532
|
+
# Whether smoking is allowed.
|
|
1533
|
+
attr_accessor :smoking_indicator
|
|
189
1534
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
1535
|
+
def initialize(
|
|
1536
|
+
accommodation_type: nil,
|
|
1537
|
+
bed_type: nil,
|
|
1538
|
+
daily_rate_amount: nil,
|
|
1539
|
+
nights: nil,
|
|
1540
|
+
number_of_rooms: nil,
|
|
1541
|
+
rate_type: nil,
|
|
1542
|
+
smoking_indicator: nil
|
|
1543
|
+
)
|
|
1544
|
+
@accommodation_type = accommodation_type
|
|
1545
|
+
@bed_type = bed_type
|
|
1546
|
+
@daily_rate_amount = daily_rate_amount
|
|
1547
|
+
@nights = nights
|
|
1548
|
+
@number_of_rooms = number_of_rooms
|
|
1549
|
+
@rate_type = rate_type
|
|
1550
|
+
@smoking_indicator = smoking_indicator
|
|
1551
|
+
end
|
|
1552
|
+
end
|
|
195
1553
|
|
|
196
|
-
|
|
197
|
-
|
|
1554
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1555
|
+
# Affiliate partner code.
|
|
1556
|
+
attr_accessor :code
|
|
1557
|
+
# Affiliate partner name.
|
|
1558
|
+
attr_accessor :name
|
|
1559
|
+
|
|
1560
|
+
def initialize(code: nil, name: nil)
|
|
1561
|
+
@code = code
|
|
1562
|
+
@name = name
|
|
198
1563
|
end
|
|
199
1564
|
end
|
|
200
|
-
# Tax arguments for automations
|
|
201
|
-
attr_accessor :tax
|
|
202
1565
|
|
|
203
|
-
|
|
204
|
-
|
|
1566
|
+
class Guest < ::Stripe::RequestParams
|
|
1567
|
+
# Guest's full name.
|
|
1568
|
+
attr_accessor :name
|
|
1569
|
+
|
|
1570
|
+
def initialize(name: nil)
|
|
1571
|
+
@name = name
|
|
1572
|
+
end
|
|
205
1573
|
end
|
|
206
|
-
end
|
|
207
|
-
# Arguments passed in automations
|
|
208
|
-
attr_accessor :inputs
|
|
209
1574
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
1575
|
+
class Host < ::Stripe::RequestParams
|
|
1576
|
+
class Address < ::Stripe::RequestParams
|
|
1577
|
+
# City, district, suburb, town, or village.
|
|
1578
|
+
attr_accessor :city
|
|
1579
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1580
|
+
attr_accessor :country
|
|
1581
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1582
|
+
attr_accessor :line1
|
|
1583
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1584
|
+
attr_accessor :line2
|
|
1585
|
+
# ZIP or postal code.
|
|
1586
|
+
attr_accessor :postal_code
|
|
1587
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1588
|
+
attr_accessor :state
|
|
214
1589
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
1590
|
+
def initialize(
|
|
1591
|
+
city: nil,
|
|
1592
|
+
country: nil,
|
|
1593
|
+
line1: nil,
|
|
1594
|
+
line2: nil,
|
|
1595
|
+
postal_code: nil,
|
|
1596
|
+
state: nil
|
|
1597
|
+
)
|
|
1598
|
+
@city = city
|
|
1599
|
+
@country = country
|
|
1600
|
+
@line1 = line1
|
|
1601
|
+
@line2 = line2
|
|
1602
|
+
@postal_code = postal_code
|
|
1603
|
+
@state = state
|
|
1604
|
+
end
|
|
1605
|
+
end
|
|
1606
|
+
# Address of the host.
|
|
1607
|
+
attr_accessor :address
|
|
1608
|
+
# Host's country of domicile.
|
|
1609
|
+
attr_accessor :country_of_domicile
|
|
1610
|
+
# Reference number for the host.
|
|
1611
|
+
attr_accessor :host_reference
|
|
1612
|
+
# Type of host.
|
|
1613
|
+
attr_accessor :host_type
|
|
1614
|
+
# Name of the lodging property or host.
|
|
1615
|
+
attr_accessor :name
|
|
1616
|
+
# Total number of reservations for the host.
|
|
1617
|
+
attr_accessor :number_of_reservations
|
|
1618
|
+
# Property phone number.
|
|
1619
|
+
attr_accessor :property_phone_number
|
|
1620
|
+
# Host's registration date.
|
|
1621
|
+
attr_accessor :registered_at
|
|
218
1622
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
1623
|
+
def initialize(
|
|
1624
|
+
address: nil,
|
|
1625
|
+
country_of_domicile: nil,
|
|
1626
|
+
host_reference: nil,
|
|
1627
|
+
host_type: nil,
|
|
1628
|
+
name: nil,
|
|
1629
|
+
number_of_reservations: nil,
|
|
1630
|
+
property_phone_number: nil,
|
|
1631
|
+
registered_at: nil
|
|
1632
|
+
)
|
|
1633
|
+
@address = address
|
|
1634
|
+
@country_of_domicile = country_of_domicile
|
|
1635
|
+
@host_reference = host_reference
|
|
1636
|
+
@host_type = host_type
|
|
1637
|
+
@name = name
|
|
1638
|
+
@number_of_reservations = number_of_reservations
|
|
1639
|
+
@property_phone_number = property_phone_number
|
|
1640
|
+
@registered_at = registered_at
|
|
1641
|
+
end
|
|
1642
|
+
end
|
|
224
1643
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1644
|
+
class Insurance < ::Stripe::RequestParams
|
|
1645
|
+
# Price of the insurance coverage in cents.
|
|
1646
|
+
attr_accessor :amount
|
|
1647
|
+
# Currency of the insurance amount.
|
|
1648
|
+
attr_accessor :currency
|
|
1649
|
+
# Name of the insurance company.
|
|
1650
|
+
attr_accessor :insurance_company_name
|
|
1651
|
+
# Type of insurance coverage.
|
|
1652
|
+
attr_accessor :insurance_type
|
|
1653
|
+
|
|
1654
|
+
def initialize(
|
|
1655
|
+
amount: nil,
|
|
1656
|
+
currency: nil,
|
|
1657
|
+
insurance_company_name: nil,
|
|
1658
|
+
insurance_type: nil
|
|
1659
|
+
)
|
|
1660
|
+
@amount = amount
|
|
1661
|
+
@currency = currency
|
|
1662
|
+
@insurance_company_name = insurance_company_name
|
|
1663
|
+
@insurance_type = insurance_type
|
|
228
1664
|
end
|
|
229
1665
|
end
|
|
230
|
-
# The time at which the customer accepted the Mandate.
|
|
231
|
-
attr_accessor :accepted_at
|
|
232
|
-
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
233
|
-
attr_accessor :offline
|
|
234
|
-
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
235
|
-
attr_accessor :online
|
|
236
|
-
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
237
|
-
attr_accessor :type
|
|
238
1666
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
1667
|
+
class Total < ::Stripe::RequestParams
|
|
1668
|
+
class Discounts < ::Stripe::RequestParams
|
|
1669
|
+
# Corporate client discount code.
|
|
1670
|
+
attr_accessor :corporate_client_code
|
|
1671
|
+
# Coupon code.
|
|
1672
|
+
attr_accessor :coupon
|
|
1673
|
+
|
|
1674
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1675
|
+
@corporate_client_code = corporate_client_code
|
|
1676
|
+
@coupon = coupon
|
|
1677
|
+
end
|
|
1678
|
+
end
|
|
1679
|
+
|
|
1680
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1681
|
+
# Amount of the extra charge in cents.
|
|
1682
|
+
attr_accessor :amount
|
|
1683
|
+
# Type of extra charge.
|
|
1684
|
+
attr_accessor :type
|
|
1685
|
+
|
|
1686
|
+
def initialize(amount: nil, type: nil)
|
|
1687
|
+
@amount = amount
|
|
1688
|
+
@type = type
|
|
1689
|
+
end
|
|
1690
|
+
end
|
|
1691
|
+
|
|
1692
|
+
class Tax < ::Stripe::RequestParams
|
|
1693
|
+
class Tax < ::Stripe::RequestParams
|
|
1694
|
+
# Tax amount in cents.
|
|
1695
|
+
attr_accessor :amount
|
|
1696
|
+
# Tax rate.
|
|
1697
|
+
attr_accessor :rate
|
|
1698
|
+
# Type of tax applied.
|
|
1699
|
+
attr_accessor :type
|
|
1700
|
+
|
|
1701
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1702
|
+
@amount = amount
|
|
1703
|
+
@rate = rate
|
|
1704
|
+
@type = type
|
|
1705
|
+
end
|
|
1706
|
+
end
|
|
1707
|
+
# Indicates whether the transaction is tax exempt.
|
|
1708
|
+
attr_accessor :tax_exempt_indicator
|
|
1709
|
+
# Tax details.
|
|
1710
|
+
attr_accessor :taxes
|
|
1711
|
+
|
|
1712
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1713
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1714
|
+
@taxes = taxes
|
|
1715
|
+
end
|
|
1716
|
+
end
|
|
1717
|
+
# Total price of the lodging reservation in cents.
|
|
1718
|
+
attr_accessor :amount
|
|
1719
|
+
# Cash advances in cents.
|
|
1720
|
+
attr_accessor :cash_advances
|
|
1721
|
+
# Currency of the total amount.
|
|
1722
|
+
attr_accessor :currency
|
|
1723
|
+
# Discount details for the lodging.
|
|
1724
|
+
attr_accessor :discounts
|
|
1725
|
+
# Additional charges for the lodging.
|
|
1726
|
+
attr_accessor :extra_charges
|
|
1727
|
+
# Prepaid amount in cents.
|
|
1728
|
+
attr_accessor :prepaid_amount
|
|
1729
|
+
# Tax breakdown for the lodging reservation.
|
|
1730
|
+
attr_accessor :tax
|
|
1731
|
+
|
|
1732
|
+
def initialize(
|
|
1733
|
+
amount: nil,
|
|
1734
|
+
cash_advances: nil,
|
|
1735
|
+
currency: nil,
|
|
1736
|
+
discounts: nil,
|
|
1737
|
+
extra_charges: nil,
|
|
1738
|
+
prepaid_amount: nil,
|
|
1739
|
+
tax: nil
|
|
1740
|
+
)
|
|
1741
|
+
@amount = amount
|
|
1742
|
+
@cash_advances = cash_advances
|
|
1743
|
+
@currency = currency
|
|
1744
|
+
@discounts = discounts
|
|
1745
|
+
@extra_charges = extra_charges
|
|
1746
|
+
@prepaid_amount = prepaid_amount
|
|
1747
|
+
@tax = tax
|
|
1748
|
+
end
|
|
244
1749
|
end
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
1750
|
+
# Accommodation details for the lodging.
|
|
1751
|
+
attr_accessor :accommodation
|
|
1752
|
+
# Affiliate details if applicable.
|
|
1753
|
+
attr_accessor :affiliate
|
|
1754
|
+
# Booking confirmation number for the lodging.
|
|
1755
|
+
attr_accessor :booking_number
|
|
1756
|
+
# Check-in date.
|
|
1757
|
+
attr_accessor :checkin_at
|
|
1758
|
+
# Check-out date.
|
|
1759
|
+
attr_accessor :checkout_at
|
|
1760
|
+
# Customer service phone number for the lodging company.
|
|
1761
|
+
attr_accessor :customer_service_phone_number
|
|
1762
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1763
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1764
|
+
# List of guests for the lodging.
|
|
1765
|
+
attr_accessor :guests
|
|
1766
|
+
# Host details for the lodging.
|
|
1767
|
+
attr_accessor :host
|
|
1768
|
+
# List of insurances for the lodging.
|
|
1769
|
+
attr_accessor :insurances
|
|
1770
|
+
# Whether the renter is a no-show.
|
|
1771
|
+
attr_accessor :no_show_indicator
|
|
1772
|
+
# Renter ID number for the lodging.
|
|
1773
|
+
attr_accessor :renter_id_number
|
|
1774
|
+
# Renter name for the lodging.
|
|
1775
|
+
attr_accessor :renter_name
|
|
1776
|
+
# Total details for the lodging.
|
|
1777
|
+
attr_accessor :total
|
|
248
1778
|
|
|
249
|
-
|
|
250
|
-
|
|
1779
|
+
def initialize(
|
|
1780
|
+
accommodation: nil,
|
|
1781
|
+
affiliate: nil,
|
|
1782
|
+
booking_number: nil,
|
|
1783
|
+
checkin_at: nil,
|
|
1784
|
+
checkout_at: nil,
|
|
1785
|
+
customer_service_phone_number: nil,
|
|
1786
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1787
|
+
guests: nil,
|
|
1788
|
+
host: nil,
|
|
1789
|
+
insurances: nil,
|
|
1790
|
+
no_show_indicator: nil,
|
|
1791
|
+
renter_id_number: nil,
|
|
1792
|
+
renter_name: nil,
|
|
1793
|
+
total: nil
|
|
1794
|
+
)
|
|
1795
|
+
@accommodation = accommodation
|
|
1796
|
+
@affiliate = affiliate
|
|
1797
|
+
@booking_number = booking_number
|
|
1798
|
+
@checkin_at = checkin_at
|
|
1799
|
+
@checkout_at = checkout_at
|
|
1800
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1801
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1802
|
+
@guests = guests
|
|
1803
|
+
@host = host
|
|
1804
|
+
@insurances = insurances
|
|
1805
|
+
@no_show_indicator = no_show_indicator
|
|
1806
|
+
@renter_id_number = renter_id_number
|
|
1807
|
+
@renter_name = renter_name
|
|
1808
|
+
@total = total
|
|
1809
|
+
end
|
|
251
1810
|
end
|
|
252
|
-
end
|
|
253
1811
|
|
|
254
|
-
|
|
1812
|
+
class Subscription < ::Stripe::RequestParams
|
|
1813
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1814
|
+
# The name of the affiliate that originated the purchase.
|
|
1815
|
+
attr_accessor :name
|
|
1816
|
+
|
|
1817
|
+
def initialize(name: nil)
|
|
1818
|
+
@name = name
|
|
1819
|
+
end
|
|
1820
|
+
end
|
|
1821
|
+
|
|
1822
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1823
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1824
|
+
attr_accessor :count
|
|
1825
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1826
|
+
attr_accessor :interval
|
|
1827
|
+
|
|
1828
|
+
def initialize(count: nil, interval: nil)
|
|
1829
|
+
@count = count
|
|
1830
|
+
@interval = interval
|
|
1831
|
+
end
|
|
1832
|
+
end
|
|
1833
|
+
# Affiliate details for this purchase.
|
|
1834
|
+
attr_accessor :affiliate
|
|
1835
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1836
|
+
attr_accessor :auto_renewal
|
|
1837
|
+
# Subscription billing details for this purchase.
|
|
1838
|
+
attr_accessor :billing_interval
|
|
1839
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1840
|
+
attr_accessor :ends_at
|
|
1841
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1842
|
+
attr_accessor :name
|
|
1843
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1844
|
+
attr_accessor :starts_at
|
|
1845
|
+
|
|
1846
|
+
def initialize(
|
|
1847
|
+
affiliate: nil,
|
|
1848
|
+
auto_renewal: nil,
|
|
1849
|
+
billing_interval: nil,
|
|
1850
|
+
ends_at: nil,
|
|
1851
|
+
name: nil,
|
|
1852
|
+
starts_at: nil
|
|
1853
|
+
)
|
|
1854
|
+
@affiliate = affiliate
|
|
1855
|
+
@auto_renewal = auto_renewal
|
|
1856
|
+
@billing_interval = billing_interval
|
|
1857
|
+
@ends_at = ends_at
|
|
1858
|
+
@name = name
|
|
1859
|
+
@starts_at = starts_at
|
|
1860
|
+
end
|
|
1861
|
+
end
|
|
1862
|
+
# Car rental details for this PaymentIntent.
|
|
1863
|
+
attr_accessor :car_rental
|
|
1864
|
+
# Car rental data for this PaymentIntent.
|
|
1865
|
+
attr_accessor :car_rental_data
|
|
255
1866
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
256
1867
|
#
|
|
257
1868
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
258
1869
|
attr_accessor :customer_reference
|
|
1870
|
+
# Event details for this PaymentIntent
|
|
1871
|
+
attr_accessor :event_details
|
|
1872
|
+
# Flight reservation details for this PaymentIntent
|
|
1873
|
+
attr_accessor :flight
|
|
1874
|
+
# Flight data for this PaymentIntent.
|
|
1875
|
+
attr_accessor :flight_data
|
|
1876
|
+
# Lodging reservation details for this PaymentIntent
|
|
1877
|
+
attr_accessor :lodging
|
|
1878
|
+
# Lodging data for this PaymentIntent.
|
|
1879
|
+
attr_accessor :lodging_data
|
|
259
1880
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
260
1881
|
#
|
|
261
1882
|
# 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.
|
|
262
1883
|
attr_accessor :order_reference
|
|
1884
|
+
# Subscription details for this PaymentIntent
|
|
1885
|
+
attr_accessor :subscription
|
|
263
1886
|
|
|
264
|
-
def initialize(
|
|
1887
|
+
def initialize(
|
|
1888
|
+
car_rental: nil,
|
|
1889
|
+
car_rental_data: nil,
|
|
1890
|
+
customer_reference: nil,
|
|
1891
|
+
event_details: nil,
|
|
1892
|
+
flight: nil,
|
|
1893
|
+
flight_data: nil,
|
|
1894
|
+
lodging: nil,
|
|
1895
|
+
lodging_data: nil,
|
|
1896
|
+
order_reference: nil,
|
|
1897
|
+
subscription: nil
|
|
1898
|
+
)
|
|
1899
|
+
@car_rental = car_rental
|
|
1900
|
+
@car_rental_data = car_rental_data
|
|
265
1901
|
@customer_reference = customer_reference
|
|
1902
|
+
@event_details = event_details
|
|
1903
|
+
@flight = flight
|
|
1904
|
+
@flight_data = flight_data
|
|
1905
|
+
@lodging = lodging
|
|
1906
|
+
@lodging_data = lodging_data
|
|
266
1907
|
@order_reference = order_reference
|
|
1908
|
+
@subscription = subscription
|
|
267
1909
|
end
|
|
268
1910
|
end
|
|
269
1911
|
|
|
@@ -405,8 +2047,18 @@ module Stripe
|
|
|
405
2047
|
end
|
|
406
2048
|
|
|
407
2049
|
class Giropay < ::Stripe::RequestParams; end
|
|
2050
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
408
2051
|
class Grabpay < ::Stripe::RequestParams; end
|
|
409
2052
|
|
|
2053
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2054
|
+
# Bank where the account is held.
|
|
2055
|
+
attr_accessor :bank
|
|
2056
|
+
|
|
2057
|
+
def initialize(bank: nil)
|
|
2058
|
+
@bank = bank
|
|
2059
|
+
end
|
|
2060
|
+
end
|
|
2061
|
+
|
|
410
2062
|
class Ideal < ::Stripe::RequestParams
|
|
411
2063
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
412
2064
|
attr_accessor :bank
|
|
@@ -504,6 +2156,7 @@ module Stripe
|
|
|
504
2156
|
class Payco < ::Stripe::RequestParams; end
|
|
505
2157
|
class Paynow < ::Stripe::RequestParams; end
|
|
506
2158
|
class Paypal < ::Stripe::RequestParams; end
|
|
2159
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
507
2160
|
|
|
508
2161
|
class Payto < ::Stripe::RequestParams
|
|
509
2162
|
# The account number for the bank account.
|
|
@@ -522,13 +2175,37 @@ module Stripe
|
|
|
522
2175
|
|
|
523
2176
|
class Pix < ::Stripe::RequestParams; end
|
|
524
2177
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2178
|
+
class Qris < ::Stripe::RequestParams; end
|
|
525
2179
|
|
|
526
2180
|
class RadarOptions < ::Stripe::RequestParams
|
|
527
2181
|
# 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.
|
|
528
2182
|
attr_accessor :session
|
|
529
2183
|
|
|
530
|
-
def initialize(session: nil)
|
|
531
|
-
@session = session
|
|
2184
|
+
def initialize(session: nil)
|
|
2185
|
+
@session = session
|
|
2186
|
+
end
|
|
2187
|
+
end
|
|
2188
|
+
|
|
2189
|
+
class Rechnung < ::Stripe::RequestParams
|
|
2190
|
+
class Dob < ::Stripe::RequestParams
|
|
2191
|
+
# The day of birth, between 1 and 31.
|
|
2192
|
+
attr_accessor :day
|
|
2193
|
+
# The month of birth, between 1 and 12.
|
|
2194
|
+
attr_accessor :month
|
|
2195
|
+
# The four-digit year of birth.
|
|
2196
|
+
attr_accessor :year
|
|
2197
|
+
|
|
2198
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
2199
|
+
@day = day
|
|
2200
|
+
@month = month
|
|
2201
|
+
@year = year
|
|
2202
|
+
end
|
|
2203
|
+
end
|
|
2204
|
+
# Customer's date of birth
|
|
2205
|
+
attr_accessor :dob
|
|
2206
|
+
|
|
2207
|
+
def initialize(dob: nil)
|
|
2208
|
+
@dob = dob
|
|
532
2209
|
end
|
|
533
2210
|
end
|
|
534
2211
|
|
|
@@ -546,6 +2223,8 @@ module Stripe
|
|
|
546
2223
|
end
|
|
547
2224
|
end
|
|
548
2225
|
|
|
2226
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
2227
|
+
|
|
549
2228
|
class Sofort < ::Stripe::RequestParams
|
|
550
2229
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
551
2230
|
attr_accessor :country
|
|
@@ -555,6 +2234,15 @@ module Stripe
|
|
|
555
2234
|
end
|
|
556
2235
|
end
|
|
557
2236
|
|
|
2237
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2238
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2239
|
+
attr_accessor :account
|
|
2240
|
+
|
|
2241
|
+
def initialize(account: nil)
|
|
2242
|
+
@account = account
|
|
2243
|
+
end
|
|
2244
|
+
end
|
|
2245
|
+
|
|
558
2246
|
class Sunbit < ::Stripe::RequestParams; end
|
|
559
2247
|
class Swish < ::Stripe::RequestParams; end
|
|
560
2248
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -656,8 +2344,12 @@ module Stripe
|
|
|
656
2344
|
attr_accessor :fpx
|
|
657
2345
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
658
2346
|
attr_accessor :giropay
|
|
2347
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2348
|
+
attr_accessor :gopay
|
|
659
2349
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
660
2350
|
attr_accessor :grabpay
|
|
2351
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2352
|
+
attr_accessor :id_bank_transfer
|
|
661
2353
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
662
2354
|
attr_accessor :ideal
|
|
663
2355
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -696,14 +2388,20 @@ module Stripe
|
|
|
696
2388
|
attr_accessor :paynow
|
|
697
2389
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
698
2390
|
attr_accessor :paypal
|
|
2391
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2392
|
+
attr_accessor :paypay
|
|
699
2393
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
700
2394
|
attr_accessor :payto
|
|
701
2395
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
702
2396
|
attr_accessor :pix
|
|
703
2397
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
704
2398
|
attr_accessor :promptpay
|
|
2399
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2400
|
+
attr_accessor :qris
|
|
705
2401
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
706
2402
|
attr_accessor :radar_options
|
|
2403
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2404
|
+
attr_accessor :rechnung
|
|
707
2405
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
708
2406
|
attr_accessor :revolut_pay
|
|
709
2407
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -714,8 +2412,14 @@ module Stripe
|
|
|
714
2412
|
attr_accessor :scalapay
|
|
715
2413
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
716
2414
|
attr_accessor :sepa_debit
|
|
2415
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2416
|
+
attr_accessor :shared_payment_granted_token
|
|
2417
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2418
|
+
attr_accessor :shopeepay
|
|
717
2419
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
718
2420
|
attr_accessor :sofort
|
|
2421
|
+
# This hash contains details about the Stripe balance payment method.
|
|
2422
|
+
attr_accessor :stripe_balance
|
|
719
2423
|
# If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
720
2424
|
attr_accessor :sunbit
|
|
721
2425
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -755,7 +2459,9 @@ module Stripe
|
|
|
755
2459
|
eps: nil,
|
|
756
2460
|
fpx: nil,
|
|
757
2461
|
giropay: nil,
|
|
2462
|
+
gopay: nil,
|
|
758
2463
|
grabpay: nil,
|
|
2464
|
+
id_bank_transfer: nil,
|
|
759
2465
|
ideal: nil,
|
|
760
2466
|
interac_present: nil,
|
|
761
2467
|
kakao_pay: nil,
|
|
@@ -775,16 +2481,22 @@ module Stripe
|
|
|
775
2481
|
payco: nil,
|
|
776
2482
|
paynow: nil,
|
|
777
2483
|
paypal: nil,
|
|
2484
|
+
paypay: nil,
|
|
778
2485
|
payto: nil,
|
|
779
2486
|
pix: nil,
|
|
780
2487
|
promptpay: nil,
|
|
2488
|
+
qris: nil,
|
|
781
2489
|
radar_options: nil,
|
|
2490
|
+
rechnung: nil,
|
|
782
2491
|
revolut_pay: nil,
|
|
783
2492
|
samsung_pay: nil,
|
|
784
2493
|
satispay: nil,
|
|
785
2494
|
scalapay: nil,
|
|
786
2495
|
sepa_debit: nil,
|
|
2496
|
+
shared_payment_granted_token: nil,
|
|
2497
|
+
shopeepay: nil,
|
|
787
2498
|
sofort: nil,
|
|
2499
|
+
stripe_balance: nil,
|
|
788
2500
|
sunbit: nil,
|
|
789
2501
|
swish: nil,
|
|
790
2502
|
twint: nil,
|
|
@@ -815,7 +2527,9 @@ module Stripe
|
|
|
815
2527
|
@eps = eps
|
|
816
2528
|
@fpx = fpx
|
|
817
2529
|
@giropay = giropay
|
|
2530
|
+
@gopay = gopay
|
|
818
2531
|
@grabpay = grabpay
|
|
2532
|
+
@id_bank_transfer = id_bank_transfer
|
|
819
2533
|
@ideal = ideal
|
|
820
2534
|
@interac_present = interac_present
|
|
821
2535
|
@kakao_pay = kakao_pay
|
|
@@ -835,16 +2549,22 @@ module Stripe
|
|
|
835
2549
|
@payco = payco
|
|
836
2550
|
@paynow = paynow
|
|
837
2551
|
@paypal = paypal
|
|
2552
|
+
@paypay = paypay
|
|
838
2553
|
@payto = payto
|
|
839
2554
|
@pix = pix
|
|
840
2555
|
@promptpay = promptpay
|
|
2556
|
+
@qris = qris
|
|
841
2557
|
@radar_options = radar_options
|
|
2558
|
+
@rechnung = rechnung
|
|
842
2559
|
@revolut_pay = revolut_pay
|
|
843
2560
|
@samsung_pay = samsung_pay
|
|
844
2561
|
@satispay = satispay
|
|
845
2562
|
@scalapay = scalapay
|
|
846
2563
|
@sepa_debit = sepa_debit
|
|
2564
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
2565
|
+
@shopeepay = shopeepay
|
|
847
2566
|
@sofort = sofort
|
|
2567
|
+
@stripe_balance = stripe_balance
|
|
848
2568
|
@sunbit = sunbit
|
|
849
2569
|
@swish = swish
|
|
850
2570
|
@twint = twint
|
|
@@ -1219,6 +2939,48 @@ module Stripe
|
|
|
1219
2939
|
end
|
|
1220
2940
|
end
|
|
1221
2941
|
|
|
2942
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
2943
|
+
class Address < ::Stripe::RequestParams
|
|
2944
|
+
# City, district, suburb, town, or village.
|
|
2945
|
+
attr_accessor :city
|
|
2946
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2947
|
+
attr_accessor :country
|
|
2948
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2949
|
+
attr_accessor :line1
|
|
2950
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2951
|
+
attr_accessor :line2
|
|
2952
|
+
# ZIP or postal code.
|
|
2953
|
+
attr_accessor :postal_code
|
|
2954
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2955
|
+
attr_accessor :state
|
|
2956
|
+
|
|
2957
|
+
def initialize(
|
|
2958
|
+
city: nil,
|
|
2959
|
+
country: nil,
|
|
2960
|
+
line1: nil,
|
|
2961
|
+
line2: nil,
|
|
2962
|
+
postal_code: nil,
|
|
2963
|
+
state: nil
|
|
2964
|
+
)
|
|
2965
|
+
@city = city
|
|
2966
|
+
@country = country
|
|
2967
|
+
@line1 = line1
|
|
2968
|
+
@line2 = line2
|
|
2969
|
+
@postal_code = postal_code
|
|
2970
|
+
@state = state
|
|
2971
|
+
end
|
|
2972
|
+
end
|
|
2973
|
+
# Please pass in an address that is within your Stripe user account country
|
|
2974
|
+
attr_accessor :address
|
|
2975
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
2976
|
+
attr_accessor :phone
|
|
2977
|
+
|
|
2978
|
+
def initialize(address: nil, phone: nil)
|
|
2979
|
+
@address = address
|
|
2980
|
+
@phone = phone
|
|
2981
|
+
end
|
|
2982
|
+
end
|
|
2983
|
+
|
|
1222
2984
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1223
2985
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1224
2986
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1313,6 +3075,8 @@ module Stripe
|
|
|
1313
3075
|
attr_accessor :moto
|
|
1314
3076
|
# 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.
|
|
1315
3077
|
attr_accessor :network
|
|
3078
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3079
|
+
attr_accessor :request_decremental_authorization
|
|
1316
3080
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1317
3081
|
attr_accessor :request_extended_authorization
|
|
1318
3082
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1321,6 +3085,8 @@ module Stripe
|
|
|
1321
3085
|
attr_accessor :request_multicapture
|
|
1322
3086
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1323
3087
|
attr_accessor :request_overcapture
|
|
3088
|
+
# Request partial authorization on this PaymentIntent.
|
|
3089
|
+
attr_accessor :request_partial_authorization
|
|
1324
3090
|
# 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.
|
|
1325
3091
|
attr_accessor :request_three_d_secure
|
|
1326
3092
|
# 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).
|
|
@@ -1339,6 +3105,8 @@ module Stripe
|
|
|
1339
3105
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1340
3106
|
# 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.
|
|
1341
3107
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3108
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3109
|
+
attr_accessor :statement_details
|
|
1342
3110
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1343
3111
|
# the authentication details to use for this payment.
|
|
1344
3112
|
attr_accessor :three_d_secure
|
|
@@ -1350,15 +3118,18 @@ module Stripe
|
|
|
1350
3118
|
mandate_options: nil,
|
|
1351
3119
|
moto: nil,
|
|
1352
3120
|
network: nil,
|
|
3121
|
+
request_decremental_authorization: nil,
|
|
1353
3122
|
request_extended_authorization: nil,
|
|
1354
3123
|
request_incremental_authorization: nil,
|
|
1355
3124
|
request_multicapture: nil,
|
|
1356
3125
|
request_overcapture: nil,
|
|
3126
|
+
request_partial_authorization: nil,
|
|
1357
3127
|
request_three_d_secure: nil,
|
|
1358
3128
|
require_cvc_recollection: nil,
|
|
1359
3129
|
setup_future_usage: nil,
|
|
1360
3130
|
statement_descriptor_suffix_kana: nil,
|
|
1361
3131
|
statement_descriptor_suffix_kanji: nil,
|
|
3132
|
+
statement_details: nil,
|
|
1362
3133
|
three_d_secure: nil
|
|
1363
3134
|
)
|
|
1364
3135
|
@capture_method = capture_method
|
|
@@ -1367,15 +3138,18 @@ module Stripe
|
|
|
1367
3138
|
@mandate_options = mandate_options
|
|
1368
3139
|
@moto = moto
|
|
1369
3140
|
@network = network
|
|
3141
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1370
3142
|
@request_extended_authorization = request_extended_authorization
|
|
1371
3143
|
@request_incremental_authorization = request_incremental_authorization
|
|
1372
3144
|
@request_multicapture = request_multicapture
|
|
1373
3145
|
@request_overcapture = request_overcapture
|
|
3146
|
+
@request_partial_authorization = request_partial_authorization
|
|
1374
3147
|
@request_three_d_secure = request_three_d_secure
|
|
1375
3148
|
@require_cvc_recollection = require_cvc_recollection
|
|
1376
3149
|
@setup_future_usage = setup_future_usage
|
|
1377
3150
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1378
3151
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3152
|
+
@statement_details = statement_details
|
|
1379
3153
|
@three_d_secure = three_d_secure
|
|
1380
3154
|
end
|
|
1381
3155
|
end
|
|
@@ -1554,6 +3328,23 @@ module Stripe
|
|
|
1554
3328
|
end
|
|
1555
3329
|
end
|
|
1556
3330
|
|
|
3331
|
+
class Gopay < ::Stripe::RequestParams
|
|
3332
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3333
|
+
#
|
|
3334
|
+
# 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.
|
|
3335
|
+
#
|
|
3336
|
+
# 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.
|
|
3337
|
+
#
|
|
3338
|
+
# 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).
|
|
3339
|
+
#
|
|
3340
|
+
# 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`.
|
|
3341
|
+
attr_accessor :setup_future_usage
|
|
3342
|
+
|
|
3343
|
+
def initialize(setup_future_usage: nil)
|
|
3344
|
+
@setup_future_usage = setup_future_usage
|
|
3345
|
+
end
|
|
3346
|
+
end
|
|
3347
|
+
|
|
1557
3348
|
class Grabpay < ::Stripe::RequestParams
|
|
1558
3349
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1559
3350
|
#
|
|
@@ -1571,6 +3362,29 @@ module Stripe
|
|
|
1571
3362
|
end
|
|
1572
3363
|
end
|
|
1573
3364
|
|
|
3365
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
3366
|
+
# 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.
|
|
3367
|
+
attr_accessor :expires_after
|
|
3368
|
+
# 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.
|
|
3369
|
+
attr_accessor :expires_at
|
|
3370
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3371
|
+
#
|
|
3372
|
+
# 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.
|
|
3373
|
+
#
|
|
3374
|
+
# 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.
|
|
3375
|
+
#
|
|
3376
|
+
# 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).
|
|
3377
|
+
#
|
|
3378
|
+
# 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`.
|
|
3379
|
+
attr_accessor :setup_future_usage
|
|
3380
|
+
|
|
3381
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3382
|
+
@expires_after = expires_after
|
|
3383
|
+
@expires_at = expires_at
|
|
3384
|
+
@setup_future_usage = setup_future_usage
|
|
3385
|
+
end
|
|
3386
|
+
end
|
|
3387
|
+
|
|
1574
3388
|
class Ideal < ::Stripe::RequestParams
|
|
1575
3389
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1576
3390
|
#
|
|
@@ -1677,6 +3491,939 @@ module Stripe
|
|
|
1677
3491
|
@reference = reference
|
|
1678
3492
|
end
|
|
1679
3493
|
end
|
|
3494
|
+
|
|
3495
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3496
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
3497
|
+
class Arrival < ::Stripe::RequestParams
|
|
3498
|
+
class Address < ::Stripe::RequestParams
|
|
3499
|
+
# The city or town.
|
|
3500
|
+
attr_accessor :city
|
|
3501
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3502
|
+
attr_accessor :country
|
|
3503
|
+
# The postal code formatted according to country.
|
|
3504
|
+
attr_accessor :postal_code
|
|
3505
|
+
# The state, county, province, or region formatted according to country.
|
|
3506
|
+
attr_accessor :region
|
|
3507
|
+
# Line 1 of the street address.
|
|
3508
|
+
attr_accessor :street_address
|
|
3509
|
+
# Line 2 of the street address.
|
|
3510
|
+
attr_accessor :street_address2
|
|
3511
|
+
|
|
3512
|
+
def initialize(
|
|
3513
|
+
city: nil,
|
|
3514
|
+
country: nil,
|
|
3515
|
+
postal_code: nil,
|
|
3516
|
+
region: nil,
|
|
3517
|
+
street_address: nil,
|
|
3518
|
+
street_address2: nil
|
|
3519
|
+
)
|
|
3520
|
+
@city = city
|
|
3521
|
+
@country = country
|
|
3522
|
+
@postal_code = postal_code
|
|
3523
|
+
@region = region
|
|
3524
|
+
@street_address = street_address
|
|
3525
|
+
@street_address2 = street_address2
|
|
3526
|
+
end
|
|
3527
|
+
end
|
|
3528
|
+
# Address of the arrival location.
|
|
3529
|
+
attr_accessor :address
|
|
3530
|
+
# Identifier name or reference for the arrival location.
|
|
3531
|
+
attr_accessor :arrival_location
|
|
3532
|
+
|
|
3533
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3534
|
+
@address = address
|
|
3535
|
+
@arrival_location = arrival_location
|
|
3536
|
+
end
|
|
3537
|
+
end
|
|
3538
|
+
|
|
3539
|
+
class Departure < ::Stripe::RequestParams
|
|
3540
|
+
class Address < ::Stripe::RequestParams
|
|
3541
|
+
# The city or town.
|
|
3542
|
+
attr_accessor :city
|
|
3543
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3544
|
+
attr_accessor :country
|
|
3545
|
+
# The postal code formatted according to country.
|
|
3546
|
+
attr_accessor :postal_code
|
|
3547
|
+
# The state, county, province, or region formatted according to country.
|
|
3548
|
+
attr_accessor :region
|
|
3549
|
+
# Line 1 of the street address.
|
|
3550
|
+
attr_accessor :street_address
|
|
3551
|
+
# Line 2 of the street address.
|
|
3552
|
+
attr_accessor :street_address2
|
|
3553
|
+
|
|
3554
|
+
def initialize(
|
|
3555
|
+
city: nil,
|
|
3556
|
+
country: nil,
|
|
3557
|
+
postal_code: nil,
|
|
3558
|
+
region: nil,
|
|
3559
|
+
street_address: nil,
|
|
3560
|
+
street_address2: nil
|
|
3561
|
+
)
|
|
3562
|
+
@city = city
|
|
3563
|
+
@country = country
|
|
3564
|
+
@postal_code = postal_code
|
|
3565
|
+
@region = region
|
|
3566
|
+
@street_address = street_address
|
|
3567
|
+
@street_address2 = street_address2
|
|
3568
|
+
end
|
|
3569
|
+
end
|
|
3570
|
+
# Address of the departure location.
|
|
3571
|
+
attr_accessor :address
|
|
3572
|
+
# Timestamp of departure.
|
|
3573
|
+
attr_accessor :departs_at
|
|
3574
|
+
# Identifier name or reference for the origin location.
|
|
3575
|
+
attr_accessor :departure_location
|
|
3576
|
+
|
|
3577
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3578
|
+
@address = address
|
|
3579
|
+
@departs_at = departs_at
|
|
3580
|
+
@departure_location = departure_location
|
|
3581
|
+
end
|
|
3582
|
+
end
|
|
3583
|
+
|
|
3584
|
+
class Insurance < ::Stripe::RequestParams
|
|
3585
|
+
# Insurance currency.
|
|
3586
|
+
attr_accessor :currency
|
|
3587
|
+
# Name of the company providing the insurance.
|
|
3588
|
+
attr_accessor :insurance_company_name
|
|
3589
|
+
# Type of insurance.
|
|
3590
|
+
attr_accessor :insurance_type
|
|
3591
|
+
# Price of insurance in cents.
|
|
3592
|
+
attr_accessor :price
|
|
3593
|
+
|
|
3594
|
+
def initialize(
|
|
3595
|
+
currency: nil,
|
|
3596
|
+
insurance_company_name: nil,
|
|
3597
|
+
insurance_type: nil,
|
|
3598
|
+
price: nil
|
|
3599
|
+
)
|
|
3600
|
+
@currency = currency
|
|
3601
|
+
@insurance_company_name = insurance_company_name
|
|
3602
|
+
@insurance_type = insurance_type
|
|
3603
|
+
@price = price
|
|
3604
|
+
end
|
|
3605
|
+
end
|
|
3606
|
+
|
|
3607
|
+
class Passenger < ::Stripe::RequestParams
|
|
3608
|
+
# The family name of the person.
|
|
3609
|
+
attr_accessor :family_name
|
|
3610
|
+
# The given name of the person.
|
|
3611
|
+
attr_accessor :given_name
|
|
3612
|
+
|
|
3613
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3614
|
+
@family_name = family_name
|
|
3615
|
+
@given_name = given_name
|
|
3616
|
+
end
|
|
3617
|
+
end
|
|
3618
|
+
# Name of associated or partner company for the service.
|
|
3619
|
+
attr_accessor :affiliate_name
|
|
3620
|
+
# Arrival details.
|
|
3621
|
+
attr_accessor :arrival
|
|
3622
|
+
# Name of transportation company.
|
|
3623
|
+
attr_accessor :carrier_name
|
|
3624
|
+
# Currency.
|
|
3625
|
+
attr_accessor :currency
|
|
3626
|
+
# Departure details.
|
|
3627
|
+
attr_accessor :departure
|
|
3628
|
+
# List of insurances for this reservation.
|
|
3629
|
+
attr_accessor :insurances
|
|
3630
|
+
# List of passengers that this reservation applies to.
|
|
3631
|
+
attr_accessor :passengers
|
|
3632
|
+
# Price in cents.
|
|
3633
|
+
attr_accessor :price
|
|
3634
|
+
# Ticket class.
|
|
3635
|
+
attr_accessor :ticket_class
|
|
3636
|
+
|
|
3637
|
+
def initialize(
|
|
3638
|
+
affiliate_name: nil,
|
|
3639
|
+
arrival: nil,
|
|
3640
|
+
carrier_name: nil,
|
|
3641
|
+
currency: nil,
|
|
3642
|
+
departure: nil,
|
|
3643
|
+
insurances: nil,
|
|
3644
|
+
passengers: nil,
|
|
3645
|
+
price: nil,
|
|
3646
|
+
ticket_class: nil
|
|
3647
|
+
)
|
|
3648
|
+
@affiliate_name = affiliate_name
|
|
3649
|
+
@arrival = arrival
|
|
3650
|
+
@carrier_name = carrier_name
|
|
3651
|
+
@currency = currency
|
|
3652
|
+
@departure = departure
|
|
3653
|
+
@insurances = insurances
|
|
3654
|
+
@passengers = passengers
|
|
3655
|
+
@price = price
|
|
3656
|
+
@ticket_class = ticket_class
|
|
3657
|
+
end
|
|
3658
|
+
end
|
|
3659
|
+
|
|
3660
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
3661
|
+
class Address < ::Stripe::RequestParams
|
|
3662
|
+
# The city or town.
|
|
3663
|
+
attr_accessor :city
|
|
3664
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3665
|
+
attr_accessor :country
|
|
3666
|
+
# The postal code formatted according to country.
|
|
3667
|
+
attr_accessor :postal_code
|
|
3668
|
+
# The state, county, province, or region formatted according to country.
|
|
3669
|
+
attr_accessor :region
|
|
3670
|
+
# Line 1 of the street address.
|
|
3671
|
+
attr_accessor :street_address
|
|
3672
|
+
# Line 2 of the street address.
|
|
3673
|
+
attr_accessor :street_address2
|
|
3674
|
+
|
|
3675
|
+
def initialize(
|
|
3676
|
+
city: nil,
|
|
3677
|
+
country: nil,
|
|
3678
|
+
postal_code: nil,
|
|
3679
|
+
region: nil,
|
|
3680
|
+
street_address: nil,
|
|
3681
|
+
street_address2: nil
|
|
3682
|
+
)
|
|
3683
|
+
@city = city
|
|
3684
|
+
@country = country
|
|
3685
|
+
@postal_code = postal_code
|
|
3686
|
+
@region = region
|
|
3687
|
+
@street_address = street_address
|
|
3688
|
+
@street_address2 = street_address2
|
|
3689
|
+
end
|
|
3690
|
+
end
|
|
3691
|
+
|
|
3692
|
+
class Insurance < ::Stripe::RequestParams
|
|
3693
|
+
# Insurance currency.
|
|
3694
|
+
attr_accessor :currency
|
|
3695
|
+
# Name of the company providing the insurance.
|
|
3696
|
+
attr_accessor :insurance_company_name
|
|
3697
|
+
# Type of insurance.
|
|
3698
|
+
attr_accessor :insurance_type
|
|
3699
|
+
# Price of insurance in cents.
|
|
3700
|
+
attr_accessor :price
|
|
3701
|
+
|
|
3702
|
+
def initialize(
|
|
3703
|
+
currency: nil,
|
|
3704
|
+
insurance_company_name: nil,
|
|
3705
|
+
insurance_type: nil,
|
|
3706
|
+
price: nil
|
|
3707
|
+
)
|
|
3708
|
+
@currency = currency
|
|
3709
|
+
@insurance_company_name = insurance_company_name
|
|
3710
|
+
@insurance_type = insurance_type
|
|
3711
|
+
@price = price
|
|
3712
|
+
end
|
|
3713
|
+
end
|
|
3714
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3715
|
+
attr_accessor :access_controlled_venue
|
|
3716
|
+
# Address of the event.
|
|
3717
|
+
attr_accessor :address
|
|
3718
|
+
# Name of associated or partner company for the service.
|
|
3719
|
+
attr_accessor :affiliate_name
|
|
3720
|
+
# End timestamp of the event.
|
|
3721
|
+
attr_accessor :ends_at
|
|
3722
|
+
# Company selling the ticket.
|
|
3723
|
+
attr_accessor :event_company_name
|
|
3724
|
+
# Name of the event.
|
|
3725
|
+
attr_accessor :event_name
|
|
3726
|
+
# Type of the event.
|
|
3727
|
+
attr_accessor :event_type
|
|
3728
|
+
# List of insurances for this event.
|
|
3729
|
+
attr_accessor :insurances
|
|
3730
|
+
# Start timestamp of the event.
|
|
3731
|
+
attr_accessor :starts_at
|
|
3732
|
+
# Name of the venue where the event takes place.
|
|
3733
|
+
attr_accessor :venue_name
|
|
3734
|
+
|
|
3735
|
+
def initialize(
|
|
3736
|
+
access_controlled_venue: nil,
|
|
3737
|
+
address: nil,
|
|
3738
|
+
affiliate_name: nil,
|
|
3739
|
+
ends_at: nil,
|
|
3740
|
+
event_company_name: nil,
|
|
3741
|
+
event_name: nil,
|
|
3742
|
+
event_type: nil,
|
|
3743
|
+
insurances: nil,
|
|
3744
|
+
starts_at: nil,
|
|
3745
|
+
venue_name: nil
|
|
3746
|
+
)
|
|
3747
|
+
@access_controlled_venue = access_controlled_venue
|
|
3748
|
+
@address = address
|
|
3749
|
+
@affiliate_name = affiliate_name
|
|
3750
|
+
@ends_at = ends_at
|
|
3751
|
+
@event_company_name = event_company_name
|
|
3752
|
+
@event_name = event_name
|
|
3753
|
+
@event_type = event_type
|
|
3754
|
+
@insurances = insurances
|
|
3755
|
+
@starts_at = starts_at
|
|
3756
|
+
@venue_name = venue_name
|
|
3757
|
+
end
|
|
3758
|
+
end
|
|
3759
|
+
|
|
3760
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3761
|
+
class Arrival < ::Stripe::RequestParams
|
|
3762
|
+
class Address < ::Stripe::RequestParams
|
|
3763
|
+
# The city or town.
|
|
3764
|
+
attr_accessor :city
|
|
3765
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3766
|
+
attr_accessor :country
|
|
3767
|
+
# The postal code formatted according to country.
|
|
3768
|
+
attr_accessor :postal_code
|
|
3769
|
+
# The state, county, province, or region formatted according to country.
|
|
3770
|
+
attr_accessor :region
|
|
3771
|
+
# Line 1 of the street address.
|
|
3772
|
+
attr_accessor :street_address
|
|
3773
|
+
# Line 2 of the street address.
|
|
3774
|
+
attr_accessor :street_address2
|
|
3775
|
+
|
|
3776
|
+
def initialize(
|
|
3777
|
+
city: nil,
|
|
3778
|
+
country: nil,
|
|
3779
|
+
postal_code: nil,
|
|
3780
|
+
region: nil,
|
|
3781
|
+
street_address: nil,
|
|
3782
|
+
street_address2: nil
|
|
3783
|
+
)
|
|
3784
|
+
@city = city
|
|
3785
|
+
@country = country
|
|
3786
|
+
@postal_code = postal_code
|
|
3787
|
+
@region = region
|
|
3788
|
+
@street_address = street_address
|
|
3789
|
+
@street_address2 = street_address2
|
|
3790
|
+
end
|
|
3791
|
+
end
|
|
3792
|
+
# Address of the arrival location.
|
|
3793
|
+
attr_accessor :address
|
|
3794
|
+
# Identifier name or reference for the arrival location.
|
|
3795
|
+
attr_accessor :arrival_location
|
|
3796
|
+
|
|
3797
|
+
def initialize(address: nil, arrival_location: nil)
|
|
3798
|
+
@address = address
|
|
3799
|
+
@arrival_location = arrival_location
|
|
3800
|
+
end
|
|
3801
|
+
end
|
|
3802
|
+
|
|
3803
|
+
class Departure < ::Stripe::RequestParams
|
|
3804
|
+
class Address < ::Stripe::RequestParams
|
|
3805
|
+
# The city or town.
|
|
3806
|
+
attr_accessor :city
|
|
3807
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3808
|
+
attr_accessor :country
|
|
3809
|
+
# The postal code formatted according to country.
|
|
3810
|
+
attr_accessor :postal_code
|
|
3811
|
+
# The state, county, province, or region formatted according to country.
|
|
3812
|
+
attr_accessor :region
|
|
3813
|
+
# Line 1 of the street address.
|
|
3814
|
+
attr_accessor :street_address
|
|
3815
|
+
# Line 2 of the street address.
|
|
3816
|
+
attr_accessor :street_address2
|
|
3817
|
+
|
|
3818
|
+
def initialize(
|
|
3819
|
+
city: nil,
|
|
3820
|
+
country: nil,
|
|
3821
|
+
postal_code: nil,
|
|
3822
|
+
region: nil,
|
|
3823
|
+
street_address: nil,
|
|
3824
|
+
street_address2: nil
|
|
3825
|
+
)
|
|
3826
|
+
@city = city
|
|
3827
|
+
@country = country
|
|
3828
|
+
@postal_code = postal_code
|
|
3829
|
+
@region = region
|
|
3830
|
+
@street_address = street_address
|
|
3831
|
+
@street_address2 = street_address2
|
|
3832
|
+
end
|
|
3833
|
+
end
|
|
3834
|
+
# Address of the departure location.
|
|
3835
|
+
attr_accessor :address
|
|
3836
|
+
# Timestamp of departure.
|
|
3837
|
+
attr_accessor :departs_at
|
|
3838
|
+
# Identifier name or reference for the origin location.
|
|
3839
|
+
attr_accessor :departure_location
|
|
3840
|
+
|
|
3841
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3842
|
+
@address = address
|
|
3843
|
+
@departs_at = departs_at
|
|
3844
|
+
@departure_location = departure_location
|
|
3845
|
+
end
|
|
3846
|
+
end
|
|
3847
|
+
|
|
3848
|
+
class Insurance < ::Stripe::RequestParams
|
|
3849
|
+
# Insurance currency.
|
|
3850
|
+
attr_accessor :currency
|
|
3851
|
+
# Name of the company providing the insurance.
|
|
3852
|
+
attr_accessor :insurance_company_name
|
|
3853
|
+
# Type of insurance.
|
|
3854
|
+
attr_accessor :insurance_type
|
|
3855
|
+
# Price of insurance in cents.
|
|
3856
|
+
attr_accessor :price
|
|
3857
|
+
|
|
3858
|
+
def initialize(
|
|
3859
|
+
currency: nil,
|
|
3860
|
+
insurance_company_name: nil,
|
|
3861
|
+
insurance_type: nil,
|
|
3862
|
+
price: nil
|
|
3863
|
+
)
|
|
3864
|
+
@currency = currency
|
|
3865
|
+
@insurance_company_name = insurance_company_name
|
|
3866
|
+
@insurance_type = insurance_type
|
|
3867
|
+
@price = price
|
|
3868
|
+
end
|
|
3869
|
+
end
|
|
3870
|
+
|
|
3871
|
+
class Passenger < ::Stripe::RequestParams
|
|
3872
|
+
# The family name of the person.
|
|
3873
|
+
attr_accessor :family_name
|
|
3874
|
+
# The given name of the person.
|
|
3875
|
+
attr_accessor :given_name
|
|
3876
|
+
|
|
3877
|
+
def initialize(family_name: nil, given_name: nil)
|
|
3878
|
+
@family_name = family_name
|
|
3879
|
+
@given_name = given_name
|
|
3880
|
+
end
|
|
3881
|
+
end
|
|
3882
|
+
# Name of associated or partner company for the service.
|
|
3883
|
+
attr_accessor :affiliate_name
|
|
3884
|
+
# Arrival details.
|
|
3885
|
+
attr_accessor :arrival
|
|
3886
|
+
# Name of transportation company.
|
|
3887
|
+
attr_accessor :carrier_name
|
|
3888
|
+
# Currency.
|
|
3889
|
+
attr_accessor :currency
|
|
3890
|
+
# Departure details.
|
|
3891
|
+
attr_accessor :departure
|
|
3892
|
+
# List of insurances for this reservation.
|
|
3893
|
+
attr_accessor :insurances
|
|
3894
|
+
# List of passengers that this reservation applies to.
|
|
3895
|
+
attr_accessor :passengers
|
|
3896
|
+
# Price in cents.
|
|
3897
|
+
attr_accessor :price
|
|
3898
|
+
# Ticket class.
|
|
3899
|
+
attr_accessor :ticket_class
|
|
3900
|
+
|
|
3901
|
+
def initialize(
|
|
3902
|
+
affiliate_name: nil,
|
|
3903
|
+
arrival: nil,
|
|
3904
|
+
carrier_name: nil,
|
|
3905
|
+
currency: nil,
|
|
3906
|
+
departure: nil,
|
|
3907
|
+
insurances: nil,
|
|
3908
|
+
passengers: nil,
|
|
3909
|
+
price: nil,
|
|
3910
|
+
ticket_class: nil
|
|
3911
|
+
)
|
|
3912
|
+
@affiliate_name = affiliate_name
|
|
3913
|
+
@arrival = arrival
|
|
3914
|
+
@carrier_name = carrier_name
|
|
3915
|
+
@currency = currency
|
|
3916
|
+
@departure = departure
|
|
3917
|
+
@insurances = insurances
|
|
3918
|
+
@passengers = passengers
|
|
3919
|
+
@price = price
|
|
3920
|
+
@ticket_class = ticket_class
|
|
3921
|
+
end
|
|
3922
|
+
end
|
|
3923
|
+
|
|
3924
|
+
class Insurance < ::Stripe::RequestParams
|
|
3925
|
+
# Insurance currency.
|
|
3926
|
+
attr_accessor :currency
|
|
3927
|
+
# Name of the company providing the insurance.
|
|
3928
|
+
attr_accessor :insurance_company_name
|
|
3929
|
+
# Type of insurance
|
|
3930
|
+
attr_accessor :insurance_type
|
|
3931
|
+
# Price of insurance in cents.
|
|
3932
|
+
attr_accessor :price
|
|
3933
|
+
|
|
3934
|
+
def initialize(
|
|
3935
|
+
currency: nil,
|
|
3936
|
+
insurance_company_name: nil,
|
|
3937
|
+
insurance_type: nil,
|
|
3938
|
+
price: nil
|
|
3939
|
+
)
|
|
3940
|
+
@currency = currency
|
|
3941
|
+
@insurance_company_name = insurance_company_name
|
|
3942
|
+
@insurance_type = insurance_type
|
|
3943
|
+
@price = price
|
|
3944
|
+
end
|
|
3945
|
+
end
|
|
3946
|
+
|
|
3947
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3948
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3949
|
+
# The city or town.
|
|
3950
|
+
attr_accessor :city
|
|
3951
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
3952
|
+
attr_accessor :country
|
|
3953
|
+
# The postal code formatted according to country.
|
|
3954
|
+
attr_accessor :postal_code
|
|
3955
|
+
# The state, county, province, or region formatted according to country.
|
|
3956
|
+
attr_accessor :region
|
|
3957
|
+
# Line 1 of the street address.
|
|
3958
|
+
attr_accessor :street_address
|
|
3959
|
+
# Line 2 of the street address.
|
|
3960
|
+
attr_accessor :street_address2
|
|
3961
|
+
|
|
3962
|
+
def initialize(
|
|
3963
|
+
city: nil,
|
|
3964
|
+
country: nil,
|
|
3965
|
+
postal_code: nil,
|
|
3966
|
+
region: nil,
|
|
3967
|
+
street_address: nil,
|
|
3968
|
+
street_address2: nil
|
|
3969
|
+
)
|
|
3970
|
+
@city = city
|
|
3971
|
+
@country = country
|
|
3972
|
+
@postal_code = postal_code
|
|
3973
|
+
@region = region
|
|
3974
|
+
@street_address = street_address
|
|
3975
|
+
@street_address2 = street_address2
|
|
3976
|
+
end
|
|
3977
|
+
end
|
|
3978
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3979
|
+
attr_accessor :line_item_references
|
|
3980
|
+
# The address of the selling or delivering merchant.
|
|
3981
|
+
attr_accessor :marketplace_seller_address
|
|
3982
|
+
# The name of the marketplace seller.
|
|
3983
|
+
attr_accessor :marketplace_seller_name
|
|
3984
|
+
# The unique identifier for the marketplace seller.
|
|
3985
|
+
attr_accessor :marketplace_seller_reference
|
|
3986
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3987
|
+
attr_accessor :number_of_transactions
|
|
3988
|
+
# The category of the product.
|
|
3989
|
+
attr_accessor :product_category
|
|
3990
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
3991
|
+
attr_accessor :seller_last_login_at
|
|
3992
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3993
|
+
attr_accessor :seller_rating
|
|
3994
|
+
# The date when the seller's account with the marketplace was created.
|
|
3995
|
+
attr_accessor :seller_registered_at
|
|
3996
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
3997
|
+
attr_accessor :seller_updated_at
|
|
3998
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3999
|
+
attr_accessor :shipping_references
|
|
4000
|
+
# 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.
|
|
4001
|
+
attr_accessor :volume_of_transactions
|
|
4002
|
+
|
|
4003
|
+
def initialize(
|
|
4004
|
+
line_item_references: nil,
|
|
4005
|
+
marketplace_seller_address: nil,
|
|
4006
|
+
marketplace_seller_name: nil,
|
|
4007
|
+
marketplace_seller_reference: nil,
|
|
4008
|
+
number_of_transactions: nil,
|
|
4009
|
+
product_category: nil,
|
|
4010
|
+
seller_last_login_at: nil,
|
|
4011
|
+
seller_rating: nil,
|
|
4012
|
+
seller_registered_at: nil,
|
|
4013
|
+
seller_updated_at: nil,
|
|
4014
|
+
shipping_references: nil,
|
|
4015
|
+
volume_of_transactions: nil
|
|
4016
|
+
)
|
|
4017
|
+
@line_item_references = line_item_references
|
|
4018
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
4019
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
4020
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
4021
|
+
@number_of_transactions = number_of_transactions
|
|
4022
|
+
@product_category = product_category
|
|
4023
|
+
@seller_last_login_at = seller_last_login_at
|
|
4024
|
+
@seller_rating = seller_rating
|
|
4025
|
+
@seller_registered_at = seller_registered_at
|
|
4026
|
+
@seller_updated_at = seller_updated_at
|
|
4027
|
+
@shipping_references = shipping_references
|
|
4028
|
+
@volume_of_transactions = volume_of_transactions
|
|
4029
|
+
end
|
|
4030
|
+
end
|
|
4031
|
+
|
|
4032
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4033
|
+
class Arrival < ::Stripe::RequestParams
|
|
4034
|
+
class Address < ::Stripe::RequestParams
|
|
4035
|
+
# The city or town.
|
|
4036
|
+
attr_accessor :city
|
|
4037
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4038
|
+
attr_accessor :country
|
|
4039
|
+
# The postal code formatted according to country.
|
|
4040
|
+
attr_accessor :postal_code
|
|
4041
|
+
# The state, county, province, or region formatted according to country.
|
|
4042
|
+
attr_accessor :region
|
|
4043
|
+
# Line 1 of the street address.
|
|
4044
|
+
attr_accessor :street_address
|
|
4045
|
+
# Line 2 of the street address.
|
|
4046
|
+
attr_accessor :street_address2
|
|
4047
|
+
|
|
4048
|
+
def initialize(
|
|
4049
|
+
city: nil,
|
|
4050
|
+
country: nil,
|
|
4051
|
+
postal_code: nil,
|
|
4052
|
+
region: nil,
|
|
4053
|
+
street_address: nil,
|
|
4054
|
+
street_address2: nil
|
|
4055
|
+
)
|
|
4056
|
+
@city = city
|
|
4057
|
+
@country = country
|
|
4058
|
+
@postal_code = postal_code
|
|
4059
|
+
@region = region
|
|
4060
|
+
@street_address = street_address
|
|
4061
|
+
@street_address2 = street_address2
|
|
4062
|
+
end
|
|
4063
|
+
end
|
|
4064
|
+
# Address of the arrival location.
|
|
4065
|
+
attr_accessor :address
|
|
4066
|
+
# Identifier name or reference for the arrival location.
|
|
4067
|
+
attr_accessor :arrival_location
|
|
4068
|
+
|
|
4069
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4070
|
+
@address = address
|
|
4071
|
+
@arrival_location = arrival_location
|
|
4072
|
+
end
|
|
4073
|
+
end
|
|
4074
|
+
|
|
4075
|
+
class Departure < ::Stripe::RequestParams
|
|
4076
|
+
class Address < ::Stripe::RequestParams
|
|
4077
|
+
# The city or town.
|
|
4078
|
+
attr_accessor :city
|
|
4079
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4080
|
+
attr_accessor :country
|
|
4081
|
+
# The postal code formatted according to country.
|
|
4082
|
+
attr_accessor :postal_code
|
|
4083
|
+
# The state, county, province, or region formatted according to country.
|
|
4084
|
+
attr_accessor :region
|
|
4085
|
+
# Line 1 of the street address.
|
|
4086
|
+
attr_accessor :street_address
|
|
4087
|
+
# Line 2 of the street address.
|
|
4088
|
+
attr_accessor :street_address2
|
|
4089
|
+
|
|
4090
|
+
def initialize(
|
|
4091
|
+
city: nil,
|
|
4092
|
+
country: nil,
|
|
4093
|
+
postal_code: nil,
|
|
4094
|
+
region: nil,
|
|
4095
|
+
street_address: nil,
|
|
4096
|
+
street_address2: nil
|
|
4097
|
+
)
|
|
4098
|
+
@city = city
|
|
4099
|
+
@country = country
|
|
4100
|
+
@postal_code = postal_code
|
|
4101
|
+
@region = region
|
|
4102
|
+
@street_address = street_address
|
|
4103
|
+
@street_address2 = street_address2
|
|
4104
|
+
end
|
|
4105
|
+
end
|
|
4106
|
+
# Address of the departure location.
|
|
4107
|
+
attr_accessor :address
|
|
4108
|
+
# Timestamp of departure.
|
|
4109
|
+
attr_accessor :departs_at
|
|
4110
|
+
# Identifier name or reference for the origin location.
|
|
4111
|
+
attr_accessor :departure_location
|
|
4112
|
+
|
|
4113
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4114
|
+
@address = address
|
|
4115
|
+
@departs_at = departs_at
|
|
4116
|
+
@departure_location = departure_location
|
|
4117
|
+
end
|
|
4118
|
+
end
|
|
4119
|
+
|
|
4120
|
+
class Insurance < ::Stripe::RequestParams
|
|
4121
|
+
# Insurance currency.
|
|
4122
|
+
attr_accessor :currency
|
|
4123
|
+
# Name of the company providing the insurance.
|
|
4124
|
+
attr_accessor :insurance_company_name
|
|
4125
|
+
# Type of insurance.
|
|
4126
|
+
attr_accessor :insurance_type
|
|
4127
|
+
# Price of insurance in cents.
|
|
4128
|
+
attr_accessor :price
|
|
4129
|
+
|
|
4130
|
+
def initialize(
|
|
4131
|
+
currency: nil,
|
|
4132
|
+
insurance_company_name: nil,
|
|
4133
|
+
insurance_type: nil,
|
|
4134
|
+
price: nil
|
|
4135
|
+
)
|
|
4136
|
+
@currency = currency
|
|
4137
|
+
@insurance_company_name = insurance_company_name
|
|
4138
|
+
@insurance_type = insurance_type
|
|
4139
|
+
@price = price
|
|
4140
|
+
end
|
|
4141
|
+
end
|
|
4142
|
+
|
|
4143
|
+
class Passenger < ::Stripe::RequestParams
|
|
4144
|
+
# The family name of the person.
|
|
4145
|
+
attr_accessor :family_name
|
|
4146
|
+
# The given name of the person.
|
|
4147
|
+
attr_accessor :given_name
|
|
4148
|
+
|
|
4149
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4150
|
+
@family_name = family_name
|
|
4151
|
+
@given_name = given_name
|
|
4152
|
+
end
|
|
4153
|
+
end
|
|
4154
|
+
# Name of associated or partner company for the service.
|
|
4155
|
+
attr_accessor :affiliate_name
|
|
4156
|
+
# Arrival details.
|
|
4157
|
+
attr_accessor :arrival
|
|
4158
|
+
# Name of transportation company.
|
|
4159
|
+
attr_accessor :carrier_name
|
|
4160
|
+
# Currency.
|
|
4161
|
+
attr_accessor :currency
|
|
4162
|
+
# Departure details.
|
|
4163
|
+
attr_accessor :departure
|
|
4164
|
+
# List of insurances for this reservation.
|
|
4165
|
+
attr_accessor :insurances
|
|
4166
|
+
# List of passengers that this reservation applies to.
|
|
4167
|
+
attr_accessor :passengers
|
|
4168
|
+
# Price in cents.
|
|
4169
|
+
attr_accessor :price
|
|
4170
|
+
# Ticket class.
|
|
4171
|
+
attr_accessor :ticket_class
|
|
4172
|
+
|
|
4173
|
+
def initialize(
|
|
4174
|
+
affiliate_name: nil,
|
|
4175
|
+
arrival: nil,
|
|
4176
|
+
carrier_name: nil,
|
|
4177
|
+
currency: nil,
|
|
4178
|
+
departure: nil,
|
|
4179
|
+
insurances: nil,
|
|
4180
|
+
passengers: nil,
|
|
4181
|
+
price: nil,
|
|
4182
|
+
ticket_class: nil
|
|
4183
|
+
)
|
|
4184
|
+
@affiliate_name = affiliate_name
|
|
4185
|
+
@arrival = arrival
|
|
4186
|
+
@carrier_name = carrier_name
|
|
4187
|
+
@currency = currency
|
|
4188
|
+
@departure = departure
|
|
4189
|
+
@insurances = insurances
|
|
4190
|
+
@passengers = passengers
|
|
4191
|
+
@price = price
|
|
4192
|
+
@ticket_class = ticket_class
|
|
4193
|
+
end
|
|
4194
|
+
end
|
|
4195
|
+
|
|
4196
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4197
|
+
class Arrival < ::Stripe::RequestParams
|
|
4198
|
+
class Address < ::Stripe::RequestParams
|
|
4199
|
+
# The city or town.
|
|
4200
|
+
attr_accessor :city
|
|
4201
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4202
|
+
attr_accessor :country
|
|
4203
|
+
# The postal code formatted according to country.
|
|
4204
|
+
attr_accessor :postal_code
|
|
4205
|
+
# The state, county, province, or region formatted according to country.
|
|
4206
|
+
attr_accessor :region
|
|
4207
|
+
# Line 1 of the street address.
|
|
4208
|
+
attr_accessor :street_address
|
|
4209
|
+
# Line 2 of the street address.
|
|
4210
|
+
attr_accessor :street_address2
|
|
4211
|
+
|
|
4212
|
+
def initialize(
|
|
4213
|
+
city: nil,
|
|
4214
|
+
country: nil,
|
|
4215
|
+
postal_code: nil,
|
|
4216
|
+
region: nil,
|
|
4217
|
+
street_address: nil,
|
|
4218
|
+
street_address2: nil
|
|
4219
|
+
)
|
|
4220
|
+
@city = city
|
|
4221
|
+
@country = country
|
|
4222
|
+
@postal_code = postal_code
|
|
4223
|
+
@region = region
|
|
4224
|
+
@street_address = street_address
|
|
4225
|
+
@street_address2 = street_address2
|
|
4226
|
+
end
|
|
4227
|
+
end
|
|
4228
|
+
# Address of the arrival location.
|
|
4229
|
+
attr_accessor :address
|
|
4230
|
+
# Identifier name or reference for the arrival location.
|
|
4231
|
+
attr_accessor :arrival_location
|
|
4232
|
+
|
|
4233
|
+
def initialize(address: nil, arrival_location: nil)
|
|
4234
|
+
@address = address
|
|
4235
|
+
@arrival_location = arrival_location
|
|
4236
|
+
end
|
|
4237
|
+
end
|
|
4238
|
+
|
|
4239
|
+
class Departure < ::Stripe::RequestParams
|
|
4240
|
+
class Address < ::Stripe::RequestParams
|
|
4241
|
+
# The city or town.
|
|
4242
|
+
attr_accessor :city
|
|
4243
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
4244
|
+
attr_accessor :country
|
|
4245
|
+
# The postal code formatted according to country.
|
|
4246
|
+
attr_accessor :postal_code
|
|
4247
|
+
# The state, county, province, or region formatted according to country.
|
|
4248
|
+
attr_accessor :region
|
|
4249
|
+
# Line 1 of the street address.
|
|
4250
|
+
attr_accessor :street_address
|
|
4251
|
+
# Line 2 of the street address.
|
|
4252
|
+
attr_accessor :street_address2
|
|
4253
|
+
|
|
4254
|
+
def initialize(
|
|
4255
|
+
city: nil,
|
|
4256
|
+
country: nil,
|
|
4257
|
+
postal_code: nil,
|
|
4258
|
+
region: nil,
|
|
4259
|
+
street_address: nil,
|
|
4260
|
+
street_address2: nil
|
|
4261
|
+
)
|
|
4262
|
+
@city = city
|
|
4263
|
+
@country = country
|
|
4264
|
+
@postal_code = postal_code
|
|
4265
|
+
@region = region
|
|
4266
|
+
@street_address = street_address
|
|
4267
|
+
@street_address2 = street_address2
|
|
4268
|
+
end
|
|
4269
|
+
end
|
|
4270
|
+
# Address of the departure location.
|
|
4271
|
+
attr_accessor :address
|
|
4272
|
+
# Timestamp of departure.
|
|
4273
|
+
attr_accessor :departs_at
|
|
4274
|
+
# Identifier name or reference for the origin location.
|
|
4275
|
+
attr_accessor :departure_location
|
|
4276
|
+
|
|
4277
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4278
|
+
@address = address
|
|
4279
|
+
@departs_at = departs_at
|
|
4280
|
+
@departure_location = departure_location
|
|
4281
|
+
end
|
|
4282
|
+
end
|
|
4283
|
+
|
|
4284
|
+
class Insurance < ::Stripe::RequestParams
|
|
4285
|
+
# Insurance currency.
|
|
4286
|
+
attr_accessor :currency
|
|
4287
|
+
# Name of the company providing the insurance.
|
|
4288
|
+
attr_accessor :insurance_company_name
|
|
4289
|
+
# Type of insurance.
|
|
4290
|
+
attr_accessor :insurance_type
|
|
4291
|
+
# Price of insurance in cents.
|
|
4292
|
+
attr_accessor :price
|
|
4293
|
+
|
|
4294
|
+
def initialize(
|
|
4295
|
+
currency: nil,
|
|
4296
|
+
insurance_company_name: nil,
|
|
4297
|
+
insurance_type: nil,
|
|
4298
|
+
price: nil
|
|
4299
|
+
)
|
|
4300
|
+
@currency = currency
|
|
4301
|
+
@insurance_company_name = insurance_company_name
|
|
4302
|
+
@insurance_type = insurance_type
|
|
4303
|
+
@price = price
|
|
4304
|
+
end
|
|
4305
|
+
end
|
|
4306
|
+
|
|
4307
|
+
class Passenger < ::Stripe::RequestParams
|
|
4308
|
+
# The family name of the person.
|
|
4309
|
+
attr_accessor :family_name
|
|
4310
|
+
# The given name of the person.
|
|
4311
|
+
attr_accessor :given_name
|
|
4312
|
+
|
|
4313
|
+
def initialize(family_name: nil, given_name: nil)
|
|
4314
|
+
@family_name = family_name
|
|
4315
|
+
@given_name = given_name
|
|
4316
|
+
end
|
|
4317
|
+
end
|
|
4318
|
+
# Name of associated or partner company for the service.
|
|
4319
|
+
attr_accessor :affiliate_name
|
|
4320
|
+
# Arrival details.
|
|
4321
|
+
attr_accessor :arrival
|
|
4322
|
+
# Name of transportation company.
|
|
4323
|
+
attr_accessor :carrier_name
|
|
4324
|
+
# Currency.
|
|
4325
|
+
attr_accessor :currency
|
|
4326
|
+
# Departure details.
|
|
4327
|
+
attr_accessor :departure
|
|
4328
|
+
# List of insurances for this reservation.
|
|
4329
|
+
attr_accessor :insurances
|
|
4330
|
+
# List of passengers that this reservation applies to.
|
|
4331
|
+
attr_accessor :passengers
|
|
4332
|
+
# Price in cents.
|
|
4333
|
+
attr_accessor :price
|
|
4334
|
+
# Ticket class.
|
|
4335
|
+
attr_accessor :ticket_class
|
|
4336
|
+
|
|
4337
|
+
def initialize(
|
|
4338
|
+
affiliate_name: nil,
|
|
4339
|
+
arrival: nil,
|
|
4340
|
+
carrier_name: nil,
|
|
4341
|
+
currency: nil,
|
|
4342
|
+
departure: nil,
|
|
4343
|
+
insurances: nil,
|
|
4344
|
+
passengers: nil,
|
|
4345
|
+
price: nil,
|
|
4346
|
+
ticket_class: nil
|
|
4347
|
+
)
|
|
4348
|
+
@affiliate_name = affiliate_name
|
|
4349
|
+
@arrival = arrival
|
|
4350
|
+
@carrier_name = carrier_name
|
|
4351
|
+
@currency = currency
|
|
4352
|
+
@departure = departure
|
|
4353
|
+
@insurances = insurances
|
|
4354
|
+
@passengers = passengers
|
|
4355
|
+
@price = price
|
|
4356
|
+
@ticket_class = ticket_class
|
|
4357
|
+
end
|
|
4358
|
+
end
|
|
4359
|
+
|
|
4360
|
+
class Voucher < ::Stripe::RequestParams
|
|
4361
|
+
# Name of associated or partner company for this voucher.
|
|
4362
|
+
attr_accessor :affiliate_name
|
|
4363
|
+
# The voucher validity end time.
|
|
4364
|
+
attr_accessor :ends_at
|
|
4365
|
+
# The voucher validity start time.
|
|
4366
|
+
attr_accessor :starts_at
|
|
4367
|
+
# The issuer or provider of this voucher.
|
|
4368
|
+
attr_accessor :voucher_company
|
|
4369
|
+
# The name or reference to identify the voucher.
|
|
4370
|
+
attr_accessor :voucher_name
|
|
4371
|
+
# The type of this voucher.
|
|
4372
|
+
attr_accessor :voucher_type
|
|
4373
|
+
|
|
4374
|
+
def initialize(
|
|
4375
|
+
affiliate_name: nil,
|
|
4376
|
+
ends_at: nil,
|
|
4377
|
+
starts_at: nil,
|
|
4378
|
+
voucher_company: nil,
|
|
4379
|
+
voucher_name: nil,
|
|
4380
|
+
voucher_type: nil
|
|
4381
|
+
)
|
|
4382
|
+
@affiliate_name = affiliate_name
|
|
4383
|
+
@ends_at = ends_at
|
|
4384
|
+
@starts_at = starts_at
|
|
4385
|
+
@voucher_company = voucher_company
|
|
4386
|
+
@voucher_name = voucher_name
|
|
4387
|
+
@voucher_type = voucher_type
|
|
4388
|
+
end
|
|
4389
|
+
end
|
|
4390
|
+
# Supplementary bus reservation details.
|
|
4391
|
+
attr_accessor :bus_reservation_details
|
|
4392
|
+
# Supplementary event reservation details.
|
|
4393
|
+
attr_accessor :event_reservation_details
|
|
4394
|
+
# Supplementary ferry reservation details.
|
|
4395
|
+
attr_accessor :ferry_reservation_details
|
|
4396
|
+
# Supplementary insurance details.
|
|
4397
|
+
attr_accessor :insurances
|
|
4398
|
+
# Supplementary marketplace seller details.
|
|
4399
|
+
attr_accessor :marketplace_sellers
|
|
4400
|
+
# Supplementary round trip reservation details.
|
|
4401
|
+
attr_accessor :round_trip_reservation_details
|
|
4402
|
+
# Supplementary train reservation details.
|
|
4403
|
+
attr_accessor :train_reservation_details
|
|
4404
|
+
# Voucher details, such as a gift card or discount code.
|
|
4405
|
+
attr_accessor :vouchers
|
|
4406
|
+
|
|
4407
|
+
def initialize(
|
|
4408
|
+
bus_reservation_details: nil,
|
|
4409
|
+
event_reservation_details: nil,
|
|
4410
|
+
ferry_reservation_details: nil,
|
|
4411
|
+
insurances: nil,
|
|
4412
|
+
marketplace_sellers: nil,
|
|
4413
|
+
round_trip_reservation_details: nil,
|
|
4414
|
+
train_reservation_details: nil,
|
|
4415
|
+
vouchers: nil
|
|
4416
|
+
)
|
|
4417
|
+
@bus_reservation_details = bus_reservation_details
|
|
4418
|
+
@event_reservation_details = event_reservation_details
|
|
4419
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
4420
|
+
@insurances = insurances
|
|
4421
|
+
@marketplace_sellers = marketplace_sellers
|
|
4422
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
4423
|
+
@train_reservation_details = train_reservation_details
|
|
4424
|
+
@vouchers = vouchers
|
|
4425
|
+
end
|
|
4426
|
+
end
|
|
1680
4427
|
# Controls when the funds are captured from the customer's account.
|
|
1681
4428
|
#
|
|
1682
4429
|
# 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.
|
|
@@ -1699,19 +4446,23 @@ module Stripe
|
|
|
1699
4446
|
attr_accessor :setup_future_usage
|
|
1700
4447
|
# Subscription details if setting up or charging a subscription.
|
|
1701
4448
|
attr_accessor :subscriptions
|
|
4449
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4450
|
+
attr_accessor :supplementary_purchase_data
|
|
1702
4451
|
|
|
1703
4452
|
def initialize(
|
|
1704
4453
|
capture_method: nil,
|
|
1705
4454
|
on_demand: nil,
|
|
1706
4455
|
preferred_locale: nil,
|
|
1707
4456
|
setup_future_usage: nil,
|
|
1708
|
-
subscriptions: nil
|
|
4457
|
+
subscriptions: nil,
|
|
4458
|
+
supplementary_purchase_data: nil
|
|
1709
4459
|
)
|
|
1710
4460
|
@capture_method = capture_method
|
|
1711
4461
|
@on_demand = on_demand
|
|
1712
4462
|
@preferred_locale = preferred_locale
|
|
1713
4463
|
@setup_future_usage = setup_future_usage
|
|
1714
4464
|
@subscriptions = subscriptions
|
|
4465
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
1715
4466
|
end
|
|
1716
4467
|
end
|
|
1717
4468
|
|
|
@@ -1972,12 +4723,65 @@ module Stripe
|
|
|
1972
4723
|
end
|
|
1973
4724
|
|
|
1974
4725
|
class Paypal < ::Stripe::RequestParams
|
|
4726
|
+
class LineItem < ::Stripe::RequestParams
|
|
4727
|
+
class Tax < ::Stripe::RequestParams
|
|
4728
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4729
|
+
attr_accessor :amount
|
|
4730
|
+
# The tax behavior for the line item.
|
|
4731
|
+
attr_accessor :behavior
|
|
4732
|
+
|
|
4733
|
+
def initialize(amount: nil, behavior: nil)
|
|
4734
|
+
@amount = amount
|
|
4735
|
+
@behavior = behavior
|
|
4736
|
+
end
|
|
4737
|
+
end
|
|
4738
|
+
# Type of the line item.
|
|
4739
|
+
attr_accessor :category
|
|
4740
|
+
# Description of the line item.
|
|
4741
|
+
attr_accessor :description
|
|
4742
|
+
# Descriptive name of the line item.
|
|
4743
|
+
attr_accessor :name
|
|
4744
|
+
# Quantity of the line item. Must be a positive number.
|
|
4745
|
+
attr_accessor :quantity
|
|
4746
|
+
# Client facing stock keeping unit, article number or similar.
|
|
4747
|
+
attr_accessor :sku
|
|
4748
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
4749
|
+
attr_accessor :sold_by
|
|
4750
|
+
# The tax information for the line item.
|
|
4751
|
+
attr_accessor :tax
|
|
4752
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4753
|
+
attr_accessor :unit_amount
|
|
4754
|
+
|
|
4755
|
+
def initialize(
|
|
4756
|
+
category: nil,
|
|
4757
|
+
description: nil,
|
|
4758
|
+
name: nil,
|
|
4759
|
+
quantity: nil,
|
|
4760
|
+
sku: nil,
|
|
4761
|
+
sold_by: nil,
|
|
4762
|
+
tax: nil,
|
|
4763
|
+
unit_amount: nil
|
|
4764
|
+
)
|
|
4765
|
+
@category = category
|
|
4766
|
+
@description = description
|
|
4767
|
+
@name = name
|
|
4768
|
+
@quantity = quantity
|
|
4769
|
+
@sku = sku
|
|
4770
|
+
@sold_by = sold_by
|
|
4771
|
+
@tax = tax
|
|
4772
|
+
@unit_amount = unit_amount
|
|
4773
|
+
end
|
|
4774
|
+
end
|
|
1975
4775
|
# Controls when the funds will be captured from the customer's account.
|
|
1976
4776
|
attr_accessor :capture_method
|
|
4777
|
+
# The line items purchased by the customer.
|
|
4778
|
+
attr_accessor :line_items
|
|
1977
4779
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1978
4780
|
attr_accessor :preferred_locale
|
|
1979
4781
|
# 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.
|
|
1980
4782
|
attr_accessor :reference
|
|
4783
|
+
# 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.
|
|
4784
|
+
attr_accessor :reference_id
|
|
1981
4785
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1982
4786
|
attr_accessor :risk_correlation_id
|
|
1983
4787
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1990,19 +4794,40 @@ module Stripe
|
|
|
1990
4794
|
#
|
|
1991
4795
|
# 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`.
|
|
1992
4796
|
attr_accessor :setup_future_usage
|
|
4797
|
+
# 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.
|
|
4798
|
+
attr_accessor :subsellers
|
|
1993
4799
|
|
|
1994
4800
|
def initialize(
|
|
1995
4801
|
capture_method: nil,
|
|
4802
|
+
line_items: nil,
|
|
1996
4803
|
preferred_locale: nil,
|
|
1997
4804
|
reference: nil,
|
|
4805
|
+
reference_id: nil,
|
|
1998
4806
|
risk_correlation_id: nil,
|
|
1999
|
-
setup_future_usage: nil
|
|
4807
|
+
setup_future_usage: nil,
|
|
4808
|
+
subsellers: nil
|
|
2000
4809
|
)
|
|
2001
4810
|
@capture_method = capture_method
|
|
4811
|
+
@line_items = line_items
|
|
2002
4812
|
@preferred_locale = preferred_locale
|
|
2003
4813
|
@reference = reference
|
|
4814
|
+
@reference_id = reference_id
|
|
2004
4815
|
@risk_correlation_id = risk_correlation_id
|
|
2005
4816
|
@setup_future_usage = setup_future_usage
|
|
4817
|
+
@subsellers = subsellers
|
|
4818
|
+
end
|
|
4819
|
+
end
|
|
4820
|
+
|
|
4821
|
+
class Paypay < ::Stripe::RequestParams
|
|
4822
|
+
# Controls when the funds are captured from the customer's account.
|
|
4823
|
+
#
|
|
4824
|
+
# 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.
|
|
4825
|
+
#
|
|
4826
|
+
# 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.
|
|
4827
|
+
attr_accessor :capture_method
|
|
4828
|
+
|
|
4829
|
+
def initialize(capture_method: nil)
|
|
4830
|
+
@capture_method = capture_method
|
|
2006
4831
|
end
|
|
2007
4832
|
end
|
|
2008
4833
|
|
|
@@ -2144,6 +4969,25 @@ module Stripe
|
|
|
2144
4969
|
end
|
|
2145
4970
|
end
|
|
2146
4971
|
|
|
4972
|
+
class Qris < ::Stripe::RequestParams
|
|
4973
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4974
|
+
#
|
|
4975
|
+
# 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.
|
|
4976
|
+
#
|
|
4977
|
+
# 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.
|
|
4978
|
+
#
|
|
4979
|
+
# 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).
|
|
4980
|
+
#
|
|
4981
|
+
# 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`.
|
|
4982
|
+
attr_accessor :setup_future_usage
|
|
4983
|
+
|
|
4984
|
+
def initialize(setup_future_usage: nil)
|
|
4985
|
+
@setup_future_usage = setup_future_usage
|
|
4986
|
+
end
|
|
4987
|
+
end
|
|
4988
|
+
|
|
4989
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
4990
|
+
|
|
2147
4991
|
class RevolutPay < ::Stripe::RequestParams
|
|
2148
4992
|
# Controls when the funds are captured from the customer's account.
|
|
2149
4993
|
#
|
|
@@ -2236,6 +5080,23 @@ module Stripe
|
|
|
2236
5080
|
end
|
|
2237
5081
|
end
|
|
2238
5082
|
|
|
5083
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
5084
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5085
|
+
#
|
|
5086
|
+
# 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.
|
|
5087
|
+
#
|
|
5088
|
+
# 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.
|
|
5089
|
+
#
|
|
5090
|
+
# 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).
|
|
5091
|
+
#
|
|
5092
|
+
# 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`.
|
|
5093
|
+
attr_accessor :setup_future_usage
|
|
5094
|
+
|
|
5095
|
+
def initialize(setup_future_usage: nil)
|
|
5096
|
+
@setup_future_usage = setup_future_usage
|
|
5097
|
+
end
|
|
5098
|
+
end
|
|
5099
|
+
|
|
2239
5100
|
class Sofort < ::Stripe::RequestParams
|
|
2240
5101
|
# Language shown to the payer on redirect.
|
|
2241
5102
|
attr_accessor :preferred_language
|
|
@@ -2256,6 +5117,23 @@ module Stripe
|
|
|
2256
5117
|
end
|
|
2257
5118
|
end
|
|
2258
5119
|
|
|
5120
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
5121
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5122
|
+
#
|
|
5123
|
+
# 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.
|
|
5124
|
+
#
|
|
5125
|
+
# 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.
|
|
5126
|
+
#
|
|
5127
|
+
# 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).
|
|
5128
|
+
#
|
|
5129
|
+
# 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`.
|
|
5130
|
+
attr_accessor :setup_future_usage
|
|
5131
|
+
|
|
5132
|
+
def initialize(setup_future_usage: nil)
|
|
5133
|
+
@setup_future_usage = setup_future_usage
|
|
5134
|
+
end
|
|
5135
|
+
end
|
|
5136
|
+
|
|
2259
5137
|
class Swish < ::Stripe::RequestParams
|
|
2260
5138
|
# A reference for this payment to be displayed in the Swish app.
|
|
2261
5139
|
attr_accessor :reference
|
|
@@ -2327,13 +5205,27 @@ module Stripe
|
|
|
2327
5205
|
class Filters < ::Stripe::RequestParams
|
|
2328
5206
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2329
5207
|
attr_accessor :account_subcategories
|
|
5208
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
5209
|
+
attr_accessor :institution
|
|
2330
5210
|
|
|
2331
|
-
def initialize(account_subcategories: nil)
|
|
5211
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2332
5212
|
@account_subcategories = account_subcategories
|
|
5213
|
+
@institution = institution
|
|
5214
|
+
end
|
|
5215
|
+
end
|
|
5216
|
+
|
|
5217
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
5218
|
+
# Settings for configuring manual entry of account details.
|
|
5219
|
+
attr_accessor :mode
|
|
5220
|
+
|
|
5221
|
+
def initialize(mode: nil)
|
|
5222
|
+
@mode = mode
|
|
2333
5223
|
end
|
|
2334
5224
|
end
|
|
2335
5225
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2336
5226
|
attr_accessor :filters
|
|
5227
|
+
# Customize manual entry behavior
|
|
5228
|
+
attr_accessor :manual_entry
|
|
2337
5229
|
# 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`.
|
|
2338
5230
|
attr_accessor :permissions
|
|
2339
5231
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2341,8 +5233,15 @@ module Stripe
|
|
|
2341
5233
|
# 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.
|
|
2342
5234
|
attr_accessor :return_url
|
|
2343
5235
|
|
|
2344
|
-
def initialize(
|
|
5236
|
+
def initialize(
|
|
5237
|
+
filters: nil,
|
|
5238
|
+
manual_entry: nil,
|
|
5239
|
+
permissions: nil,
|
|
5240
|
+
prefetch: nil,
|
|
5241
|
+
return_url: nil
|
|
5242
|
+
)
|
|
2345
5243
|
@filters = filters
|
|
5244
|
+
@manual_entry = manual_entry
|
|
2346
5245
|
@permissions = permissions
|
|
2347
5246
|
@prefetch = prefetch
|
|
2348
5247
|
@return_url = return_url
|
|
@@ -2489,8 +5388,12 @@ module Stripe
|
|
|
2489
5388
|
attr_accessor :fpx
|
|
2490
5389
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2491
5390
|
attr_accessor :giropay
|
|
5391
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5392
|
+
attr_accessor :gopay
|
|
2492
5393
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2493
5394
|
attr_accessor :grabpay
|
|
5395
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5396
|
+
attr_accessor :id_bank_transfer
|
|
2494
5397
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2495
5398
|
attr_accessor :ideal
|
|
2496
5399
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2527,12 +5430,18 @@ module Stripe
|
|
|
2527
5430
|
attr_accessor :paynow
|
|
2528
5431
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2529
5432
|
attr_accessor :paypal
|
|
5433
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5434
|
+
attr_accessor :paypay
|
|
2530
5435
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2531
5436
|
attr_accessor :payto
|
|
2532
5437
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2533
5438
|
attr_accessor :pix
|
|
2534
5439
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2535
5440
|
attr_accessor :promptpay
|
|
5441
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5442
|
+
attr_accessor :qris
|
|
5443
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5444
|
+
attr_accessor :rechnung
|
|
2536
5445
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2537
5446
|
attr_accessor :revolut_pay
|
|
2538
5447
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2543,8 +5452,12 @@ module Stripe
|
|
|
2543
5452
|
attr_accessor :scalapay
|
|
2544
5453
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2545
5454
|
attr_accessor :sepa_debit
|
|
5455
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5456
|
+
attr_accessor :shopeepay
|
|
2546
5457
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2547
5458
|
attr_accessor :sofort
|
|
5459
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5460
|
+
attr_accessor :stripe_balance
|
|
2548
5461
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2549
5462
|
attr_accessor :swish
|
|
2550
5463
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2580,7 +5493,9 @@ module Stripe
|
|
|
2580
5493
|
eps: nil,
|
|
2581
5494
|
fpx: nil,
|
|
2582
5495
|
giropay: nil,
|
|
5496
|
+
gopay: nil,
|
|
2583
5497
|
grabpay: nil,
|
|
5498
|
+
id_bank_transfer: nil,
|
|
2584
5499
|
ideal: nil,
|
|
2585
5500
|
interac_present: nil,
|
|
2586
5501
|
kakao_pay: nil,
|
|
@@ -2599,15 +5514,20 @@ module Stripe
|
|
|
2599
5514
|
payco: nil,
|
|
2600
5515
|
paynow: nil,
|
|
2601
5516
|
paypal: nil,
|
|
5517
|
+
paypay: nil,
|
|
2602
5518
|
payto: nil,
|
|
2603
5519
|
pix: nil,
|
|
2604
5520
|
promptpay: nil,
|
|
5521
|
+
qris: nil,
|
|
5522
|
+
rechnung: nil,
|
|
2605
5523
|
revolut_pay: nil,
|
|
2606
5524
|
samsung_pay: nil,
|
|
2607
5525
|
satispay: nil,
|
|
2608
5526
|
scalapay: nil,
|
|
2609
5527
|
sepa_debit: nil,
|
|
5528
|
+
shopeepay: nil,
|
|
2610
5529
|
sofort: nil,
|
|
5530
|
+
stripe_balance: nil,
|
|
2611
5531
|
swish: nil,
|
|
2612
5532
|
twint: nil,
|
|
2613
5533
|
upi: nil,
|
|
@@ -2636,7 +5556,9 @@ module Stripe
|
|
|
2636
5556
|
@eps = eps
|
|
2637
5557
|
@fpx = fpx
|
|
2638
5558
|
@giropay = giropay
|
|
5559
|
+
@gopay = gopay
|
|
2639
5560
|
@grabpay = grabpay
|
|
5561
|
+
@id_bank_transfer = id_bank_transfer
|
|
2640
5562
|
@ideal = ideal
|
|
2641
5563
|
@interac_present = interac_present
|
|
2642
5564
|
@kakao_pay = kakao_pay
|
|
@@ -2655,15 +5577,20 @@ module Stripe
|
|
|
2655
5577
|
@payco = payco
|
|
2656
5578
|
@paynow = paynow
|
|
2657
5579
|
@paypal = paypal
|
|
5580
|
+
@paypay = paypay
|
|
2658
5581
|
@payto = payto
|
|
2659
5582
|
@pix = pix
|
|
2660
5583
|
@promptpay = promptpay
|
|
5584
|
+
@qris = qris
|
|
5585
|
+
@rechnung = rechnung
|
|
2661
5586
|
@revolut_pay = revolut_pay
|
|
2662
5587
|
@samsung_pay = samsung_pay
|
|
2663
5588
|
@satispay = satispay
|
|
2664
5589
|
@scalapay = scalapay
|
|
2665
5590
|
@sepa_debit = sepa_debit
|
|
5591
|
+
@shopeepay = shopeepay
|
|
2666
5592
|
@sofort = sofort
|
|
5593
|
+
@stripe_balance = stripe_balance
|
|
2667
5594
|
@swish = swish
|
|
2668
5595
|
@twint = twint
|
|
2669
5596
|
@upi = upi
|
|
@@ -2736,6 +5663,8 @@ module Stripe
|
|
|
2736
5663
|
attr_accessor :amount_details
|
|
2737
5664
|
# Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
|
|
2738
5665
|
attr_accessor :amount_to_confirm
|
|
5666
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
5667
|
+
attr_accessor :application_fee_amount
|
|
2739
5668
|
# Controls when the funds will be captured from the customer's account.
|
|
2740
5669
|
attr_accessor :capture_method
|
|
2741
5670
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
|
@@ -2748,6 +5677,8 @@ module Stripe
|
|
|
2748
5677
|
attr_accessor :excluded_payment_method_types
|
|
2749
5678
|
# Specifies which fields in the response should be expanded.
|
|
2750
5679
|
attr_accessor :expand
|
|
5680
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5681
|
+
attr_accessor :fx_quote
|
|
2751
5682
|
# Automations to be run during the PaymentIntent lifecycle
|
|
2752
5683
|
attr_accessor :hooks
|
|
2753
5684
|
# ID of the mandate that's used for this payment.
|
|
@@ -2795,11 +5726,13 @@ module Stripe
|
|
|
2795
5726
|
def initialize(
|
|
2796
5727
|
amount_details: nil,
|
|
2797
5728
|
amount_to_confirm: nil,
|
|
5729
|
+
application_fee_amount: nil,
|
|
2798
5730
|
capture_method: nil,
|
|
2799
5731
|
confirmation_token: nil,
|
|
2800
5732
|
error_on_requires_action: nil,
|
|
2801
5733
|
excluded_payment_method_types: nil,
|
|
2802
5734
|
expand: nil,
|
|
5735
|
+
fx_quote: nil,
|
|
2803
5736
|
hooks: nil,
|
|
2804
5737
|
mandate: nil,
|
|
2805
5738
|
mandate_data: nil,
|
|
@@ -2818,11 +5751,13 @@ module Stripe
|
|
|
2818
5751
|
)
|
|
2819
5752
|
@amount_details = amount_details
|
|
2820
5753
|
@amount_to_confirm = amount_to_confirm
|
|
5754
|
+
@application_fee_amount = application_fee_amount
|
|
2821
5755
|
@capture_method = capture_method
|
|
2822
5756
|
@confirmation_token = confirmation_token
|
|
2823
5757
|
@error_on_requires_action = error_on_requires_action
|
|
2824
5758
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2825
5759
|
@expand = expand
|
|
5760
|
+
@fx_quote = fx_quote
|
|
2826
5761
|
@hooks = hooks
|
|
2827
5762
|
@mandate = mandate
|
|
2828
5763
|
@mandate_data = mandate_data
|