stripe 20.2.0.pre.beta.1 → 21.1.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_operations/request.rb +18 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +55 -38
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/errors.rb +0 -6
- data/lib/stripe/event_types.rb +20 -193
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/{v2_data_reporting_query_run_failed_event.rb → v2_core_claimable_sandbox_claimed_event.rb} +7 -7
- data/lib/stripe/events/{v2_money_management_outbound_transfer_created_event.rb → v2_core_claimable_sandbox_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_approval_request_rejected_event.rb → v2_core_claimable_sandbox_expired_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_validation_failed_event.rb → v2_core_claimable_sandbox_expiring_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_approval_request_approved_event.rb → v2_core_claimable_sandbox_updated_event.rb} +7 -7
- data/lib/stripe/object_types.rb +1 -53
- data/lib/stripe/params/account_create_params.rb +1 -299
- data/lib/stripe/params/account_session_create_params.rb +0 -191
- data/lib/stripe/params/account_update_params.rb +0 -261
- data/lib/stripe/params/balance_settings_update_params.rb +1 -9
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +11 -88
- data/lib/stripe/params/checkout/session_update_params.rb +1 -161
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/coupon_create_params.rb +2 -18
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -39
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -64
- data/lib/stripe/params/invoice_create_preview_params.rb +9 -772
- data/lib/stripe/params/invoice_item_create_params.rb +2 -34
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +2 -64
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/cardholder_update_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -981
- data/lib/stripe/params/payment_intent_confirm_params.rb +147 -2438
- data/lib/stripe/params/payment_intent_create_params.rb +148 -2439
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +149 -2471
- data/lib/stripe/params/payment_link_update_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
- data/lib/stripe/params/payment_method_create_params.rb +0 -88
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -1
- data/lib/stripe/params/quote_create_params.rb +4 -810
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +5 -818
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -122
- data/lib/stripe/params/setup_intent_create_params.rb +3 -122
- data/lib/stripe/params/setup_intent_update_params.rb +3 -122
- data/lib/stripe/params/subscription_create_params.rb +6 -133
- data/lib/stripe/params/subscription_item_create_params.rb +3 -50
- data/lib/stripe/params/subscription_item_update_params.rb +2 -33
- data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +5 -116
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -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/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -19
- 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 +143 -396
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
- data/lib/stripe/params/v2/core/account_update_params.rb +142 -380
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/{billing/cadence_retrieve_params.rb → core/claimable_sandbox_retrieve_params.rb} +3 -3
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -40
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -22
- data/lib/stripe/params.rb +7 -364
- data/lib/stripe/request_options.rb +37 -2
- data/lib/stripe/resources/account.rb +1 -176
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +0 -4
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +275 -232
- data/lib/stripe/resources/checkout/session.rb +7 -91
- data/lib/stripe/resources/confirmation_token.rb +2 -133
- data/lib/stripe/resources/coupon.rb +7 -29
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +0 -16
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +1 -19
- data/lib/stripe/resources/event.rb +3 -66
- data/lib/stripe/resources/financial_connections/account.rb +1 -45
- data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
- data/lib/stripe/resources/financial_connections/session.rb +0 -92
- data/lib/stripe/resources/invoice.rb +1 -106
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +1 -17
- data/lib/stripe/resources/issuing/cardholder.rb +0 -16
- data/lib/stripe/resources/issuing/dispute.rb +1 -16
- data/lib/stripe/resources/issuing/transaction.rb +0 -18
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +0 -12
- data/lib/stripe/resources/payment_attempt_record.rb +5 -178
- data/lib/stripe/resources/payment_intent.rb +17 -1022
- data/lib/stripe/resources/payment_method.rb +2 -153
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +5 -178
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +2 -0
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +38 -18
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +1 -8
- data/lib/stripe/resources/reserve/plan.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +2 -37
- data/lib/stripe/resources/setup_intent.rb +2 -39
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -73
- data/lib/stripe/resources/subscription_item.rb +1 -22
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- 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/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +37 -11
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -32
- data/lib/stripe/resources/treasury/received_credit.rb +1 -31
- data/lib/stripe/resources/treasury/received_debit.rb +1 -33
- data/lib/stripe/resources/v2/core/account.rb +293 -850
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +19 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +32 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -91
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -26
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -4
- data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -50
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -63
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +1 -31
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -50
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -2
- data/lib/stripe/resources.rb +19 -341
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/apps/install_service.rb +2 -2
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/event_service.rb +1 -1
- 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 -11
- 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 +0 -37
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -45
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- 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_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +2 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -27
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +0 -13
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2_services.rb +1 -7
- data/lib/stripe/services.rb +2 -181
- data/lib/stripe/stripe_client.rb +7 -4
- data/lib/stripe/stripe_configuration.rb +10 -5
- data/lib/stripe/stripe_event_notification_handler.rb +16 -206
- data/lib/stripe/stripe_object.rb +82 -10
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
- data/rbi/stripe.rbi +63009 -123066
- metadata +16 -332
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_succeeded_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_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_created_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_outbound_transfer_canceled_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_under_review_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_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_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/events/v2_signals_account_evaluation_complete_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +0 -44
- 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/payment_plan_create_params.rb +0 -128
- data/lib/stripe/params/payment_plan_list_params.rb +0 -25
- data/lib/stripe/params/payment_plan_retrieve_params.rb +0 -13
- data/lib/stripe/params/payment_plan_update_params.rb +0 -105
- 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/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/radar/billing_evaluation_create_params.rb +0 -231
- 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_list_params.rb +0 -37
- 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 -71
- 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/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_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/approval_request_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
- 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 -53
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/data/query_run_create_params.rb +0 -50
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_list_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/data/report_run_create_params.rb +0 -48
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +0 -23
- 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/data/schema_list_params.rb +0 -26
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +0 -10
- 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/iam/activity_log_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -30
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -35
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -113
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- 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 -112
- 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_disable_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/test_helpers/financial_address_generate_microdeposits_params.rb +0 -12
- 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/signals/account_activity_create_params.rb +0 -200
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -192
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
- data/lib/stripe/params/v2/signals/account_signal_retrieve_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 -144
- 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/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -149
- 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/payment_plan.rb +0 -213
- 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/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1241
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -968
- data/lib/stripe/resources/radar/billing_evaluation.rb +0 -281
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
- data/lib/stripe/resources/tax/form.rb +0 -264
- 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/approval_request.rb +0 -395
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -536
- data/lib/stripe/resources/v2/data/query_run.rb +0 -255
- data/lib/stripe/resources/v2/data/report.rb +0 -104
- data/lib/stripe/resources/v2/data/report_run.rb +0 -246
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/data/schema.rb +0 -121
- 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/iam/activity_log.rb +0 -368
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +0 -33
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -255
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -260
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
- 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/resources/v2/signals/account_activity.rb +0 -252
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -249
- data/lib/stripe/resources/v2/signals/account_signal.rb +0 -184
- 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/payment_plan_service.rb +0 -50
- 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/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/radar/billing_evaluation_service.rb +0 -19
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -30
- 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/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/approval_request_service.rb +0 -58
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/data/query_run_service.rb +0 -34
- data/lib/stripe/services/v2/data/report_run_service.rb +0 -36
- data/lib/stripe/services/v2/data/report_service.rb +0 -34
- 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/data/schema_service.rb +0 -32
- data/lib/stripe/services/v2/data_service.rb +0 -19
- 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 -32
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -61
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- 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/signals/account_activity_service.rb +0 -43
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
- data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
- data/lib/stripe/services/v2/signals_service.rb +0 -17
|
@@ -145,18 +145,6 @@ module Stripe
|
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
class Surcharge < ::Stripe::RequestParams
|
|
149
|
-
# Portion of the amount that corresponds to a surcharge.
|
|
150
|
-
attr_accessor :amount
|
|
151
|
-
# Indicate whether to enforce validations on the surcharge amount.
|
|
152
|
-
attr_accessor :enforce_validation
|
|
153
|
-
|
|
154
|
-
def initialize(amount: nil, enforce_validation: nil)
|
|
155
|
-
@amount = amount
|
|
156
|
-
@enforce_validation = enforce_validation
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
148
|
class Tax < ::Stripe::RequestParams
|
|
161
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.
|
|
162
150
|
#
|
|
@@ -181,8 +169,6 @@ module Stripe
|
|
|
181
169
|
attr_accessor :line_items
|
|
182
170
|
# Contains information about the shipping portion of the amount.
|
|
183
171
|
attr_accessor :shipping
|
|
184
|
-
# Contains information about the surcharge portion of the amount.
|
|
185
|
-
attr_accessor :surcharge
|
|
186
172
|
# Contains information about the tax portion of the amount.
|
|
187
173
|
attr_accessor :tax
|
|
188
174
|
|
|
@@ -191,14 +177,12 @@ module Stripe
|
|
|
191
177
|
enforce_arithmetic_validation: nil,
|
|
192
178
|
line_items: nil,
|
|
193
179
|
shipping: nil,
|
|
194
|
-
surcharge: nil,
|
|
195
180
|
tax: nil
|
|
196
181
|
)
|
|
197
182
|
@discount_amount = discount_amount
|
|
198
183
|
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
199
184
|
@line_items = line_items
|
|
200
185
|
@shipping = shipping
|
|
201
|
-
@surcharge = surcharge
|
|
202
186
|
@tax = tax
|
|
203
187
|
end
|
|
204
188
|
end
|
|
@@ -228,264 +212,7 @@ module Stripe
|
|
|
228
212
|
end
|
|
229
213
|
end
|
|
230
214
|
|
|
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
215
|
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
216
|
class CarRentalDatum < ::Stripe::RequestParams
|
|
490
217
|
class Affiliate < ::Stripe::RequestParams
|
|
491
218
|
# Affiliate partner code.
|
|
@@ -693,817 +420,154 @@ module Stripe
|
|
|
693
420
|
end
|
|
694
421
|
end
|
|
695
422
|
|
|
696
|
-
class Tax < ::Stripe::RequestParams
|
|
697
|
-
class TaxItem < ::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 :tax_items
|
|
715
|
-
|
|
716
|
-
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
717
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
718
|
-
@tax_items = tax_items
|
|
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 TaxItem < ::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 :tax_items
|
|
1265
|
-
|
|
1266
|
-
def initialize(tax_items: nil)
|
|
1267
|
-
@tax_items = tax_items
|
|
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
|
|
423
|
+
class Tax < ::Stripe::RequestParams
|
|
424
|
+
class TaxItem < ::Stripe::RequestParams
|
|
425
|
+
# Tax amount.
|
|
426
|
+
attr_accessor :amount
|
|
427
|
+
# Tax rate applied.
|
|
428
|
+
attr_accessor :rate
|
|
429
|
+
# Type of tax applied.
|
|
430
|
+
attr_accessor :type
|
|
431
|
+
|
|
432
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
433
|
+
@amount = amount
|
|
434
|
+
@rate = rate
|
|
435
|
+
@type = type
|
|
436
|
+
end
|
|
437
|
+
end
|
|
438
|
+
# Indicates if the transaction is tax exempt.
|
|
439
|
+
attr_accessor :tax_exempt_indicator
|
|
440
|
+
# Array of tax details.
|
|
441
|
+
attr_accessor :tax_items
|
|
442
|
+
|
|
443
|
+
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
444
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
445
|
+
@tax_items = tax_items
|
|
1399
446
|
end
|
|
1400
447
|
end
|
|
1401
|
-
#
|
|
1402
|
-
attr_accessor :
|
|
1403
|
-
#
|
|
1404
|
-
attr_accessor :
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
448
|
+
# Total amount in cents.
|
|
449
|
+
attr_accessor :amount
|
|
450
|
+
# Currency of the amount.
|
|
451
|
+
attr_accessor :currency
|
|
452
|
+
# Discount details for the rental.
|
|
453
|
+
attr_accessor :discounts
|
|
454
|
+
# Additional charges for the rental.
|
|
455
|
+
attr_accessor :extra_charges
|
|
456
|
+
# Rate per unit for the rental.
|
|
457
|
+
attr_accessor :rate_per_unit
|
|
458
|
+
# Unit of measurement for the rate.
|
|
459
|
+
attr_accessor :rate_unit
|
|
460
|
+
# Tax breakdown for the rental.
|
|
461
|
+
attr_accessor :tax
|
|
462
|
+
|
|
463
|
+
def initialize(
|
|
464
|
+
amount: nil,
|
|
465
|
+
currency: nil,
|
|
466
|
+
discounts: nil,
|
|
467
|
+
extra_charges: nil,
|
|
468
|
+
rate_per_unit: nil,
|
|
469
|
+
rate_unit: nil,
|
|
470
|
+
tax: nil
|
|
471
|
+
)
|
|
472
|
+
@amount = amount
|
|
473
|
+
@currency = currency
|
|
474
|
+
@discounts = discounts
|
|
475
|
+
@extra_charges = extra_charges
|
|
476
|
+
@rate_per_unit = rate_per_unit
|
|
477
|
+
@rate_unit = rate_unit
|
|
478
|
+
@tax = tax
|
|
1409
479
|
end
|
|
1410
480
|
end
|
|
1411
481
|
|
|
1412
|
-
class
|
|
1413
|
-
#
|
|
1414
|
-
attr_accessor :
|
|
482
|
+
class Vehicle < ::Stripe::RequestParams
|
|
483
|
+
# Make of the rental vehicle.
|
|
484
|
+
attr_accessor :make
|
|
485
|
+
# Model of the rental vehicle.
|
|
486
|
+
attr_accessor :model
|
|
487
|
+
# Odometer reading at the time of rental.
|
|
488
|
+
attr_accessor :odometer
|
|
489
|
+
# Type of the rental vehicle.
|
|
490
|
+
attr_accessor :type
|
|
491
|
+
# Class of the rental vehicle.
|
|
492
|
+
attr_accessor :vehicle_class
|
|
493
|
+
# Vehicle identification number (VIN).
|
|
494
|
+
attr_accessor :vehicle_identification_number
|
|
1415
495
|
|
|
1416
|
-
def initialize(
|
|
1417
|
-
|
|
496
|
+
def initialize(
|
|
497
|
+
make: nil,
|
|
498
|
+
model: nil,
|
|
499
|
+
odometer: nil,
|
|
500
|
+
type: nil,
|
|
501
|
+
vehicle_class: nil,
|
|
502
|
+
vehicle_identification_number: nil
|
|
503
|
+
)
|
|
504
|
+
@make = make
|
|
505
|
+
@model = model
|
|
506
|
+
@odometer = odometer
|
|
507
|
+
@type = type
|
|
508
|
+
@vehicle_class = vehicle_class
|
|
509
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
1418
510
|
end
|
|
1419
511
|
end
|
|
1420
|
-
#
|
|
1421
|
-
attr_accessor :address
|
|
1422
|
-
# The number of adults on the booking
|
|
1423
|
-
attr_accessor :adults
|
|
1424
|
-
# Affiliate details for this purchase.
|
|
512
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
1425
513
|
attr_accessor :affiliate
|
|
1426
|
-
#
|
|
514
|
+
# Booking confirmation number for the car rental.
|
|
1427
515
|
attr_accessor :booking_number
|
|
1428
|
-
#
|
|
1429
|
-
attr_accessor :
|
|
1430
|
-
#
|
|
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.
|
|
516
|
+
# Name of the car rental company.
|
|
517
|
+
attr_accessor :carrier_name
|
|
518
|
+
# Customer service phone number for the car rental company.
|
|
1435
519
|
attr_accessor :customer_service_phone_number
|
|
1436
|
-
#
|
|
1437
|
-
attr_accessor :
|
|
1438
|
-
#
|
|
1439
|
-
attr_accessor :
|
|
1440
|
-
# List of
|
|
1441
|
-
attr_accessor :
|
|
1442
|
-
#
|
|
1443
|
-
attr_accessor :
|
|
1444
|
-
#
|
|
1445
|
-
attr_accessor :
|
|
1446
|
-
# Indicates if the customer
|
|
1447
|
-
attr_accessor :
|
|
1448
|
-
#
|
|
1449
|
-
attr_accessor :
|
|
1450
|
-
#
|
|
1451
|
-
attr_accessor :
|
|
1452
|
-
#
|
|
1453
|
-
attr_accessor :
|
|
1454
|
-
#
|
|
1455
|
-
attr_accessor :
|
|
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
|
|
1461
|
-
attr_accessor :total_tax_amount
|
|
520
|
+
# Number of days the car is being rented.
|
|
521
|
+
attr_accessor :days_rented
|
|
522
|
+
# Distance details for the rental.
|
|
523
|
+
attr_accessor :distance
|
|
524
|
+
# List of drivers for the rental.
|
|
525
|
+
attr_accessor :drivers
|
|
526
|
+
# Drop-off location details.
|
|
527
|
+
attr_accessor :drop_off
|
|
528
|
+
# Insurance details for the rental.
|
|
529
|
+
attr_accessor :insurances
|
|
530
|
+
# Indicates if the customer was a no-show.
|
|
531
|
+
attr_accessor :no_show_indicator
|
|
532
|
+
# Pickup location details.
|
|
533
|
+
attr_accessor :pickup
|
|
534
|
+
# Name of the person renting the vehicle.
|
|
535
|
+
attr_accessor :renter_name
|
|
536
|
+
# Total cost breakdown for the rental.
|
|
537
|
+
attr_accessor :total
|
|
538
|
+
# Vehicle details for the rental.
|
|
539
|
+
attr_accessor :vehicle
|
|
1462
540
|
|
|
1463
541
|
def initialize(
|
|
1464
|
-
address: nil,
|
|
1465
|
-
adults: nil,
|
|
1466
542
|
affiliate: nil,
|
|
1467
543
|
booking_number: nil,
|
|
1468
|
-
|
|
1469
|
-
checkin_at: nil,
|
|
1470
|
-
checkout_at: nil,
|
|
544
|
+
carrier_name: nil,
|
|
1471
545
|
customer_service_phone_number: nil,
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
room_nights: nil,
|
|
1483
|
-
total_room_tax_amount: nil,
|
|
1484
|
-
total_tax_amount: nil
|
|
546
|
+
days_rented: nil,
|
|
547
|
+
distance: nil,
|
|
548
|
+
drivers: nil,
|
|
549
|
+
drop_off: nil,
|
|
550
|
+
insurances: nil,
|
|
551
|
+
no_show_indicator: nil,
|
|
552
|
+
pickup: nil,
|
|
553
|
+
renter_name: nil,
|
|
554
|
+
total: nil,
|
|
555
|
+
vehicle: nil
|
|
1485
556
|
)
|
|
1486
|
-
@address = address
|
|
1487
|
-
@adults = adults
|
|
1488
557
|
@affiliate = affiliate
|
|
1489
558
|
@booking_number = booking_number
|
|
1490
|
-
@
|
|
1491
|
-
@checkin_at = checkin_at
|
|
1492
|
-
@checkout_at = checkout_at
|
|
559
|
+
@carrier_name = carrier_name
|
|
1493
560
|
@customer_service_phone_number = customer_service_phone_number
|
|
1494
|
-
@
|
|
1495
|
-
@
|
|
1496
|
-
@
|
|
1497
|
-
@
|
|
1498
|
-
@
|
|
1499
|
-
@
|
|
1500
|
-
@
|
|
1501
|
-
@
|
|
1502
|
-
@
|
|
1503
|
-
@
|
|
1504
|
-
@room_nights = room_nights
|
|
1505
|
-
@total_room_tax_amount = total_room_tax_amount
|
|
1506
|
-
@total_tax_amount = total_tax_amount
|
|
561
|
+
@days_rented = days_rented
|
|
562
|
+
@distance = distance
|
|
563
|
+
@drivers = drivers
|
|
564
|
+
@drop_off = drop_off
|
|
565
|
+
@insurances = insurances
|
|
566
|
+
@no_show_indicator = no_show_indicator
|
|
567
|
+
@pickup = pickup
|
|
568
|
+
@renter_name = renter_name
|
|
569
|
+
@total = total
|
|
570
|
+
@vehicle = vehicle
|
|
1507
571
|
end
|
|
1508
572
|
end
|
|
1509
573
|
|
|
@@ -1800,104 +864,29 @@ module Stripe
|
|
|
1800
864
|
@total = total
|
|
1801
865
|
end
|
|
1802
866
|
end
|
|
1803
|
-
|
|
1804
|
-
class Subscription < ::Stripe::RequestParams
|
|
1805
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1806
|
-
# The name of the affiliate that originated the purchase.
|
|
1807
|
-
attr_accessor :name
|
|
1808
|
-
|
|
1809
|
-
def initialize(name: nil)
|
|
1810
|
-
@name = name
|
|
1811
|
-
end
|
|
1812
|
-
end
|
|
1813
|
-
|
|
1814
|
-
class BillingInterval < ::Stripe::RequestParams
|
|
1815
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
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
|
|
1824
|
-
end
|
|
1825
|
-
# Affiliate details for this purchase.
|
|
1826
|
-
attr_accessor :affiliate
|
|
1827
|
-
# Info whether the subscription will be auto renewed upon expiry.
|
|
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
|
|
1837
|
-
|
|
1838
|
-
def initialize(
|
|
1839
|
-
affiliate: nil,
|
|
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
|
|
1853
|
-
end
|
|
1854
|
-
# Car rental details for this PaymentIntent.
|
|
1855
|
-
attr_accessor :car_rental
|
|
1856
867
|
# Car rental data for this PaymentIntent.
|
|
1857
868
|
attr_accessor :car_rental_data
|
|
1858
869
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1859
870
|
#
|
|
1860
871
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1861
872
|
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
873
|
# Lodging data for this PaymentIntent.
|
|
1871
874
|
attr_accessor :lodging_data
|
|
1872
875
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1873
876
|
#
|
|
1874
877
|
# 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
878
|
attr_accessor :order_reference
|
|
1876
|
-
# Subscription details for this PaymentIntent
|
|
1877
|
-
attr_accessor :subscription
|
|
1878
879
|
|
|
1879
880
|
def initialize(
|
|
1880
|
-
car_rental: nil,
|
|
1881
881
|
car_rental_data: nil,
|
|
1882
882
|
customer_reference: nil,
|
|
1883
|
-
event_details: nil,
|
|
1884
|
-
flight: nil,
|
|
1885
|
-
flight_data: nil,
|
|
1886
|
-
lodging: nil,
|
|
1887
883
|
lodging_data: nil,
|
|
1888
|
-
order_reference: nil
|
|
1889
|
-
subscription: nil
|
|
884
|
+
order_reference: nil
|
|
1890
885
|
)
|
|
1891
|
-
@car_rental = car_rental
|
|
1892
886
|
@car_rental_data = car_rental_data
|
|
1893
887
|
@customer_reference = customer_reference
|
|
1894
|
-
@event_details = event_details
|
|
1895
|
-
@flight = flight
|
|
1896
|
-
@flight_data = flight_data
|
|
1897
|
-
@lodging = lodging
|
|
1898
888
|
@lodging_data = lodging_data
|
|
1899
889
|
@order_reference = order_reference
|
|
1900
|
-
@subscription = subscription
|
|
1901
890
|
end
|
|
1902
891
|
end
|
|
1903
892
|
|
|
@@ -2039,18 +1028,8 @@ module Stripe
|
|
|
2039
1028
|
end
|
|
2040
1029
|
|
|
2041
1030
|
class Giropay < ::Stripe::RequestParams; end
|
|
2042
|
-
class Gopay < ::Stripe::RequestParams; end
|
|
2043
1031
|
class Grabpay < ::Stripe::RequestParams; end
|
|
2044
1032
|
|
|
2045
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
2046
|
-
# Bank where the account is held.
|
|
2047
|
-
attr_accessor :bank
|
|
2048
|
-
|
|
2049
|
-
def initialize(bank: nil)
|
|
2050
|
-
@bank = bank
|
|
2051
|
-
end
|
|
2052
|
-
end
|
|
2053
|
-
|
|
2054
1033
|
class Ideal < ::Stripe::RequestParams
|
|
2055
1034
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
2056
1035
|
attr_accessor :bank
|
|
@@ -2167,7 +1146,6 @@ module Stripe
|
|
|
2167
1146
|
|
|
2168
1147
|
class Pix < ::Stripe::RequestParams; end
|
|
2169
1148
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2170
|
-
class Qris < ::Stripe::RequestParams; end
|
|
2171
1149
|
|
|
2172
1150
|
class RadarOptions < ::Stripe::RequestParams
|
|
2173
1151
|
# 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.
|
|
@@ -2178,29 +1156,6 @@ module Stripe
|
|
|
2178
1156
|
end
|
|
2179
1157
|
end
|
|
2180
1158
|
|
|
2181
|
-
class Rechnung < ::Stripe::RequestParams
|
|
2182
|
-
class Dob < ::Stripe::RequestParams
|
|
2183
|
-
# The day of birth, between 1 and 31.
|
|
2184
|
-
attr_accessor :day
|
|
2185
|
-
# The month of birth, between 1 and 12.
|
|
2186
|
-
attr_accessor :month
|
|
2187
|
-
# The four-digit year of birth.
|
|
2188
|
-
attr_accessor :year
|
|
2189
|
-
|
|
2190
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
2191
|
-
@day = day
|
|
2192
|
-
@month = month
|
|
2193
|
-
@year = year
|
|
2194
|
-
end
|
|
2195
|
-
end
|
|
2196
|
-
# Customer's date of birth
|
|
2197
|
-
attr_accessor :dob
|
|
2198
|
-
|
|
2199
|
-
def initialize(dob: nil)
|
|
2200
|
-
@dob = dob
|
|
2201
|
-
end
|
|
2202
|
-
end
|
|
2203
|
-
|
|
2204
1159
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
2205
1160
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
2206
1161
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -2216,7 +1171,6 @@ module Stripe
|
|
|
2216
1171
|
end
|
|
2217
1172
|
|
|
2218
1173
|
class Sequra < ::Stripe::RequestParams; end
|
|
2219
|
-
class Shopeepay < ::Stripe::RequestParams; end
|
|
2220
1174
|
|
|
2221
1175
|
class Sofort < ::Stripe::RequestParams
|
|
2222
1176
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -2227,15 +1181,6 @@ module Stripe
|
|
|
2227
1181
|
end
|
|
2228
1182
|
end
|
|
2229
1183
|
|
|
2230
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
2231
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2232
|
-
attr_accessor :account
|
|
2233
|
-
|
|
2234
|
-
def initialize(account: nil)
|
|
2235
|
-
@account = account
|
|
2236
|
-
end
|
|
2237
|
-
end
|
|
2238
|
-
|
|
2239
1184
|
class Sunbit < ::Stripe::RequestParams; end
|
|
2240
1185
|
class Swish < ::Stripe::RequestParams; end
|
|
2241
1186
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -2267,25 +1212,12 @@ module Stripe
|
|
|
2267
1212
|
end
|
|
2268
1213
|
|
|
2269
1214
|
class UsBankAccount < ::Stripe::RequestParams
|
|
2270
|
-
class ExternalToken < ::Stripe::RequestParams
|
|
2271
|
-
# The Plaid processor token to use for this bank account.
|
|
2272
|
-
attr_accessor :plaid_processor_token
|
|
2273
|
-
# The type of external token.
|
|
2274
|
-
attr_accessor :type
|
|
2275
|
-
|
|
2276
|
-
def initialize(plaid_processor_token: nil, type: nil)
|
|
2277
|
-
@plaid_processor_token = plaid_processor_token
|
|
2278
|
-
@type = type
|
|
2279
|
-
end
|
|
2280
|
-
end
|
|
2281
1215
|
# Account holder type: individual or company.
|
|
2282
1216
|
attr_accessor :account_holder_type
|
|
2283
1217
|
# Account number of the bank account.
|
|
2284
1218
|
attr_accessor :account_number
|
|
2285
1219
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
2286
1220
|
attr_accessor :account_type
|
|
2287
|
-
# An external token used to create a payment method.
|
|
2288
|
-
attr_accessor :external_token
|
|
2289
1221
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
2290
1222
|
attr_accessor :financial_connections_account
|
|
2291
1223
|
# Routing number of the bank account.
|
|
@@ -2295,21 +1227,18 @@ module Stripe
|
|
|
2295
1227
|
account_holder_type: nil,
|
|
2296
1228
|
account_number: nil,
|
|
2297
1229
|
account_type: nil,
|
|
2298
|
-
external_token: nil,
|
|
2299
1230
|
financial_connections_account: nil,
|
|
2300
1231
|
routing_number: nil
|
|
2301
1232
|
)
|
|
2302
1233
|
@account_holder_type = account_holder_type
|
|
2303
1234
|
@account_number = account_number
|
|
2304
1235
|
@account_type = account_type
|
|
2305
|
-
@external_token = external_token
|
|
2306
1236
|
@financial_connections_account = financial_connections_account
|
|
2307
1237
|
@routing_number = routing_number
|
|
2308
1238
|
end
|
|
2309
1239
|
end
|
|
2310
1240
|
|
|
2311
1241
|
class WechatPay < ::Stripe::RequestParams; end
|
|
2312
|
-
class Wero < ::Stripe::RequestParams; end
|
|
2313
1242
|
class Zip < ::Stripe::RequestParams; end
|
|
2314
1243
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
2315
1244
|
attr_accessor :acss_debit
|
|
@@ -2353,12 +1282,8 @@ module Stripe
|
|
|
2353
1282
|
attr_accessor :fpx
|
|
2354
1283
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2355
1284
|
attr_accessor :giropay
|
|
2356
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2357
|
-
attr_accessor :gopay
|
|
2358
1285
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
2359
1286
|
attr_accessor :grabpay
|
|
2360
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2361
|
-
attr_accessor :id_bank_transfer
|
|
2362
1287
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
2363
1288
|
attr_accessor :ideal
|
|
2364
1289
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -2405,12 +1330,8 @@ module Stripe
|
|
|
2405
1330
|
attr_accessor :pix
|
|
2406
1331
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
2407
1332
|
attr_accessor :promptpay
|
|
2408
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2409
|
-
attr_accessor :qris
|
|
2410
1333
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2411
1334
|
attr_accessor :radar_options
|
|
2412
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2413
|
-
attr_accessor :rechnung
|
|
2414
1335
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2415
1336
|
attr_accessor :revolut_pay
|
|
2416
1337
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -2423,14 +1344,8 @@ module Stripe
|
|
|
2423
1344
|
attr_accessor :sepa_debit
|
|
2424
1345
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
2425
1346
|
attr_accessor :sequra
|
|
2426
|
-
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2427
|
-
attr_accessor :shared_payment_granted_token
|
|
2428
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2429
|
-
attr_accessor :shopeepay
|
|
2430
1347
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
2431
1348
|
attr_accessor :sofort
|
|
2432
|
-
# This hash contains details about the Stripe balance payment method.
|
|
2433
|
-
attr_accessor :stripe_balance
|
|
2434
1349
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
2435
1350
|
attr_accessor :sunbit
|
|
2436
1351
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -2445,8 +1360,6 @@ module Stripe
|
|
|
2445
1360
|
attr_accessor :us_bank_account
|
|
2446
1361
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
2447
1362
|
attr_accessor :wechat_pay
|
|
2448
|
-
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
2449
|
-
attr_accessor :wero
|
|
2450
1363
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
2451
1364
|
attr_accessor :zip
|
|
2452
1365
|
|
|
@@ -2472,9 +1385,7 @@ module Stripe
|
|
|
2472
1385
|
eps: nil,
|
|
2473
1386
|
fpx: nil,
|
|
2474
1387
|
giropay: nil,
|
|
2475
|
-
gopay: nil,
|
|
2476
1388
|
grabpay: nil,
|
|
2477
|
-
id_bank_transfer: nil,
|
|
2478
1389
|
ideal: nil,
|
|
2479
1390
|
interac_present: nil,
|
|
2480
1391
|
kakao_pay: nil,
|
|
@@ -2498,19 +1409,14 @@ module Stripe
|
|
|
2498
1409
|
payto: nil,
|
|
2499
1410
|
pix: nil,
|
|
2500
1411
|
promptpay: nil,
|
|
2501
|
-
qris: nil,
|
|
2502
1412
|
radar_options: nil,
|
|
2503
|
-
rechnung: nil,
|
|
2504
1413
|
revolut_pay: nil,
|
|
2505
1414
|
samsung_pay: nil,
|
|
2506
1415
|
satispay: nil,
|
|
2507
1416
|
scalapay: nil,
|
|
2508
1417
|
sepa_debit: nil,
|
|
2509
1418
|
sequra: nil,
|
|
2510
|
-
shared_payment_granted_token: nil,
|
|
2511
|
-
shopeepay: nil,
|
|
2512
1419
|
sofort: nil,
|
|
2513
|
-
stripe_balance: nil,
|
|
2514
1420
|
sunbit: nil,
|
|
2515
1421
|
swish: nil,
|
|
2516
1422
|
twint: nil,
|
|
@@ -2518,7 +1424,6 @@ module Stripe
|
|
|
2518
1424
|
upi: nil,
|
|
2519
1425
|
us_bank_account: nil,
|
|
2520
1426
|
wechat_pay: nil,
|
|
2521
|
-
wero: nil,
|
|
2522
1427
|
zip: nil
|
|
2523
1428
|
)
|
|
2524
1429
|
@acss_debit = acss_debit
|
|
@@ -2542,9 +1447,7 @@ module Stripe
|
|
|
2542
1447
|
@eps = eps
|
|
2543
1448
|
@fpx = fpx
|
|
2544
1449
|
@giropay = giropay
|
|
2545
|
-
@gopay = gopay
|
|
2546
1450
|
@grabpay = grabpay
|
|
2547
|
-
@id_bank_transfer = id_bank_transfer
|
|
2548
1451
|
@ideal = ideal
|
|
2549
1452
|
@interac_present = interac_present
|
|
2550
1453
|
@kakao_pay = kakao_pay
|
|
@@ -2568,19 +1471,14 @@ module Stripe
|
|
|
2568
1471
|
@payto = payto
|
|
2569
1472
|
@pix = pix
|
|
2570
1473
|
@promptpay = promptpay
|
|
2571
|
-
@qris = qris
|
|
2572
1474
|
@radar_options = radar_options
|
|
2573
|
-
@rechnung = rechnung
|
|
2574
1475
|
@revolut_pay = revolut_pay
|
|
2575
1476
|
@samsung_pay = samsung_pay
|
|
2576
1477
|
@satispay = satispay
|
|
2577
1478
|
@scalapay = scalapay
|
|
2578
1479
|
@sepa_debit = sepa_debit
|
|
2579
1480
|
@sequra = sequra
|
|
2580
|
-
@shared_payment_granted_token = shared_payment_granted_token
|
|
2581
|
-
@shopeepay = shopeepay
|
|
2582
1481
|
@sofort = sofort
|
|
2583
|
-
@stripe_balance = stripe_balance
|
|
2584
1482
|
@sunbit = sunbit
|
|
2585
1483
|
@swish = swish
|
|
2586
1484
|
@twint = twint
|
|
@@ -2588,7 +1486,6 @@ module Stripe
|
|
|
2588
1486
|
@upi = upi
|
|
2589
1487
|
@us_bank_account = us_bank_account
|
|
2590
1488
|
@wechat_pay = wechat_pay
|
|
2591
|
-
@wero = wero
|
|
2592
1489
|
@zip = zip
|
|
2593
1490
|
end
|
|
2594
1491
|
end
|
|
@@ -3012,62 +1909,20 @@ module Stripe
|
|
|
3012
1909
|
description: nil,
|
|
3013
1910
|
end_date: nil,
|
|
3014
1911
|
interval: nil,
|
|
3015
|
-
interval_count: nil,
|
|
3016
|
-
reference: nil,
|
|
3017
|
-
start_date: nil,
|
|
3018
|
-
supported_types: nil
|
|
3019
|
-
)
|
|
3020
|
-
@amount = amount
|
|
3021
|
-
@amount_type = amount_type
|
|
3022
|
-
@description = description
|
|
3023
|
-
@end_date = end_date
|
|
3024
|
-
@interval = interval
|
|
3025
|
-
@interval_count = interval_count
|
|
3026
|
-
@reference = reference
|
|
3027
|
-
@start_date = start_date
|
|
3028
|
-
@supported_types = supported_types
|
|
3029
|
-
end
|
|
3030
|
-
end
|
|
3031
|
-
|
|
3032
|
-
class StatementDetails < ::Stripe::RequestParams
|
|
3033
|
-
class Address < ::Stripe::RequestParams
|
|
3034
|
-
# City, district, suburb, town, or village.
|
|
3035
|
-
attr_accessor :city
|
|
3036
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
3037
|
-
attr_accessor :country
|
|
3038
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
3039
|
-
attr_accessor :line1
|
|
3040
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
3041
|
-
attr_accessor :line2
|
|
3042
|
-
# ZIP or postal code.
|
|
3043
|
-
attr_accessor :postal_code
|
|
3044
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
3045
|
-
attr_accessor :state
|
|
3046
|
-
|
|
3047
|
-
def initialize(
|
|
3048
|
-
city: nil,
|
|
3049
|
-
country: nil,
|
|
3050
|
-
line1: nil,
|
|
3051
|
-
line2: nil,
|
|
3052
|
-
postal_code: nil,
|
|
3053
|
-
state: nil
|
|
3054
|
-
)
|
|
3055
|
-
@city = city
|
|
3056
|
-
@country = country
|
|
3057
|
-
@line1 = line1
|
|
3058
|
-
@line2 = line2
|
|
3059
|
-
@postal_code = postal_code
|
|
3060
|
-
@state = state
|
|
3061
|
-
end
|
|
3062
|
-
end
|
|
3063
|
-
# Please pass in an address that is within your Stripe user account country
|
|
3064
|
-
attr_accessor :address
|
|
3065
|
-
# Phone number (e.g., a toll-free number that customers can call)
|
|
3066
|
-
attr_accessor :phone
|
|
3067
|
-
|
|
3068
|
-
def initialize(address: nil, phone: nil)
|
|
3069
|
-
@address = address
|
|
3070
|
-
@phone = phone
|
|
1912
|
+
interval_count: nil,
|
|
1913
|
+
reference: nil,
|
|
1914
|
+
start_date: nil,
|
|
1915
|
+
supported_types: nil
|
|
1916
|
+
)
|
|
1917
|
+
@amount = amount
|
|
1918
|
+
@amount_type = amount_type
|
|
1919
|
+
@description = description
|
|
1920
|
+
@end_date = end_date
|
|
1921
|
+
@interval = interval
|
|
1922
|
+
@interval_count = interval_count
|
|
1923
|
+
@reference = reference
|
|
1924
|
+
@start_date = start_date
|
|
1925
|
+
@supported_types = supported_types
|
|
3071
1926
|
end
|
|
3072
1927
|
end
|
|
3073
1928
|
|
|
@@ -3165,8 +2020,6 @@ module Stripe
|
|
|
3165
2020
|
attr_accessor :moto
|
|
3166
2021
|
# 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.
|
|
3167
2022
|
attr_accessor :network
|
|
3168
|
-
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3169
|
-
attr_accessor :request_decremental_authorization
|
|
3170
2023
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
3171
2024
|
attr_accessor :request_extended_authorization
|
|
3172
2025
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -3175,8 +2028,6 @@ module Stripe
|
|
|
3175
2028
|
attr_accessor :request_multicapture
|
|
3176
2029
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
3177
2030
|
attr_accessor :request_overcapture
|
|
3178
|
-
# Request partial authorization on this PaymentIntent.
|
|
3179
|
-
attr_accessor :request_partial_authorization
|
|
3180
2031
|
# 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.
|
|
3181
2032
|
attr_accessor :request_three_d_secure
|
|
3182
2033
|
# 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).
|
|
@@ -3197,8 +2048,6 @@ module Stripe
|
|
|
3197
2048
|
attr_accessor :statement_descriptor_suffix_kana
|
|
3198
2049
|
# 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.
|
|
3199
2050
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3200
|
-
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3201
|
-
attr_accessor :statement_details
|
|
3202
2051
|
# Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
|
|
3203
2052
|
#
|
|
3204
2053
|
# When making an off session payment with a previously saved card (that was saved with a SetupIntent or with a PaymentIntent with `setup_future_usage`), set this parameter to indicate the type of transaction.
|
|
@@ -3218,19 +2067,16 @@ module Stripe
|
|
|
3218
2067
|
mandate_options: nil,
|
|
3219
2068
|
moto: nil,
|
|
3220
2069
|
network: nil,
|
|
3221
|
-
request_decremental_authorization: nil,
|
|
3222
2070
|
request_extended_authorization: nil,
|
|
3223
2071
|
request_incremental_authorization: nil,
|
|
3224
2072
|
request_multicapture: nil,
|
|
3225
2073
|
request_overcapture: nil,
|
|
3226
|
-
request_partial_authorization: nil,
|
|
3227
2074
|
request_three_d_secure: nil,
|
|
3228
2075
|
require_cvc_recollection: nil,
|
|
3229
2076
|
setup_credential_usage: nil,
|
|
3230
2077
|
setup_future_usage: nil,
|
|
3231
2078
|
statement_descriptor_suffix_kana: nil,
|
|
3232
2079
|
statement_descriptor_suffix_kanji: nil,
|
|
3233
|
-
statement_details: nil,
|
|
3234
2080
|
stored_credential_usage: nil,
|
|
3235
2081
|
three_d_secure: nil
|
|
3236
2082
|
)
|
|
@@ -3240,19 +2086,16 @@ module Stripe
|
|
|
3240
2086
|
@mandate_options = mandate_options
|
|
3241
2087
|
@moto = moto
|
|
3242
2088
|
@network = network
|
|
3243
|
-
@request_decremental_authorization = request_decremental_authorization
|
|
3244
2089
|
@request_extended_authorization = request_extended_authorization
|
|
3245
2090
|
@request_incremental_authorization = request_incremental_authorization
|
|
3246
2091
|
@request_multicapture = request_multicapture
|
|
3247
2092
|
@request_overcapture = request_overcapture
|
|
3248
|
-
@request_partial_authorization = request_partial_authorization
|
|
3249
2093
|
@request_three_d_secure = request_three_d_secure
|
|
3250
2094
|
@require_cvc_recollection = require_cvc_recollection
|
|
3251
2095
|
@setup_credential_usage = setup_credential_usage
|
|
3252
2096
|
@setup_future_usage = setup_future_usage
|
|
3253
2097
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
3254
2098
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3255
|
-
@statement_details = statement_details
|
|
3256
2099
|
@stored_credential_usage = stored_credential_usage
|
|
3257
2100
|
@three_d_secure = three_d_secure
|
|
3258
2101
|
end
|
|
@@ -3432,23 +2275,6 @@ module Stripe
|
|
|
3432
2275
|
end
|
|
3433
2276
|
end
|
|
3434
2277
|
|
|
3435
|
-
class Gopay < ::Stripe::RequestParams
|
|
3436
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3437
|
-
#
|
|
3438
|
-
# 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.
|
|
3439
|
-
#
|
|
3440
|
-
# 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.
|
|
3441
|
-
#
|
|
3442
|
-
# 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).
|
|
3443
|
-
#
|
|
3444
|
-
# 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`.
|
|
3445
|
-
attr_accessor :setup_future_usage
|
|
3446
|
-
|
|
3447
|
-
def initialize(setup_future_usage: nil)
|
|
3448
|
-
@setup_future_usage = setup_future_usage
|
|
3449
|
-
end
|
|
3450
|
-
end
|
|
3451
|
-
|
|
3452
2278
|
class Grabpay < ::Stripe::RequestParams
|
|
3453
2279
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3454
2280
|
#
|
|
@@ -3466,29 +2292,6 @@ module Stripe
|
|
|
3466
2292
|
end
|
|
3467
2293
|
end
|
|
3468
2294
|
|
|
3469
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
3470
|
-
# 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.
|
|
3471
|
-
attr_accessor :expires_after
|
|
3472
|
-
# 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.
|
|
3473
|
-
attr_accessor :expires_at
|
|
3474
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3475
|
-
#
|
|
3476
|
-
# 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.
|
|
3477
|
-
#
|
|
3478
|
-
# 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.
|
|
3479
|
-
#
|
|
3480
|
-
# 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).
|
|
3481
|
-
#
|
|
3482
|
-
# 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`.
|
|
3483
|
-
attr_accessor :setup_future_usage
|
|
3484
|
-
|
|
3485
|
-
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3486
|
-
@expires_after = expires_after
|
|
3487
|
-
@expires_at = expires_at
|
|
3488
|
-
@setup_future_usage = setup_future_usage
|
|
3489
|
-
end
|
|
3490
|
-
end
|
|
3491
|
-
|
|
3492
2295
|
class Ideal < ::Stripe::RequestParams
|
|
3493
2296
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3494
2297
|
#
|
|
@@ -3595,939 +2398,6 @@ module Stripe
|
|
|
3595
2398
|
@reference = reference
|
|
3596
2399
|
end
|
|
3597
2400
|
end
|
|
3598
|
-
|
|
3599
|
-
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3600
|
-
class BusReservationDetail < ::Stripe::RequestParams
|
|
3601
|
-
class Arrival < ::Stripe::RequestParams
|
|
3602
|
-
class Address < ::Stripe::RequestParams
|
|
3603
|
-
# The city or town.
|
|
3604
|
-
attr_accessor :city
|
|
3605
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3606
|
-
attr_accessor :country
|
|
3607
|
-
# The postal code formatted according to country.
|
|
3608
|
-
attr_accessor :postal_code
|
|
3609
|
-
# The state, county, province, or region formatted according to country.
|
|
3610
|
-
attr_accessor :region
|
|
3611
|
-
# Line 1 of the street address.
|
|
3612
|
-
attr_accessor :street_address
|
|
3613
|
-
# Line 2 of the street address.
|
|
3614
|
-
attr_accessor :street_address2
|
|
3615
|
-
|
|
3616
|
-
def initialize(
|
|
3617
|
-
city: nil,
|
|
3618
|
-
country: nil,
|
|
3619
|
-
postal_code: nil,
|
|
3620
|
-
region: nil,
|
|
3621
|
-
street_address: nil,
|
|
3622
|
-
street_address2: nil
|
|
3623
|
-
)
|
|
3624
|
-
@city = city
|
|
3625
|
-
@country = country
|
|
3626
|
-
@postal_code = postal_code
|
|
3627
|
-
@region = region
|
|
3628
|
-
@street_address = street_address
|
|
3629
|
-
@street_address2 = street_address2
|
|
3630
|
-
end
|
|
3631
|
-
end
|
|
3632
|
-
# Address of the arrival location.
|
|
3633
|
-
attr_accessor :address
|
|
3634
|
-
# Identifier name or reference for the arrival location.
|
|
3635
|
-
attr_accessor :arrival_location
|
|
3636
|
-
|
|
3637
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3638
|
-
@address = address
|
|
3639
|
-
@arrival_location = arrival_location
|
|
3640
|
-
end
|
|
3641
|
-
end
|
|
3642
|
-
|
|
3643
|
-
class Departure < ::Stripe::RequestParams
|
|
3644
|
-
class Address < ::Stripe::RequestParams
|
|
3645
|
-
# The city or town.
|
|
3646
|
-
attr_accessor :city
|
|
3647
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3648
|
-
attr_accessor :country
|
|
3649
|
-
# The postal code formatted according to country.
|
|
3650
|
-
attr_accessor :postal_code
|
|
3651
|
-
# The state, county, province, or region formatted according to country.
|
|
3652
|
-
attr_accessor :region
|
|
3653
|
-
# Line 1 of the street address.
|
|
3654
|
-
attr_accessor :street_address
|
|
3655
|
-
# Line 2 of the street address.
|
|
3656
|
-
attr_accessor :street_address2
|
|
3657
|
-
|
|
3658
|
-
def initialize(
|
|
3659
|
-
city: nil,
|
|
3660
|
-
country: nil,
|
|
3661
|
-
postal_code: nil,
|
|
3662
|
-
region: nil,
|
|
3663
|
-
street_address: nil,
|
|
3664
|
-
street_address2: nil
|
|
3665
|
-
)
|
|
3666
|
-
@city = city
|
|
3667
|
-
@country = country
|
|
3668
|
-
@postal_code = postal_code
|
|
3669
|
-
@region = region
|
|
3670
|
-
@street_address = street_address
|
|
3671
|
-
@street_address2 = street_address2
|
|
3672
|
-
end
|
|
3673
|
-
end
|
|
3674
|
-
# Address of the departure location.
|
|
3675
|
-
attr_accessor :address
|
|
3676
|
-
# Timestamp of departure.
|
|
3677
|
-
attr_accessor :departs_at
|
|
3678
|
-
# Identifier name or reference for the origin location.
|
|
3679
|
-
attr_accessor :departure_location
|
|
3680
|
-
|
|
3681
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3682
|
-
@address = address
|
|
3683
|
-
@departs_at = departs_at
|
|
3684
|
-
@departure_location = departure_location
|
|
3685
|
-
end
|
|
3686
|
-
end
|
|
3687
|
-
|
|
3688
|
-
class Insurance < ::Stripe::RequestParams
|
|
3689
|
-
# Insurance currency.
|
|
3690
|
-
attr_accessor :currency
|
|
3691
|
-
# Name of the company providing the insurance.
|
|
3692
|
-
attr_accessor :insurance_company_name
|
|
3693
|
-
# Type of insurance.
|
|
3694
|
-
attr_accessor :insurance_type
|
|
3695
|
-
# Price of insurance in cents.
|
|
3696
|
-
attr_accessor :price
|
|
3697
|
-
|
|
3698
|
-
def initialize(
|
|
3699
|
-
currency: nil,
|
|
3700
|
-
insurance_company_name: nil,
|
|
3701
|
-
insurance_type: nil,
|
|
3702
|
-
price: nil
|
|
3703
|
-
)
|
|
3704
|
-
@currency = currency
|
|
3705
|
-
@insurance_company_name = insurance_company_name
|
|
3706
|
-
@insurance_type = insurance_type
|
|
3707
|
-
@price = price
|
|
3708
|
-
end
|
|
3709
|
-
end
|
|
3710
|
-
|
|
3711
|
-
class Passenger < ::Stripe::RequestParams
|
|
3712
|
-
# The family name of the person.
|
|
3713
|
-
attr_accessor :family_name
|
|
3714
|
-
# The given name of the person.
|
|
3715
|
-
attr_accessor :given_name
|
|
3716
|
-
|
|
3717
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3718
|
-
@family_name = family_name
|
|
3719
|
-
@given_name = given_name
|
|
3720
|
-
end
|
|
3721
|
-
end
|
|
3722
|
-
# Name of associated or partner company for the service.
|
|
3723
|
-
attr_accessor :affiliate_name
|
|
3724
|
-
# Arrival details.
|
|
3725
|
-
attr_accessor :arrival
|
|
3726
|
-
# Name of transportation company.
|
|
3727
|
-
attr_accessor :carrier_name
|
|
3728
|
-
# Currency.
|
|
3729
|
-
attr_accessor :currency
|
|
3730
|
-
# Departure details.
|
|
3731
|
-
attr_accessor :departure
|
|
3732
|
-
# List of insurances for this reservation.
|
|
3733
|
-
attr_accessor :insurances
|
|
3734
|
-
# List of passengers that this reservation applies to.
|
|
3735
|
-
attr_accessor :passengers
|
|
3736
|
-
# Price in cents.
|
|
3737
|
-
attr_accessor :price
|
|
3738
|
-
# Ticket class.
|
|
3739
|
-
attr_accessor :ticket_class
|
|
3740
|
-
|
|
3741
|
-
def initialize(
|
|
3742
|
-
affiliate_name: nil,
|
|
3743
|
-
arrival: nil,
|
|
3744
|
-
carrier_name: nil,
|
|
3745
|
-
currency: nil,
|
|
3746
|
-
departure: nil,
|
|
3747
|
-
insurances: nil,
|
|
3748
|
-
passengers: nil,
|
|
3749
|
-
price: nil,
|
|
3750
|
-
ticket_class: nil
|
|
3751
|
-
)
|
|
3752
|
-
@affiliate_name = affiliate_name
|
|
3753
|
-
@arrival = arrival
|
|
3754
|
-
@carrier_name = carrier_name
|
|
3755
|
-
@currency = currency
|
|
3756
|
-
@departure = departure
|
|
3757
|
-
@insurances = insurances
|
|
3758
|
-
@passengers = passengers
|
|
3759
|
-
@price = price
|
|
3760
|
-
@ticket_class = ticket_class
|
|
3761
|
-
end
|
|
3762
|
-
end
|
|
3763
|
-
|
|
3764
|
-
class EventReservationDetail < ::Stripe::RequestParams
|
|
3765
|
-
class Address < ::Stripe::RequestParams
|
|
3766
|
-
# The city or town.
|
|
3767
|
-
attr_accessor :city
|
|
3768
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3769
|
-
attr_accessor :country
|
|
3770
|
-
# The postal code formatted according to country.
|
|
3771
|
-
attr_accessor :postal_code
|
|
3772
|
-
# The state, county, province, or region formatted according to country.
|
|
3773
|
-
attr_accessor :region
|
|
3774
|
-
# Line 1 of the street address.
|
|
3775
|
-
attr_accessor :street_address
|
|
3776
|
-
# Line 2 of the street address.
|
|
3777
|
-
attr_accessor :street_address2
|
|
3778
|
-
|
|
3779
|
-
def initialize(
|
|
3780
|
-
city: nil,
|
|
3781
|
-
country: nil,
|
|
3782
|
-
postal_code: nil,
|
|
3783
|
-
region: nil,
|
|
3784
|
-
street_address: nil,
|
|
3785
|
-
street_address2: nil
|
|
3786
|
-
)
|
|
3787
|
-
@city = city
|
|
3788
|
-
@country = country
|
|
3789
|
-
@postal_code = postal_code
|
|
3790
|
-
@region = region
|
|
3791
|
-
@street_address = street_address
|
|
3792
|
-
@street_address2 = street_address2
|
|
3793
|
-
end
|
|
3794
|
-
end
|
|
3795
|
-
|
|
3796
|
-
class Insurance < ::Stripe::RequestParams
|
|
3797
|
-
# Insurance currency.
|
|
3798
|
-
attr_accessor :currency
|
|
3799
|
-
# Name of the company providing the insurance.
|
|
3800
|
-
attr_accessor :insurance_company_name
|
|
3801
|
-
# Type of insurance.
|
|
3802
|
-
attr_accessor :insurance_type
|
|
3803
|
-
# Price of insurance in cents.
|
|
3804
|
-
attr_accessor :price
|
|
3805
|
-
|
|
3806
|
-
def initialize(
|
|
3807
|
-
currency: nil,
|
|
3808
|
-
insurance_company_name: nil,
|
|
3809
|
-
insurance_type: nil,
|
|
3810
|
-
price: nil
|
|
3811
|
-
)
|
|
3812
|
-
@currency = currency
|
|
3813
|
-
@insurance_company_name = insurance_company_name
|
|
3814
|
-
@insurance_type = insurance_type
|
|
3815
|
-
@price = price
|
|
3816
|
-
end
|
|
3817
|
-
end
|
|
3818
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3819
|
-
attr_accessor :access_controlled_venue
|
|
3820
|
-
# Address of the event.
|
|
3821
|
-
attr_accessor :address
|
|
3822
|
-
# Name of associated or partner company for the service.
|
|
3823
|
-
attr_accessor :affiliate_name
|
|
3824
|
-
# End timestamp of the event.
|
|
3825
|
-
attr_accessor :ends_at
|
|
3826
|
-
# Company selling the ticket.
|
|
3827
|
-
attr_accessor :event_company_name
|
|
3828
|
-
# Name of the event.
|
|
3829
|
-
attr_accessor :event_name
|
|
3830
|
-
# Type of the event.
|
|
3831
|
-
attr_accessor :event_type
|
|
3832
|
-
# List of insurances for this event.
|
|
3833
|
-
attr_accessor :insurances
|
|
3834
|
-
# Start timestamp of the event.
|
|
3835
|
-
attr_accessor :starts_at
|
|
3836
|
-
# Name of the venue where the event takes place.
|
|
3837
|
-
attr_accessor :venue_name
|
|
3838
|
-
|
|
3839
|
-
def initialize(
|
|
3840
|
-
access_controlled_venue: nil,
|
|
3841
|
-
address: nil,
|
|
3842
|
-
affiliate_name: nil,
|
|
3843
|
-
ends_at: nil,
|
|
3844
|
-
event_company_name: nil,
|
|
3845
|
-
event_name: nil,
|
|
3846
|
-
event_type: nil,
|
|
3847
|
-
insurances: nil,
|
|
3848
|
-
starts_at: nil,
|
|
3849
|
-
venue_name: nil
|
|
3850
|
-
)
|
|
3851
|
-
@access_controlled_venue = access_controlled_venue
|
|
3852
|
-
@address = address
|
|
3853
|
-
@affiliate_name = affiliate_name
|
|
3854
|
-
@ends_at = ends_at
|
|
3855
|
-
@event_company_name = event_company_name
|
|
3856
|
-
@event_name = event_name
|
|
3857
|
-
@event_type = event_type
|
|
3858
|
-
@insurances = insurances
|
|
3859
|
-
@starts_at = starts_at
|
|
3860
|
-
@venue_name = venue_name
|
|
3861
|
-
end
|
|
3862
|
-
end
|
|
3863
|
-
|
|
3864
|
-
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3865
|
-
class Arrival < ::Stripe::RequestParams
|
|
3866
|
-
class Address < ::Stripe::RequestParams
|
|
3867
|
-
# The city or town.
|
|
3868
|
-
attr_accessor :city
|
|
3869
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3870
|
-
attr_accessor :country
|
|
3871
|
-
# The postal code formatted according to country.
|
|
3872
|
-
attr_accessor :postal_code
|
|
3873
|
-
# The state, county, province, or region formatted according to country.
|
|
3874
|
-
attr_accessor :region
|
|
3875
|
-
# Line 1 of the street address.
|
|
3876
|
-
attr_accessor :street_address
|
|
3877
|
-
# Line 2 of the street address.
|
|
3878
|
-
attr_accessor :street_address2
|
|
3879
|
-
|
|
3880
|
-
def initialize(
|
|
3881
|
-
city: nil,
|
|
3882
|
-
country: nil,
|
|
3883
|
-
postal_code: nil,
|
|
3884
|
-
region: nil,
|
|
3885
|
-
street_address: nil,
|
|
3886
|
-
street_address2: nil
|
|
3887
|
-
)
|
|
3888
|
-
@city = city
|
|
3889
|
-
@country = country
|
|
3890
|
-
@postal_code = postal_code
|
|
3891
|
-
@region = region
|
|
3892
|
-
@street_address = street_address
|
|
3893
|
-
@street_address2 = street_address2
|
|
3894
|
-
end
|
|
3895
|
-
end
|
|
3896
|
-
# Address of the arrival location.
|
|
3897
|
-
attr_accessor :address
|
|
3898
|
-
# Identifier name or reference for the arrival location.
|
|
3899
|
-
attr_accessor :arrival_location
|
|
3900
|
-
|
|
3901
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3902
|
-
@address = address
|
|
3903
|
-
@arrival_location = arrival_location
|
|
3904
|
-
end
|
|
3905
|
-
end
|
|
3906
|
-
|
|
3907
|
-
class Departure < ::Stripe::RequestParams
|
|
3908
|
-
class Address < ::Stripe::RequestParams
|
|
3909
|
-
# The city or town.
|
|
3910
|
-
attr_accessor :city
|
|
3911
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3912
|
-
attr_accessor :country
|
|
3913
|
-
# The postal code formatted according to country.
|
|
3914
|
-
attr_accessor :postal_code
|
|
3915
|
-
# The state, county, province, or region formatted according to country.
|
|
3916
|
-
attr_accessor :region
|
|
3917
|
-
# Line 1 of the street address.
|
|
3918
|
-
attr_accessor :street_address
|
|
3919
|
-
# Line 2 of the street address.
|
|
3920
|
-
attr_accessor :street_address2
|
|
3921
|
-
|
|
3922
|
-
def initialize(
|
|
3923
|
-
city: nil,
|
|
3924
|
-
country: nil,
|
|
3925
|
-
postal_code: nil,
|
|
3926
|
-
region: nil,
|
|
3927
|
-
street_address: nil,
|
|
3928
|
-
street_address2: nil
|
|
3929
|
-
)
|
|
3930
|
-
@city = city
|
|
3931
|
-
@country = country
|
|
3932
|
-
@postal_code = postal_code
|
|
3933
|
-
@region = region
|
|
3934
|
-
@street_address = street_address
|
|
3935
|
-
@street_address2 = street_address2
|
|
3936
|
-
end
|
|
3937
|
-
end
|
|
3938
|
-
# Address of the departure location.
|
|
3939
|
-
attr_accessor :address
|
|
3940
|
-
# Timestamp of departure.
|
|
3941
|
-
attr_accessor :departs_at
|
|
3942
|
-
# Identifier name or reference for the origin location.
|
|
3943
|
-
attr_accessor :departure_location
|
|
3944
|
-
|
|
3945
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3946
|
-
@address = address
|
|
3947
|
-
@departs_at = departs_at
|
|
3948
|
-
@departure_location = departure_location
|
|
3949
|
-
end
|
|
3950
|
-
end
|
|
3951
|
-
|
|
3952
|
-
class Insurance < ::Stripe::RequestParams
|
|
3953
|
-
# Insurance currency.
|
|
3954
|
-
attr_accessor :currency
|
|
3955
|
-
# Name of the company providing the insurance.
|
|
3956
|
-
attr_accessor :insurance_company_name
|
|
3957
|
-
# Type of insurance.
|
|
3958
|
-
attr_accessor :insurance_type
|
|
3959
|
-
# Price of insurance in cents.
|
|
3960
|
-
attr_accessor :price
|
|
3961
|
-
|
|
3962
|
-
def initialize(
|
|
3963
|
-
currency: nil,
|
|
3964
|
-
insurance_company_name: nil,
|
|
3965
|
-
insurance_type: nil,
|
|
3966
|
-
price: nil
|
|
3967
|
-
)
|
|
3968
|
-
@currency = currency
|
|
3969
|
-
@insurance_company_name = insurance_company_name
|
|
3970
|
-
@insurance_type = insurance_type
|
|
3971
|
-
@price = price
|
|
3972
|
-
end
|
|
3973
|
-
end
|
|
3974
|
-
|
|
3975
|
-
class Passenger < ::Stripe::RequestParams
|
|
3976
|
-
# The family name of the person.
|
|
3977
|
-
attr_accessor :family_name
|
|
3978
|
-
# The given name of the person.
|
|
3979
|
-
attr_accessor :given_name
|
|
3980
|
-
|
|
3981
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3982
|
-
@family_name = family_name
|
|
3983
|
-
@given_name = given_name
|
|
3984
|
-
end
|
|
3985
|
-
end
|
|
3986
|
-
# Name of associated or partner company for the service.
|
|
3987
|
-
attr_accessor :affiliate_name
|
|
3988
|
-
# Arrival details.
|
|
3989
|
-
attr_accessor :arrival
|
|
3990
|
-
# Name of transportation company.
|
|
3991
|
-
attr_accessor :carrier_name
|
|
3992
|
-
# Currency.
|
|
3993
|
-
attr_accessor :currency
|
|
3994
|
-
# Departure details.
|
|
3995
|
-
attr_accessor :departure
|
|
3996
|
-
# List of insurances for this reservation.
|
|
3997
|
-
attr_accessor :insurances
|
|
3998
|
-
# List of passengers that this reservation applies to.
|
|
3999
|
-
attr_accessor :passengers
|
|
4000
|
-
# Price in cents.
|
|
4001
|
-
attr_accessor :price
|
|
4002
|
-
# Ticket class.
|
|
4003
|
-
attr_accessor :ticket_class
|
|
4004
|
-
|
|
4005
|
-
def initialize(
|
|
4006
|
-
affiliate_name: nil,
|
|
4007
|
-
arrival: nil,
|
|
4008
|
-
carrier_name: nil,
|
|
4009
|
-
currency: nil,
|
|
4010
|
-
departure: nil,
|
|
4011
|
-
insurances: nil,
|
|
4012
|
-
passengers: nil,
|
|
4013
|
-
price: nil,
|
|
4014
|
-
ticket_class: nil
|
|
4015
|
-
)
|
|
4016
|
-
@affiliate_name = affiliate_name
|
|
4017
|
-
@arrival = arrival
|
|
4018
|
-
@carrier_name = carrier_name
|
|
4019
|
-
@currency = currency
|
|
4020
|
-
@departure = departure
|
|
4021
|
-
@insurances = insurances
|
|
4022
|
-
@passengers = passengers
|
|
4023
|
-
@price = price
|
|
4024
|
-
@ticket_class = ticket_class
|
|
4025
|
-
end
|
|
4026
|
-
end
|
|
4027
|
-
|
|
4028
|
-
class Insurance < ::Stripe::RequestParams
|
|
4029
|
-
# Insurance currency.
|
|
4030
|
-
attr_accessor :currency
|
|
4031
|
-
# Name of the company providing the insurance.
|
|
4032
|
-
attr_accessor :insurance_company_name
|
|
4033
|
-
# Type of insurance
|
|
4034
|
-
attr_accessor :insurance_type
|
|
4035
|
-
# Price of insurance in cents.
|
|
4036
|
-
attr_accessor :price
|
|
4037
|
-
|
|
4038
|
-
def initialize(
|
|
4039
|
-
currency: nil,
|
|
4040
|
-
insurance_company_name: nil,
|
|
4041
|
-
insurance_type: nil,
|
|
4042
|
-
price: nil
|
|
4043
|
-
)
|
|
4044
|
-
@currency = currency
|
|
4045
|
-
@insurance_company_name = insurance_company_name
|
|
4046
|
-
@insurance_type = insurance_type
|
|
4047
|
-
@price = price
|
|
4048
|
-
end
|
|
4049
|
-
end
|
|
4050
|
-
|
|
4051
|
-
class MarketplaceSeller < ::Stripe::RequestParams
|
|
4052
|
-
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
4053
|
-
# The city or town.
|
|
4054
|
-
attr_accessor :city
|
|
4055
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4056
|
-
attr_accessor :country
|
|
4057
|
-
# The postal code formatted according to country.
|
|
4058
|
-
attr_accessor :postal_code
|
|
4059
|
-
# The state, county, province, or region formatted according to country.
|
|
4060
|
-
attr_accessor :region
|
|
4061
|
-
# Line 1 of the street address.
|
|
4062
|
-
attr_accessor :street_address
|
|
4063
|
-
# Line 2 of the street address.
|
|
4064
|
-
attr_accessor :street_address2
|
|
4065
|
-
|
|
4066
|
-
def initialize(
|
|
4067
|
-
city: nil,
|
|
4068
|
-
country: nil,
|
|
4069
|
-
postal_code: nil,
|
|
4070
|
-
region: nil,
|
|
4071
|
-
street_address: nil,
|
|
4072
|
-
street_address2: nil
|
|
4073
|
-
)
|
|
4074
|
-
@city = city
|
|
4075
|
-
@country = country
|
|
4076
|
-
@postal_code = postal_code
|
|
4077
|
-
@region = region
|
|
4078
|
-
@street_address = street_address
|
|
4079
|
-
@street_address2 = street_address2
|
|
4080
|
-
end
|
|
4081
|
-
end
|
|
4082
|
-
# The references to line items for purchases with multiple associated sub-sellers.
|
|
4083
|
-
attr_accessor :line_item_references
|
|
4084
|
-
# The address of the selling or delivering merchant.
|
|
4085
|
-
attr_accessor :marketplace_seller_address
|
|
4086
|
-
# The name of the marketplace seller.
|
|
4087
|
-
attr_accessor :marketplace_seller_name
|
|
4088
|
-
# The unique identifier for the marketplace seller.
|
|
4089
|
-
attr_accessor :marketplace_seller_reference
|
|
4090
|
-
# The number of transactions the sub-seller completed in the last 12 months.
|
|
4091
|
-
attr_accessor :number_of_transactions
|
|
4092
|
-
# The category of the product.
|
|
4093
|
-
attr_accessor :product_category
|
|
4094
|
-
# The date when the seller's account with the marketplace was last logged in.
|
|
4095
|
-
attr_accessor :seller_last_login_at
|
|
4096
|
-
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
4097
|
-
attr_accessor :seller_rating
|
|
4098
|
-
# The date when the seller's account with the marketplace was created.
|
|
4099
|
-
attr_accessor :seller_registered_at
|
|
4100
|
-
# The date when the seller's account with the marketplace was last updated.
|
|
4101
|
-
attr_accessor :seller_updated_at
|
|
4102
|
-
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
4103
|
-
attr_accessor :shipping_references
|
|
4104
|
-
# 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.
|
|
4105
|
-
attr_accessor :volume_of_transactions
|
|
4106
|
-
|
|
4107
|
-
def initialize(
|
|
4108
|
-
line_item_references: nil,
|
|
4109
|
-
marketplace_seller_address: nil,
|
|
4110
|
-
marketplace_seller_name: nil,
|
|
4111
|
-
marketplace_seller_reference: nil,
|
|
4112
|
-
number_of_transactions: nil,
|
|
4113
|
-
product_category: nil,
|
|
4114
|
-
seller_last_login_at: nil,
|
|
4115
|
-
seller_rating: nil,
|
|
4116
|
-
seller_registered_at: nil,
|
|
4117
|
-
seller_updated_at: nil,
|
|
4118
|
-
shipping_references: nil,
|
|
4119
|
-
volume_of_transactions: nil
|
|
4120
|
-
)
|
|
4121
|
-
@line_item_references = line_item_references
|
|
4122
|
-
@marketplace_seller_address = marketplace_seller_address
|
|
4123
|
-
@marketplace_seller_name = marketplace_seller_name
|
|
4124
|
-
@marketplace_seller_reference = marketplace_seller_reference
|
|
4125
|
-
@number_of_transactions = number_of_transactions
|
|
4126
|
-
@product_category = product_category
|
|
4127
|
-
@seller_last_login_at = seller_last_login_at
|
|
4128
|
-
@seller_rating = seller_rating
|
|
4129
|
-
@seller_registered_at = seller_registered_at
|
|
4130
|
-
@seller_updated_at = seller_updated_at
|
|
4131
|
-
@shipping_references = shipping_references
|
|
4132
|
-
@volume_of_transactions = volume_of_transactions
|
|
4133
|
-
end
|
|
4134
|
-
end
|
|
4135
|
-
|
|
4136
|
-
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4137
|
-
class Arrival < ::Stripe::RequestParams
|
|
4138
|
-
class Address < ::Stripe::RequestParams
|
|
4139
|
-
# The city or town.
|
|
4140
|
-
attr_accessor :city
|
|
4141
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4142
|
-
attr_accessor :country
|
|
4143
|
-
# The postal code formatted according to country.
|
|
4144
|
-
attr_accessor :postal_code
|
|
4145
|
-
# The state, county, province, or region formatted according to country.
|
|
4146
|
-
attr_accessor :region
|
|
4147
|
-
# Line 1 of the street address.
|
|
4148
|
-
attr_accessor :street_address
|
|
4149
|
-
# Line 2 of the street address.
|
|
4150
|
-
attr_accessor :street_address2
|
|
4151
|
-
|
|
4152
|
-
def initialize(
|
|
4153
|
-
city: nil,
|
|
4154
|
-
country: nil,
|
|
4155
|
-
postal_code: nil,
|
|
4156
|
-
region: nil,
|
|
4157
|
-
street_address: nil,
|
|
4158
|
-
street_address2: nil
|
|
4159
|
-
)
|
|
4160
|
-
@city = city
|
|
4161
|
-
@country = country
|
|
4162
|
-
@postal_code = postal_code
|
|
4163
|
-
@region = region
|
|
4164
|
-
@street_address = street_address
|
|
4165
|
-
@street_address2 = street_address2
|
|
4166
|
-
end
|
|
4167
|
-
end
|
|
4168
|
-
# Address of the arrival location.
|
|
4169
|
-
attr_accessor :address
|
|
4170
|
-
# Identifier name or reference for the arrival location.
|
|
4171
|
-
attr_accessor :arrival_location
|
|
4172
|
-
|
|
4173
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4174
|
-
@address = address
|
|
4175
|
-
@arrival_location = arrival_location
|
|
4176
|
-
end
|
|
4177
|
-
end
|
|
4178
|
-
|
|
4179
|
-
class Departure < ::Stripe::RequestParams
|
|
4180
|
-
class Address < ::Stripe::RequestParams
|
|
4181
|
-
# The city or town.
|
|
4182
|
-
attr_accessor :city
|
|
4183
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4184
|
-
attr_accessor :country
|
|
4185
|
-
# The postal code formatted according to country.
|
|
4186
|
-
attr_accessor :postal_code
|
|
4187
|
-
# The state, county, province, or region formatted according to country.
|
|
4188
|
-
attr_accessor :region
|
|
4189
|
-
# Line 1 of the street address.
|
|
4190
|
-
attr_accessor :street_address
|
|
4191
|
-
# Line 2 of the street address.
|
|
4192
|
-
attr_accessor :street_address2
|
|
4193
|
-
|
|
4194
|
-
def initialize(
|
|
4195
|
-
city: nil,
|
|
4196
|
-
country: nil,
|
|
4197
|
-
postal_code: nil,
|
|
4198
|
-
region: nil,
|
|
4199
|
-
street_address: nil,
|
|
4200
|
-
street_address2: nil
|
|
4201
|
-
)
|
|
4202
|
-
@city = city
|
|
4203
|
-
@country = country
|
|
4204
|
-
@postal_code = postal_code
|
|
4205
|
-
@region = region
|
|
4206
|
-
@street_address = street_address
|
|
4207
|
-
@street_address2 = street_address2
|
|
4208
|
-
end
|
|
4209
|
-
end
|
|
4210
|
-
# Address of the departure location.
|
|
4211
|
-
attr_accessor :address
|
|
4212
|
-
# Timestamp of departure.
|
|
4213
|
-
attr_accessor :departs_at
|
|
4214
|
-
# Identifier name or reference for the origin location.
|
|
4215
|
-
attr_accessor :departure_location
|
|
4216
|
-
|
|
4217
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4218
|
-
@address = address
|
|
4219
|
-
@departs_at = departs_at
|
|
4220
|
-
@departure_location = departure_location
|
|
4221
|
-
end
|
|
4222
|
-
end
|
|
4223
|
-
|
|
4224
|
-
class Insurance < ::Stripe::RequestParams
|
|
4225
|
-
# Insurance currency.
|
|
4226
|
-
attr_accessor :currency
|
|
4227
|
-
# Name of the company providing the insurance.
|
|
4228
|
-
attr_accessor :insurance_company_name
|
|
4229
|
-
# Type of insurance.
|
|
4230
|
-
attr_accessor :insurance_type
|
|
4231
|
-
# Price of insurance in cents.
|
|
4232
|
-
attr_accessor :price
|
|
4233
|
-
|
|
4234
|
-
def initialize(
|
|
4235
|
-
currency: nil,
|
|
4236
|
-
insurance_company_name: nil,
|
|
4237
|
-
insurance_type: nil,
|
|
4238
|
-
price: nil
|
|
4239
|
-
)
|
|
4240
|
-
@currency = currency
|
|
4241
|
-
@insurance_company_name = insurance_company_name
|
|
4242
|
-
@insurance_type = insurance_type
|
|
4243
|
-
@price = price
|
|
4244
|
-
end
|
|
4245
|
-
end
|
|
4246
|
-
|
|
4247
|
-
class Passenger < ::Stripe::RequestParams
|
|
4248
|
-
# The family name of the person.
|
|
4249
|
-
attr_accessor :family_name
|
|
4250
|
-
# The given name of the person.
|
|
4251
|
-
attr_accessor :given_name
|
|
4252
|
-
|
|
4253
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4254
|
-
@family_name = family_name
|
|
4255
|
-
@given_name = given_name
|
|
4256
|
-
end
|
|
4257
|
-
end
|
|
4258
|
-
# Name of associated or partner company for the service.
|
|
4259
|
-
attr_accessor :affiliate_name
|
|
4260
|
-
# Arrival details.
|
|
4261
|
-
attr_accessor :arrival
|
|
4262
|
-
# Name of transportation company.
|
|
4263
|
-
attr_accessor :carrier_name
|
|
4264
|
-
# Currency.
|
|
4265
|
-
attr_accessor :currency
|
|
4266
|
-
# Departure details.
|
|
4267
|
-
attr_accessor :departure
|
|
4268
|
-
# List of insurances for this reservation.
|
|
4269
|
-
attr_accessor :insurances
|
|
4270
|
-
# List of passengers that this reservation applies to.
|
|
4271
|
-
attr_accessor :passengers
|
|
4272
|
-
# Price in cents.
|
|
4273
|
-
attr_accessor :price
|
|
4274
|
-
# Ticket class.
|
|
4275
|
-
attr_accessor :ticket_class
|
|
4276
|
-
|
|
4277
|
-
def initialize(
|
|
4278
|
-
affiliate_name: nil,
|
|
4279
|
-
arrival: nil,
|
|
4280
|
-
carrier_name: nil,
|
|
4281
|
-
currency: nil,
|
|
4282
|
-
departure: nil,
|
|
4283
|
-
insurances: nil,
|
|
4284
|
-
passengers: nil,
|
|
4285
|
-
price: nil,
|
|
4286
|
-
ticket_class: nil
|
|
4287
|
-
)
|
|
4288
|
-
@affiliate_name = affiliate_name
|
|
4289
|
-
@arrival = arrival
|
|
4290
|
-
@carrier_name = carrier_name
|
|
4291
|
-
@currency = currency
|
|
4292
|
-
@departure = departure
|
|
4293
|
-
@insurances = insurances
|
|
4294
|
-
@passengers = passengers
|
|
4295
|
-
@price = price
|
|
4296
|
-
@ticket_class = ticket_class
|
|
4297
|
-
end
|
|
4298
|
-
end
|
|
4299
|
-
|
|
4300
|
-
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4301
|
-
class Arrival < ::Stripe::RequestParams
|
|
4302
|
-
class Address < ::Stripe::RequestParams
|
|
4303
|
-
# The city or town.
|
|
4304
|
-
attr_accessor :city
|
|
4305
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4306
|
-
attr_accessor :country
|
|
4307
|
-
# The postal code formatted according to country.
|
|
4308
|
-
attr_accessor :postal_code
|
|
4309
|
-
# The state, county, province, or region formatted according to country.
|
|
4310
|
-
attr_accessor :region
|
|
4311
|
-
# Line 1 of the street address.
|
|
4312
|
-
attr_accessor :street_address
|
|
4313
|
-
# Line 2 of the street address.
|
|
4314
|
-
attr_accessor :street_address2
|
|
4315
|
-
|
|
4316
|
-
def initialize(
|
|
4317
|
-
city: nil,
|
|
4318
|
-
country: nil,
|
|
4319
|
-
postal_code: nil,
|
|
4320
|
-
region: nil,
|
|
4321
|
-
street_address: nil,
|
|
4322
|
-
street_address2: nil
|
|
4323
|
-
)
|
|
4324
|
-
@city = city
|
|
4325
|
-
@country = country
|
|
4326
|
-
@postal_code = postal_code
|
|
4327
|
-
@region = region
|
|
4328
|
-
@street_address = street_address
|
|
4329
|
-
@street_address2 = street_address2
|
|
4330
|
-
end
|
|
4331
|
-
end
|
|
4332
|
-
# Address of the arrival location.
|
|
4333
|
-
attr_accessor :address
|
|
4334
|
-
# Identifier name or reference for the arrival location.
|
|
4335
|
-
attr_accessor :arrival_location
|
|
4336
|
-
|
|
4337
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4338
|
-
@address = address
|
|
4339
|
-
@arrival_location = arrival_location
|
|
4340
|
-
end
|
|
4341
|
-
end
|
|
4342
|
-
|
|
4343
|
-
class Departure < ::Stripe::RequestParams
|
|
4344
|
-
class Address < ::Stripe::RequestParams
|
|
4345
|
-
# The city or town.
|
|
4346
|
-
attr_accessor :city
|
|
4347
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4348
|
-
attr_accessor :country
|
|
4349
|
-
# The postal code formatted according to country.
|
|
4350
|
-
attr_accessor :postal_code
|
|
4351
|
-
# The state, county, province, or region formatted according to country.
|
|
4352
|
-
attr_accessor :region
|
|
4353
|
-
# Line 1 of the street address.
|
|
4354
|
-
attr_accessor :street_address
|
|
4355
|
-
# Line 2 of the street address.
|
|
4356
|
-
attr_accessor :street_address2
|
|
4357
|
-
|
|
4358
|
-
def initialize(
|
|
4359
|
-
city: nil,
|
|
4360
|
-
country: nil,
|
|
4361
|
-
postal_code: nil,
|
|
4362
|
-
region: nil,
|
|
4363
|
-
street_address: nil,
|
|
4364
|
-
street_address2: nil
|
|
4365
|
-
)
|
|
4366
|
-
@city = city
|
|
4367
|
-
@country = country
|
|
4368
|
-
@postal_code = postal_code
|
|
4369
|
-
@region = region
|
|
4370
|
-
@street_address = street_address
|
|
4371
|
-
@street_address2 = street_address2
|
|
4372
|
-
end
|
|
4373
|
-
end
|
|
4374
|
-
# Address of the departure location.
|
|
4375
|
-
attr_accessor :address
|
|
4376
|
-
# Timestamp of departure.
|
|
4377
|
-
attr_accessor :departs_at
|
|
4378
|
-
# Identifier name or reference for the origin location.
|
|
4379
|
-
attr_accessor :departure_location
|
|
4380
|
-
|
|
4381
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4382
|
-
@address = address
|
|
4383
|
-
@departs_at = departs_at
|
|
4384
|
-
@departure_location = departure_location
|
|
4385
|
-
end
|
|
4386
|
-
end
|
|
4387
|
-
|
|
4388
|
-
class Insurance < ::Stripe::RequestParams
|
|
4389
|
-
# Insurance currency.
|
|
4390
|
-
attr_accessor :currency
|
|
4391
|
-
# Name of the company providing the insurance.
|
|
4392
|
-
attr_accessor :insurance_company_name
|
|
4393
|
-
# Type of insurance.
|
|
4394
|
-
attr_accessor :insurance_type
|
|
4395
|
-
# Price of insurance in cents.
|
|
4396
|
-
attr_accessor :price
|
|
4397
|
-
|
|
4398
|
-
def initialize(
|
|
4399
|
-
currency: nil,
|
|
4400
|
-
insurance_company_name: nil,
|
|
4401
|
-
insurance_type: nil,
|
|
4402
|
-
price: nil
|
|
4403
|
-
)
|
|
4404
|
-
@currency = currency
|
|
4405
|
-
@insurance_company_name = insurance_company_name
|
|
4406
|
-
@insurance_type = insurance_type
|
|
4407
|
-
@price = price
|
|
4408
|
-
end
|
|
4409
|
-
end
|
|
4410
|
-
|
|
4411
|
-
class Passenger < ::Stripe::RequestParams
|
|
4412
|
-
# The family name of the person.
|
|
4413
|
-
attr_accessor :family_name
|
|
4414
|
-
# The given name of the person.
|
|
4415
|
-
attr_accessor :given_name
|
|
4416
|
-
|
|
4417
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4418
|
-
@family_name = family_name
|
|
4419
|
-
@given_name = given_name
|
|
4420
|
-
end
|
|
4421
|
-
end
|
|
4422
|
-
# Name of associated or partner company for the service.
|
|
4423
|
-
attr_accessor :affiliate_name
|
|
4424
|
-
# Arrival details.
|
|
4425
|
-
attr_accessor :arrival
|
|
4426
|
-
# Name of transportation company.
|
|
4427
|
-
attr_accessor :carrier_name
|
|
4428
|
-
# Currency.
|
|
4429
|
-
attr_accessor :currency
|
|
4430
|
-
# Departure details.
|
|
4431
|
-
attr_accessor :departure
|
|
4432
|
-
# List of insurances for this reservation.
|
|
4433
|
-
attr_accessor :insurances
|
|
4434
|
-
# List of passengers that this reservation applies to.
|
|
4435
|
-
attr_accessor :passengers
|
|
4436
|
-
# Price in cents.
|
|
4437
|
-
attr_accessor :price
|
|
4438
|
-
# Ticket class.
|
|
4439
|
-
attr_accessor :ticket_class
|
|
4440
|
-
|
|
4441
|
-
def initialize(
|
|
4442
|
-
affiliate_name: nil,
|
|
4443
|
-
arrival: nil,
|
|
4444
|
-
carrier_name: nil,
|
|
4445
|
-
currency: nil,
|
|
4446
|
-
departure: nil,
|
|
4447
|
-
insurances: nil,
|
|
4448
|
-
passengers: nil,
|
|
4449
|
-
price: nil,
|
|
4450
|
-
ticket_class: nil
|
|
4451
|
-
)
|
|
4452
|
-
@affiliate_name = affiliate_name
|
|
4453
|
-
@arrival = arrival
|
|
4454
|
-
@carrier_name = carrier_name
|
|
4455
|
-
@currency = currency
|
|
4456
|
-
@departure = departure
|
|
4457
|
-
@insurances = insurances
|
|
4458
|
-
@passengers = passengers
|
|
4459
|
-
@price = price
|
|
4460
|
-
@ticket_class = ticket_class
|
|
4461
|
-
end
|
|
4462
|
-
end
|
|
4463
|
-
|
|
4464
|
-
class Voucher < ::Stripe::RequestParams
|
|
4465
|
-
# Name of associated or partner company for this voucher.
|
|
4466
|
-
attr_accessor :affiliate_name
|
|
4467
|
-
# The voucher validity end time.
|
|
4468
|
-
attr_accessor :ends_at
|
|
4469
|
-
# The voucher validity start time.
|
|
4470
|
-
attr_accessor :starts_at
|
|
4471
|
-
# The issuer or provider of this voucher.
|
|
4472
|
-
attr_accessor :voucher_company
|
|
4473
|
-
# The name or reference to identify the voucher.
|
|
4474
|
-
attr_accessor :voucher_name
|
|
4475
|
-
# The type of this voucher.
|
|
4476
|
-
attr_accessor :voucher_type
|
|
4477
|
-
|
|
4478
|
-
def initialize(
|
|
4479
|
-
affiliate_name: nil,
|
|
4480
|
-
ends_at: nil,
|
|
4481
|
-
starts_at: nil,
|
|
4482
|
-
voucher_company: nil,
|
|
4483
|
-
voucher_name: nil,
|
|
4484
|
-
voucher_type: nil
|
|
4485
|
-
)
|
|
4486
|
-
@affiliate_name = affiliate_name
|
|
4487
|
-
@ends_at = ends_at
|
|
4488
|
-
@starts_at = starts_at
|
|
4489
|
-
@voucher_company = voucher_company
|
|
4490
|
-
@voucher_name = voucher_name
|
|
4491
|
-
@voucher_type = voucher_type
|
|
4492
|
-
end
|
|
4493
|
-
end
|
|
4494
|
-
# Supplementary bus reservation details.
|
|
4495
|
-
attr_accessor :bus_reservation_details
|
|
4496
|
-
# Supplementary event reservation details.
|
|
4497
|
-
attr_accessor :event_reservation_details
|
|
4498
|
-
# Supplementary ferry reservation details.
|
|
4499
|
-
attr_accessor :ferry_reservation_details
|
|
4500
|
-
# Supplementary insurance details.
|
|
4501
|
-
attr_accessor :insurances
|
|
4502
|
-
# Supplementary marketplace seller details.
|
|
4503
|
-
attr_accessor :marketplace_sellers
|
|
4504
|
-
# Supplementary round trip reservation details.
|
|
4505
|
-
attr_accessor :round_trip_reservation_details
|
|
4506
|
-
# Supplementary train reservation details.
|
|
4507
|
-
attr_accessor :train_reservation_details
|
|
4508
|
-
# Voucher details, such as a gift card or discount code.
|
|
4509
|
-
attr_accessor :vouchers
|
|
4510
|
-
|
|
4511
|
-
def initialize(
|
|
4512
|
-
bus_reservation_details: nil,
|
|
4513
|
-
event_reservation_details: nil,
|
|
4514
|
-
ferry_reservation_details: nil,
|
|
4515
|
-
insurances: nil,
|
|
4516
|
-
marketplace_sellers: nil,
|
|
4517
|
-
round_trip_reservation_details: nil,
|
|
4518
|
-
train_reservation_details: nil,
|
|
4519
|
-
vouchers: nil
|
|
4520
|
-
)
|
|
4521
|
-
@bus_reservation_details = bus_reservation_details
|
|
4522
|
-
@event_reservation_details = event_reservation_details
|
|
4523
|
-
@ferry_reservation_details = ferry_reservation_details
|
|
4524
|
-
@insurances = insurances
|
|
4525
|
-
@marketplace_sellers = marketplace_sellers
|
|
4526
|
-
@round_trip_reservation_details = round_trip_reservation_details
|
|
4527
|
-
@train_reservation_details = train_reservation_details
|
|
4528
|
-
@vouchers = vouchers
|
|
4529
|
-
end
|
|
4530
|
-
end
|
|
4531
2401
|
# Controls when the funds are captured from the customer's account.
|
|
4532
2402
|
#
|
|
4533
2403
|
# 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.
|
|
@@ -4550,23 +2420,19 @@ module Stripe
|
|
|
4550
2420
|
attr_accessor :setup_future_usage
|
|
4551
2421
|
# Subscription details if setting up or charging a subscription.
|
|
4552
2422
|
attr_accessor :subscriptions
|
|
4553
|
-
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4554
|
-
attr_accessor :supplementary_purchase_data
|
|
4555
2423
|
|
|
4556
2424
|
def initialize(
|
|
4557
2425
|
capture_method: nil,
|
|
4558
2426
|
on_demand: nil,
|
|
4559
2427
|
preferred_locale: nil,
|
|
4560
2428
|
setup_future_usage: nil,
|
|
4561
|
-
subscriptions: nil
|
|
4562
|
-
supplementary_purchase_data: nil
|
|
2429
|
+
subscriptions: nil
|
|
4563
2430
|
)
|
|
4564
2431
|
@capture_method = capture_method
|
|
4565
2432
|
@on_demand = on_demand
|
|
4566
2433
|
@preferred_locale = preferred_locale
|
|
4567
2434
|
@setup_future_usage = setup_future_usage
|
|
4568
2435
|
@subscriptions = subscriptions
|
|
4569
|
-
@supplementary_purchase_data = supplementary_purchase_data
|
|
4570
2436
|
end
|
|
4571
2437
|
end
|
|
4572
2438
|
|
|
@@ -4836,65 +2702,12 @@ module Stripe
|
|
|
4836
2702
|
end
|
|
4837
2703
|
|
|
4838
2704
|
class Paypal < ::Stripe::RequestParams
|
|
4839
|
-
class LineItem < ::Stripe::RequestParams
|
|
4840
|
-
class Tax < ::Stripe::RequestParams
|
|
4841
|
-
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4842
|
-
attr_accessor :amount
|
|
4843
|
-
# The tax behavior for the line item.
|
|
4844
|
-
attr_accessor :behavior
|
|
4845
|
-
|
|
4846
|
-
def initialize(amount: nil, behavior: nil)
|
|
4847
|
-
@amount = amount
|
|
4848
|
-
@behavior = behavior
|
|
4849
|
-
end
|
|
4850
|
-
end
|
|
4851
|
-
# Type of the line item.
|
|
4852
|
-
attr_accessor :category
|
|
4853
|
-
# Description of the line item.
|
|
4854
|
-
attr_accessor :description
|
|
4855
|
-
# Descriptive name of the line item.
|
|
4856
|
-
attr_accessor :name
|
|
4857
|
-
# Quantity of the line item. Must be a positive number.
|
|
4858
|
-
attr_accessor :quantity
|
|
4859
|
-
# Client facing stock keeping unit, article number or similar.
|
|
4860
|
-
attr_accessor :sku
|
|
4861
|
-
# The Stripe account ID of the connected account that sells the item.
|
|
4862
|
-
attr_accessor :sold_by
|
|
4863
|
-
# The tax information for the line item.
|
|
4864
|
-
attr_accessor :tax
|
|
4865
|
-
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4866
|
-
attr_accessor :unit_amount
|
|
4867
|
-
|
|
4868
|
-
def initialize(
|
|
4869
|
-
category: nil,
|
|
4870
|
-
description: nil,
|
|
4871
|
-
name: nil,
|
|
4872
|
-
quantity: nil,
|
|
4873
|
-
sku: nil,
|
|
4874
|
-
sold_by: nil,
|
|
4875
|
-
tax: nil,
|
|
4876
|
-
unit_amount: nil
|
|
4877
|
-
)
|
|
4878
|
-
@category = category
|
|
4879
|
-
@description = description
|
|
4880
|
-
@name = name
|
|
4881
|
-
@quantity = quantity
|
|
4882
|
-
@sku = sku
|
|
4883
|
-
@sold_by = sold_by
|
|
4884
|
-
@tax = tax
|
|
4885
|
-
@unit_amount = unit_amount
|
|
4886
|
-
end
|
|
4887
|
-
end
|
|
4888
2705
|
# Controls when the funds will be captured from the customer's account.
|
|
4889
2706
|
attr_accessor :capture_method
|
|
4890
|
-
# The line items purchased by the customer.
|
|
4891
|
-
attr_accessor :line_items
|
|
4892
2707
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
4893
2708
|
attr_accessor :preferred_locale
|
|
4894
2709
|
# 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.
|
|
4895
2710
|
attr_accessor :reference
|
|
4896
|
-
# 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.
|
|
4897
|
-
attr_accessor :reference_id
|
|
4898
2711
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
4899
2712
|
attr_accessor :risk_correlation_id
|
|
4900
2713
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -4907,27 +2720,19 @@ module Stripe
|
|
|
4907
2720
|
#
|
|
4908
2721
|
# 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`.
|
|
4909
2722
|
attr_accessor :setup_future_usage
|
|
4910
|
-
# 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.
|
|
4911
|
-
attr_accessor :subsellers
|
|
4912
2723
|
|
|
4913
2724
|
def initialize(
|
|
4914
2725
|
capture_method: nil,
|
|
4915
|
-
line_items: nil,
|
|
4916
2726
|
preferred_locale: nil,
|
|
4917
2727
|
reference: nil,
|
|
4918
|
-
reference_id: nil,
|
|
4919
2728
|
risk_correlation_id: nil,
|
|
4920
|
-
setup_future_usage: nil
|
|
4921
|
-
subsellers: nil
|
|
2729
|
+
setup_future_usage: nil
|
|
4922
2730
|
)
|
|
4923
2731
|
@capture_method = capture_method
|
|
4924
|
-
@line_items = line_items
|
|
4925
2732
|
@preferred_locale = preferred_locale
|
|
4926
2733
|
@reference = reference
|
|
4927
|
-
@reference_id = reference_id
|
|
4928
2734
|
@risk_correlation_id = risk_correlation_id
|
|
4929
2735
|
@setup_future_usage = setup_future_usage
|
|
4930
|
-
@subsellers = subsellers
|
|
4931
2736
|
end
|
|
4932
2737
|
end
|
|
4933
2738
|
|
|
@@ -5071,25 +2876,6 @@ module Stripe
|
|
|
5071
2876
|
end
|
|
5072
2877
|
end
|
|
5073
2878
|
|
|
5074
|
-
class Qris < ::Stripe::RequestParams
|
|
5075
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5076
|
-
#
|
|
5077
|
-
# 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.
|
|
5078
|
-
#
|
|
5079
|
-
# 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.
|
|
5080
|
-
#
|
|
5081
|
-
# 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).
|
|
5082
|
-
#
|
|
5083
|
-
# 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`.
|
|
5084
|
-
attr_accessor :setup_future_usage
|
|
5085
|
-
|
|
5086
|
-
def initialize(setup_future_usage: nil)
|
|
5087
|
-
@setup_future_usage = setup_future_usage
|
|
5088
|
-
end
|
|
5089
|
-
end
|
|
5090
|
-
|
|
5091
|
-
class Rechnung < ::Stripe::RequestParams; end
|
|
5092
|
-
|
|
5093
2879
|
class RevolutPay < ::Stripe::RequestParams
|
|
5094
2880
|
# Controls when the funds are captured from the customer's account.
|
|
5095
2881
|
#
|
|
@@ -5224,23 +3010,6 @@ module Stripe
|
|
|
5224
3010
|
end
|
|
5225
3011
|
end
|
|
5226
3012
|
|
|
5227
|
-
class Shopeepay < ::Stripe::RequestParams
|
|
5228
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5229
|
-
#
|
|
5230
|
-
# 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.
|
|
5231
|
-
#
|
|
5232
|
-
# 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.
|
|
5233
|
-
#
|
|
5234
|
-
# 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).
|
|
5235
|
-
#
|
|
5236
|
-
# 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`.
|
|
5237
|
-
attr_accessor :setup_future_usage
|
|
5238
|
-
|
|
5239
|
-
def initialize(setup_future_usage: nil)
|
|
5240
|
-
@setup_future_usage = setup_future_usage
|
|
5241
|
-
end
|
|
5242
|
-
end
|
|
5243
|
-
|
|
5244
3013
|
class Sofort < ::Stripe::RequestParams
|
|
5245
3014
|
# Language shown to the payer on redirect.
|
|
5246
3015
|
attr_accessor :preferred_language
|
|
@@ -5261,23 +3030,6 @@ module Stripe
|
|
|
5261
3030
|
end
|
|
5262
3031
|
end
|
|
5263
3032
|
|
|
5264
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
5265
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5266
|
-
#
|
|
5267
|
-
# 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.
|
|
5268
|
-
#
|
|
5269
|
-
# 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.
|
|
5270
|
-
#
|
|
5271
|
-
# 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).
|
|
5272
|
-
#
|
|
5273
|
-
# 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`.
|
|
5274
|
-
attr_accessor :setup_future_usage
|
|
5275
|
-
|
|
5276
|
-
def initialize(setup_future_usage: nil)
|
|
5277
|
-
@setup_future_usage = setup_future_usage
|
|
5278
|
-
end
|
|
5279
|
-
end
|
|
5280
|
-
|
|
5281
3033
|
class Sunbit < ::Stripe::RequestParams
|
|
5282
3034
|
# Controls when the funds are captured from the customer's account.
|
|
5283
3035
|
#
|
|
@@ -5371,27 +3123,13 @@ module Stripe
|
|
|
5371
3123
|
class Filters < ::Stripe::RequestParams
|
|
5372
3124
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
5373
3125
|
attr_accessor :account_subcategories
|
|
5374
|
-
# ID of the institution to use to filter for selectable accounts.
|
|
5375
|
-
attr_accessor :institution
|
|
5376
3126
|
|
|
5377
|
-
def initialize(account_subcategories: nil
|
|
3127
|
+
def initialize(account_subcategories: nil)
|
|
5378
3128
|
@account_subcategories = account_subcategories
|
|
5379
|
-
@institution = institution
|
|
5380
|
-
end
|
|
5381
|
-
end
|
|
5382
|
-
|
|
5383
|
-
class ManualEntry < ::Stripe::RequestParams
|
|
5384
|
-
# Settings for configuring manual entry of account details.
|
|
5385
|
-
attr_accessor :mode
|
|
5386
|
-
|
|
5387
|
-
def initialize(mode: nil)
|
|
5388
|
-
@mode = mode
|
|
5389
3129
|
end
|
|
5390
3130
|
end
|
|
5391
3131
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
5392
3132
|
attr_accessor :filters
|
|
5393
|
-
# Customize manual entry behavior
|
|
5394
|
-
attr_accessor :manual_entry
|
|
5395
3133
|
# 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`.
|
|
5396
3134
|
attr_accessor :permissions
|
|
5397
3135
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -5399,15 +3137,8 @@ module Stripe
|
|
|
5399
3137
|
# 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.
|
|
5400
3138
|
attr_accessor :return_url
|
|
5401
3139
|
|
|
5402
|
-
def initialize(
|
|
5403
|
-
filters: nil,
|
|
5404
|
-
manual_entry: nil,
|
|
5405
|
-
permissions: nil,
|
|
5406
|
-
prefetch: nil,
|
|
5407
|
-
return_url: nil
|
|
5408
|
-
)
|
|
3140
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
|
5409
3141
|
@filters = filters
|
|
5410
|
-
@manual_entry = manual_entry
|
|
5411
3142
|
@permissions = permissions
|
|
5412
3143
|
@prefetch = prefetch
|
|
5413
3144
|
@return_url = return_url
|
|
@@ -5496,23 +3227,6 @@ module Stripe
|
|
|
5496
3227
|
end
|
|
5497
3228
|
end
|
|
5498
3229
|
|
|
5499
|
-
class Wero < ::Stripe::RequestParams
|
|
5500
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5501
|
-
#
|
|
5502
|
-
# 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.
|
|
5503
|
-
#
|
|
5504
|
-
# 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.
|
|
5505
|
-
#
|
|
5506
|
-
# 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).
|
|
5507
|
-
#
|
|
5508
|
-
# 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`.
|
|
5509
|
-
attr_accessor :setup_future_usage
|
|
5510
|
-
|
|
5511
|
-
def initialize(setup_future_usage: nil)
|
|
5512
|
-
@setup_future_usage = setup_future_usage
|
|
5513
|
-
end
|
|
5514
|
-
end
|
|
5515
|
-
|
|
5516
3230
|
class Zip < ::Stripe::RequestParams
|
|
5517
3231
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5518
3232
|
#
|
|
@@ -5571,12 +3285,8 @@ module Stripe
|
|
|
5571
3285
|
attr_accessor :fpx
|
|
5572
3286
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
5573
3287
|
attr_accessor :giropay
|
|
5574
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5575
|
-
attr_accessor :gopay
|
|
5576
3288
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
5577
3289
|
attr_accessor :grabpay
|
|
5578
|
-
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5579
|
-
attr_accessor :id_bank_transfer
|
|
5580
3290
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
5581
3291
|
attr_accessor :ideal
|
|
5582
3292
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -5621,10 +3331,6 @@ module Stripe
|
|
|
5621
3331
|
attr_accessor :pix
|
|
5622
3332
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
5623
3333
|
attr_accessor :promptpay
|
|
5624
|
-
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5625
|
-
attr_accessor :qris
|
|
5626
|
-
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5627
|
-
attr_accessor :rechnung
|
|
5628
3334
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
5629
3335
|
attr_accessor :revolut_pay
|
|
5630
3336
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -5637,12 +3343,8 @@ module Stripe
|
|
|
5637
3343
|
attr_accessor :sepa_debit
|
|
5638
3344
|
# If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
|
|
5639
3345
|
attr_accessor :sequra
|
|
5640
|
-
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5641
|
-
attr_accessor :shopeepay
|
|
5642
3346
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
5643
3347
|
attr_accessor :sofort
|
|
5644
|
-
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5645
|
-
attr_accessor :stripe_balance
|
|
5646
3348
|
# If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
|
|
5647
3349
|
attr_accessor :sunbit
|
|
5648
3350
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
@@ -5655,8 +3357,6 @@ module Stripe
|
|
|
5655
3357
|
attr_accessor :us_bank_account
|
|
5656
3358
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
5657
3359
|
attr_accessor :wechat_pay
|
|
5658
|
-
# If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
|
|
5659
|
-
attr_accessor :wero
|
|
5660
3360
|
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
|
|
5661
3361
|
attr_accessor :zip
|
|
5662
3362
|
|
|
@@ -5682,9 +3382,7 @@ module Stripe
|
|
|
5682
3382
|
eps: nil,
|
|
5683
3383
|
fpx: nil,
|
|
5684
3384
|
giropay: nil,
|
|
5685
|
-
gopay: nil,
|
|
5686
3385
|
grabpay: nil,
|
|
5687
|
-
id_bank_transfer: nil,
|
|
5688
3386
|
ideal: nil,
|
|
5689
3387
|
interac_present: nil,
|
|
5690
3388
|
kakao_pay: nil,
|
|
@@ -5707,24 +3405,19 @@ module Stripe
|
|
|
5707
3405
|
payto: nil,
|
|
5708
3406
|
pix: nil,
|
|
5709
3407
|
promptpay: nil,
|
|
5710
|
-
qris: nil,
|
|
5711
|
-
rechnung: nil,
|
|
5712
3408
|
revolut_pay: nil,
|
|
5713
3409
|
samsung_pay: nil,
|
|
5714
3410
|
satispay: nil,
|
|
5715
3411
|
scalapay: nil,
|
|
5716
3412
|
sepa_debit: nil,
|
|
5717
3413
|
sequra: nil,
|
|
5718
|
-
shopeepay: nil,
|
|
5719
3414
|
sofort: nil,
|
|
5720
|
-
stripe_balance: nil,
|
|
5721
3415
|
sunbit: nil,
|
|
5722
3416
|
swish: nil,
|
|
5723
3417
|
twint: nil,
|
|
5724
3418
|
upi: nil,
|
|
5725
3419
|
us_bank_account: nil,
|
|
5726
3420
|
wechat_pay: nil,
|
|
5727
|
-
wero: nil,
|
|
5728
3421
|
zip: nil
|
|
5729
3422
|
)
|
|
5730
3423
|
@acss_debit = acss_debit
|
|
@@ -5748,9 +3441,7 @@ module Stripe
|
|
|
5748
3441
|
@eps = eps
|
|
5749
3442
|
@fpx = fpx
|
|
5750
3443
|
@giropay = giropay
|
|
5751
|
-
@gopay = gopay
|
|
5752
3444
|
@grabpay = grabpay
|
|
5753
|
-
@id_bank_transfer = id_bank_transfer
|
|
5754
3445
|
@ideal = ideal
|
|
5755
3446
|
@interac_present = interac_present
|
|
5756
3447
|
@kakao_pay = kakao_pay
|
|
@@ -5773,24 +3464,19 @@ module Stripe
|
|
|
5773
3464
|
@payto = payto
|
|
5774
3465
|
@pix = pix
|
|
5775
3466
|
@promptpay = promptpay
|
|
5776
|
-
@qris = qris
|
|
5777
|
-
@rechnung = rechnung
|
|
5778
3467
|
@revolut_pay = revolut_pay
|
|
5779
3468
|
@samsung_pay = samsung_pay
|
|
5780
3469
|
@satispay = satispay
|
|
5781
3470
|
@scalapay = scalapay
|
|
5782
3471
|
@sepa_debit = sepa_debit
|
|
5783
3472
|
@sequra = sequra
|
|
5784
|
-
@shopeepay = shopeepay
|
|
5785
3473
|
@sofort = sofort
|
|
5786
|
-
@stripe_balance = stripe_balance
|
|
5787
3474
|
@sunbit = sunbit
|
|
5788
3475
|
@swish = swish
|
|
5789
3476
|
@twint = twint
|
|
5790
3477
|
@upi = upi
|
|
5791
3478
|
@us_bank_account = us_bank_account
|
|
5792
3479
|
@wechat_pay = wechat_pay
|
|
5793
|
-
@wero = wero
|
|
5794
3480
|
@zip = zip
|
|
5795
3481
|
end
|
|
5796
3482
|
end
|
|
@@ -5904,17 +3590,13 @@ module Stripe
|
|
|
5904
3590
|
attr_accessor :excluded_payment_method_types
|
|
5905
3591
|
# Specifies which fields in the response should be expanded.
|
|
5906
3592
|
attr_accessor :expand
|
|
5907
|
-
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5908
|
-
attr_accessor :fx_quote
|
|
5909
3593
|
# Automations to be run during the PaymentIntent lifecycle
|
|
5910
3594
|
attr_accessor :hooks
|
|
5911
|
-
# This hash contains details about the Mandate to create.
|
|
5912
|
-
attr_accessor :mandate_data
|
|
5913
3595
|
# 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`.
|
|
5914
3596
|
attr_accessor :metadata
|
|
5915
3597
|
# Provides industry-specific information about the charge.
|
|
5916
3598
|
attr_accessor :payment_details
|
|
5917
|
-
#
|
|
3599
|
+
# The ID of a PaymentMethod to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
|
|
5918
3600
|
attr_accessor :payment_method
|
|
5919
3601
|
# The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
|
|
5920
3602
|
attr_accessor :payment_method_configuration
|
|
@@ -5942,7 +3624,7 @@ module Stripe
|
|
|
5942
3624
|
#
|
|
5943
3625
|
# Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
|
|
5944
3626
|
attr_accessor :statement_descriptor
|
|
5945
|
-
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
|
|
3627
|
+
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. A suffix longer than 22 characters returns an error. If a valid suffix makes the complete statement descriptor longer than 22 characters, Stripe truncates the descriptor instead of returning an error. Learn how to [fit the suffix in the complete descriptor](https://docs.stripe.com/get-started/account/statement-descriptors#suffix-length).
|
|
5946
3628
|
attr_accessor :statement_descriptor_suffix
|
|
5947
3629
|
# Use this parameter to automatically create a Transfer when the payment succeeds. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
5948
3630
|
attr_accessor :transfer_data
|
|
@@ -5961,9 +3643,7 @@ module Stripe
|
|
|
5961
3643
|
description: nil,
|
|
5962
3644
|
excluded_payment_method_types: nil,
|
|
5963
3645
|
expand: nil,
|
|
5964
|
-
fx_quote: nil,
|
|
5965
3646
|
hooks: nil,
|
|
5966
|
-
mandate_data: nil,
|
|
5967
3647
|
metadata: nil,
|
|
5968
3648
|
payment_details: nil,
|
|
5969
3649
|
payment_method: nil,
|
|
@@ -5989,9 +3669,7 @@ module Stripe
|
|
|
5989
3669
|
@description = description
|
|
5990
3670
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
5991
3671
|
@expand = expand
|
|
5992
|
-
@fx_quote = fx_quote
|
|
5993
3672
|
@hooks = hooks
|
|
5994
|
-
@mandate_data = mandate_data
|
|
5995
3673
|
@metadata = metadata
|
|
5996
3674
|
@payment_details = payment_details
|
|
5997
3675
|
@payment_method = payment_method
|