stripe 19.2.0.pre.beta.2 → 19.2.0
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 +3 -36
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -87
- data/lib/stripe/event_types.rb +0 -228
- data/lib/stripe/object_types.rb +0 -61
- data/lib/stripe/params/account_create_params.rb +17 -364
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +16 -326
- data/lib/stripe/params/balance_settings_update_params.rb +42 -2
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_create_params.rb +4 -1
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +31 -141
- data/lib/stripe/params/checkout/session_update_params.rb +1 -176
- data/lib/stripe/params/confirmation_token_create_params.rb +11 -79
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/dispute_update_params.rb +1 -10
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -70
- data/lib/stripe/params/invoice_create_preview_params.rb +13 -790
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
- data/lib/stripe/params/invoice_update_params.rb +2 -70
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +3 -1645
- data/lib/stripe/params/payment_intent_confirm_params.rb +136 -3038
- data/lib/stripe/params/payment_intent_create_params.rb +167 -3043
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -39
- data/lib/stripe/params/payment_intent_update_params.rb +121 -3034
- data/lib/stripe/params/payment_link_create_params.rb +30 -16
- data/lib/stripe/params/payment_link_update_params.rb +29 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +24 -87
- data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +24 -87
- data/lib/stripe/params/payment_method_create_params.rb +11 -75
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +0 -15
- data/lib/stripe/params/price_create_params.rb +0 -15
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_create_params.rb +0 -16
- data/lib/stripe/params/product_update_params.rb +0 -16
- data/lib/stripe/params/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +21 -110
- data/lib/stripe/params/setup_intent_create_params.rb +21 -110
- data/lib/stripe/params/setup_intent_update_params.rb +21 -110
- data/lib/stripe/params/subscription_create_params.rb +11 -181
- data/lib/stripe/params/subscription_item_create_params.rb +3 -69
- data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
- data/lib/stripe/params/subscription_item_update_params.rb +2 -52
- data/lib/stripe/params/subscription_schedule_create_params.rb +9 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +9 -167
- data/lib/stripe/params/subscription_update_params.rb +11 -161
- data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
- data/lib/stripe/params/tax/registration_create_params.rb +0 -104
- data/lib/stripe/params/terminal/configuration_create_params.rb +52 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +52 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -79
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +33 -288
- data/lib/stripe/params/v2/core/account_token_create_params.rb +28 -18
- data/lib/stripe/params/v2/core/account_update_params.rb +33 -281
- data/lib/stripe/params.rb +1342 -795
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/account.rb +5 -259
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +42 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/charge.rb +36 -211
- data/lib/stripe/resources/checkout/session.rb +26 -82
- data/lib/stripe/resources/confirmation_token.rb +20 -125
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/discount.rb +2 -2
- data/lib/stripe/resources/dispute.rb +0 -22
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +0 -57
- data/lib/stripe/resources/financial_connections/session.rb +1 -125
- data/lib/stripe/resources/invoice.rb +3 -117
- data/lib/stripe/resources/invoice_item.rb +34 -3
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/dispute.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +0 -2
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +13 -12
- data/lib/stripe/resources/payment_attempt_record.rb +41 -187
- data/lib/stripe/resources/payment_intent.rb +96 -1583
- data/lib/stripe/resources/payment_link.rb +40 -0
- data/lib/stripe/resources/payment_method.rb +21 -130
- data/lib/stripe/resources/payment_method_configuration.rb +20 -122
- data/lib/stripe/resources/payment_record.rb +41 -187
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +0 -18
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +13 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +4 -26
- data/lib/stripe/resources/setup_intent.rb +27 -22
- data/lib/stripe/resources/source.rb +0 -38
- data/lib/stripe/resources/subscription.rb +10 -107
- data/lib/stripe/resources/subscription_item.rb +1 -41
- data/lib/stripe/resources/subscription_schedule.rb +5 -198
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +0 -128
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/terminal/configuration.rb +64 -16
- data/lib/stripe/resources/terminal/reader.rb +116 -8
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +40 -607
- data/lib/stripe/resources/v2/core/account_token.rb +1 -1
- data/lib/stripe/resources/v2/core/event.rb +1 -0
- data/lib/stripe/resources.rb +500 -301
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/credit_note_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -41
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +3 -38
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -55
- data/lib/stripe/services/subscription_service.rb +2 -32
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -11
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
- data/lib/stripe/services/v2/core/event_service.rb +2 -1
- data/lib/stripe/services/v2/core_service.rb +1 -3
- data/lib/stripe/services/v2_services.rb +1 -8
- data/lib/stripe/services.rb +469 -268
- data/lib/stripe/stripe_client.rb +1 -8
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +25 -58
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +53183 -118054
- metadata +5 -377
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/tax/location_create_params.rb +0 -54
- data/lib/stripe/params/tax/location_list_params.rb +0 -27
- data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -87
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -147
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1181
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -734
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1766
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/tax/location.rb +0 -72
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -492
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/tax/location_service.rb +0 -45
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/datum_service.rb +0 -15
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -21
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -66
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
- data/lib/stripe/stripe_event_notification_handler.rb +0 -581
|
@@ -133,9 +133,9 @@ module Stripe
|
|
|
133
133
|
class Shipping < ::Stripe::RequestParams
|
|
134
134
|
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
135
135
|
attr_accessor :amount
|
|
136
|
-
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
136
|
+
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
|
|
137
137
|
attr_accessor :from_postal_code
|
|
138
|
-
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
138
|
+
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
|
|
139
139
|
attr_accessor :to_postal_code
|
|
140
140
|
|
|
141
141
|
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
|
@@ -145,1759 +145,86 @@ module Stripe
|
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
class
|
|
149
|
-
#
|
|
150
|
-
|
|
151
|
-
#
|
|
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
|
-
|
|
160
|
-
class Tax < ::Stripe::RequestParams
|
|
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.
|
|
162
|
-
#
|
|
163
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
164
|
-
attr_accessor :total_tax_amount
|
|
165
|
-
|
|
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 Online < ::Stripe::RequestParams
|
|
234
|
-
# The IP address from which the Mandate was accepted by the customer.
|
|
235
|
-
attr_accessor :ip_address
|
|
236
|
-
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
237
|
-
attr_accessor :user_agent
|
|
238
|
-
|
|
239
|
-
def initialize(ip_address: nil, user_agent: nil)
|
|
240
|
-
@ip_address = ip_address
|
|
241
|
-
@user_agent = user_agent
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
245
|
-
attr_accessor :online
|
|
246
|
-
# The type of customer acceptance information included with the Mandate.
|
|
247
|
-
attr_accessor :type
|
|
248
|
-
|
|
249
|
-
def initialize(online: nil, type: nil)
|
|
250
|
-
@online = online
|
|
251
|
-
@type = type
|
|
252
|
-
end
|
|
253
|
-
end
|
|
254
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
255
|
-
attr_accessor :customer_acceptance
|
|
256
|
-
|
|
257
|
-
def initialize(customer_acceptance: nil)
|
|
258
|
-
@customer_acceptance = customer_acceptance
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
class PaymentDetails < ::Stripe::RequestParams
|
|
263
|
-
class CarRental < ::Stripe::RequestParams
|
|
264
|
-
class Affiliate < ::Stripe::RequestParams
|
|
265
|
-
# The name of the affiliate that originated the purchase.
|
|
266
|
-
attr_accessor :name
|
|
267
|
-
|
|
268
|
-
def initialize(name: nil)
|
|
269
|
-
@name = name
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
class Delivery < ::Stripe::RequestParams
|
|
274
|
-
class Recipient < ::Stripe::RequestParams
|
|
275
|
-
# The email of the recipient the ticket is delivered to.
|
|
276
|
-
attr_accessor :email
|
|
277
|
-
# The name of the recipient the ticket is delivered to.
|
|
278
|
-
attr_accessor :name
|
|
279
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
280
|
-
attr_accessor :phone
|
|
281
|
-
|
|
282
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
283
|
-
@email = email
|
|
284
|
-
@name = name
|
|
285
|
-
@phone = phone
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
# The delivery method for the payment
|
|
289
|
-
attr_accessor :mode
|
|
290
|
-
# Details of the recipient.
|
|
291
|
-
attr_accessor :recipient
|
|
292
|
-
|
|
293
|
-
def initialize(mode: nil, recipient: nil)
|
|
294
|
-
@mode = mode
|
|
295
|
-
@recipient = recipient
|
|
296
|
-
end
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
class Distance < ::Stripe::RequestParams
|
|
300
|
-
# Distance traveled.
|
|
301
|
-
attr_accessor :amount
|
|
302
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
303
|
-
attr_accessor :unit
|
|
304
|
-
|
|
305
|
-
def initialize(amount: nil, unit: nil)
|
|
306
|
-
@amount = amount
|
|
307
|
-
@unit = unit
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
class Driver < ::Stripe::RequestParams
|
|
312
|
-
# Driver's identification number.
|
|
313
|
-
attr_accessor :driver_identification_number
|
|
314
|
-
# Driver's tax number.
|
|
315
|
-
attr_accessor :driver_tax_number
|
|
316
|
-
# Full name of the person or entity on the car reservation.
|
|
317
|
-
attr_accessor :name
|
|
318
|
-
|
|
319
|
-
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
320
|
-
@driver_identification_number = driver_identification_number
|
|
321
|
-
@driver_tax_number = driver_tax_number
|
|
322
|
-
@name = name
|
|
323
|
-
end
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
class PickupAddress < ::Stripe::RequestParams
|
|
327
|
-
# City, district, suburb, town, or village.
|
|
328
|
-
attr_accessor :city
|
|
329
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
330
|
-
attr_accessor :country
|
|
331
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
332
|
-
attr_accessor :line1
|
|
333
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
334
|
-
attr_accessor :line2
|
|
335
|
-
# ZIP or postal code.
|
|
336
|
-
attr_accessor :postal_code
|
|
337
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
338
|
-
attr_accessor :state
|
|
339
|
-
|
|
340
|
-
def initialize(
|
|
341
|
-
city: nil,
|
|
342
|
-
country: nil,
|
|
343
|
-
line1: nil,
|
|
344
|
-
line2: nil,
|
|
345
|
-
postal_code: nil,
|
|
346
|
-
state: nil
|
|
347
|
-
)
|
|
348
|
-
@city = city
|
|
349
|
-
@country = country
|
|
350
|
-
@line1 = line1
|
|
351
|
-
@line2 = line2
|
|
352
|
-
@postal_code = postal_code
|
|
353
|
-
@state = state
|
|
354
|
-
end
|
|
355
|
-
end
|
|
356
|
-
|
|
357
|
-
class ReturnAddress < ::Stripe::RequestParams
|
|
358
|
-
# City, district, suburb, town, or village.
|
|
359
|
-
attr_accessor :city
|
|
360
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
361
|
-
attr_accessor :country
|
|
362
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
363
|
-
attr_accessor :line1
|
|
364
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
365
|
-
attr_accessor :line2
|
|
366
|
-
# ZIP or postal code.
|
|
367
|
-
attr_accessor :postal_code
|
|
368
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
369
|
-
attr_accessor :state
|
|
370
|
-
|
|
371
|
-
def initialize(
|
|
372
|
-
city: nil,
|
|
373
|
-
country: nil,
|
|
374
|
-
line1: nil,
|
|
375
|
-
line2: nil,
|
|
376
|
-
postal_code: nil,
|
|
377
|
-
state: nil
|
|
378
|
-
)
|
|
379
|
-
@city = city
|
|
380
|
-
@country = country
|
|
381
|
-
@line1 = line1
|
|
382
|
-
@line2 = line2
|
|
383
|
-
@postal_code = postal_code
|
|
384
|
-
@state = state
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
# Affiliate details for this purchase.
|
|
388
|
-
attr_accessor :affiliate
|
|
389
|
-
# The booking number associated with the car rental.
|
|
390
|
-
attr_accessor :booking_number
|
|
391
|
-
# Class code of the car.
|
|
392
|
-
attr_accessor :car_class_code
|
|
393
|
-
# Make of the car.
|
|
394
|
-
attr_accessor :car_make
|
|
395
|
-
# Model of the car.
|
|
396
|
-
attr_accessor :car_model
|
|
397
|
-
# The name of the rental car company.
|
|
398
|
-
attr_accessor :company
|
|
399
|
-
# The customer service phone number of the car rental company.
|
|
400
|
-
attr_accessor :customer_service_phone_number
|
|
401
|
-
# Number of days the car is being rented.
|
|
402
|
-
attr_accessor :days_rented
|
|
403
|
-
# Delivery details for this purchase.
|
|
404
|
-
attr_accessor :delivery
|
|
405
|
-
# The details of the distance traveled during the rental period.
|
|
406
|
-
attr_accessor :distance
|
|
407
|
-
# The details of the passengers in the travel reservation
|
|
408
|
-
attr_accessor :drivers
|
|
409
|
-
# List of additional charges being billed.
|
|
410
|
-
attr_accessor :extra_charges
|
|
411
|
-
# Indicates if the customer did not keep nor cancel their booking.
|
|
412
|
-
attr_accessor :no_show
|
|
413
|
-
# Car pick-up address.
|
|
414
|
-
attr_accessor :pickup_address
|
|
415
|
-
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
416
|
-
attr_accessor :pickup_at
|
|
417
|
-
# Name of the pickup location.
|
|
418
|
-
attr_accessor :pickup_location_name
|
|
419
|
-
# Rental rate.
|
|
420
|
-
attr_accessor :rate_amount
|
|
421
|
-
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
422
|
-
attr_accessor :rate_interval
|
|
423
|
-
# The name of the person or entity renting the car.
|
|
424
|
-
attr_accessor :renter_name
|
|
425
|
-
# Car return address.
|
|
426
|
-
attr_accessor :return_address
|
|
427
|
-
# Car return time. Measured in seconds since the Unix epoch.
|
|
428
|
-
attr_accessor :return_at
|
|
429
|
-
# Name of the return location.
|
|
430
|
-
attr_accessor :return_location_name
|
|
431
|
-
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
432
|
-
attr_accessor :tax_exempt
|
|
433
|
-
# The vehicle identification number.
|
|
434
|
-
attr_accessor :vehicle_identification_number
|
|
435
|
-
|
|
436
|
-
def initialize(
|
|
437
|
-
affiliate: nil,
|
|
438
|
-
booking_number: nil,
|
|
439
|
-
car_class_code: nil,
|
|
440
|
-
car_make: nil,
|
|
441
|
-
car_model: nil,
|
|
442
|
-
company: nil,
|
|
443
|
-
customer_service_phone_number: nil,
|
|
444
|
-
days_rented: nil,
|
|
445
|
-
delivery: nil,
|
|
446
|
-
distance: nil,
|
|
447
|
-
drivers: nil,
|
|
448
|
-
extra_charges: nil,
|
|
449
|
-
no_show: nil,
|
|
450
|
-
pickup_address: nil,
|
|
451
|
-
pickup_at: nil,
|
|
452
|
-
pickup_location_name: nil,
|
|
453
|
-
rate_amount: nil,
|
|
454
|
-
rate_interval: nil,
|
|
455
|
-
renter_name: nil,
|
|
456
|
-
return_address: nil,
|
|
457
|
-
return_at: nil,
|
|
458
|
-
return_location_name: nil,
|
|
459
|
-
tax_exempt: nil,
|
|
460
|
-
vehicle_identification_number: nil
|
|
461
|
-
)
|
|
462
|
-
@affiliate = affiliate
|
|
463
|
-
@booking_number = booking_number
|
|
464
|
-
@car_class_code = car_class_code
|
|
465
|
-
@car_make = car_make
|
|
466
|
-
@car_model = car_model
|
|
467
|
-
@company = company
|
|
468
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
469
|
-
@days_rented = days_rented
|
|
470
|
-
@delivery = delivery
|
|
471
|
-
@distance = distance
|
|
472
|
-
@drivers = drivers
|
|
473
|
-
@extra_charges = extra_charges
|
|
474
|
-
@no_show = no_show
|
|
475
|
-
@pickup_address = pickup_address
|
|
476
|
-
@pickup_at = pickup_at
|
|
477
|
-
@pickup_location_name = pickup_location_name
|
|
478
|
-
@rate_amount = rate_amount
|
|
479
|
-
@rate_interval = rate_interval
|
|
480
|
-
@renter_name = renter_name
|
|
481
|
-
@return_address = return_address
|
|
482
|
-
@return_at = return_at
|
|
483
|
-
@return_location_name = return_location_name
|
|
484
|
-
@tax_exempt = tax_exempt
|
|
485
|
-
@vehicle_identification_number = vehicle_identification_number
|
|
486
|
-
end
|
|
487
|
-
end
|
|
488
|
-
|
|
489
|
-
class CarRentalDatum < ::Stripe::RequestParams
|
|
490
|
-
class Affiliate < ::Stripe::RequestParams
|
|
491
|
-
# Affiliate partner code.
|
|
492
|
-
attr_accessor :code
|
|
493
|
-
# Name of affiliate partner.
|
|
494
|
-
attr_accessor :name
|
|
495
|
-
|
|
496
|
-
def initialize(code: nil, name: nil)
|
|
497
|
-
@code = code
|
|
498
|
-
@name = name
|
|
499
|
-
end
|
|
500
|
-
end
|
|
501
|
-
|
|
502
|
-
class Distance < ::Stripe::RequestParams
|
|
503
|
-
# Distance traveled.
|
|
504
|
-
attr_accessor :amount
|
|
505
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
506
|
-
attr_accessor :unit
|
|
507
|
-
|
|
508
|
-
def initialize(amount: nil, unit: nil)
|
|
509
|
-
@amount = amount
|
|
510
|
-
@unit = unit
|
|
511
|
-
end
|
|
512
|
-
end
|
|
513
|
-
|
|
514
|
-
class Driver < ::Stripe::RequestParams
|
|
515
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
516
|
-
# Day of birth (1-31).
|
|
517
|
-
attr_accessor :day
|
|
518
|
-
# Month of birth (1-12).
|
|
519
|
-
attr_accessor :month
|
|
520
|
-
# Year of birth (must be greater than 1900).
|
|
521
|
-
attr_accessor :year
|
|
522
|
-
|
|
523
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
524
|
-
@day = day
|
|
525
|
-
@month = month
|
|
526
|
-
@year = year
|
|
527
|
-
end
|
|
528
|
-
end
|
|
529
|
-
# Driver's date of birth.
|
|
530
|
-
attr_accessor :date_of_birth
|
|
531
|
-
# Driver's identification number.
|
|
532
|
-
attr_accessor :driver_identification_number
|
|
533
|
-
# Driver's tax number.
|
|
534
|
-
attr_accessor :driver_tax_number
|
|
535
|
-
# Driver's full name.
|
|
536
|
-
attr_accessor :name
|
|
537
|
-
|
|
538
|
-
def initialize(
|
|
539
|
-
date_of_birth: nil,
|
|
540
|
-
driver_identification_number: nil,
|
|
541
|
-
driver_tax_number: nil,
|
|
542
|
-
name: nil
|
|
543
|
-
)
|
|
544
|
-
@date_of_birth = date_of_birth
|
|
545
|
-
@driver_identification_number = driver_identification_number
|
|
546
|
-
@driver_tax_number = driver_tax_number
|
|
547
|
-
@name = name
|
|
548
|
-
end
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
class DropOff < ::Stripe::RequestParams
|
|
552
|
-
class Address < ::Stripe::RequestParams
|
|
553
|
-
# City, district, suburb, town, or village.
|
|
554
|
-
attr_accessor :city
|
|
555
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
556
|
-
attr_accessor :country
|
|
557
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
558
|
-
attr_accessor :line1
|
|
559
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
560
|
-
attr_accessor :line2
|
|
561
|
-
# ZIP or postal code.
|
|
562
|
-
attr_accessor :postal_code
|
|
563
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
564
|
-
attr_accessor :state
|
|
565
|
-
|
|
566
|
-
def initialize(
|
|
567
|
-
city: nil,
|
|
568
|
-
country: nil,
|
|
569
|
-
line1: nil,
|
|
570
|
-
line2: nil,
|
|
571
|
-
postal_code: nil,
|
|
572
|
-
state: nil
|
|
573
|
-
)
|
|
574
|
-
@city = city
|
|
575
|
-
@country = country
|
|
576
|
-
@line1 = line1
|
|
577
|
-
@line2 = line2
|
|
578
|
-
@postal_code = postal_code
|
|
579
|
-
@state = state
|
|
580
|
-
end
|
|
581
|
-
end
|
|
582
|
-
# Address of the rental location.
|
|
583
|
-
attr_accessor :address
|
|
584
|
-
# Location name.
|
|
585
|
-
attr_accessor :location_name
|
|
586
|
-
# Timestamp for the location.
|
|
587
|
-
attr_accessor :time
|
|
588
|
-
|
|
589
|
-
def initialize(address: nil, location_name: nil, time: nil)
|
|
590
|
-
@address = address
|
|
591
|
-
@location_name = location_name
|
|
592
|
-
@time = time
|
|
593
|
-
end
|
|
594
|
-
end
|
|
595
|
-
|
|
596
|
-
class Insurance < ::Stripe::RequestParams
|
|
597
|
-
# Amount of the insurance coverage in cents.
|
|
598
|
-
attr_accessor :amount
|
|
599
|
-
# Currency of the insurance amount.
|
|
600
|
-
attr_accessor :currency
|
|
601
|
-
# Name of the insurance company.
|
|
602
|
-
attr_accessor :insurance_company_name
|
|
603
|
-
# Type of insurance coverage.
|
|
604
|
-
attr_accessor :insurance_type
|
|
605
|
-
|
|
606
|
-
def initialize(
|
|
607
|
-
amount: nil,
|
|
608
|
-
currency: nil,
|
|
609
|
-
insurance_company_name: nil,
|
|
610
|
-
insurance_type: nil
|
|
611
|
-
)
|
|
612
|
-
@amount = amount
|
|
613
|
-
@currency = currency
|
|
614
|
-
@insurance_company_name = insurance_company_name
|
|
615
|
-
@insurance_type = insurance_type
|
|
616
|
-
end
|
|
617
|
-
end
|
|
618
|
-
|
|
619
|
-
class Pickup < ::Stripe::RequestParams
|
|
620
|
-
class Address < ::Stripe::RequestParams
|
|
621
|
-
# City, district, suburb, town, or village.
|
|
622
|
-
attr_accessor :city
|
|
623
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
624
|
-
attr_accessor :country
|
|
625
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
626
|
-
attr_accessor :line1
|
|
627
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
628
|
-
attr_accessor :line2
|
|
629
|
-
# ZIP or postal code.
|
|
630
|
-
attr_accessor :postal_code
|
|
631
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
632
|
-
attr_accessor :state
|
|
633
|
-
|
|
634
|
-
def initialize(
|
|
635
|
-
city: nil,
|
|
636
|
-
country: nil,
|
|
637
|
-
line1: nil,
|
|
638
|
-
line2: nil,
|
|
639
|
-
postal_code: nil,
|
|
640
|
-
state: nil
|
|
641
|
-
)
|
|
642
|
-
@city = city
|
|
643
|
-
@country = country
|
|
644
|
-
@line1 = line1
|
|
645
|
-
@line2 = line2
|
|
646
|
-
@postal_code = postal_code
|
|
647
|
-
@state = state
|
|
648
|
-
end
|
|
649
|
-
end
|
|
650
|
-
# Address of the rental location.
|
|
651
|
-
attr_accessor :address
|
|
652
|
-
# Location name.
|
|
653
|
-
attr_accessor :location_name
|
|
654
|
-
# Timestamp for the location.
|
|
655
|
-
attr_accessor :time
|
|
656
|
-
|
|
657
|
-
def initialize(address: nil, location_name: nil, time: nil)
|
|
658
|
-
@address = address
|
|
659
|
-
@location_name = location_name
|
|
660
|
-
@time = time
|
|
661
|
-
end
|
|
662
|
-
end
|
|
663
|
-
|
|
664
|
-
class Total < ::Stripe::RequestParams
|
|
665
|
-
class Discounts < ::Stripe::RequestParams
|
|
666
|
-
# Corporate client discount code.
|
|
667
|
-
attr_accessor :corporate_client_code
|
|
668
|
-
# Coupon code applied to the rental.
|
|
669
|
-
attr_accessor :coupon
|
|
670
|
-
# Maximum number of free miles or kilometers included.
|
|
671
|
-
attr_accessor :maximum_free_miles_or_kilometers
|
|
672
|
-
|
|
673
|
-
def initialize(
|
|
674
|
-
corporate_client_code: nil,
|
|
675
|
-
coupon: nil,
|
|
676
|
-
maximum_free_miles_or_kilometers: nil
|
|
677
|
-
)
|
|
678
|
-
@corporate_client_code = corporate_client_code
|
|
679
|
-
@coupon = coupon
|
|
680
|
-
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
681
|
-
end
|
|
682
|
-
end
|
|
683
|
-
|
|
684
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
685
|
-
# Amount of the extra charge in cents.
|
|
686
|
-
attr_accessor :amount
|
|
687
|
-
# Type of extra charge.
|
|
688
|
-
attr_accessor :type
|
|
689
|
-
|
|
690
|
-
def initialize(amount: nil, type: nil)
|
|
691
|
-
@amount = amount
|
|
692
|
-
@type = type
|
|
693
|
-
end
|
|
694
|
-
end
|
|
695
|
-
|
|
696
|
-
class Tax < ::Stripe::RequestParams
|
|
697
|
-
class Tax < ::Stripe::RequestParams
|
|
698
|
-
# Tax amount.
|
|
699
|
-
attr_accessor :amount
|
|
700
|
-
# Tax rate applied.
|
|
701
|
-
attr_accessor :rate
|
|
702
|
-
# Type of tax applied.
|
|
703
|
-
attr_accessor :type
|
|
704
|
-
|
|
705
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
706
|
-
@amount = amount
|
|
707
|
-
@rate = rate
|
|
708
|
-
@type = type
|
|
709
|
-
end
|
|
710
|
-
end
|
|
711
|
-
# Indicates if the transaction is tax exempt.
|
|
712
|
-
attr_accessor :tax_exempt_indicator
|
|
713
|
-
# Array of tax details.
|
|
714
|
-
attr_accessor :taxes
|
|
715
|
-
|
|
716
|
-
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
717
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
718
|
-
@taxes = taxes
|
|
719
|
-
end
|
|
720
|
-
end
|
|
721
|
-
# Total amount in cents.
|
|
722
|
-
attr_accessor :amount
|
|
723
|
-
# Currency of the amount.
|
|
724
|
-
attr_accessor :currency
|
|
725
|
-
# Discount details for the rental.
|
|
726
|
-
attr_accessor :discounts
|
|
727
|
-
# Additional charges for the rental.
|
|
728
|
-
attr_accessor :extra_charges
|
|
729
|
-
# Rate per unit for the rental.
|
|
730
|
-
attr_accessor :rate_per_unit
|
|
731
|
-
# Unit of measurement for the rate.
|
|
732
|
-
attr_accessor :rate_unit
|
|
733
|
-
# Tax breakdown for the rental.
|
|
734
|
-
attr_accessor :tax
|
|
735
|
-
|
|
736
|
-
def initialize(
|
|
737
|
-
amount: nil,
|
|
738
|
-
currency: nil,
|
|
739
|
-
discounts: nil,
|
|
740
|
-
extra_charges: nil,
|
|
741
|
-
rate_per_unit: nil,
|
|
742
|
-
rate_unit: nil,
|
|
743
|
-
tax: nil
|
|
744
|
-
)
|
|
745
|
-
@amount = amount
|
|
746
|
-
@currency = currency
|
|
747
|
-
@discounts = discounts
|
|
748
|
-
@extra_charges = extra_charges
|
|
749
|
-
@rate_per_unit = rate_per_unit
|
|
750
|
-
@rate_unit = rate_unit
|
|
751
|
-
@tax = tax
|
|
752
|
-
end
|
|
753
|
-
end
|
|
754
|
-
|
|
755
|
-
class Vehicle < ::Stripe::RequestParams
|
|
756
|
-
# Make of the rental vehicle.
|
|
757
|
-
attr_accessor :make
|
|
758
|
-
# Model of the rental vehicle.
|
|
759
|
-
attr_accessor :model
|
|
760
|
-
# Odometer reading at the time of rental.
|
|
761
|
-
attr_accessor :odometer
|
|
762
|
-
# Type of the rental vehicle.
|
|
763
|
-
attr_accessor :type
|
|
764
|
-
# Class of the rental vehicle.
|
|
765
|
-
attr_accessor :vehicle_class
|
|
766
|
-
# Vehicle identification number (VIN).
|
|
767
|
-
attr_accessor :vehicle_identification_number
|
|
768
|
-
|
|
769
|
-
def initialize(
|
|
770
|
-
make: nil,
|
|
771
|
-
model: nil,
|
|
772
|
-
odometer: nil,
|
|
773
|
-
type: nil,
|
|
774
|
-
vehicle_class: nil,
|
|
775
|
-
vehicle_identification_number: nil
|
|
776
|
-
)
|
|
777
|
-
@make = make
|
|
778
|
-
@model = model
|
|
779
|
-
@odometer = odometer
|
|
780
|
-
@type = type
|
|
781
|
-
@vehicle_class = vehicle_class
|
|
782
|
-
@vehicle_identification_number = vehicle_identification_number
|
|
783
|
-
end
|
|
784
|
-
end
|
|
785
|
-
# Affiliate (such as travel agency) details for the rental.
|
|
786
|
-
attr_accessor :affiliate
|
|
787
|
-
# Booking confirmation number for the car rental.
|
|
788
|
-
attr_accessor :booking_number
|
|
789
|
-
# Name of the car rental company.
|
|
790
|
-
attr_accessor :carrier_name
|
|
791
|
-
# Customer service phone number for the car rental company.
|
|
792
|
-
attr_accessor :customer_service_phone_number
|
|
793
|
-
# Number of days the car is being rented.
|
|
794
|
-
attr_accessor :days_rented
|
|
795
|
-
# Distance details for the rental.
|
|
796
|
-
attr_accessor :distance
|
|
797
|
-
# List of drivers for the rental.
|
|
798
|
-
attr_accessor :drivers
|
|
799
|
-
# Drop-off location details.
|
|
800
|
-
attr_accessor :drop_off
|
|
801
|
-
# Insurance details for the rental.
|
|
802
|
-
attr_accessor :insurances
|
|
803
|
-
# Indicates if the customer was a no-show.
|
|
804
|
-
attr_accessor :no_show_indicator
|
|
805
|
-
# Pickup location details.
|
|
806
|
-
attr_accessor :pickup
|
|
807
|
-
# Name of the person renting the vehicle.
|
|
808
|
-
attr_accessor :renter_name
|
|
809
|
-
# Total cost breakdown for the rental.
|
|
810
|
-
attr_accessor :total
|
|
811
|
-
# Vehicle details for the rental.
|
|
812
|
-
attr_accessor :vehicle
|
|
813
|
-
|
|
814
|
-
def initialize(
|
|
815
|
-
affiliate: nil,
|
|
816
|
-
booking_number: nil,
|
|
817
|
-
carrier_name: nil,
|
|
818
|
-
customer_service_phone_number: nil,
|
|
819
|
-
days_rented: nil,
|
|
820
|
-
distance: nil,
|
|
821
|
-
drivers: nil,
|
|
822
|
-
drop_off: nil,
|
|
823
|
-
insurances: nil,
|
|
824
|
-
no_show_indicator: nil,
|
|
825
|
-
pickup: nil,
|
|
826
|
-
renter_name: nil,
|
|
827
|
-
total: nil,
|
|
828
|
-
vehicle: nil
|
|
829
|
-
)
|
|
830
|
-
@affiliate = affiliate
|
|
831
|
-
@booking_number = booking_number
|
|
832
|
-
@carrier_name = carrier_name
|
|
833
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
834
|
-
@days_rented = days_rented
|
|
835
|
-
@distance = distance
|
|
836
|
-
@drivers = drivers
|
|
837
|
-
@drop_off = drop_off
|
|
838
|
-
@insurances = insurances
|
|
839
|
-
@no_show_indicator = no_show_indicator
|
|
840
|
-
@pickup = pickup
|
|
841
|
-
@renter_name = renter_name
|
|
842
|
-
@total = total
|
|
843
|
-
@vehicle = vehicle
|
|
844
|
-
end
|
|
845
|
-
end
|
|
846
|
-
|
|
847
|
-
class EventDetails < ::Stripe::RequestParams
|
|
848
|
-
class Address < ::Stripe::RequestParams
|
|
849
|
-
# City, district, suburb, town, or village.
|
|
850
|
-
attr_accessor :city
|
|
851
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
852
|
-
attr_accessor :country
|
|
853
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
854
|
-
attr_accessor :line1
|
|
855
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
856
|
-
attr_accessor :line2
|
|
857
|
-
# ZIP or postal code.
|
|
858
|
-
attr_accessor :postal_code
|
|
859
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
860
|
-
attr_accessor :state
|
|
861
|
-
|
|
862
|
-
def initialize(
|
|
863
|
-
city: nil,
|
|
864
|
-
country: nil,
|
|
865
|
-
line1: nil,
|
|
866
|
-
line2: nil,
|
|
867
|
-
postal_code: nil,
|
|
868
|
-
state: nil
|
|
869
|
-
)
|
|
870
|
-
@city = city
|
|
871
|
-
@country = country
|
|
872
|
-
@line1 = line1
|
|
873
|
-
@line2 = line2
|
|
874
|
-
@postal_code = postal_code
|
|
875
|
-
@state = state
|
|
876
|
-
end
|
|
877
|
-
end
|
|
878
|
-
|
|
879
|
-
class Affiliate < ::Stripe::RequestParams
|
|
880
|
-
# The name of the affiliate that originated the purchase.
|
|
881
|
-
attr_accessor :name
|
|
882
|
-
|
|
883
|
-
def initialize(name: nil)
|
|
884
|
-
@name = name
|
|
885
|
-
end
|
|
886
|
-
end
|
|
887
|
-
|
|
888
|
-
class Delivery < ::Stripe::RequestParams
|
|
889
|
-
class Recipient < ::Stripe::RequestParams
|
|
890
|
-
# The email of the recipient the ticket is delivered to.
|
|
891
|
-
attr_accessor :email
|
|
892
|
-
# The name of the recipient the ticket is delivered to.
|
|
893
|
-
attr_accessor :name
|
|
894
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
895
|
-
attr_accessor :phone
|
|
896
|
-
|
|
897
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
898
|
-
@email = email
|
|
899
|
-
@name = name
|
|
900
|
-
@phone = phone
|
|
901
|
-
end
|
|
902
|
-
end
|
|
903
|
-
# The delivery method for the payment
|
|
904
|
-
attr_accessor :mode
|
|
905
|
-
# Details of the recipient.
|
|
906
|
-
attr_accessor :recipient
|
|
907
|
-
|
|
908
|
-
def initialize(mode: nil, recipient: nil)
|
|
909
|
-
@mode = mode
|
|
910
|
-
@recipient = recipient
|
|
911
|
-
end
|
|
912
|
-
end
|
|
913
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
914
|
-
attr_accessor :access_controlled_venue
|
|
915
|
-
# The event location's address.
|
|
916
|
-
attr_accessor :address
|
|
917
|
-
# Affiliate details for this purchase.
|
|
918
|
-
attr_accessor :affiliate
|
|
919
|
-
# The name of the company
|
|
920
|
-
attr_accessor :company
|
|
921
|
-
# Delivery details for this purchase.
|
|
922
|
-
attr_accessor :delivery
|
|
923
|
-
# Event end time. Measured in seconds since the Unix epoch.
|
|
924
|
-
attr_accessor :ends_at
|
|
925
|
-
# Type of the event entertainment (concert, sports event etc)
|
|
926
|
-
attr_accessor :genre
|
|
927
|
-
# The name of the event.
|
|
928
|
-
attr_accessor :name
|
|
929
|
-
# Event start time. Measured in seconds since the Unix epoch.
|
|
930
|
-
attr_accessor :starts_at
|
|
931
|
-
|
|
932
|
-
def initialize(
|
|
933
|
-
access_controlled_venue: nil,
|
|
934
|
-
address: nil,
|
|
935
|
-
affiliate: nil,
|
|
936
|
-
company: nil,
|
|
937
|
-
delivery: nil,
|
|
938
|
-
ends_at: nil,
|
|
939
|
-
genre: nil,
|
|
940
|
-
name: nil,
|
|
941
|
-
starts_at: nil
|
|
942
|
-
)
|
|
943
|
-
@access_controlled_venue = access_controlled_venue
|
|
944
|
-
@address = address
|
|
945
|
-
@affiliate = affiliate
|
|
946
|
-
@company = company
|
|
947
|
-
@delivery = delivery
|
|
948
|
-
@ends_at = ends_at
|
|
949
|
-
@genre = genre
|
|
950
|
-
@name = name
|
|
951
|
-
@starts_at = starts_at
|
|
952
|
-
end
|
|
953
|
-
end
|
|
954
|
-
|
|
955
|
-
class Flight < ::Stripe::RequestParams
|
|
956
|
-
class Affiliate < ::Stripe::RequestParams
|
|
957
|
-
# The name of the affiliate that originated the purchase.
|
|
958
|
-
attr_accessor :name
|
|
959
|
-
|
|
960
|
-
def initialize(name: nil)
|
|
961
|
-
@name = name
|
|
962
|
-
end
|
|
963
|
-
end
|
|
964
|
-
|
|
965
|
-
class Delivery < ::Stripe::RequestParams
|
|
966
|
-
class Recipient < ::Stripe::RequestParams
|
|
967
|
-
# The email of the recipient the ticket is delivered to.
|
|
968
|
-
attr_accessor :email
|
|
969
|
-
# The name of the recipient the ticket is delivered to.
|
|
970
|
-
attr_accessor :name
|
|
971
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
972
|
-
attr_accessor :phone
|
|
973
|
-
|
|
974
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
975
|
-
@email = email
|
|
976
|
-
@name = name
|
|
977
|
-
@phone = phone
|
|
978
|
-
end
|
|
979
|
-
end
|
|
980
|
-
# The delivery method for the payment
|
|
981
|
-
attr_accessor :mode
|
|
982
|
-
# Details of the recipient.
|
|
983
|
-
attr_accessor :recipient
|
|
984
|
-
|
|
985
|
-
def initialize(mode: nil, recipient: nil)
|
|
986
|
-
@mode = mode
|
|
987
|
-
@recipient = recipient
|
|
988
|
-
end
|
|
989
|
-
end
|
|
990
|
-
|
|
991
|
-
class Passenger < ::Stripe::RequestParams
|
|
992
|
-
# Full name of the person or entity on the flight reservation.
|
|
993
|
-
attr_accessor :name
|
|
994
|
-
|
|
995
|
-
def initialize(name: nil)
|
|
996
|
-
@name = name
|
|
997
|
-
end
|
|
998
|
-
end
|
|
999
|
-
|
|
1000
|
-
class Segment < ::Stripe::RequestParams
|
|
1001
|
-
# The flight segment amount.
|
|
1002
|
-
attr_accessor :amount
|
|
1003
|
-
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1004
|
-
attr_accessor :arrival_airport
|
|
1005
|
-
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1006
|
-
attr_accessor :arrives_at
|
|
1007
|
-
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1008
|
-
attr_accessor :carrier
|
|
1009
|
-
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1010
|
-
attr_accessor :departs_at
|
|
1011
|
-
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1012
|
-
attr_accessor :departure_airport
|
|
1013
|
-
# The flight number associated with the segment
|
|
1014
|
-
attr_accessor :flight_number
|
|
1015
|
-
# The fare class for the segment.
|
|
1016
|
-
attr_accessor :service_class
|
|
1017
|
-
|
|
1018
|
-
def initialize(
|
|
1019
|
-
amount: nil,
|
|
1020
|
-
arrival_airport: nil,
|
|
1021
|
-
arrives_at: nil,
|
|
1022
|
-
carrier: nil,
|
|
1023
|
-
departs_at: nil,
|
|
1024
|
-
departure_airport: nil,
|
|
1025
|
-
flight_number: nil,
|
|
1026
|
-
service_class: nil
|
|
1027
|
-
)
|
|
1028
|
-
@amount = amount
|
|
1029
|
-
@arrival_airport = arrival_airport
|
|
1030
|
-
@arrives_at = arrives_at
|
|
1031
|
-
@carrier = carrier
|
|
1032
|
-
@departs_at = departs_at
|
|
1033
|
-
@departure_airport = departure_airport
|
|
1034
|
-
@flight_number = flight_number
|
|
1035
|
-
@service_class = service_class
|
|
1036
|
-
end
|
|
1037
|
-
end
|
|
1038
|
-
# Affiliate details for this purchase.
|
|
1039
|
-
attr_accessor :affiliate
|
|
1040
|
-
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1041
|
-
attr_accessor :agency_number
|
|
1042
|
-
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1043
|
-
attr_accessor :carrier
|
|
1044
|
-
# Delivery details for this purchase.
|
|
1045
|
-
attr_accessor :delivery
|
|
1046
|
-
# The name of the person or entity on the reservation.
|
|
1047
|
-
attr_accessor :passenger_name
|
|
1048
|
-
# The details of the passengers in the travel reservation.
|
|
1049
|
-
attr_accessor :passengers
|
|
1050
|
-
# The individual flight segments associated with the trip.
|
|
1051
|
-
attr_accessor :segments
|
|
1052
|
-
# The ticket number associated with the travel reservation.
|
|
1053
|
-
attr_accessor :ticket_number
|
|
1054
|
-
|
|
1055
|
-
def initialize(
|
|
1056
|
-
affiliate: nil,
|
|
1057
|
-
agency_number: nil,
|
|
1058
|
-
carrier: nil,
|
|
1059
|
-
delivery: nil,
|
|
1060
|
-
passenger_name: nil,
|
|
1061
|
-
passengers: nil,
|
|
1062
|
-
segments: nil,
|
|
1063
|
-
ticket_number: nil
|
|
1064
|
-
)
|
|
1065
|
-
@affiliate = affiliate
|
|
1066
|
-
@agency_number = agency_number
|
|
1067
|
-
@carrier = carrier
|
|
1068
|
-
@delivery = delivery
|
|
1069
|
-
@passenger_name = passenger_name
|
|
1070
|
-
@passengers = passengers
|
|
1071
|
-
@segments = segments
|
|
1072
|
-
@ticket_number = ticket_number
|
|
1073
|
-
end
|
|
1074
|
-
end
|
|
1075
|
-
|
|
1076
|
-
class FlightDatum < ::Stripe::RequestParams
|
|
1077
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1078
|
-
# Affiliate partner code.
|
|
1079
|
-
attr_accessor :code
|
|
1080
|
-
# Name of affiliate partner.
|
|
1081
|
-
attr_accessor :name
|
|
1082
|
-
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1083
|
-
attr_accessor :travel_authorization_code
|
|
1084
|
-
|
|
1085
|
-
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1086
|
-
@code = code
|
|
1087
|
-
@name = name
|
|
1088
|
-
@travel_authorization_code = travel_authorization_code
|
|
1089
|
-
end
|
|
1090
|
-
end
|
|
1091
|
-
|
|
1092
|
-
class Insurance < ::Stripe::RequestParams
|
|
1093
|
-
# Insurance cost.
|
|
1094
|
-
attr_accessor :amount
|
|
1095
|
-
# Insurance currency.
|
|
1096
|
-
attr_accessor :currency
|
|
1097
|
-
# Insurance company name.
|
|
1098
|
-
attr_accessor :insurance_company_name
|
|
1099
|
-
# Type of insurance.
|
|
1100
|
-
attr_accessor :insurance_type
|
|
1101
|
-
|
|
1102
|
-
def initialize(
|
|
1103
|
-
amount: nil,
|
|
1104
|
-
currency: nil,
|
|
1105
|
-
insurance_company_name: nil,
|
|
1106
|
-
insurance_type: nil
|
|
1107
|
-
)
|
|
1108
|
-
@amount = amount
|
|
1109
|
-
@currency = currency
|
|
1110
|
-
@insurance_company_name = insurance_company_name
|
|
1111
|
-
@insurance_type = insurance_type
|
|
1112
|
-
end
|
|
1113
|
-
end
|
|
1114
|
-
|
|
1115
|
-
class Passenger < ::Stripe::RequestParams
|
|
1116
|
-
# Passenger's full name.
|
|
1117
|
-
attr_accessor :name
|
|
1118
|
-
|
|
1119
|
-
def initialize(name: nil)
|
|
1120
|
-
@name = name
|
|
1121
|
-
end
|
|
1122
|
-
end
|
|
1123
|
-
|
|
1124
|
-
class Segment < ::Stripe::RequestParams
|
|
1125
|
-
class Arrival < ::Stripe::RequestParams
|
|
1126
|
-
# Arrival airport IATA code.
|
|
1127
|
-
attr_accessor :airport
|
|
1128
|
-
# Arrival date/time.
|
|
1129
|
-
attr_accessor :arrives_at
|
|
1130
|
-
# Arrival city.
|
|
1131
|
-
attr_accessor :city
|
|
1132
|
-
# Arrival country.
|
|
1133
|
-
attr_accessor :country
|
|
1134
|
-
|
|
1135
|
-
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1136
|
-
@airport = airport
|
|
1137
|
-
@arrives_at = arrives_at
|
|
1138
|
-
@city = city
|
|
1139
|
-
@country = country
|
|
1140
|
-
end
|
|
1141
|
-
end
|
|
1142
|
-
|
|
1143
|
-
class Departure < ::Stripe::RequestParams
|
|
1144
|
-
# Departure airport IATA code.
|
|
1145
|
-
attr_accessor :airport
|
|
1146
|
-
# Departure city.
|
|
1147
|
-
attr_accessor :city
|
|
1148
|
-
# Departure country.
|
|
1149
|
-
attr_accessor :country
|
|
1150
|
-
# Departure date/time.
|
|
1151
|
-
attr_accessor :departs_at
|
|
1152
|
-
|
|
1153
|
-
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1154
|
-
@airport = airport
|
|
1155
|
-
@city = city
|
|
1156
|
-
@country = country
|
|
1157
|
-
@departs_at = departs_at
|
|
1158
|
-
end
|
|
1159
|
-
end
|
|
1160
|
-
# Segment fare amount.
|
|
1161
|
-
attr_accessor :amount
|
|
1162
|
-
# Arrival details.
|
|
1163
|
-
attr_accessor :arrival
|
|
1164
|
-
# Airline carrier code.
|
|
1165
|
-
attr_accessor :carrier_code
|
|
1166
|
-
# Carrier name.
|
|
1167
|
-
attr_accessor :carrier_name
|
|
1168
|
-
# Segment currency.
|
|
1169
|
-
attr_accessor :currency
|
|
1170
|
-
# Departure details.
|
|
1171
|
-
attr_accessor :departure
|
|
1172
|
-
# Exchange ticket number.
|
|
1173
|
-
attr_accessor :exchange_ticket_number
|
|
1174
|
-
# Fare basis code.
|
|
1175
|
-
attr_accessor :fare_basis_code
|
|
1176
|
-
# Additional fees.
|
|
1177
|
-
attr_accessor :fees
|
|
1178
|
-
# Flight number.
|
|
1179
|
-
attr_accessor :flight_number
|
|
1180
|
-
# Stopover indicator.
|
|
1181
|
-
attr_accessor :is_stop_over_indicator
|
|
1182
|
-
# Refundable ticket indicator.
|
|
1183
|
-
attr_accessor :refundable
|
|
1184
|
-
# Class of service.
|
|
1185
|
-
attr_accessor :service_class
|
|
1186
|
-
# Tax amount for segment.
|
|
1187
|
-
attr_accessor :tax_amount
|
|
1188
|
-
# Ticket number.
|
|
1189
|
-
attr_accessor :ticket_number
|
|
1190
|
-
|
|
1191
|
-
def initialize(
|
|
1192
|
-
amount: nil,
|
|
1193
|
-
arrival: nil,
|
|
1194
|
-
carrier_code: nil,
|
|
1195
|
-
carrier_name: nil,
|
|
1196
|
-
currency: nil,
|
|
1197
|
-
departure: nil,
|
|
1198
|
-
exchange_ticket_number: nil,
|
|
1199
|
-
fare_basis_code: nil,
|
|
1200
|
-
fees: nil,
|
|
1201
|
-
flight_number: nil,
|
|
1202
|
-
is_stop_over_indicator: nil,
|
|
1203
|
-
refundable: nil,
|
|
1204
|
-
service_class: nil,
|
|
1205
|
-
tax_amount: nil,
|
|
1206
|
-
ticket_number: nil
|
|
1207
|
-
)
|
|
1208
|
-
@amount = amount
|
|
1209
|
-
@arrival = arrival
|
|
1210
|
-
@carrier_code = carrier_code
|
|
1211
|
-
@carrier_name = carrier_name
|
|
1212
|
-
@currency = currency
|
|
1213
|
-
@departure = departure
|
|
1214
|
-
@exchange_ticket_number = exchange_ticket_number
|
|
1215
|
-
@fare_basis_code = fare_basis_code
|
|
1216
|
-
@fees = fees
|
|
1217
|
-
@flight_number = flight_number
|
|
1218
|
-
@is_stop_over_indicator = is_stop_over_indicator
|
|
1219
|
-
@refundable = refundable
|
|
1220
|
-
@service_class = service_class
|
|
1221
|
-
@tax_amount = tax_amount
|
|
1222
|
-
@ticket_number = ticket_number
|
|
1223
|
-
end
|
|
1224
|
-
end
|
|
1225
|
-
|
|
1226
|
-
class Total < ::Stripe::RequestParams
|
|
1227
|
-
class Discounts < ::Stripe::RequestParams
|
|
1228
|
-
# Corporate client discount code.
|
|
1229
|
-
attr_accessor :corporate_client_code
|
|
1230
|
-
|
|
1231
|
-
def initialize(corporate_client_code: nil)
|
|
1232
|
-
@corporate_client_code = corporate_client_code
|
|
1233
|
-
end
|
|
1234
|
-
end
|
|
1235
|
-
|
|
1236
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
1237
|
-
# Amount of additional charges.
|
|
1238
|
-
attr_accessor :amount
|
|
1239
|
-
# Type of additional charges.
|
|
1240
|
-
attr_accessor :type
|
|
1241
|
-
|
|
1242
|
-
def initialize(amount: nil, type: nil)
|
|
1243
|
-
@amount = amount
|
|
1244
|
-
@type = type
|
|
1245
|
-
end
|
|
1246
|
-
end
|
|
1247
|
-
|
|
1248
|
-
class Tax < ::Stripe::RequestParams
|
|
1249
|
-
class Tax < ::Stripe::RequestParams
|
|
1250
|
-
# Tax amount.
|
|
1251
|
-
attr_accessor :amount
|
|
1252
|
-
# Tax rate.
|
|
1253
|
-
attr_accessor :rate
|
|
1254
|
-
# Type of tax.
|
|
1255
|
-
attr_accessor :type
|
|
1256
|
-
|
|
1257
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
1258
|
-
@amount = amount
|
|
1259
|
-
@rate = rate
|
|
1260
|
-
@type = type
|
|
1261
|
-
end
|
|
1262
|
-
end
|
|
1263
|
-
# Array of tax details.
|
|
1264
|
-
attr_accessor :taxes
|
|
1265
|
-
|
|
1266
|
-
def initialize(taxes: nil)
|
|
1267
|
-
@taxes = taxes
|
|
1268
|
-
end
|
|
1269
|
-
end
|
|
1270
|
-
# Total flight amount.
|
|
1271
|
-
attr_accessor :amount
|
|
1272
|
-
# Reason for credit.
|
|
1273
|
-
attr_accessor :credit_reason
|
|
1274
|
-
# Total currency.
|
|
1275
|
-
attr_accessor :currency
|
|
1276
|
-
# Discount details.
|
|
1277
|
-
attr_accessor :discounts
|
|
1278
|
-
# Additional charges.
|
|
1279
|
-
attr_accessor :extra_charges
|
|
1280
|
-
# Tax breakdown.
|
|
1281
|
-
attr_accessor :tax
|
|
1282
|
-
|
|
1283
|
-
def initialize(
|
|
1284
|
-
amount: nil,
|
|
1285
|
-
credit_reason: nil,
|
|
1286
|
-
currency: nil,
|
|
1287
|
-
discounts: nil,
|
|
1288
|
-
extra_charges: nil,
|
|
1289
|
-
tax: nil
|
|
1290
|
-
)
|
|
1291
|
-
@amount = amount
|
|
1292
|
-
@credit_reason = credit_reason
|
|
1293
|
-
@currency = currency
|
|
1294
|
-
@discounts = discounts
|
|
1295
|
-
@extra_charges = extra_charges
|
|
1296
|
-
@tax = tax
|
|
1297
|
-
end
|
|
1298
|
-
end
|
|
1299
|
-
# Affiliate details if applicable.
|
|
1300
|
-
attr_accessor :affiliate
|
|
1301
|
-
# Reservation reference.
|
|
1302
|
-
attr_accessor :booking_number
|
|
1303
|
-
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1304
|
-
attr_accessor :computerized_reservation_system
|
|
1305
|
-
# Ticket restrictions.
|
|
1306
|
-
attr_accessor :endorsements_and_restrictions
|
|
1307
|
-
# List of insurances.
|
|
1308
|
-
attr_accessor :insurances
|
|
1309
|
-
# List of passengers.
|
|
1310
|
-
attr_accessor :passengers
|
|
1311
|
-
# List of flight segments.
|
|
1312
|
-
attr_accessor :segments
|
|
1313
|
-
# Electronic ticket indicator.
|
|
1314
|
-
attr_accessor :ticket_electronically_issued_indicator
|
|
1315
|
-
# Total cost breakdown.
|
|
1316
|
-
attr_accessor :total
|
|
1317
|
-
# Type of flight transaction.
|
|
1318
|
-
attr_accessor :transaction_type
|
|
1319
|
-
|
|
1320
|
-
def initialize(
|
|
1321
|
-
affiliate: nil,
|
|
1322
|
-
booking_number: nil,
|
|
1323
|
-
computerized_reservation_system: nil,
|
|
1324
|
-
endorsements_and_restrictions: nil,
|
|
1325
|
-
insurances: nil,
|
|
1326
|
-
passengers: nil,
|
|
1327
|
-
segments: nil,
|
|
1328
|
-
ticket_electronically_issued_indicator: nil,
|
|
1329
|
-
total: nil,
|
|
1330
|
-
transaction_type: nil
|
|
1331
|
-
)
|
|
1332
|
-
@affiliate = affiliate
|
|
1333
|
-
@booking_number = booking_number
|
|
1334
|
-
@computerized_reservation_system = computerized_reservation_system
|
|
1335
|
-
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1336
|
-
@insurances = insurances
|
|
1337
|
-
@passengers = passengers
|
|
1338
|
-
@segments = segments
|
|
1339
|
-
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1340
|
-
@total = total
|
|
1341
|
-
@transaction_type = transaction_type
|
|
1342
|
-
end
|
|
1343
|
-
end
|
|
1344
|
-
|
|
1345
|
-
class Lodging < ::Stripe::RequestParams
|
|
1346
|
-
class Address < ::Stripe::RequestParams
|
|
1347
|
-
# City, district, suburb, town, or village.
|
|
1348
|
-
attr_accessor :city
|
|
1349
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1350
|
-
attr_accessor :country
|
|
1351
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1352
|
-
attr_accessor :line1
|
|
1353
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1354
|
-
attr_accessor :line2
|
|
1355
|
-
# ZIP or postal code.
|
|
1356
|
-
attr_accessor :postal_code
|
|
1357
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1358
|
-
attr_accessor :state
|
|
1359
|
-
|
|
1360
|
-
def initialize(
|
|
1361
|
-
city: nil,
|
|
1362
|
-
country: nil,
|
|
1363
|
-
line1: nil,
|
|
1364
|
-
line2: nil,
|
|
1365
|
-
postal_code: nil,
|
|
1366
|
-
state: nil
|
|
1367
|
-
)
|
|
1368
|
-
@city = city
|
|
1369
|
-
@country = country
|
|
1370
|
-
@line1 = line1
|
|
1371
|
-
@line2 = line2
|
|
1372
|
-
@postal_code = postal_code
|
|
1373
|
-
@state = state
|
|
1374
|
-
end
|
|
1375
|
-
end
|
|
1376
|
-
|
|
1377
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1378
|
-
# The name of the affiliate that originated the purchase.
|
|
1379
|
-
attr_accessor :name
|
|
1380
|
-
|
|
1381
|
-
def initialize(name: nil)
|
|
1382
|
-
@name = name
|
|
1383
|
-
end
|
|
1384
|
-
end
|
|
1385
|
-
|
|
1386
|
-
class Delivery < ::Stripe::RequestParams
|
|
1387
|
-
class Recipient < ::Stripe::RequestParams
|
|
1388
|
-
# The email of the recipient the ticket is delivered to.
|
|
1389
|
-
attr_accessor :email
|
|
1390
|
-
# The name of the recipient the ticket is delivered to.
|
|
1391
|
-
attr_accessor :name
|
|
1392
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
1393
|
-
attr_accessor :phone
|
|
1394
|
-
|
|
1395
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
1396
|
-
@email = email
|
|
1397
|
-
@name = name
|
|
1398
|
-
@phone = phone
|
|
1399
|
-
end
|
|
1400
|
-
end
|
|
1401
|
-
# The delivery method for the payment
|
|
1402
|
-
attr_accessor :mode
|
|
1403
|
-
# Details of the recipient.
|
|
1404
|
-
attr_accessor :recipient
|
|
1405
|
-
|
|
1406
|
-
def initialize(mode: nil, recipient: nil)
|
|
1407
|
-
@mode = mode
|
|
1408
|
-
@recipient = recipient
|
|
1409
|
-
end
|
|
1410
|
-
end
|
|
1411
|
-
|
|
1412
|
-
class Passenger < ::Stripe::RequestParams
|
|
1413
|
-
# Full name of the person or entity on the lodging reservation.
|
|
1414
|
-
attr_accessor :name
|
|
1415
|
-
|
|
1416
|
-
def initialize(name: nil)
|
|
1417
|
-
@name = name
|
|
1418
|
-
end
|
|
1419
|
-
end
|
|
1420
|
-
# The lodging location's address.
|
|
1421
|
-
attr_accessor :address
|
|
1422
|
-
# The number of adults on the booking
|
|
1423
|
-
attr_accessor :adults
|
|
1424
|
-
# Affiliate details for this purchase.
|
|
1425
|
-
attr_accessor :affiliate
|
|
1426
|
-
# The booking number associated with the lodging reservation.
|
|
1427
|
-
attr_accessor :booking_number
|
|
1428
|
-
# The lodging category
|
|
1429
|
-
attr_accessor :category
|
|
1430
|
-
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1431
|
-
attr_accessor :checkin_at
|
|
1432
|
-
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1433
|
-
attr_accessor :checkout_at
|
|
1434
|
-
# The customer service phone number of the lodging company.
|
|
1435
|
-
attr_accessor :customer_service_phone_number
|
|
1436
|
-
# The daily lodging room rate.
|
|
1437
|
-
attr_accessor :daily_room_rate_amount
|
|
1438
|
-
# Delivery details for this purchase.
|
|
1439
|
-
attr_accessor :delivery
|
|
1440
|
-
# List of additional charges being billed.
|
|
1441
|
-
attr_accessor :extra_charges
|
|
1442
|
-
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1443
|
-
attr_accessor :fire_safety_act_compliance
|
|
1444
|
-
# The name of the lodging location.
|
|
1445
|
-
attr_accessor :name
|
|
1446
|
-
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1447
|
-
attr_accessor :no_show
|
|
1448
|
-
# The number of rooms on the booking
|
|
1449
|
-
attr_accessor :number_of_rooms
|
|
1450
|
-
# The details of the passengers in the travel reservation
|
|
1451
|
-
attr_accessor :passengers
|
|
1452
|
-
# The phone number of the lodging location.
|
|
1453
|
-
attr_accessor :property_phone_number
|
|
1454
|
-
# The room class for this purchase.
|
|
1455
|
-
attr_accessor :room_class
|
|
1456
|
-
# The number of room nights
|
|
1457
|
-
attr_accessor :room_nights
|
|
1458
|
-
# The total tax amount associating with the room reservation.
|
|
1459
|
-
attr_accessor :total_room_tax_amount
|
|
1460
|
-
# The total tax amount
|
|
148
|
+
class Tax < ::Stripe::RequestParams
|
|
149
|
+
# 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
|
+
#
|
|
151
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
1461
152
|
attr_accessor :total_tax_amount
|
|
1462
153
|
|
|
1463
|
-
def initialize(
|
|
1464
|
-
address: nil,
|
|
1465
|
-
adults: nil,
|
|
1466
|
-
affiliate: nil,
|
|
1467
|
-
booking_number: nil,
|
|
1468
|
-
category: nil,
|
|
1469
|
-
checkin_at: nil,
|
|
1470
|
-
checkout_at: nil,
|
|
1471
|
-
customer_service_phone_number: nil,
|
|
1472
|
-
daily_room_rate_amount: nil,
|
|
1473
|
-
delivery: nil,
|
|
1474
|
-
extra_charges: nil,
|
|
1475
|
-
fire_safety_act_compliance: nil,
|
|
1476
|
-
name: nil,
|
|
1477
|
-
no_show: nil,
|
|
1478
|
-
number_of_rooms: nil,
|
|
1479
|
-
passengers: nil,
|
|
1480
|
-
property_phone_number: nil,
|
|
1481
|
-
room_class: nil,
|
|
1482
|
-
room_nights: nil,
|
|
1483
|
-
total_room_tax_amount: nil,
|
|
1484
|
-
total_tax_amount: nil
|
|
1485
|
-
)
|
|
1486
|
-
@address = address
|
|
1487
|
-
@adults = adults
|
|
1488
|
-
@affiliate = affiliate
|
|
1489
|
-
@booking_number = booking_number
|
|
1490
|
-
@category = category
|
|
1491
|
-
@checkin_at = checkin_at
|
|
1492
|
-
@checkout_at = checkout_at
|
|
1493
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
1494
|
-
@daily_room_rate_amount = daily_room_rate_amount
|
|
1495
|
-
@delivery = delivery
|
|
1496
|
-
@extra_charges = extra_charges
|
|
1497
|
-
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1498
|
-
@name = name
|
|
1499
|
-
@no_show = no_show
|
|
1500
|
-
@number_of_rooms = number_of_rooms
|
|
1501
|
-
@passengers = passengers
|
|
1502
|
-
@property_phone_number = property_phone_number
|
|
1503
|
-
@room_class = room_class
|
|
1504
|
-
@room_nights = room_nights
|
|
1505
|
-
@total_room_tax_amount = total_room_tax_amount
|
|
154
|
+
def initialize(total_tax_amount: nil)
|
|
1506
155
|
@total_tax_amount = total_tax_amount
|
|
1507
156
|
end
|
|
1508
157
|
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
|
|
1509
174
|
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
# Rate type.
|
|
1523
|
-
attr_accessor :rate_type
|
|
1524
|
-
# Whether smoking is allowed.
|
|
1525
|
-
attr_accessor :smoking_indicator
|
|
1526
|
-
|
|
1527
|
-
def initialize(
|
|
1528
|
-
accommodation_type: nil,
|
|
1529
|
-
bed_type: nil,
|
|
1530
|
-
daily_rate_amount: nil,
|
|
1531
|
-
nights: nil,
|
|
1532
|
-
number_of_rooms: nil,
|
|
1533
|
-
rate_type: nil,
|
|
1534
|
-
smoking_indicator: nil
|
|
1535
|
-
)
|
|
1536
|
-
@accommodation_type = accommodation_type
|
|
1537
|
-
@bed_type = bed_type
|
|
1538
|
-
@daily_rate_amount = daily_rate_amount
|
|
1539
|
-
@nights = nights
|
|
1540
|
-
@number_of_rooms = number_of_rooms
|
|
1541
|
-
@rate_type = rate_type
|
|
1542
|
-
@smoking_indicator = smoking_indicator
|
|
1543
|
-
end
|
|
1544
|
-
end
|
|
1545
|
-
|
|
1546
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1547
|
-
# Affiliate partner code.
|
|
1548
|
-
attr_accessor :code
|
|
1549
|
-
# Affiliate partner name.
|
|
1550
|
-
attr_accessor :name
|
|
1551
|
-
|
|
1552
|
-
def initialize(code: nil, name: nil)
|
|
1553
|
-
@code = code
|
|
1554
|
-
@name = name
|
|
1555
|
-
end
|
|
1556
|
-
end
|
|
1557
|
-
|
|
1558
|
-
class Guest < ::Stripe::RequestParams
|
|
1559
|
-
# Guest's full name.
|
|
1560
|
-
attr_accessor :name
|
|
1561
|
-
|
|
1562
|
-
def initialize(name: nil)
|
|
1563
|
-
@name = name
|
|
1564
|
-
end
|
|
1565
|
-
end
|
|
1566
|
-
|
|
1567
|
-
class Host < ::Stripe::RequestParams
|
|
1568
|
-
class Address < ::Stripe::RequestParams
|
|
1569
|
-
# City, district, suburb, town, or village.
|
|
1570
|
-
attr_accessor :city
|
|
1571
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1572
|
-
attr_accessor :country
|
|
1573
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1574
|
-
attr_accessor :line1
|
|
1575
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1576
|
-
attr_accessor :line2
|
|
1577
|
-
# ZIP or postal code.
|
|
1578
|
-
attr_accessor :postal_code
|
|
1579
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1580
|
-
attr_accessor :state
|
|
1581
|
-
|
|
1582
|
-
def initialize(
|
|
1583
|
-
city: nil,
|
|
1584
|
-
country: nil,
|
|
1585
|
-
line1: nil,
|
|
1586
|
-
line2: nil,
|
|
1587
|
-
postal_code: nil,
|
|
1588
|
-
state: nil
|
|
1589
|
-
)
|
|
1590
|
-
@city = city
|
|
1591
|
-
@country = country
|
|
1592
|
-
@line1 = line1
|
|
1593
|
-
@line2 = line2
|
|
1594
|
-
@postal_code = postal_code
|
|
1595
|
-
@state = state
|
|
1596
|
-
end
|
|
1597
|
-
end
|
|
1598
|
-
# Address of the host.
|
|
1599
|
-
attr_accessor :address
|
|
1600
|
-
# Host's country of domicile.
|
|
1601
|
-
attr_accessor :country_of_domicile
|
|
1602
|
-
# Reference number for the host.
|
|
1603
|
-
attr_accessor :host_reference
|
|
1604
|
-
# Type of host.
|
|
1605
|
-
attr_accessor :host_type
|
|
1606
|
-
# Name of the lodging property or host.
|
|
1607
|
-
attr_accessor :name
|
|
1608
|
-
# Total number of reservations for the host.
|
|
1609
|
-
attr_accessor :number_of_reservations
|
|
1610
|
-
# Property phone number.
|
|
1611
|
-
attr_accessor :property_phone_number
|
|
1612
|
-
# Host's registration date.
|
|
1613
|
-
attr_accessor :registered_at
|
|
1614
|
-
|
|
1615
|
-
def initialize(
|
|
1616
|
-
address: nil,
|
|
1617
|
-
country_of_domicile: nil,
|
|
1618
|
-
host_reference: nil,
|
|
1619
|
-
host_type: nil,
|
|
1620
|
-
name: nil,
|
|
1621
|
-
number_of_reservations: nil,
|
|
1622
|
-
property_phone_number: nil,
|
|
1623
|
-
registered_at: nil
|
|
1624
|
-
)
|
|
1625
|
-
@address = address
|
|
1626
|
-
@country_of_domicile = country_of_domicile
|
|
1627
|
-
@host_reference = host_reference
|
|
1628
|
-
@host_type = host_type
|
|
1629
|
-
@name = name
|
|
1630
|
-
@number_of_reservations = number_of_reservations
|
|
1631
|
-
@property_phone_number = property_phone_number
|
|
1632
|
-
@registered_at = registered_at
|
|
1633
|
-
end
|
|
1634
|
-
end
|
|
1635
|
-
|
|
1636
|
-
class Insurance < ::Stripe::RequestParams
|
|
1637
|
-
# Price of the insurance coverage in cents.
|
|
1638
|
-
attr_accessor :amount
|
|
1639
|
-
# Currency of the insurance amount.
|
|
1640
|
-
attr_accessor :currency
|
|
1641
|
-
# Name of the insurance company.
|
|
1642
|
-
attr_accessor :insurance_company_name
|
|
1643
|
-
# Type of insurance coverage.
|
|
1644
|
-
attr_accessor :insurance_type
|
|
1645
|
-
|
|
1646
|
-
def initialize(
|
|
1647
|
-
amount: nil,
|
|
1648
|
-
currency: nil,
|
|
1649
|
-
insurance_company_name: nil,
|
|
1650
|
-
insurance_type: nil
|
|
1651
|
-
)
|
|
1652
|
-
@amount = amount
|
|
1653
|
-
@currency = currency
|
|
1654
|
-
@insurance_company_name = insurance_company_name
|
|
1655
|
-
@insurance_type = insurance_type
|
|
1656
|
-
end
|
|
1657
|
-
end
|
|
1658
|
-
|
|
1659
|
-
class Total < ::Stripe::RequestParams
|
|
1660
|
-
class Discounts < ::Stripe::RequestParams
|
|
1661
|
-
# Corporate client discount code.
|
|
1662
|
-
attr_accessor :corporate_client_code
|
|
1663
|
-
# Coupon code.
|
|
1664
|
-
attr_accessor :coupon
|
|
1665
|
-
|
|
1666
|
-
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1667
|
-
@corporate_client_code = corporate_client_code
|
|
1668
|
-
@coupon = coupon
|
|
1669
|
-
end
|
|
1670
|
-
end
|
|
1671
|
-
|
|
1672
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
1673
|
-
# Amount of the extra charge in cents.
|
|
1674
|
-
attr_accessor :amount
|
|
1675
|
-
# Type of extra charge.
|
|
1676
|
-
attr_accessor :type
|
|
1677
|
-
|
|
1678
|
-
def initialize(amount: nil, type: nil)
|
|
1679
|
-
@amount = amount
|
|
1680
|
-
@type = type
|
|
1681
|
-
end
|
|
1682
|
-
end
|
|
1683
|
-
|
|
1684
|
-
class Tax < ::Stripe::RequestParams
|
|
1685
|
-
class Tax < ::Stripe::RequestParams
|
|
1686
|
-
# Tax amount in cents.
|
|
1687
|
-
attr_accessor :amount
|
|
1688
|
-
# Tax rate.
|
|
1689
|
-
attr_accessor :rate
|
|
1690
|
-
# Type of tax applied.
|
|
1691
|
-
attr_accessor :type
|
|
1692
|
-
|
|
1693
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
1694
|
-
@amount = amount
|
|
1695
|
-
@rate = rate
|
|
1696
|
-
@type = type
|
|
1697
|
-
end
|
|
1698
|
-
end
|
|
1699
|
-
# Indicates whether the transaction is tax exempt.
|
|
1700
|
-
attr_accessor :tax_exempt_indicator
|
|
1701
|
-
# Tax details.
|
|
1702
|
-
attr_accessor :taxes
|
|
1703
|
-
|
|
1704
|
-
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1705
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
1706
|
-
@taxes = taxes
|
|
1707
|
-
end
|
|
1708
|
-
end
|
|
1709
|
-
# Total price of the lodging reservation in cents.
|
|
1710
|
-
attr_accessor :amount
|
|
1711
|
-
# Cash advances in cents.
|
|
1712
|
-
attr_accessor :cash_advances
|
|
1713
|
-
# Currency of the total amount.
|
|
1714
|
-
attr_accessor :currency
|
|
1715
|
-
# Discount details for the lodging.
|
|
1716
|
-
attr_accessor :discounts
|
|
1717
|
-
# Additional charges for the lodging.
|
|
1718
|
-
attr_accessor :extra_charges
|
|
1719
|
-
# Prepaid amount in cents.
|
|
1720
|
-
attr_accessor :prepaid_amount
|
|
1721
|
-
# Tax breakdown for the lodging reservation.
|
|
1722
|
-
attr_accessor :tax
|
|
1723
|
-
|
|
1724
|
-
def initialize(
|
|
1725
|
-
amount: nil,
|
|
1726
|
-
cash_advances: nil,
|
|
1727
|
-
currency: nil,
|
|
1728
|
-
discounts: nil,
|
|
1729
|
-
extra_charges: nil,
|
|
1730
|
-
prepaid_amount: nil,
|
|
1731
|
-
tax: nil
|
|
1732
|
-
)
|
|
1733
|
-
@amount = amount
|
|
1734
|
-
@cash_advances = cash_advances
|
|
1735
|
-
@currency = currency
|
|
1736
|
-
@discounts = discounts
|
|
1737
|
-
@extra_charges = extra_charges
|
|
1738
|
-
@prepaid_amount = prepaid_amount
|
|
1739
|
-
@tax = tax
|
|
1740
|
-
end
|
|
1741
|
-
end
|
|
1742
|
-
# Accommodation details for the lodging.
|
|
1743
|
-
attr_accessor :accommodation
|
|
1744
|
-
# Affiliate details if applicable.
|
|
1745
|
-
attr_accessor :affiliate
|
|
1746
|
-
# Booking confirmation number for the lodging.
|
|
1747
|
-
attr_accessor :booking_number
|
|
1748
|
-
# Check-in date.
|
|
1749
|
-
attr_accessor :checkin_at
|
|
1750
|
-
# Check-out date.
|
|
1751
|
-
attr_accessor :checkout_at
|
|
1752
|
-
# Customer service phone number for the lodging company.
|
|
1753
|
-
attr_accessor :customer_service_phone_number
|
|
1754
|
-
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1755
|
-
attr_accessor :fire_safety_act_compliance_indicator
|
|
1756
|
-
# List of guests for the lodging.
|
|
1757
|
-
attr_accessor :guests
|
|
1758
|
-
# Host details for the lodging.
|
|
1759
|
-
attr_accessor :host
|
|
1760
|
-
# List of insurances for the lodging.
|
|
1761
|
-
attr_accessor :insurances
|
|
1762
|
-
# Whether the renter is a no-show.
|
|
1763
|
-
attr_accessor :no_show_indicator
|
|
1764
|
-
# Renter ID number for the lodging.
|
|
1765
|
-
attr_accessor :renter_id_number
|
|
1766
|
-
# Renter name for the lodging.
|
|
1767
|
-
attr_accessor :renter_name
|
|
1768
|
-
# Total details for the lodging.
|
|
1769
|
-
attr_accessor :total
|
|
1770
|
-
|
|
1771
|
-
def initialize(
|
|
1772
|
-
accommodation: nil,
|
|
1773
|
-
affiliate: nil,
|
|
1774
|
-
booking_number: nil,
|
|
1775
|
-
checkin_at: nil,
|
|
1776
|
-
checkout_at: nil,
|
|
1777
|
-
customer_service_phone_number: nil,
|
|
1778
|
-
fire_safety_act_compliance_indicator: nil,
|
|
1779
|
-
guests: nil,
|
|
1780
|
-
host: nil,
|
|
1781
|
-
insurances: nil,
|
|
1782
|
-
no_show_indicator: nil,
|
|
1783
|
-
renter_id_number: nil,
|
|
1784
|
-
renter_name: nil,
|
|
1785
|
-
total: nil
|
|
1786
|
-
)
|
|
1787
|
-
@accommodation = accommodation
|
|
1788
|
-
@affiliate = affiliate
|
|
1789
|
-
@booking_number = booking_number
|
|
1790
|
-
@checkin_at = checkin_at
|
|
1791
|
-
@checkout_at = checkout_at
|
|
1792
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
1793
|
-
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1794
|
-
@guests = guests
|
|
1795
|
-
@host = host
|
|
1796
|
-
@insurances = insurances
|
|
1797
|
-
@no_show_indicator = no_show_indicator
|
|
1798
|
-
@renter_id_number = renter_id_number
|
|
1799
|
-
@renter_name = renter_name
|
|
1800
|
-
@total = total
|
|
1801
|
-
end
|
|
175
|
+
def initialize(
|
|
176
|
+
discount_amount: nil,
|
|
177
|
+
enforce_arithmetic_validation: nil,
|
|
178
|
+
line_items: nil,
|
|
179
|
+
shipping: nil,
|
|
180
|
+
tax: nil
|
|
181
|
+
)
|
|
182
|
+
@discount_amount = discount_amount
|
|
183
|
+
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
184
|
+
@line_items = line_items
|
|
185
|
+
@shipping = shipping
|
|
186
|
+
@tax = tax
|
|
1802
187
|
end
|
|
188
|
+
end
|
|
1803
189
|
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
190
|
+
class Hooks < ::Stripe::RequestParams
|
|
191
|
+
class Inputs < ::Stripe::RequestParams
|
|
192
|
+
class Tax < ::Stripe::RequestParams
|
|
193
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
194
|
+
attr_accessor :calculation
|
|
1808
195
|
|
|
1809
|
-
def initialize(
|
|
1810
|
-
@
|
|
196
|
+
def initialize(calculation: nil)
|
|
197
|
+
@calculation = calculation
|
|
1811
198
|
end
|
|
1812
199
|
end
|
|
200
|
+
# Tax arguments for automations
|
|
201
|
+
attr_accessor :tax
|
|
1813
202
|
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
attr_accessor :count
|
|
1817
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1818
|
-
attr_accessor :interval
|
|
1819
|
-
|
|
1820
|
-
def initialize(count: nil, interval: nil)
|
|
1821
|
-
@count = count
|
|
1822
|
-
@interval = interval
|
|
1823
|
-
end
|
|
203
|
+
def initialize(tax: nil)
|
|
204
|
+
@tax = tax
|
|
1824
205
|
end
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
attr_accessor :auto_renewal
|
|
1829
|
-
# Subscription billing details for this purchase.
|
|
1830
|
-
attr_accessor :billing_interval
|
|
1831
|
-
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1832
|
-
attr_accessor :ends_at
|
|
1833
|
-
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1834
|
-
attr_accessor :name
|
|
1835
|
-
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1836
|
-
attr_accessor :starts_at
|
|
206
|
+
end
|
|
207
|
+
# Arguments passed in automations
|
|
208
|
+
attr_accessor :inputs
|
|
1837
209
|
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
auto_renewal: nil,
|
|
1841
|
-
billing_interval: nil,
|
|
1842
|
-
ends_at: nil,
|
|
1843
|
-
name: nil,
|
|
1844
|
-
starts_at: nil
|
|
1845
|
-
)
|
|
1846
|
-
@affiliate = affiliate
|
|
1847
|
-
@auto_renewal = auto_renewal
|
|
1848
|
-
@billing_interval = billing_interval
|
|
1849
|
-
@ends_at = ends_at
|
|
1850
|
-
@name = name
|
|
1851
|
-
@starts_at = starts_at
|
|
1852
|
-
end
|
|
210
|
+
def initialize(inputs: nil)
|
|
211
|
+
@inputs = inputs
|
|
1853
212
|
end
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
attr_accessor :car_rental_data
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
1858
216
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1859
217
|
#
|
|
1860
218
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1861
219
|
attr_accessor :customer_reference
|
|
1862
|
-
# Event details for this PaymentIntent
|
|
1863
|
-
attr_accessor :event_details
|
|
1864
|
-
# Flight reservation details for this PaymentIntent
|
|
1865
|
-
attr_accessor :flight
|
|
1866
|
-
# Flight data for this PaymentIntent.
|
|
1867
|
-
attr_accessor :flight_data
|
|
1868
|
-
# Lodging reservation details for this PaymentIntent
|
|
1869
|
-
attr_accessor :lodging
|
|
1870
|
-
# Lodging data for this PaymentIntent.
|
|
1871
|
-
attr_accessor :lodging_data
|
|
1872
220
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1873
221
|
#
|
|
1874
222
|
# 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.
|
|
1875
223
|
attr_accessor :order_reference
|
|
1876
|
-
# Subscription details for this PaymentIntent
|
|
1877
|
-
attr_accessor :subscription
|
|
1878
224
|
|
|
1879
|
-
def initialize(
|
|
1880
|
-
car_rental: nil,
|
|
1881
|
-
car_rental_data: nil,
|
|
1882
|
-
customer_reference: nil,
|
|
1883
|
-
event_details: nil,
|
|
1884
|
-
flight: nil,
|
|
1885
|
-
flight_data: nil,
|
|
1886
|
-
lodging: nil,
|
|
1887
|
-
lodging_data: nil,
|
|
1888
|
-
order_reference: nil,
|
|
1889
|
-
subscription: nil
|
|
1890
|
-
)
|
|
1891
|
-
@car_rental = car_rental
|
|
1892
|
-
@car_rental_data = car_rental_data
|
|
225
|
+
def initialize(customer_reference: nil, order_reference: nil)
|
|
1893
226
|
@customer_reference = customer_reference
|
|
1894
|
-
@event_details = event_details
|
|
1895
|
-
@flight = flight
|
|
1896
|
-
@flight_data = flight_data
|
|
1897
|
-
@lodging = lodging
|
|
1898
|
-
@lodging_data = lodging_data
|
|
1899
227
|
@order_reference = order_reference
|
|
1900
|
-
@subscription = subscription
|
|
1901
228
|
end
|
|
1902
229
|
end
|
|
1903
230
|
|
|
@@ -2001,6 +328,7 @@ module Stripe
|
|
|
2001
328
|
end
|
|
2002
329
|
end
|
|
2003
330
|
|
|
331
|
+
class Bizum < ::Stripe::RequestParams; end
|
|
2004
332
|
class Blik < ::Stripe::RequestParams; end
|
|
2005
333
|
|
|
2006
334
|
class Boleto < ::Stripe::RequestParams
|
|
@@ -2038,18 +366,8 @@ module Stripe
|
|
|
2038
366
|
end
|
|
2039
367
|
|
|
2040
368
|
class Giropay < ::Stripe::RequestParams; end
|
|
2041
|
-
class Gopay < ::Stripe::RequestParams; end
|
|
2042
369
|
class Grabpay < ::Stripe::RequestParams; end
|
|
2043
370
|
|
|
2044
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
2045
|
-
# Bank where the account is held.
|
|
2046
|
-
attr_accessor :bank
|
|
2047
|
-
|
|
2048
|
-
def initialize(bank: nil)
|
|
2049
|
-
@bank = bank
|
|
2050
|
-
end
|
|
2051
|
-
end
|
|
2052
|
-
|
|
2053
371
|
class Ideal < ::Stripe::RequestParams
|
|
2054
372
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
2055
373
|
attr_accessor :bank
|
|
@@ -2147,7 +465,6 @@ module Stripe
|
|
|
2147
465
|
class Payco < ::Stripe::RequestParams; end
|
|
2148
466
|
class Paynow < ::Stripe::RequestParams; end
|
|
2149
467
|
class Paypal < ::Stripe::RequestParams; end
|
|
2150
|
-
class Paypay < ::Stripe::RequestParams; end
|
|
2151
468
|
|
|
2152
469
|
class Payto < ::Stripe::RequestParams
|
|
2153
470
|
# The account number for the bank account.
|
|
@@ -2166,7 +483,6 @@ module Stripe
|
|
|
2166
483
|
|
|
2167
484
|
class Pix < ::Stripe::RequestParams; end
|
|
2168
485
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2169
|
-
class Qris < ::Stripe::RequestParams; end
|
|
2170
486
|
|
|
2171
487
|
class RadarOptions < ::Stripe::RequestParams
|
|
2172
488
|
# 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.
|
|
@@ -2177,32 +493,10 @@ module Stripe
|
|
|
2177
493
|
end
|
|
2178
494
|
end
|
|
2179
495
|
|
|
2180
|
-
class Rechnung < ::Stripe::RequestParams
|
|
2181
|
-
class Dob < ::Stripe::RequestParams
|
|
2182
|
-
# The day of birth, between 1 and 31.
|
|
2183
|
-
attr_accessor :day
|
|
2184
|
-
# The month of birth, between 1 and 12.
|
|
2185
|
-
attr_accessor :month
|
|
2186
|
-
# The four-digit year of birth.
|
|
2187
|
-
attr_accessor :year
|
|
2188
|
-
|
|
2189
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
2190
|
-
@day = day
|
|
2191
|
-
@month = month
|
|
2192
|
-
@year = year
|
|
2193
|
-
end
|
|
2194
|
-
end
|
|
2195
|
-
# Customer's date of birth
|
|
2196
|
-
attr_accessor :dob
|
|
2197
|
-
|
|
2198
|
-
def initialize(dob: nil)
|
|
2199
|
-
@dob = dob
|
|
2200
|
-
end
|
|
2201
|
-
end
|
|
2202
|
-
|
|
2203
496
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
2204
497
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
2205
498
|
class Satispay < ::Stripe::RequestParams; end
|
|
499
|
+
class Scalapay < ::Stripe::RequestParams; end
|
|
2206
500
|
|
|
2207
501
|
class SepaDebit < ::Stripe::RequestParams
|
|
2208
502
|
# IBAN of the bank account.
|
|
@@ -2213,8 +507,6 @@ module Stripe
|
|
|
2213
507
|
end
|
|
2214
508
|
end
|
|
2215
509
|
|
|
2216
|
-
class Shopeepay < ::Stripe::RequestParams; end
|
|
2217
|
-
|
|
2218
510
|
class Sofort < ::Stripe::RequestParams
|
|
2219
511
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
2220
512
|
attr_accessor :country
|
|
@@ -2224,15 +516,6 @@ module Stripe
|
|
|
2224
516
|
end
|
|
2225
517
|
end
|
|
2226
518
|
|
|
2227
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
2228
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2229
|
-
attr_accessor :account
|
|
2230
|
-
|
|
2231
|
-
def initialize(account: nil)
|
|
2232
|
-
@account = account
|
|
2233
|
-
end
|
|
2234
|
-
end
|
|
2235
|
-
|
|
2236
519
|
class Sunbit < ::Stripe::RequestParams; end
|
|
2237
520
|
class Swish < ::Stripe::RequestParams; end
|
|
2238
521
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -2316,6 +599,8 @@ module Stripe
|
|
|
2316
599
|
attr_accessor :billie
|
|
2317
600
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
|
2318
601
|
attr_accessor :billing_details
|
|
602
|
+
# If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
|
|
603
|
+
attr_accessor :bizum
|
|
2319
604
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
|
2320
605
|
attr_accessor :blik
|
|
2321
606
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
|
@@ -2332,12 +617,8 @@ module Stripe
|
|
|
2332
617
|
attr_accessor :fpx
|
|
2333
618
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2334
619
|
attr_accessor :giropay
|
|
2335
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2336
|
-
attr_accessor :gopay
|
|
2337
620
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
2338
621
|
attr_accessor :grabpay
|
|
2339
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2340
|
-
attr_accessor :id_bank_transfer
|
|
2341
622
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
2342
623
|
attr_accessor :ideal
|
|
2343
624
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -2350,7 +631,7 @@ module Stripe
|
|
|
2350
631
|
attr_accessor :konbini
|
|
2351
632
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
|
2352
633
|
attr_accessor :kr_card
|
|
2353
|
-
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
634
|
+
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
|
|
2354
635
|
attr_accessor :link
|
|
2355
636
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
2356
637
|
attr_accessor :mb_way
|
|
@@ -2376,36 +657,26 @@ module Stripe
|
|
|
2376
657
|
attr_accessor :paynow
|
|
2377
658
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
2378
659
|
attr_accessor :paypal
|
|
2379
|
-
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
2380
|
-
attr_accessor :paypay
|
|
2381
660
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
2382
661
|
attr_accessor :payto
|
|
2383
662
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
2384
663
|
attr_accessor :pix
|
|
2385
664
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
2386
665
|
attr_accessor :promptpay
|
|
2387
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2388
|
-
attr_accessor :qris
|
|
2389
666
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2390
667
|
attr_accessor :radar_options
|
|
2391
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2392
|
-
attr_accessor :rechnung
|
|
2393
668
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2394
669
|
attr_accessor :revolut_pay
|
|
2395
670
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
2396
671
|
attr_accessor :samsung_pay
|
|
2397
672
|
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
|
2398
673
|
attr_accessor :satispay
|
|
674
|
+
# If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
|
|
675
|
+
attr_accessor :scalapay
|
|
2399
676
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
2400
677
|
attr_accessor :sepa_debit
|
|
2401
|
-
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2402
|
-
attr_accessor :shared_payment_granted_token
|
|
2403
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2404
|
-
attr_accessor :shopeepay
|
|
2405
678
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
2406
679
|
attr_accessor :sofort
|
|
2407
|
-
# This hash contains details about the Stripe balance payment method.
|
|
2408
|
-
attr_accessor :stripe_balance
|
|
2409
680
|
# If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
2410
681
|
attr_accessor :sunbit
|
|
2411
682
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -2436,6 +707,7 @@ module Stripe
|
|
|
2436
707
|
bancontact: nil,
|
|
2437
708
|
billie: nil,
|
|
2438
709
|
billing_details: nil,
|
|
710
|
+
bizum: nil,
|
|
2439
711
|
blik: nil,
|
|
2440
712
|
boleto: nil,
|
|
2441
713
|
cashapp: nil,
|
|
@@ -2444,9 +716,7 @@ module Stripe
|
|
|
2444
716
|
eps: nil,
|
|
2445
717
|
fpx: nil,
|
|
2446
718
|
giropay: nil,
|
|
2447
|
-
gopay: nil,
|
|
2448
719
|
grabpay: nil,
|
|
2449
|
-
id_bank_transfer: nil,
|
|
2450
720
|
ideal: nil,
|
|
2451
721
|
interac_present: nil,
|
|
2452
722
|
kakao_pay: nil,
|
|
@@ -2466,21 +736,16 @@ module Stripe
|
|
|
2466
736
|
payco: nil,
|
|
2467
737
|
paynow: nil,
|
|
2468
738
|
paypal: nil,
|
|
2469
|
-
paypay: nil,
|
|
2470
739
|
payto: nil,
|
|
2471
740
|
pix: nil,
|
|
2472
741
|
promptpay: nil,
|
|
2473
|
-
qris: nil,
|
|
2474
742
|
radar_options: nil,
|
|
2475
|
-
rechnung: nil,
|
|
2476
743
|
revolut_pay: nil,
|
|
2477
744
|
samsung_pay: nil,
|
|
2478
745
|
satispay: nil,
|
|
746
|
+
scalapay: nil,
|
|
2479
747
|
sepa_debit: nil,
|
|
2480
|
-
shared_payment_granted_token: nil,
|
|
2481
|
-
shopeepay: nil,
|
|
2482
748
|
sofort: nil,
|
|
2483
|
-
stripe_balance: nil,
|
|
2484
749
|
sunbit: nil,
|
|
2485
750
|
swish: nil,
|
|
2486
751
|
twint: nil,
|
|
@@ -2502,6 +767,7 @@ module Stripe
|
|
|
2502
767
|
@bancontact = bancontact
|
|
2503
768
|
@billie = billie
|
|
2504
769
|
@billing_details = billing_details
|
|
770
|
+
@bizum = bizum
|
|
2505
771
|
@blik = blik
|
|
2506
772
|
@boleto = boleto
|
|
2507
773
|
@cashapp = cashapp
|
|
@@ -2510,9 +776,7 @@ module Stripe
|
|
|
2510
776
|
@eps = eps
|
|
2511
777
|
@fpx = fpx
|
|
2512
778
|
@giropay = giropay
|
|
2513
|
-
@gopay = gopay
|
|
2514
779
|
@grabpay = grabpay
|
|
2515
|
-
@id_bank_transfer = id_bank_transfer
|
|
2516
780
|
@ideal = ideal
|
|
2517
781
|
@interac_present = interac_present
|
|
2518
782
|
@kakao_pay = kakao_pay
|
|
@@ -2532,21 +796,16 @@ module Stripe
|
|
|
2532
796
|
@payco = payco
|
|
2533
797
|
@paynow = paynow
|
|
2534
798
|
@paypal = paypal
|
|
2535
|
-
@paypay = paypay
|
|
2536
799
|
@payto = payto
|
|
2537
800
|
@pix = pix
|
|
2538
801
|
@promptpay = promptpay
|
|
2539
|
-
@qris = qris
|
|
2540
802
|
@radar_options = radar_options
|
|
2541
|
-
@rechnung = rechnung
|
|
2542
803
|
@revolut_pay = revolut_pay
|
|
2543
804
|
@samsung_pay = samsung_pay
|
|
2544
805
|
@satispay = satispay
|
|
806
|
+
@scalapay = scalapay
|
|
2545
807
|
@sepa_debit = sepa_debit
|
|
2546
|
-
@shared_payment_granted_token = shared_payment_granted_token
|
|
2547
|
-
@shopeepay = shopeepay
|
|
2548
808
|
@sofort = sofort
|
|
2549
|
-
@stripe_balance = stripe_balance
|
|
2550
809
|
@sunbit = sunbit
|
|
2551
810
|
@swish = swish
|
|
2552
811
|
@twint = twint
|
|
@@ -2805,6 +1064,8 @@ module Stripe
|
|
|
2805
1064
|
end
|
|
2806
1065
|
end
|
|
2807
1066
|
|
|
1067
|
+
class Bizum < ::Stripe::RequestParams; end
|
|
1068
|
+
|
|
2808
1069
|
class Blik < ::Stripe::RequestParams
|
|
2809
1070
|
# The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
|
|
2810
1071
|
attr_accessor :code
|
|
@@ -2912,52 +1173,10 @@ module Stripe
|
|
|
2912
1173
|
@description = description
|
|
2913
1174
|
@end_date = end_date
|
|
2914
1175
|
@interval = interval
|
|
2915
|
-
@interval_count = interval_count
|
|
2916
|
-
@reference = reference
|
|
2917
|
-
@start_date = start_date
|
|
2918
|
-
@supported_types = supported_types
|
|
2919
|
-
end
|
|
2920
|
-
end
|
|
2921
|
-
|
|
2922
|
-
class StatementDetails < ::Stripe::RequestParams
|
|
2923
|
-
class Address < ::Stripe::RequestParams
|
|
2924
|
-
# City, district, suburb, town, or village.
|
|
2925
|
-
attr_accessor :city
|
|
2926
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2927
|
-
attr_accessor :country
|
|
2928
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
2929
|
-
attr_accessor :line1
|
|
2930
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2931
|
-
attr_accessor :line2
|
|
2932
|
-
# ZIP or postal code.
|
|
2933
|
-
attr_accessor :postal_code
|
|
2934
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2935
|
-
attr_accessor :state
|
|
2936
|
-
|
|
2937
|
-
def initialize(
|
|
2938
|
-
city: nil,
|
|
2939
|
-
country: nil,
|
|
2940
|
-
line1: nil,
|
|
2941
|
-
line2: nil,
|
|
2942
|
-
postal_code: nil,
|
|
2943
|
-
state: nil
|
|
2944
|
-
)
|
|
2945
|
-
@city = city
|
|
2946
|
-
@country = country
|
|
2947
|
-
@line1 = line1
|
|
2948
|
-
@line2 = line2
|
|
2949
|
-
@postal_code = postal_code
|
|
2950
|
-
@state = state
|
|
2951
|
-
end
|
|
2952
|
-
end
|
|
2953
|
-
# Please pass in an address that is within your Stripe user account country
|
|
2954
|
-
attr_accessor :address
|
|
2955
|
-
# Phone number (e.g., a toll-free number that customers can call)
|
|
2956
|
-
attr_accessor :phone
|
|
2957
|
-
|
|
2958
|
-
def initialize(address: nil, phone: nil)
|
|
2959
|
-
@address = address
|
|
2960
|
-
@phone = phone
|
|
1176
|
+
@interval_count = interval_count
|
|
1177
|
+
@reference = reference
|
|
1178
|
+
@start_date = start_date
|
|
1179
|
+
@supported_types = supported_types
|
|
2961
1180
|
end
|
|
2962
1181
|
end
|
|
2963
1182
|
|
|
@@ -3055,8 +1274,6 @@ module Stripe
|
|
|
3055
1274
|
attr_accessor :moto
|
|
3056
1275
|
# 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.
|
|
3057
1276
|
attr_accessor :network
|
|
3058
|
-
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3059
|
-
attr_accessor :request_decremental_authorization
|
|
3060
1277
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
3061
1278
|
attr_accessor :request_extended_authorization
|
|
3062
1279
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -3065,8 +1282,6 @@ module Stripe
|
|
|
3065
1282
|
attr_accessor :request_multicapture
|
|
3066
1283
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
3067
1284
|
attr_accessor :request_overcapture
|
|
3068
|
-
# Request partial authorization on this PaymentIntent.
|
|
3069
|
-
attr_accessor :request_partial_authorization
|
|
3070
1285
|
# 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.
|
|
3071
1286
|
attr_accessor :request_three_d_secure
|
|
3072
1287
|
# 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).
|
|
@@ -3085,8 +1300,6 @@ module Stripe
|
|
|
3085
1300
|
attr_accessor :statement_descriptor_suffix_kana
|
|
3086
1301
|
# 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.
|
|
3087
1302
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3088
|
-
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3089
|
-
attr_accessor :statement_details
|
|
3090
1303
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
3091
1304
|
# the authentication details to use for this payment.
|
|
3092
1305
|
attr_accessor :three_d_secure
|
|
@@ -3098,18 +1311,15 @@ module Stripe
|
|
|
3098
1311
|
mandate_options: nil,
|
|
3099
1312
|
moto: nil,
|
|
3100
1313
|
network: nil,
|
|
3101
|
-
request_decremental_authorization: nil,
|
|
3102
1314
|
request_extended_authorization: nil,
|
|
3103
1315
|
request_incremental_authorization: nil,
|
|
3104
1316
|
request_multicapture: nil,
|
|
3105
1317
|
request_overcapture: nil,
|
|
3106
|
-
request_partial_authorization: nil,
|
|
3107
1318
|
request_three_d_secure: nil,
|
|
3108
1319
|
require_cvc_recollection: nil,
|
|
3109
1320
|
setup_future_usage: nil,
|
|
3110
1321
|
statement_descriptor_suffix_kana: nil,
|
|
3111
1322
|
statement_descriptor_suffix_kanji: nil,
|
|
3112
|
-
statement_details: nil,
|
|
3113
1323
|
three_d_secure: nil
|
|
3114
1324
|
)
|
|
3115
1325
|
@capture_method = capture_method
|
|
@@ -3118,18 +1328,15 @@ module Stripe
|
|
|
3118
1328
|
@mandate_options = mandate_options
|
|
3119
1329
|
@moto = moto
|
|
3120
1330
|
@network = network
|
|
3121
|
-
@request_decremental_authorization = request_decremental_authorization
|
|
3122
1331
|
@request_extended_authorization = request_extended_authorization
|
|
3123
1332
|
@request_incremental_authorization = request_incremental_authorization
|
|
3124
1333
|
@request_multicapture = request_multicapture
|
|
3125
1334
|
@request_overcapture = request_overcapture
|
|
3126
|
-
@request_partial_authorization = request_partial_authorization
|
|
3127
1335
|
@request_three_d_secure = request_three_d_secure
|
|
3128
1336
|
@require_cvc_recollection = require_cvc_recollection
|
|
3129
1337
|
@setup_future_usage = setup_future_usage
|
|
3130
1338
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
3131
1339
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3132
|
-
@statement_details = statement_details
|
|
3133
1340
|
@three_d_secure = three_d_secure
|
|
3134
1341
|
end
|
|
3135
1342
|
end
|
|
@@ -3308,23 +1515,6 @@ module Stripe
|
|
|
3308
1515
|
end
|
|
3309
1516
|
end
|
|
3310
1517
|
|
|
3311
|
-
class Gopay < ::Stripe::RequestParams
|
|
3312
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3313
|
-
#
|
|
3314
|
-
# 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.
|
|
3315
|
-
#
|
|
3316
|
-
# 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.
|
|
3317
|
-
#
|
|
3318
|
-
# 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).
|
|
3319
|
-
#
|
|
3320
|
-
# 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`.
|
|
3321
|
-
attr_accessor :setup_future_usage
|
|
3322
|
-
|
|
3323
|
-
def initialize(setup_future_usage: nil)
|
|
3324
|
-
@setup_future_usage = setup_future_usage
|
|
3325
|
-
end
|
|
3326
|
-
end
|
|
3327
|
-
|
|
3328
1518
|
class Grabpay < ::Stripe::RequestParams
|
|
3329
1519
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3330
1520
|
#
|
|
@@ -3342,29 +1532,6 @@ module Stripe
|
|
|
3342
1532
|
end
|
|
3343
1533
|
end
|
|
3344
1534
|
|
|
3345
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
3346
|
-
# 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.
|
|
3347
|
-
attr_accessor :expires_after
|
|
3348
|
-
# 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.
|
|
3349
|
-
attr_accessor :expires_at
|
|
3350
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3351
|
-
#
|
|
3352
|
-
# 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.
|
|
3353
|
-
#
|
|
3354
|
-
# 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.
|
|
3355
|
-
#
|
|
3356
|
-
# 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).
|
|
3357
|
-
#
|
|
3358
|
-
# 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`.
|
|
3359
|
-
attr_accessor :setup_future_usage
|
|
3360
|
-
|
|
3361
|
-
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3362
|
-
@expires_after = expires_after
|
|
3363
|
-
@expires_at = expires_at
|
|
3364
|
-
@setup_future_usage = setup_future_usage
|
|
3365
|
-
end
|
|
3366
|
-
end
|
|
3367
|
-
|
|
3368
1535
|
class Ideal < ::Stripe::RequestParams
|
|
3369
1536
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3370
1537
|
#
|
|
@@ -3471,939 +1638,6 @@ module Stripe
|
|
|
3471
1638
|
@reference = reference
|
|
3472
1639
|
end
|
|
3473
1640
|
end
|
|
3474
|
-
|
|
3475
|
-
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3476
|
-
class BusReservationDetail < ::Stripe::RequestParams
|
|
3477
|
-
class Arrival < ::Stripe::RequestParams
|
|
3478
|
-
class Address < ::Stripe::RequestParams
|
|
3479
|
-
# The city or town.
|
|
3480
|
-
attr_accessor :city
|
|
3481
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3482
|
-
attr_accessor :country
|
|
3483
|
-
# The postal code formatted according to country.
|
|
3484
|
-
attr_accessor :postal_code
|
|
3485
|
-
# The state, county, province, or region formatted according to country.
|
|
3486
|
-
attr_accessor :region
|
|
3487
|
-
# Line 1 of the street address.
|
|
3488
|
-
attr_accessor :street_address
|
|
3489
|
-
# Line 2 of the street address.
|
|
3490
|
-
attr_accessor :street_address2
|
|
3491
|
-
|
|
3492
|
-
def initialize(
|
|
3493
|
-
city: nil,
|
|
3494
|
-
country: nil,
|
|
3495
|
-
postal_code: nil,
|
|
3496
|
-
region: nil,
|
|
3497
|
-
street_address: nil,
|
|
3498
|
-
street_address2: nil
|
|
3499
|
-
)
|
|
3500
|
-
@city = city
|
|
3501
|
-
@country = country
|
|
3502
|
-
@postal_code = postal_code
|
|
3503
|
-
@region = region
|
|
3504
|
-
@street_address = street_address
|
|
3505
|
-
@street_address2 = street_address2
|
|
3506
|
-
end
|
|
3507
|
-
end
|
|
3508
|
-
# Address of the arrival location.
|
|
3509
|
-
attr_accessor :address
|
|
3510
|
-
# Identifier name or reference for the arrival location.
|
|
3511
|
-
attr_accessor :arrival_location
|
|
3512
|
-
|
|
3513
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3514
|
-
@address = address
|
|
3515
|
-
@arrival_location = arrival_location
|
|
3516
|
-
end
|
|
3517
|
-
end
|
|
3518
|
-
|
|
3519
|
-
class Departure < ::Stripe::RequestParams
|
|
3520
|
-
class Address < ::Stripe::RequestParams
|
|
3521
|
-
# The city or town.
|
|
3522
|
-
attr_accessor :city
|
|
3523
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3524
|
-
attr_accessor :country
|
|
3525
|
-
# The postal code formatted according to country.
|
|
3526
|
-
attr_accessor :postal_code
|
|
3527
|
-
# The state, county, province, or region formatted according to country.
|
|
3528
|
-
attr_accessor :region
|
|
3529
|
-
# Line 1 of the street address.
|
|
3530
|
-
attr_accessor :street_address
|
|
3531
|
-
# Line 2 of the street address.
|
|
3532
|
-
attr_accessor :street_address2
|
|
3533
|
-
|
|
3534
|
-
def initialize(
|
|
3535
|
-
city: nil,
|
|
3536
|
-
country: nil,
|
|
3537
|
-
postal_code: nil,
|
|
3538
|
-
region: nil,
|
|
3539
|
-
street_address: nil,
|
|
3540
|
-
street_address2: nil
|
|
3541
|
-
)
|
|
3542
|
-
@city = city
|
|
3543
|
-
@country = country
|
|
3544
|
-
@postal_code = postal_code
|
|
3545
|
-
@region = region
|
|
3546
|
-
@street_address = street_address
|
|
3547
|
-
@street_address2 = street_address2
|
|
3548
|
-
end
|
|
3549
|
-
end
|
|
3550
|
-
# Address of the departure location.
|
|
3551
|
-
attr_accessor :address
|
|
3552
|
-
# Timestamp of departure.
|
|
3553
|
-
attr_accessor :departs_at
|
|
3554
|
-
# Identifier name or reference for the origin location.
|
|
3555
|
-
attr_accessor :departure_location
|
|
3556
|
-
|
|
3557
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3558
|
-
@address = address
|
|
3559
|
-
@departs_at = departs_at
|
|
3560
|
-
@departure_location = departure_location
|
|
3561
|
-
end
|
|
3562
|
-
end
|
|
3563
|
-
|
|
3564
|
-
class Insurance < ::Stripe::RequestParams
|
|
3565
|
-
# Insurance currency.
|
|
3566
|
-
attr_accessor :currency
|
|
3567
|
-
# Name of the company providing the insurance.
|
|
3568
|
-
attr_accessor :insurance_company_name
|
|
3569
|
-
# Type of insurance.
|
|
3570
|
-
attr_accessor :insurance_type
|
|
3571
|
-
# Price of insurance in cents.
|
|
3572
|
-
attr_accessor :price
|
|
3573
|
-
|
|
3574
|
-
def initialize(
|
|
3575
|
-
currency: nil,
|
|
3576
|
-
insurance_company_name: nil,
|
|
3577
|
-
insurance_type: nil,
|
|
3578
|
-
price: nil
|
|
3579
|
-
)
|
|
3580
|
-
@currency = currency
|
|
3581
|
-
@insurance_company_name = insurance_company_name
|
|
3582
|
-
@insurance_type = insurance_type
|
|
3583
|
-
@price = price
|
|
3584
|
-
end
|
|
3585
|
-
end
|
|
3586
|
-
|
|
3587
|
-
class Passenger < ::Stripe::RequestParams
|
|
3588
|
-
# The family name of the person.
|
|
3589
|
-
attr_accessor :family_name
|
|
3590
|
-
# The given name of the person.
|
|
3591
|
-
attr_accessor :given_name
|
|
3592
|
-
|
|
3593
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3594
|
-
@family_name = family_name
|
|
3595
|
-
@given_name = given_name
|
|
3596
|
-
end
|
|
3597
|
-
end
|
|
3598
|
-
# Name of associated or partner company for the service.
|
|
3599
|
-
attr_accessor :affiliate_name
|
|
3600
|
-
# Arrival details.
|
|
3601
|
-
attr_accessor :arrival
|
|
3602
|
-
# Name of transportation company.
|
|
3603
|
-
attr_accessor :carrier_name
|
|
3604
|
-
# Currency.
|
|
3605
|
-
attr_accessor :currency
|
|
3606
|
-
# Departure details.
|
|
3607
|
-
attr_accessor :departure
|
|
3608
|
-
# List of insurances for this reservation.
|
|
3609
|
-
attr_accessor :insurances
|
|
3610
|
-
# List of passengers that this reservation applies to.
|
|
3611
|
-
attr_accessor :passengers
|
|
3612
|
-
# Price in cents.
|
|
3613
|
-
attr_accessor :price
|
|
3614
|
-
# Ticket class.
|
|
3615
|
-
attr_accessor :ticket_class
|
|
3616
|
-
|
|
3617
|
-
def initialize(
|
|
3618
|
-
affiliate_name: nil,
|
|
3619
|
-
arrival: nil,
|
|
3620
|
-
carrier_name: nil,
|
|
3621
|
-
currency: nil,
|
|
3622
|
-
departure: nil,
|
|
3623
|
-
insurances: nil,
|
|
3624
|
-
passengers: nil,
|
|
3625
|
-
price: nil,
|
|
3626
|
-
ticket_class: nil
|
|
3627
|
-
)
|
|
3628
|
-
@affiliate_name = affiliate_name
|
|
3629
|
-
@arrival = arrival
|
|
3630
|
-
@carrier_name = carrier_name
|
|
3631
|
-
@currency = currency
|
|
3632
|
-
@departure = departure
|
|
3633
|
-
@insurances = insurances
|
|
3634
|
-
@passengers = passengers
|
|
3635
|
-
@price = price
|
|
3636
|
-
@ticket_class = ticket_class
|
|
3637
|
-
end
|
|
3638
|
-
end
|
|
3639
|
-
|
|
3640
|
-
class EventReservationDetail < ::Stripe::RequestParams
|
|
3641
|
-
class Address < ::Stripe::RequestParams
|
|
3642
|
-
# The city or town.
|
|
3643
|
-
attr_accessor :city
|
|
3644
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3645
|
-
attr_accessor :country
|
|
3646
|
-
# The postal code formatted according to country.
|
|
3647
|
-
attr_accessor :postal_code
|
|
3648
|
-
# The state, county, province, or region formatted according to country.
|
|
3649
|
-
attr_accessor :region
|
|
3650
|
-
# Line 1 of the street address.
|
|
3651
|
-
attr_accessor :street_address
|
|
3652
|
-
# Line 2 of the street address.
|
|
3653
|
-
attr_accessor :street_address2
|
|
3654
|
-
|
|
3655
|
-
def initialize(
|
|
3656
|
-
city: nil,
|
|
3657
|
-
country: nil,
|
|
3658
|
-
postal_code: nil,
|
|
3659
|
-
region: nil,
|
|
3660
|
-
street_address: nil,
|
|
3661
|
-
street_address2: nil
|
|
3662
|
-
)
|
|
3663
|
-
@city = city
|
|
3664
|
-
@country = country
|
|
3665
|
-
@postal_code = postal_code
|
|
3666
|
-
@region = region
|
|
3667
|
-
@street_address = street_address
|
|
3668
|
-
@street_address2 = street_address2
|
|
3669
|
-
end
|
|
3670
|
-
end
|
|
3671
|
-
|
|
3672
|
-
class Insurance < ::Stripe::RequestParams
|
|
3673
|
-
# Insurance currency.
|
|
3674
|
-
attr_accessor :currency
|
|
3675
|
-
# Name of the company providing the insurance.
|
|
3676
|
-
attr_accessor :insurance_company_name
|
|
3677
|
-
# Type of insurance.
|
|
3678
|
-
attr_accessor :insurance_type
|
|
3679
|
-
# Price of insurance in cents.
|
|
3680
|
-
attr_accessor :price
|
|
3681
|
-
|
|
3682
|
-
def initialize(
|
|
3683
|
-
currency: nil,
|
|
3684
|
-
insurance_company_name: nil,
|
|
3685
|
-
insurance_type: nil,
|
|
3686
|
-
price: nil
|
|
3687
|
-
)
|
|
3688
|
-
@currency = currency
|
|
3689
|
-
@insurance_company_name = insurance_company_name
|
|
3690
|
-
@insurance_type = insurance_type
|
|
3691
|
-
@price = price
|
|
3692
|
-
end
|
|
3693
|
-
end
|
|
3694
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3695
|
-
attr_accessor :access_controlled_venue
|
|
3696
|
-
# Address of the event.
|
|
3697
|
-
attr_accessor :address
|
|
3698
|
-
# Name of associated or partner company for the service.
|
|
3699
|
-
attr_accessor :affiliate_name
|
|
3700
|
-
# End timestamp of the event.
|
|
3701
|
-
attr_accessor :ends_at
|
|
3702
|
-
# Company selling the ticket.
|
|
3703
|
-
attr_accessor :event_company_name
|
|
3704
|
-
# Name of the event.
|
|
3705
|
-
attr_accessor :event_name
|
|
3706
|
-
# Type of the event.
|
|
3707
|
-
attr_accessor :event_type
|
|
3708
|
-
# List of insurances for this event.
|
|
3709
|
-
attr_accessor :insurances
|
|
3710
|
-
# Start timestamp of the event.
|
|
3711
|
-
attr_accessor :starts_at
|
|
3712
|
-
# Name of the venue where the event takes place.
|
|
3713
|
-
attr_accessor :venue_name
|
|
3714
|
-
|
|
3715
|
-
def initialize(
|
|
3716
|
-
access_controlled_venue: nil,
|
|
3717
|
-
address: nil,
|
|
3718
|
-
affiliate_name: nil,
|
|
3719
|
-
ends_at: nil,
|
|
3720
|
-
event_company_name: nil,
|
|
3721
|
-
event_name: nil,
|
|
3722
|
-
event_type: nil,
|
|
3723
|
-
insurances: nil,
|
|
3724
|
-
starts_at: nil,
|
|
3725
|
-
venue_name: nil
|
|
3726
|
-
)
|
|
3727
|
-
@access_controlled_venue = access_controlled_venue
|
|
3728
|
-
@address = address
|
|
3729
|
-
@affiliate_name = affiliate_name
|
|
3730
|
-
@ends_at = ends_at
|
|
3731
|
-
@event_company_name = event_company_name
|
|
3732
|
-
@event_name = event_name
|
|
3733
|
-
@event_type = event_type
|
|
3734
|
-
@insurances = insurances
|
|
3735
|
-
@starts_at = starts_at
|
|
3736
|
-
@venue_name = venue_name
|
|
3737
|
-
end
|
|
3738
|
-
end
|
|
3739
|
-
|
|
3740
|
-
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3741
|
-
class Arrival < ::Stripe::RequestParams
|
|
3742
|
-
class Address < ::Stripe::RequestParams
|
|
3743
|
-
# The city or town.
|
|
3744
|
-
attr_accessor :city
|
|
3745
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3746
|
-
attr_accessor :country
|
|
3747
|
-
# The postal code formatted according to country.
|
|
3748
|
-
attr_accessor :postal_code
|
|
3749
|
-
# The state, county, province, or region formatted according to country.
|
|
3750
|
-
attr_accessor :region
|
|
3751
|
-
# Line 1 of the street address.
|
|
3752
|
-
attr_accessor :street_address
|
|
3753
|
-
# Line 2 of the street address.
|
|
3754
|
-
attr_accessor :street_address2
|
|
3755
|
-
|
|
3756
|
-
def initialize(
|
|
3757
|
-
city: nil,
|
|
3758
|
-
country: nil,
|
|
3759
|
-
postal_code: nil,
|
|
3760
|
-
region: nil,
|
|
3761
|
-
street_address: nil,
|
|
3762
|
-
street_address2: nil
|
|
3763
|
-
)
|
|
3764
|
-
@city = city
|
|
3765
|
-
@country = country
|
|
3766
|
-
@postal_code = postal_code
|
|
3767
|
-
@region = region
|
|
3768
|
-
@street_address = street_address
|
|
3769
|
-
@street_address2 = street_address2
|
|
3770
|
-
end
|
|
3771
|
-
end
|
|
3772
|
-
# Address of the arrival location.
|
|
3773
|
-
attr_accessor :address
|
|
3774
|
-
# Identifier name or reference for the arrival location.
|
|
3775
|
-
attr_accessor :arrival_location
|
|
3776
|
-
|
|
3777
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3778
|
-
@address = address
|
|
3779
|
-
@arrival_location = arrival_location
|
|
3780
|
-
end
|
|
3781
|
-
end
|
|
3782
|
-
|
|
3783
|
-
class Departure < ::Stripe::RequestParams
|
|
3784
|
-
class Address < ::Stripe::RequestParams
|
|
3785
|
-
# The city or town.
|
|
3786
|
-
attr_accessor :city
|
|
3787
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3788
|
-
attr_accessor :country
|
|
3789
|
-
# The postal code formatted according to country.
|
|
3790
|
-
attr_accessor :postal_code
|
|
3791
|
-
# The state, county, province, or region formatted according to country.
|
|
3792
|
-
attr_accessor :region
|
|
3793
|
-
# Line 1 of the street address.
|
|
3794
|
-
attr_accessor :street_address
|
|
3795
|
-
# Line 2 of the street address.
|
|
3796
|
-
attr_accessor :street_address2
|
|
3797
|
-
|
|
3798
|
-
def initialize(
|
|
3799
|
-
city: nil,
|
|
3800
|
-
country: nil,
|
|
3801
|
-
postal_code: nil,
|
|
3802
|
-
region: nil,
|
|
3803
|
-
street_address: nil,
|
|
3804
|
-
street_address2: nil
|
|
3805
|
-
)
|
|
3806
|
-
@city = city
|
|
3807
|
-
@country = country
|
|
3808
|
-
@postal_code = postal_code
|
|
3809
|
-
@region = region
|
|
3810
|
-
@street_address = street_address
|
|
3811
|
-
@street_address2 = street_address2
|
|
3812
|
-
end
|
|
3813
|
-
end
|
|
3814
|
-
# Address of the departure location.
|
|
3815
|
-
attr_accessor :address
|
|
3816
|
-
# Timestamp of departure.
|
|
3817
|
-
attr_accessor :departs_at
|
|
3818
|
-
# Identifier name or reference for the origin location.
|
|
3819
|
-
attr_accessor :departure_location
|
|
3820
|
-
|
|
3821
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3822
|
-
@address = address
|
|
3823
|
-
@departs_at = departs_at
|
|
3824
|
-
@departure_location = departure_location
|
|
3825
|
-
end
|
|
3826
|
-
end
|
|
3827
|
-
|
|
3828
|
-
class Insurance < ::Stripe::RequestParams
|
|
3829
|
-
# Insurance currency.
|
|
3830
|
-
attr_accessor :currency
|
|
3831
|
-
# Name of the company providing the insurance.
|
|
3832
|
-
attr_accessor :insurance_company_name
|
|
3833
|
-
# Type of insurance.
|
|
3834
|
-
attr_accessor :insurance_type
|
|
3835
|
-
# Price of insurance in cents.
|
|
3836
|
-
attr_accessor :price
|
|
3837
|
-
|
|
3838
|
-
def initialize(
|
|
3839
|
-
currency: nil,
|
|
3840
|
-
insurance_company_name: nil,
|
|
3841
|
-
insurance_type: nil,
|
|
3842
|
-
price: nil
|
|
3843
|
-
)
|
|
3844
|
-
@currency = currency
|
|
3845
|
-
@insurance_company_name = insurance_company_name
|
|
3846
|
-
@insurance_type = insurance_type
|
|
3847
|
-
@price = price
|
|
3848
|
-
end
|
|
3849
|
-
end
|
|
3850
|
-
|
|
3851
|
-
class Passenger < ::Stripe::RequestParams
|
|
3852
|
-
# The family name of the person.
|
|
3853
|
-
attr_accessor :family_name
|
|
3854
|
-
# The given name of the person.
|
|
3855
|
-
attr_accessor :given_name
|
|
3856
|
-
|
|
3857
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3858
|
-
@family_name = family_name
|
|
3859
|
-
@given_name = given_name
|
|
3860
|
-
end
|
|
3861
|
-
end
|
|
3862
|
-
# Name of associated or partner company for the service.
|
|
3863
|
-
attr_accessor :affiliate_name
|
|
3864
|
-
# Arrival details.
|
|
3865
|
-
attr_accessor :arrival
|
|
3866
|
-
# Name of transportation company.
|
|
3867
|
-
attr_accessor :carrier_name
|
|
3868
|
-
# Currency.
|
|
3869
|
-
attr_accessor :currency
|
|
3870
|
-
# Departure details.
|
|
3871
|
-
attr_accessor :departure
|
|
3872
|
-
# List of insurances for this reservation.
|
|
3873
|
-
attr_accessor :insurances
|
|
3874
|
-
# List of passengers that this reservation applies to.
|
|
3875
|
-
attr_accessor :passengers
|
|
3876
|
-
# Price in cents.
|
|
3877
|
-
attr_accessor :price
|
|
3878
|
-
# Ticket class.
|
|
3879
|
-
attr_accessor :ticket_class
|
|
3880
|
-
|
|
3881
|
-
def initialize(
|
|
3882
|
-
affiliate_name: nil,
|
|
3883
|
-
arrival: nil,
|
|
3884
|
-
carrier_name: nil,
|
|
3885
|
-
currency: nil,
|
|
3886
|
-
departure: nil,
|
|
3887
|
-
insurances: nil,
|
|
3888
|
-
passengers: nil,
|
|
3889
|
-
price: nil,
|
|
3890
|
-
ticket_class: nil
|
|
3891
|
-
)
|
|
3892
|
-
@affiliate_name = affiliate_name
|
|
3893
|
-
@arrival = arrival
|
|
3894
|
-
@carrier_name = carrier_name
|
|
3895
|
-
@currency = currency
|
|
3896
|
-
@departure = departure
|
|
3897
|
-
@insurances = insurances
|
|
3898
|
-
@passengers = passengers
|
|
3899
|
-
@price = price
|
|
3900
|
-
@ticket_class = ticket_class
|
|
3901
|
-
end
|
|
3902
|
-
end
|
|
3903
|
-
|
|
3904
|
-
class Insurance < ::Stripe::RequestParams
|
|
3905
|
-
# Insurance currency.
|
|
3906
|
-
attr_accessor :currency
|
|
3907
|
-
# Name of the company providing the insurance.
|
|
3908
|
-
attr_accessor :insurance_company_name
|
|
3909
|
-
# Type of insurance
|
|
3910
|
-
attr_accessor :insurance_type
|
|
3911
|
-
# Price of insurance in cents.
|
|
3912
|
-
attr_accessor :price
|
|
3913
|
-
|
|
3914
|
-
def initialize(
|
|
3915
|
-
currency: nil,
|
|
3916
|
-
insurance_company_name: nil,
|
|
3917
|
-
insurance_type: nil,
|
|
3918
|
-
price: nil
|
|
3919
|
-
)
|
|
3920
|
-
@currency = currency
|
|
3921
|
-
@insurance_company_name = insurance_company_name
|
|
3922
|
-
@insurance_type = insurance_type
|
|
3923
|
-
@price = price
|
|
3924
|
-
end
|
|
3925
|
-
end
|
|
3926
|
-
|
|
3927
|
-
class MarketplaceSeller < ::Stripe::RequestParams
|
|
3928
|
-
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
3929
|
-
# The city or town.
|
|
3930
|
-
attr_accessor :city
|
|
3931
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3932
|
-
attr_accessor :country
|
|
3933
|
-
# The postal code formatted according to country.
|
|
3934
|
-
attr_accessor :postal_code
|
|
3935
|
-
# The state, county, province, or region formatted according to country.
|
|
3936
|
-
attr_accessor :region
|
|
3937
|
-
# Line 1 of the street address.
|
|
3938
|
-
attr_accessor :street_address
|
|
3939
|
-
# Line 2 of the street address.
|
|
3940
|
-
attr_accessor :street_address2
|
|
3941
|
-
|
|
3942
|
-
def initialize(
|
|
3943
|
-
city: nil,
|
|
3944
|
-
country: nil,
|
|
3945
|
-
postal_code: nil,
|
|
3946
|
-
region: nil,
|
|
3947
|
-
street_address: nil,
|
|
3948
|
-
street_address2: nil
|
|
3949
|
-
)
|
|
3950
|
-
@city = city
|
|
3951
|
-
@country = country
|
|
3952
|
-
@postal_code = postal_code
|
|
3953
|
-
@region = region
|
|
3954
|
-
@street_address = street_address
|
|
3955
|
-
@street_address2 = street_address2
|
|
3956
|
-
end
|
|
3957
|
-
end
|
|
3958
|
-
# The references to line items for purchases with multiple associated sub-sellers.
|
|
3959
|
-
attr_accessor :line_item_references
|
|
3960
|
-
# The address of the selling or delivering merchant.
|
|
3961
|
-
attr_accessor :marketplace_seller_address
|
|
3962
|
-
# The name of the marketplace seller.
|
|
3963
|
-
attr_accessor :marketplace_seller_name
|
|
3964
|
-
# The unique identifier for the marketplace seller.
|
|
3965
|
-
attr_accessor :marketplace_seller_reference
|
|
3966
|
-
# The number of transactions the sub-seller completed in the last 12 months.
|
|
3967
|
-
attr_accessor :number_of_transactions
|
|
3968
|
-
# The category of the product.
|
|
3969
|
-
attr_accessor :product_category
|
|
3970
|
-
# The date when the seller's account with the marketplace was last logged in.
|
|
3971
|
-
attr_accessor :seller_last_login_at
|
|
3972
|
-
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
3973
|
-
attr_accessor :seller_rating
|
|
3974
|
-
# The date when the seller's account with the marketplace was created.
|
|
3975
|
-
attr_accessor :seller_registered_at
|
|
3976
|
-
# The date when the seller's account with the marketplace was last updated.
|
|
3977
|
-
attr_accessor :seller_updated_at
|
|
3978
|
-
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
3979
|
-
attr_accessor :shipping_references
|
|
3980
|
-
# 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.
|
|
3981
|
-
attr_accessor :volume_of_transactions
|
|
3982
|
-
|
|
3983
|
-
def initialize(
|
|
3984
|
-
line_item_references: nil,
|
|
3985
|
-
marketplace_seller_address: nil,
|
|
3986
|
-
marketplace_seller_name: nil,
|
|
3987
|
-
marketplace_seller_reference: nil,
|
|
3988
|
-
number_of_transactions: nil,
|
|
3989
|
-
product_category: nil,
|
|
3990
|
-
seller_last_login_at: nil,
|
|
3991
|
-
seller_rating: nil,
|
|
3992
|
-
seller_registered_at: nil,
|
|
3993
|
-
seller_updated_at: nil,
|
|
3994
|
-
shipping_references: nil,
|
|
3995
|
-
volume_of_transactions: nil
|
|
3996
|
-
)
|
|
3997
|
-
@line_item_references = line_item_references
|
|
3998
|
-
@marketplace_seller_address = marketplace_seller_address
|
|
3999
|
-
@marketplace_seller_name = marketplace_seller_name
|
|
4000
|
-
@marketplace_seller_reference = marketplace_seller_reference
|
|
4001
|
-
@number_of_transactions = number_of_transactions
|
|
4002
|
-
@product_category = product_category
|
|
4003
|
-
@seller_last_login_at = seller_last_login_at
|
|
4004
|
-
@seller_rating = seller_rating
|
|
4005
|
-
@seller_registered_at = seller_registered_at
|
|
4006
|
-
@seller_updated_at = seller_updated_at
|
|
4007
|
-
@shipping_references = shipping_references
|
|
4008
|
-
@volume_of_transactions = volume_of_transactions
|
|
4009
|
-
end
|
|
4010
|
-
end
|
|
4011
|
-
|
|
4012
|
-
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4013
|
-
class Arrival < ::Stripe::RequestParams
|
|
4014
|
-
class Address < ::Stripe::RequestParams
|
|
4015
|
-
# The city or town.
|
|
4016
|
-
attr_accessor :city
|
|
4017
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4018
|
-
attr_accessor :country
|
|
4019
|
-
# The postal code formatted according to country.
|
|
4020
|
-
attr_accessor :postal_code
|
|
4021
|
-
# The state, county, province, or region formatted according to country.
|
|
4022
|
-
attr_accessor :region
|
|
4023
|
-
# Line 1 of the street address.
|
|
4024
|
-
attr_accessor :street_address
|
|
4025
|
-
# Line 2 of the street address.
|
|
4026
|
-
attr_accessor :street_address2
|
|
4027
|
-
|
|
4028
|
-
def initialize(
|
|
4029
|
-
city: nil,
|
|
4030
|
-
country: nil,
|
|
4031
|
-
postal_code: nil,
|
|
4032
|
-
region: nil,
|
|
4033
|
-
street_address: nil,
|
|
4034
|
-
street_address2: nil
|
|
4035
|
-
)
|
|
4036
|
-
@city = city
|
|
4037
|
-
@country = country
|
|
4038
|
-
@postal_code = postal_code
|
|
4039
|
-
@region = region
|
|
4040
|
-
@street_address = street_address
|
|
4041
|
-
@street_address2 = street_address2
|
|
4042
|
-
end
|
|
4043
|
-
end
|
|
4044
|
-
# Address of the arrival location.
|
|
4045
|
-
attr_accessor :address
|
|
4046
|
-
# Identifier name or reference for the arrival location.
|
|
4047
|
-
attr_accessor :arrival_location
|
|
4048
|
-
|
|
4049
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4050
|
-
@address = address
|
|
4051
|
-
@arrival_location = arrival_location
|
|
4052
|
-
end
|
|
4053
|
-
end
|
|
4054
|
-
|
|
4055
|
-
class Departure < ::Stripe::RequestParams
|
|
4056
|
-
class Address < ::Stripe::RequestParams
|
|
4057
|
-
# The city or town.
|
|
4058
|
-
attr_accessor :city
|
|
4059
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4060
|
-
attr_accessor :country
|
|
4061
|
-
# The postal code formatted according to country.
|
|
4062
|
-
attr_accessor :postal_code
|
|
4063
|
-
# The state, county, province, or region formatted according to country.
|
|
4064
|
-
attr_accessor :region
|
|
4065
|
-
# Line 1 of the street address.
|
|
4066
|
-
attr_accessor :street_address
|
|
4067
|
-
# Line 2 of the street address.
|
|
4068
|
-
attr_accessor :street_address2
|
|
4069
|
-
|
|
4070
|
-
def initialize(
|
|
4071
|
-
city: nil,
|
|
4072
|
-
country: nil,
|
|
4073
|
-
postal_code: nil,
|
|
4074
|
-
region: nil,
|
|
4075
|
-
street_address: nil,
|
|
4076
|
-
street_address2: nil
|
|
4077
|
-
)
|
|
4078
|
-
@city = city
|
|
4079
|
-
@country = country
|
|
4080
|
-
@postal_code = postal_code
|
|
4081
|
-
@region = region
|
|
4082
|
-
@street_address = street_address
|
|
4083
|
-
@street_address2 = street_address2
|
|
4084
|
-
end
|
|
4085
|
-
end
|
|
4086
|
-
# Address of the departure location.
|
|
4087
|
-
attr_accessor :address
|
|
4088
|
-
# Timestamp of departure.
|
|
4089
|
-
attr_accessor :departs_at
|
|
4090
|
-
# Identifier name or reference for the origin location.
|
|
4091
|
-
attr_accessor :departure_location
|
|
4092
|
-
|
|
4093
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4094
|
-
@address = address
|
|
4095
|
-
@departs_at = departs_at
|
|
4096
|
-
@departure_location = departure_location
|
|
4097
|
-
end
|
|
4098
|
-
end
|
|
4099
|
-
|
|
4100
|
-
class Insurance < ::Stripe::RequestParams
|
|
4101
|
-
# Insurance currency.
|
|
4102
|
-
attr_accessor :currency
|
|
4103
|
-
# Name of the company providing the insurance.
|
|
4104
|
-
attr_accessor :insurance_company_name
|
|
4105
|
-
# Type of insurance.
|
|
4106
|
-
attr_accessor :insurance_type
|
|
4107
|
-
# Price of insurance in cents.
|
|
4108
|
-
attr_accessor :price
|
|
4109
|
-
|
|
4110
|
-
def initialize(
|
|
4111
|
-
currency: nil,
|
|
4112
|
-
insurance_company_name: nil,
|
|
4113
|
-
insurance_type: nil,
|
|
4114
|
-
price: nil
|
|
4115
|
-
)
|
|
4116
|
-
@currency = currency
|
|
4117
|
-
@insurance_company_name = insurance_company_name
|
|
4118
|
-
@insurance_type = insurance_type
|
|
4119
|
-
@price = price
|
|
4120
|
-
end
|
|
4121
|
-
end
|
|
4122
|
-
|
|
4123
|
-
class Passenger < ::Stripe::RequestParams
|
|
4124
|
-
# The family name of the person.
|
|
4125
|
-
attr_accessor :family_name
|
|
4126
|
-
# The given name of the person.
|
|
4127
|
-
attr_accessor :given_name
|
|
4128
|
-
|
|
4129
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4130
|
-
@family_name = family_name
|
|
4131
|
-
@given_name = given_name
|
|
4132
|
-
end
|
|
4133
|
-
end
|
|
4134
|
-
# Name of associated or partner company for the service.
|
|
4135
|
-
attr_accessor :affiliate_name
|
|
4136
|
-
# Arrival details.
|
|
4137
|
-
attr_accessor :arrival
|
|
4138
|
-
# Name of transportation company.
|
|
4139
|
-
attr_accessor :carrier_name
|
|
4140
|
-
# Currency.
|
|
4141
|
-
attr_accessor :currency
|
|
4142
|
-
# Departure details.
|
|
4143
|
-
attr_accessor :departure
|
|
4144
|
-
# List of insurances for this reservation.
|
|
4145
|
-
attr_accessor :insurances
|
|
4146
|
-
# List of passengers that this reservation applies to.
|
|
4147
|
-
attr_accessor :passengers
|
|
4148
|
-
# Price in cents.
|
|
4149
|
-
attr_accessor :price
|
|
4150
|
-
# Ticket class.
|
|
4151
|
-
attr_accessor :ticket_class
|
|
4152
|
-
|
|
4153
|
-
def initialize(
|
|
4154
|
-
affiliate_name: nil,
|
|
4155
|
-
arrival: nil,
|
|
4156
|
-
carrier_name: nil,
|
|
4157
|
-
currency: nil,
|
|
4158
|
-
departure: nil,
|
|
4159
|
-
insurances: nil,
|
|
4160
|
-
passengers: nil,
|
|
4161
|
-
price: nil,
|
|
4162
|
-
ticket_class: nil
|
|
4163
|
-
)
|
|
4164
|
-
@affiliate_name = affiliate_name
|
|
4165
|
-
@arrival = arrival
|
|
4166
|
-
@carrier_name = carrier_name
|
|
4167
|
-
@currency = currency
|
|
4168
|
-
@departure = departure
|
|
4169
|
-
@insurances = insurances
|
|
4170
|
-
@passengers = passengers
|
|
4171
|
-
@price = price
|
|
4172
|
-
@ticket_class = ticket_class
|
|
4173
|
-
end
|
|
4174
|
-
end
|
|
4175
|
-
|
|
4176
|
-
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4177
|
-
class Arrival < ::Stripe::RequestParams
|
|
4178
|
-
class Address < ::Stripe::RequestParams
|
|
4179
|
-
# The city or town.
|
|
4180
|
-
attr_accessor :city
|
|
4181
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4182
|
-
attr_accessor :country
|
|
4183
|
-
# The postal code formatted according to country.
|
|
4184
|
-
attr_accessor :postal_code
|
|
4185
|
-
# The state, county, province, or region formatted according to country.
|
|
4186
|
-
attr_accessor :region
|
|
4187
|
-
# Line 1 of the street address.
|
|
4188
|
-
attr_accessor :street_address
|
|
4189
|
-
# Line 2 of the street address.
|
|
4190
|
-
attr_accessor :street_address2
|
|
4191
|
-
|
|
4192
|
-
def initialize(
|
|
4193
|
-
city: nil,
|
|
4194
|
-
country: nil,
|
|
4195
|
-
postal_code: nil,
|
|
4196
|
-
region: nil,
|
|
4197
|
-
street_address: nil,
|
|
4198
|
-
street_address2: nil
|
|
4199
|
-
)
|
|
4200
|
-
@city = city
|
|
4201
|
-
@country = country
|
|
4202
|
-
@postal_code = postal_code
|
|
4203
|
-
@region = region
|
|
4204
|
-
@street_address = street_address
|
|
4205
|
-
@street_address2 = street_address2
|
|
4206
|
-
end
|
|
4207
|
-
end
|
|
4208
|
-
# Address of the arrival location.
|
|
4209
|
-
attr_accessor :address
|
|
4210
|
-
# Identifier name or reference for the arrival location.
|
|
4211
|
-
attr_accessor :arrival_location
|
|
4212
|
-
|
|
4213
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4214
|
-
@address = address
|
|
4215
|
-
@arrival_location = arrival_location
|
|
4216
|
-
end
|
|
4217
|
-
end
|
|
4218
|
-
|
|
4219
|
-
class Departure < ::Stripe::RequestParams
|
|
4220
|
-
class Address < ::Stripe::RequestParams
|
|
4221
|
-
# The city or town.
|
|
4222
|
-
attr_accessor :city
|
|
4223
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4224
|
-
attr_accessor :country
|
|
4225
|
-
# The postal code formatted according to country.
|
|
4226
|
-
attr_accessor :postal_code
|
|
4227
|
-
# The state, county, province, or region formatted according to country.
|
|
4228
|
-
attr_accessor :region
|
|
4229
|
-
# Line 1 of the street address.
|
|
4230
|
-
attr_accessor :street_address
|
|
4231
|
-
# Line 2 of the street address.
|
|
4232
|
-
attr_accessor :street_address2
|
|
4233
|
-
|
|
4234
|
-
def initialize(
|
|
4235
|
-
city: nil,
|
|
4236
|
-
country: nil,
|
|
4237
|
-
postal_code: nil,
|
|
4238
|
-
region: nil,
|
|
4239
|
-
street_address: nil,
|
|
4240
|
-
street_address2: nil
|
|
4241
|
-
)
|
|
4242
|
-
@city = city
|
|
4243
|
-
@country = country
|
|
4244
|
-
@postal_code = postal_code
|
|
4245
|
-
@region = region
|
|
4246
|
-
@street_address = street_address
|
|
4247
|
-
@street_address2 = street_address2
|
|
4248
|
-
end
|
|
4249
|
-
end
|
|
4250
|
-
# Address of the departure location.
|
|
4251
|
-
attr_accessor :address
|
|
4252
|
-
# Timestamp of departure.
|
|
4253
|
-
attr_accessor :departs_at
|
|
4254
|
-
# Identifier name or reference for the origin location.
|
|
4255
|
-
attr_accessor :departure_location
|
|
4256
|
-
|
|
4257
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4258
|
-
@address = address
|
|
4259
|
-
@departs_at = departs_at
|
|
4260
|
-
@departure_location = departure_location
|
|
4261
|
-
end
|
|
4262
|
-
end
|
|
4263
|
-
|
|
4264
|
-
class Insurance < ::Stripe::RequestParams
|
|
4265
|
-
# Insurance currency.
|
|
4266
|
-
attr_accessor :currency
|
|
4267
|
-
# Name of the company providing the insurance.
|
|
4268
|
-
attr_accessor :insurance_company_name
|
|
4269
|
-
# Type of insurance.
|
|
4270
|
-
attr_accessor :insurance_type
|
|
4271
|
-
# Price of insurance in cents.
|
|
4272
|
-
attr_accessor :price
|
|
4273
|
-
|
|
4274
|
-
def initialize(
|
|
4275
|
-
currency: nil,
|
|
4276
|
-
insurance_company_name: nil,
|
|
4277
|
-
insurance_type: nil,
|
|
4278
|
-
price: nil
|
|
4279
|
-
)
|
|
4280
|
-
@currency = currency
|
|
4281
|
-
@insurance_company_name = insurance_company_name
|
|
4282
|
-
@insurance_type = insurance_type
|
|
4283
|
-
@price = price
|
|
4284
|
-
end
|
|
4285
|
-
end
|
|
4286
|
-
|
|
4287
|
-
class Passenger < ::Stripe::RequestParams
|
|
4288
|
-
# The family name of the person.
|
|
4289
|
-
attr_accessor :family_name
|
|
4290
|
-
# The given name of the person.
|
|
4291
|
-
attr_accessor :given_name
|
|
4292
|
-
|
|
4293
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4294
|
-
@family_name = family_name
|
|
4295
|
-
@given_name = given_name
|
|
4296
|
-
end
|
|
4297
|
-
end
|
|
4298
|
-
# Name of associated or partner company for the service.
|
|
4299
|
-
attr_accessor :affiliate_name
|
|
4300
|
-
# Arrival details.
|
|
4301
|
-
attr_accessor :arrival
|
|
4302
|
-
# Name of transportation company.
|
|
4303
|
-
attr_accessor :carrier_name
|
|
4304
|
-
# Currency.
|
|
4305
|
-
attr_accessor :currency
|
|
4306
|
-
# Departure details.
|
|
4307
|
-
attr_accessor :departure
|
|
4308
|
-
# List of insurances for this reservation.
|
|
4309
|
-
attr_accessor :insurances
|
|
4310
|
-
# List of passengers that this reservation applies to.
|
|
4311
|
-
attr_accessor :passengers
|
|
4312
|
-
# Price in cents.
|
|
4313
|
-
attr_accessor :price
|
|
4314
|
-
# Ticket class.
|
|
4315
|
-
attr_accessor :ticket_class
|
|
4316
|
-
|
|
4317
|
-
def initialize(
|
|
4318
|
-
affiliate_name: nil,
|
|
4319
|
-
arrival: nil,
|
|
4320
|
-
carrier_name: nil,
|
|
4321
|
-
currency: nil,
|
|
4322
|
-
departure: nil,
|
|
4323
|
-
insurances: nil,
|
|
4324
|
-
passengers: nil,
|
|
4325
|
-
price: nil,
|
|
4326
|
-
ticket_class: nil
|
|
4327
|
-
)
|
|
4328
|
-
@affiliate_name = affiliate_name
|
|
4329
|
-
@arrival = arrival
|
|
4330
|
-
@carrier_name = carrier_name
|
|
4331
|
-
@currency = currency
|
|
4332
|
-
@departure = departure
|
|
4333
|
-
@insurances = insurances
|
|
4334
|
-
@passengers = passengers
|
|
4335
|
-
@price = price
|
|
4336
|
-
@ticket_class = ticket_class
|
|
4337
|
-
end
|
|
4338
|
-
end
|
|
4339
|
-
|
|
4340
|
-
class Voucher < ::Stripe::RequestParams
|
|
4341
|
-
# Name of associated or partner company for this voucher.
|
|
4342
|
-
attr_accessor :affiliate_name
|
|
4343
|
-
# The voucher validity end time.
|
|
4344
|
-
attr_accessor :ends_at
|
|
4345
|
-
# The voucher validity start time.
|
|
4346
|
-
attr_accessor :starts_at
|
|
4347
|
-
# The issuer or provider of this voucher.
|
|
4348
|
-
attr_accessor :voucher_company
|
|
4349
|
-
# The name or reference to identify the voucher.
|
|
4350
|
-
attr_accessor :voucher_name
|
|
4351
|
-
# The type of this voucher.
|
|
4352
|
-
attr_accessor :voucher_type
|
|
4353
|
-
|
|
4354
|
-
def initialize(
|
|
4355
|
-
affiliate_name: nil,
|
|
4356
|
-
ends_at: nil,
|
|
4357
|
-
starts_at: nil,
|
|
4358
|
-
voucher_company: nil,
|
|
4359
|
-
voucher_name: nil,
|
|
4360
|
-
voucher_type: nil
|
|
4361
|
-
)
|
|
4362
|
-
@affiliate_name = affiliate_name
|
|
4363
|
-
@ends_at = ends_at
|
|
4364
|
-
@starts_at = starts_at
|
|
4365
|
-
@voucher_company = voucher_company
|
|
4366
|
-
@voucher_name = voucher_name
|
|
4367
|
-
@voucher_type = voucher_type
|
|
4368
|
-
end
|
|
4369
|
-
end
|
|
4370
|
-
# Supplementary bus reservation details.
|
|
4371
|
-
attr_accessor :bus_reservation_details
|
|
4372
|
-
# Supplementary event reservation details.
|
|
4373
|
-
attr_accessor :event_reservation_details
|
|
4374
|
-
# Supplementary ferry reservation details.
|
|
4375
|
-
attr_accessor :ferry_reservation_details
|
|
4376
|
-
# Supplementary insurance details.
|
|
4377
|
-
attr_accessor :insurances
|
|
4378
|
-
# Supplementary marketplace seller details.
|
|
4379
|
-
attr_accessor :marketplace_sellers
|
|
4380
|
-
# Supplementary round trip reservation details.
|
|
4381
|
-
attr_accessor :round_trip_reservation_details
|
|
4382
|
-
# Supplementary train reservation details.
|
|
4383
|
-
attr_accessor :train_reservation_details
|
|
4384
|
-
# Voucher details, such as a gift card or discount code.
|
|
4385
|
-
attr_accessor :vouchers
|
|
4386
|
-
|
|
4387
|
-
def initialize(
|
|
4388
|
-
bus_reservation_details: nil,
|
|
4389
|
-
event_reservation_details: nil,
|
|
4390
|
-
ferry_reservation_details: nil,
|
|
4391
|
-
insurances: nil,
|
|
4392
|
-
marketplace_sellers: nil,
|
|
4393
|
-
round_trip_reservation_details: nil,
|
|
4394
|
-
train_reservation_details: nil,
|
|
4395
|
-
vouchers: nil
|
|
4396
|
-
)
|
|
4397
|
-
@bus_reservation_details = bus_reservation_details
|
|
4398
|
-
@event_reservation_details = event_reservation_details
|
|
4399
|
-
@ferry_reservation_details = ferry_reservation_details
|
|
4400
|
-
@insurances = insurances
|
|
4401
|
-
@marketplace_sellers = marketplace_sellers
|
|
4402
|
-
@round_trip_reservation_details = round_trip_reservation_details
|
|
4403
|
-
@train_reservation_details = train_reservation_details
|
|
4404
|
-
@vouchers = vouchers
|
|
4405
|
-
end
|
|
4406
|
-
end
|
|
4407
1641
|
# Controls when the funds are captured from the customer's account.
|
|
4408
1642
|
#
|
|
4409
1643
|
# 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.
|
|
@@ -4426,23 +1660,19 @@ module Stripe
|
|
|
4426
1660
|
attr_accessor :setup_future_usage
|
|
4427
1661
|
# Subscription details if setting up or charging a subscription.
|
|
4428
1662
|
attr_accessor :subscriptions
|
|
4429
|
-
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4430
|
-
attr_accessor :supplementary_purchase_data
|
|
4431
1663
|
|
|
4432
1664
|
def initialize(
|
|
4433
1665
|
capture_method: nil,
|
|
4434
1666
|
on_demand: nil,
|
|
4435
1667
|
preferred_locale: nil,
|
|
4436
1668
|
setup_future_usage: nil,
|
|
4437
|
-
subscriptions: nil
|
|
4438
|
-
supplementary_purchase_data: nil
|
|
1669
|
+
subscriptions: nil
|
|
4439
1670
|
)
|
|
4440
1671
|
@capture_method = capture_method
|
|
4441
1672
|
@on_demand = on_demand
|
|
4442
1673
|
@preferred_locale = preferred_locale
|
|
4443
1674
|
@setup_future_usage = setup_future_usage
|
|
4444
1675
|
@subscriptions = subscriptions
|
|
4445
|
-
@supplementary_purchase_data = supplementary_purchase_data
|
|
4446
1676
|
end
|
|
4447
1677
|
end
|
|
4448
1678
|
|
|
@@ -4703,65 +1933,12 @@ module Stripe
|
|
|
4703
1933
|
end
|
|
4704
1934
|
|
|
4705
1935
|
class Paypal < ::Stripe::RequestParams
|
|
4706
|
-
class LineItem < ::Stripe::RequestParams
|
|
4707
|
-
class Tax < ::Stripe::RequestParams
|
|
4708
|
-
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4709
|
-
attr_accessor :amount
|
|
4710
|
-
# The tax behavior for the line item.
|
|
4711
|
-
attr_accessor :behavior
|
|
4712
|
-
|
|
4713
|
-
def initialize(amount: nil, behavior: nil)
|
|
4714
|
-
@amount = amount
|
|
4715
|
-
@behavior = behavior
|
|
4716
|
-
end
|
|
4717
|
-
end
|
|
4718
|
-
# Type of the line item.
|
|
4719
|
-
attr_accessor :category
|
|
4720
|
-
# Description of the line item.
|
|
4721
|
-
attr_accessor :description
|
|
4722
|
-
# Descriptive name of the line item.
|
|
4723
|
-
attr_accessor :name
|
|
4724
|
-
# Quantity of the line item. Must be a positive number.
|
|
4725
|
-
attr_accessor :quantity
|
|
4726
|
-
# Client facing stock keeping unit, article number or similar.
|
|
4727
|
-
attr_accessor :sku
|
|
4728
|
-
# The Stripe account ID of the connected account that sells the item.
|
|
4729
|
-
attr_accessor :sold_by
|
|
4730
|
-
# The tax information for the line item.
|
|
4731
|
-
attr_accessor :tax
|
|
4732
|
-
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4733
|
-
attr_accessor :unit_amount
|
|
4734
|
-
|
|
4735
|
-
def initialize(
|
|
4736
|
-
category: nil,
|
|
4737
|
-
description: nil,
|
|
4738
|
-
name: nil,
|
|
4739
|
-
quantity: nil,
|
|
4740
|
-
sku: nil,
|
|
4741
|
-
sold_by: nil,
|
|
4742
|
-
tax: nil,
|
|
4743
|
-
unit_amount: nil
|
|
4744
|
-
)
|
|
4745
|
-
@category = category
|
|
4746
|
-
@description = description
|
|
4747
|
-
@name = name
|
|
4748
|
-
@quantity = quantity
|
|
4749
|
-
@sku = sku
|
|
4750
|
-
@sold_by = sold_by
|
|
4751
|
-
@tax = tax
|
|
4752
|
-
@unit_amount = unit_amount
|
|
4753
|
-
end
|
|
4754
|
-
end
|
|
4755
1936
|
# Controls when the funds will be captured from the customer's account.
|
|
4756
1937
|
attr_accessor :capture_method
|
|
4757
|
-
# The line items purchased by the customer.
|
|
4758
|
-
attr_accessor :line_items
|
|
4759
1938
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
4760
1939
|
attr_accessor :preferred_locale
|
|
4761
1940
|
# 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.
|
|
4762
1941
|
attr_accessor :reference
|
|
4763
|
-
# 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.
|
|
4764
|
-
attr_accessor :reference_id
|
|
4765
1942
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
4766
1943
|
attr_accessor :risk_correlation_id
|
|
4767
1944
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -4774,40 +1951,19 @@ module Stripe
|
|
|
4774
1951
|
#
|
|
4775
1952
|
# 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`.
|
|
4776
1953
|
attr_accessor :setup_future_usage
|
|
4777
|
-
# 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.
|
|
4778
|
-
attr_accessor :subsellers
|
|
4779
1954
|
|
|
4780
1955
|
def initialize(
|
|
4781
1956
|
capture_method: nil,
|
|
4782
|
-
line_items: nil,
|
|
4783
1957
|
preferred_locale: nil,
|
|
4784
1958
|
reference: nil,
|
|
4785
|
-
reference_id: nil,
|
|
4786
1959
|
risk_correlation_id: nil,
|
|
4787
|
-
setup_future_usage: nil
|
|
4788
|
-
subsellers: nil
|
|
1960
|
+
setup_future_usage: nil
|
|
4789
1961
|
)
|
|
4790
1962
|
@capture_method = capture_method
|
|
4791
|
-
@line_items = line_items
|
|
4792
1963
|
@preferred_locale = preferred_locale
|
|
4793
1964
|
@reference = reference
|
|
4794
|
-
@reference_id = reference_id
|
|
4795
1965
|
@risk_correlation_id = risk_correlation_id
|
|
4796
1966
|
@setup_future_usage = setup_future_usage
|
|
4797
|
-
@subsellers = subsellers
|
|
4798
|
-
end
|
|
4799
|
-
end
|
|
4800
|
-
|
|
4801
|
-
class Paypay < ::Stripe::RequestParams
|
|
4802
|
-
# Controls when the funds are captured from the customer's account.
|
|
4803
|
-
#
|
|
4804
|
-
# 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.
|
|
4805
|
-
#
|
|
4806
|
-
# 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.
|
|
4807
|
-
attr_accessor :capture_method
|
|
4808
|
-
|
|
4809
|
-
def initialize(capture_method: nil)
|
|
4810
|
-
@capture_method = capture_method
|
|
4811
1967
|
end
|
|
4812
1968
|
end
|
|
4813
1969
|
|
|
@@ -4949,25 +2105,6 @@ module Stripe
|
|
|
4949
2105
|
end
|
|
4950
2106
|
end
|
|
4951
2107
|
|
|
4952
|
-
class Qris < ::Stripe::RequestParams
|
|
4953
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4954
|
-
#
|
|
4955
|
-
# 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.
|
|
4956
|
-
#
|
|
4957
|
-
# 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.
|
|
4958
|
-
#
|
|
4959
|
-
# 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).
|
|
4960
|
-
#
|
|
4961
|
-
# 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`.
|
|
4962
|
-
attr_accessor :setup_future_usage
|
|
4963
|
-
|
|
4964
|
-
def initialize(setup_future_usage: nil)
|
|
4965
|
-
@setup_future_usage = setup_future_usage
|
|
4966
|
-
end
|
|
4967
|
-
end
|
|
4968
|
-
|
|
4969
|
-
class Rechnung < ::Stripe::RequestParams; end
|
|
4970
|
-
|
|
4971
2108
|
class RevolutPay < ::Stripe::RequestParams
|
|
4972
2109
|
# Controls when the funds are captured from the customer's account.
|
|
4973
2110
|
#
|
|
@@ -5016,6 +2153,19 @@ module Stripe
|
|
|
5016
2153
|
end
|
|
5017
2154
|
end
|
|
5018
2155
|
|
|
2156
|
+
class Scalapay < ::Stripe::RequestParams
|
|
2157
|
+
# Controls when the funds are captured from the customer's account.
|
|
2158
|
+
#
|
|
2159
|
+
# 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.
|
|
2160
|
+
#
|
|
2161
|
+
# 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.
|
|
2162
|
+
attr_accessor :capture_method
|
|
2163
|
+
|
|
2164
|
+
def initialize(capture_method: nil)
|
|
2165
|
+
@capture_method = capture_method
|
|
2166
|
+
end
|
|
2167
|
+
end
|
|
2168
|
+
|
|
5019
2169
|
class SepaDebit < ::Stripe::RequestParams
|
|
5020
2170
|
class MandateOptions < ::Stripe::RequestParams
|
|
5021
2171
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
|
@@ -5047,23 +2197,6 @@ module Stripe
|
|
|
5047
2197
|
end
|
|
5048
2198
|
end
|
|
5049
2199
|
|
|
5050
|
-
class Shopeepay < ::Stripe::RequestParams
|
|
5051
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5052
|
-
#
|
|
5053
|
-
# 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.
|
|
5054
|
-
#
|
|
5055
|
-
# 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.
|
|
5056
|
-
#
|
|
5057
|
-
# 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).
|
|
5058
|
-
#
|
|
5059
|
-
# 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`.
|
|
5060
|
-
attr_accessor :setup_future_usage
|
|
5061
|
-
|
|
5062
|
-
def initialize(setup_future_usage: nil)
|
|
5063
|
-
@setup_future_usage = setup_future_usage
|
|
5064
|
-
end
|
|
5065
|
-
end
|
|
5066
|
-
|
|
5067
2200
|
class Sofort < ::Stripe::RequestParams
|
|
5068
2201
|
# Language shown to the payer on redirect.
|
|
5069
2202
|
attr_accessor :preferred_language
|
|
@@ -5084,23 +2217,6 @@ module Stripe
|
|
|
5084
2217
|
end
|
|
5085
2218
|
end
|
|
5086
2219
|
|
|
5087
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
5088
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5089
|
-
#
|
|
5090
|
-
# 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.
|
|
5091
|
-
#
|
|
5092
|
-
# 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.
|
|
5093
|
-
#
|
|
5094
|
-
# 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).
|
|
5095
|
-
#
|
|
5096
|
-
# 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`.
|
|
5097
|
-
attr_accessor :setup_future_usage
|
|
5098
|
-
|
|
5099
|
-
def initialize(setup_future_usage: nil)
|
|
5100
|
-
@setup_future_usage = setup_future_usage
|
|
5101
|
-
end
|
|
5102
|
-
end
|
|
5103
|
-
|
|
5104
2220
|
class Swish < ::Stripe::RequestParams
|
|
5105
2221
|
# A reference for this payment to be displayed in the Swish app.
|
|
5106
2222
|
attr_accessor :reference
|
|
@@ -5172,27 +2288,13 @@ module Stripe
|
|
|
5172
2288
|
class Filters < ::Stripe::RequestParams
|
|
5173
2289
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
5174
2290
|
attr_accessor :account_subcategories
|
|
5175
|
-
# ID of the institution to use to filter for selectable accounts.
|
|
5176
|
-
attr_accessor :institution
|
|
5177
2291
|
|
|
5178
|
-
def initialize(account_subcategories: nil
|
|
2292
|
+
def initialize(account_subcategories: nil)
|
|
5179
2293
|
@account_subcategories = account_subcategories
|
|
5180
|
-
@institution = institution
|
|
5181
|
-
end
|
|
5182
|
-
end
|
|
5183
|
-
|
|
5184
|
-
class ManualEntry < ::Stripe::RequestParams
|
|
5185
|
-
# Settings for configuring manual entry of account details.
|
|
5186
|
-
attr_accessor :mode
|
|
5187
|
-
|
|
5188
|
-
def initialize(mode: nil)
|
|
5189
|
-
@mode = mode
|
|
5190
2294
|
end
|
|
5191
2295
|
end
|
|
5192
2296
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
5193
2297
|
attr_accessor :filters
|
|
5194
|
-
# Customize manual entry behavior
|
|
5195
|
-
attr_accessor :manual_entry
|
|
5196
2298
|
# 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`.
|
|
5197
2299
|
attr_accessor :permissions
|
|
5198
2300
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -5200,15 +2302,8 @@ module Stripe
|
|
|
5200
2302
|
# 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.
|
|
5201
2303
|
attr_accessor :return_url
|
|
5202
2304
|
|
|
5203
|
-
def initialize(
|
|
5204
|
-
filters: nil,
|
|
5205
|
-
manual_entry: nil,
|
|
5206
|
-
permissions: nil,
|
|
5207
|
-
prefetch: nil,
|
|
5208
|
-
return_url: nil
|
|
5209
|
-
)
|
|
2305
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
|
5210
2306
|
@filters = filters
|
|
5211
|
-
@manual_entry = manual_entry
|
|
5212
2307
|
@permissions = permissions
|
|
5213
2308
|
@prefetch = prefetch
|
|
5214
2309
|
@return_url = return_url
|
|
@@ -5333,6 +2428,8 @@ module Stripe
|
|
|
5333
2428
|
attr_accessor :bancontact
|
|
5334
2429
|
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
|
|
5335
2430
|
attr_accessor :billie
|
|
2431
|
+
# If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options.
|
|
2432
|
+
attr_accessor :bizum
|
|
5336
2433
|
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
|
|
5337
2434
|
attr_accessor :blik
|
|
5338
2435
|
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
|
|
@@ -5353,12 +2450,8 @@ module Stripe
|
|
|
5353
2450
|
attr_accessor :fpx
|
|
5354
2451
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
5355
2452
|
attr_accessor :giropay
|
|
5356
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5357
|
-
attr_accessor :gopay
|
|
5358
2453
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
5359
2454
|
attr_accessor :grabpay
|
|
5360
|
-
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5361
|
-
attr_accessor :id_bank_transfer
|
|
5362
2455
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
5363
2456
|
attr_accessor :ideal
|
|
5364
2457
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -5371,7 +2464,7 @@ module Stripe
|
|
|
5371
2464
|
attr_accessor :konbini
|
|
5372
2465
|
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
|
|
5373
2466
|
attr_accessor :kr_card
|
|
5374
|
-
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
|
2467
|
+
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK).
|
|
5375
2468
|
attr_accessor :link
|
|
5376
2469
|
# If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
|
|
5377
2470
|
attr_accessor :mb_way
|
|
@@ -5395,32 +2488,24 @@ module Stripe
|
|
|
5395
2488
|
attr_accessor :paynow
|
|
5396
2489
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
5397
2490
|
attr_accessor :paypal
|
|
5398
|
-
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
5399
|
-
attr_accessor :paypay
|
|
5400
2491
|
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
5401
2492
|
attr_accessor :payto
|
|
5402
2493
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
5403
2494
|
attr_accessor :pix
|
|
5404
2495
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
5405
2496
|
attr_accessor :promptpay
|
|
5406
|
-
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5407
|
-
attr_accessor :qris
|
|
5408
|
-
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5409
|
-
attr_accessor :rechnung
|
|
5410
2497
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
5411
2498
|
attr_accessor :revolut_pay
|
|
5412
2499
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
5413
2500
|
attr_accessor :samsung_pay
|
|
5414
2501
|
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
|
5415
2502
|
attr_accessor :satispay
|
|
2503
|
+
# If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options.
|
|
2504
|
+
attr_accessor :scalapay
|
|
5416
2505
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
5417
2506
|
attr_accessor :sepa_debit
|
|
5418
|
-
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5419
|
-
attr_accessor :shopeepay
|
|
5420
2507
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
5421
2508
|
attr_accessor :sofort
|
|
5422
|
-
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5423
|
-
attr_accessor :stripe_balance
|
|
5424
2509
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
5425
2510
|
attr_accessor :swish
|
|
5426
2511
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -5445,6 +2530,7 @@ module Stripe
|
|
|
5445
2530
|
bacs_debit: nil,
|
|
5446
2531
|
bancontact: nil,
|
|
5447
2532
|
billie: nil,
|
|
2533
|
+
bizum: nil,
|
|
5448
2534
|
blik: nil,
|
|
5449
2535
|
boleto: nil,
|
|
5450
2536
|
card: nil,
|
|
@@ -5455,9 +2541,7 @@ module Stripe
|
|
|
5455
2541
|
eps: nil,
|
|
5456
2542
|
fpx: nil,
|
|
5457
2543
|
giropay: nil,
|
|
5458
|
-
gopay: nil,
|
|
5459
2544
|
grabpay: nil,
|
|
5460
|
-
id_bank_transfer: nil,
|
|
5461
2545
|
ideal: nil,
|
|
5462
2546
|
interac_present: nil,
|
|
5463
2547
|
kakao_pay: nil,
|
|
@@ -5476,19 +2560,15 @@ module Stripe
|
|
|
5476
2560
|
payco: nil,
|
|
5477
2561
|
paynow: nil,
|
|
5478
2562
|
paypal: nil,
|
|
5479
|
-
paypay: nil,
|
|
5480
2563
|
payto: nil,
|
|
5481
2564
|
pix: nil,
|
|
5482
2565
|
promptpay: nil,
|
|
5483
|
-
qris: nil,
|
|
5484
|
-
rechnung: nil,
|
|
5485
2566
|
revolut_pay: nil,
|
|
5486
2567
|
samsung_pay: nil,
|
|
5487
2568
|
satispay: nil,
|
|
2569
|
+
scalapay: nil,
|
|
5488
2570
|
sepa_debit: nil,
|
|
5489
|
-
shopeepay: nil,
|
|
5490
2571
|
sofort: nil,
|
|
5491
|
-
stripe_balance: nil,
|
|
5492
2572
|
swish: nil,
|
|
5493
2573
|
twint: nil,
|
|
5494
2574
|
upi: nil,
|
|
@@ -5506,6 +2586,7 @@ module Stripe
|
|
|
5506
2586
|
@bacs_debit = bacs_debit
|
|
5507
2587
|
@bancontact = bancontact
|
|
5508
2588
|
@billie = billie
|
|
2589
|
+
@bizum = bizum
|
|
5509
2590
|
@blik = blik
|
|
5510
2591
|
@boleto = boleto
|
|
5511
2592
|
@card = card
|
|
@@ -5516,9 +2597,7 @@ module Stripe
|
|
|
5516
2597
|
@eps = eps
|
|
5517
2598
|
@fpx = fpx
|
|
5518
2599
|
@giropay = giropay
|
|
5519
|
-
@gopay = gopay
|
|
5520
2600
|
@grabpay = grabpay
|
|
5521
|
-
@id_bank_transfer = id_bank_transfer
|
|
5522
2601
|
@ideal = ideal
|
|
5523
2602
|
@interac_present = interac_present
|
|
5524
2603
|
@kakao_pay = kakao_pay
|
|
@@ -5537,19 +2616,15 @@ module Stripe
|
|
|
5537
2616
|
@payco = payco
|
|
5538
2617
|
@paynow = paynow
|
|
5539
2618
|
@paypal = paypal
|
|
5540
|
-
@paypay = paypay
|
|
5541
2619
|
@payto = payto
|
|
5542
2620
|
@pix = pix
|
|
5543
2621
|
@promptpay = promptpay
|
|
5544
|
-
@qris = qris
|
|
5545
|
-
@rechnung = rechnung
|
|
5546
2622
|
@revolut_pay = revolut_pay
|
|
5547
2623
|
@samsung_pay = samsung_pay
|
|
5548
2624
|
@satispay = satispay
|
|
2625
|
+
@scalapay = scalapay
|
|
5549
2626
|
@sepa_debit = sepa_debit
|
|
5550
|
-
@shopeepay = shopeepay
|
|
5551
2627
|
@sofort = sofort
|
|
5552
|
-
@stripe_balance = stripe_balance
|
|
5553
2628
|
@swish = swish
|
|
5554
2629
|
@twint = twint
|
|
5555
2630
|
@upi = upi
|
|
@@ -5611,11 +2686,31 @@ module Stripe
|
|
|
5611
2686
|
end
|
|
5612
2687
|
|
|
5613
2688
|
class TransferData < ::Stripe::RequestParams
|
|
2689
|
+
class PaymentData < ::Stripe::RequestParams
|
|
2690
|
+
# An arbitrary string attached to the destination payment. Often useful for displaying to users.
|
|
2691
|
+
attr_accessor :description
|
|
2692
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2693
|
+
attr_accessor :metadata
|
|
2694
|
+
|
|
2695
|
+
def initialize(description: nil, metadata: nil)
|
|
2696
|
+
@description = description
|
|
2697
|
+
@metadata = metadata
|
|
2698
|
+
end
|
|
2699
|
+
end
|
|
5614
2700
|
# The amount that will be transferred automatically when a charge succeeds.
|
|
5615
2701
|
attr_accessor :amount
|
|
2702
|
+
# An arbitrary string attached to the transfer. Often useful for displaying to users.
|
|
2703
|
+
attr_accessor :description
|
|
2704
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2705
|
+
attr_accessor :metadata
|
|
2706
|
+
# The data with which to populate the destination payment.
|
|
2707
|
+
attr_accessor :payment_data
|
|
5616
2708
|
|
|
5617
|
-
def initialize(amount: nil)
|
|
2709
|
+
def initialize(amount: nil, description: nil, metadata: nil, payment_data: nil)
|
|
5618
2710
|
@amount = amount
|
|
2711
|
+
@description = description
|
|
2712
|
+
@metadata = metadata
|
|
2713
|
+
@payment_data = payment_data
|
|
5619
2714
|
end
|
|
5620
2715
|
end
|
|
5621
2716
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
@@ -5646,17 +2741,13 @@ module Stripe
|
|
|
5646
2741
|
attr_accessor :excluded_payment_method_types
|
|
5647
2742
|
# Specifies which fields in the response should be expanded.
|
|
5648
2743
|
attr_accessor :expand
|
|
5649
|
-
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5650
|
-
attr_accessor :fx_quote
|
|
5651
2744
|
# Automations to be run during the PaymentIntent lifecycle
|
|
5652
2745
|
attr_accessor :hooks
|
|
5653
|
-
# This hash contains details about the Mandate to create.
|
|
5654
|
-
attr_accessor :mandate_data
|
|
5655
2746
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
5656
2747
|
attr_accessor :metadata
|
|
5657
2748
|
# Provides industry-specific information about the charge.
|
|
5658
2749
|
attr_accessor :payment_details
|
|
5659
|
-
#
|
|
2750
|
+
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
|
|
5660
2751
|
attr_accessor :payment_method
|
|
5661
2752
|
# The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
|
|
5662
2753
|
attr_accessor :payment_method_configuration
|
|
@@ -5704,9 +2795,7 @@ module Stripe
|
|
|
5704
2795
|
description: nil,
|
|
5705
2796
|
excluded_payment_method_types: nil,
|
|
5706
2797
|
expand: nil,
|
|
5707
|
-
fx_quote: nil,
|
|
5708
2798
|
hooks: nil,
|
|
5709
|
-
mandate_data: nil,
|
|
5710
2799
|
metadata: nil,
|
|
5711
2800
|
payment_details: nil,
|
|
5712
2801
|
payment_method: nil,
|
|
@@ -5732,9 +2821,7 @@ module Stripe
|
|
|
5732
2821
|
@description = description
|
|
5733
2822
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
5734
2823
|
@expand = expand
|
|
5735
|
-
@fx_quote = fx_quote
|
|
5736
2824
|
@hooks = hooks
|
|
5737
|
-
@mandate_data = mandate_data
|
|
5738
2825
|
@metadata = metadata
|
|
5739
2826
|
@payment_details = payment_details
|
|
5740
2827
|
@payment_method = payment_method
|