stripe 20.2.0.pre.beta.1 → 21.0.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 +2 -0
- data/lib/stripe/api_requestor.rb +1 -4
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +0 -6
- data/lib/stripe/event_types.rb +0 -193
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -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/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 +3 -87
- 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 +1 -17
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -38
- 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 +1 -33
- 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 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +109 -3062
- data/lib/stripe/params/payment_intent_create_params.rb +122 -3075
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +76 -3060
- 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/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +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/tax/registration_create_params.rb +1 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -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 +5 -392
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
- data/lib/stripe/params/v2/core/account_update_params.rb +4 -376
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
- 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 +0 -364
- data/lib/stripe/request_options.rb +18 -0
- data/lib/stripe/resources/account.rb +1 -176
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +0 -4
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +1 -227
- data/lib/stripe/resources/checkout/session.rb +3 -91
- data/lib/stripe/resources/confirmation_token.rb +0 -131
- data/lib/stripe/resources/coupon.rb +1 -26
- 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 +0 -18
- data/lib/stripe/resources/event.rb +1 -64
- 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 +0 -16
- 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 +1 -177
- data/lib/stripe/resources/payment_intent.rb +24 -1602
- data/lib/stripe/resources/payment_method.rb +0 -151
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +1 -177
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- 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 +0 -35
- data/lib/stripe/resources/setup_intent.rb +1 -38
- 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/tax/registration.rb +1 -16
- 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/outbound_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/core/account.rb +2 -802
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -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 +2 -341
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -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_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_service.rb +1 -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 +0 -181
- data/lib/stripe/stripe_client.rb +1 -4
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_event_notification_handler.rb +0 -216
- data/lib/stripe/stripe_object.rb +60 -1
- 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 +33552 -100276
- metadata +6 -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_approved_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_rejected_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_batch_job_validation_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_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_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_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_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/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,1781 +145,139 @@ module Stripe
|
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
class
|
|
149
|
-
#
|
|
150
|
-
|
|
151
|
-
#
|
|
152
|
-
attr_accessor :
|
|
153
|
-
|
|
154
|
-
def initialize(amount: nil, enforce_validation: nil)
|
|
155
|
-
@amount = amount
|
|
156
|
-
@enforce_validation = enforce_validation
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
class Tax < ::Stripe::RequestParams
|
|
161
|
-
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
162
|
-
#
|
|
163
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
164
|
-
attr_accessor :total_tax_amount
|
|
165
|
-
|
|
166
|
-
def initialize(total_tax_amount: nil)
|
|
167
|
-
@total_tax_amount = total_tax_amount
|
|
168
|
-
end
|
|
169
|
-
end
|
|
170
|
-
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
171
|
-
#
|
|
172
|
-
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
173
|
-
attr_accessor :discount_amount
|
|
174
|
-
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
175
|
-
#
|
|
176
|
-
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
177
|
-
#
|
|
178
|
-
# For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
|
|
179
|
-
attr_accessor :enforce_arithmetic_validation
|
|
180
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
181
|
-
attr_accessor :line_items
|
|
182
|
-
# Contains information about the shipping portion of the amount.
|
|
183
|
-
attr_accessor :shipping
|
|
184
|
-
# Contains information about the surcharge portion of the amount.
|
|
185
|
-
attr_accessor :surcharge
|
|
186
|
-
# Contains information about the tax portion of the amount.
|
|
187
|
-
attr_accessor :tax
|
|
188
|
-
|
|
189
|
-
def initialize(
|
|
190
|
-
discount_amount: nil,
|
|
191
|
-
enforce_arithmetic_validation: nil,
|
|
192
|
-
line_items: nil,
|
|
193
|
-
shipping: nil,
|
|
194
|
-
surcharge: nil,
|
|
195
|
-
tax: nil
|
|
196
|
-
)
|
|
197
|
-
@discount_amount = discount_amount
|
|
198
|
-
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
199
|
-
@line_items = line_items
|
|
200
|
-
@shipping = shipping
|
|
201
|
-
@surcharge = surcharge
|
|
202
|
-
@tax = tax
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
class AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
207
|
-
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
208
|
-
#
|
|
209
|
-
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
210
|
-
attr_accessor :allow_redirects
|
|
211
|
-
# Whether this feature is enabled.
|
|
212
|
-
attr_accessor :enabled
|
|
213
|
-
|
|
214
|
-
def initialize(allow_redirects: nil, enabled: nil)
|
|
215
|
-
@allow_redirects = allow_redirects
|
|
216
|
-
@enabled = enabled
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
class Hooks < ::Stripe::RequestParams
|
|
221
|
-
class Inputs < ::Stripe::RequestParams
|
|
222
|
-
class Tax < ::Stripe::RequestParams
|
|
223
|
-
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
224
|
-
attr_accessor :calculation
|
|
225
|
-
|
|
226
|
-
def initialize(calculation: nil)
|
|
227
|
-
@calculation = calculation
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
# Tax arguments for automations
|
|
231
|
-
attr_accessor :tax
|
|
232
|
-
|
|
233
|
-
def initialize(tax: nil)
|
|
234
|
-
@tax = tax
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
# Arguments passed in automations
|
|
238
|
-
attr_accessor :inputs
|
|
239
|
-
|
|
240
|
-
def initialize(inputs: nil)
|
|
241
|
-
@inputs = inputs
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
class MandateData < ::Stripe::RequestParams
|
|
246
|
-
class CustomerAcceptance < ::Stripe::RequestParams
|
|
247
|
-
class Offline < ::Stripe::RequestParams; end
|
|
248
|
-
|
|
249
|
-
class Online < ::Stripe::RequestParams
|
|
250
|
-
# The IP address from which the Mandate was accepted by the customer.
|
|
251
|
-
attr_accessor :ip_address
|
|
252
|
-
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
253
|
-
attr_accessor :user_agent
|
|
254
|
-
|
|
255
|
-
def initialize(ip_address: nil, user_agent: nil)
|
|
256
|
-
@ip_address = ip_address
|
|
257
|
-
@user_agent = user_agent
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
# The time at which the customer accepted the Mandate.
|
|
261
|
-
attr_accessor :accepted_at
|
|
262
|
-
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
263
|
-
attr_accessor :offline
|
|
264
|
-
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
265
|
-
attr_accessor :online
|
|
266
|
-
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
267
|
-
attr_accessor :type
|
|
268
|
-
|
|
269
|
-
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
270
|
-
@accepted_at = accepted_at
|
|
271
|
-
@offline = offline
|
|
272
|
-
@online = online
|
|
273
|
-
@type = type
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
277
|
-
attr_accessor :customer_acceptance
|
|
278
|
-
|
|
279
|
-
def initialize(customer_acceptance: nil)
|
|
280
|
-
@customer_acceptance = customer_acceptance
|
|
281
|
-
end
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
class PaymentDetails < ::Stripe::RequestParams
|
|
285
|
-
class CarRental < ::Stripe::RequestParams
|
|
286
|
-
class Affiliate < ::Stripe::RequestParams
|
|
287
|
-
# The name of the affiliate that originated the purchase.
|
|
288
|
-
attr_accessor :name
|
|
289
|
-
|
|
290
|
-
def initialize(name: nil)
|
|
291
|
-
@name = name
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
class Delivery < ::Stripe::RequestParams
|
|
296
|
-
class Recipient < ::Stripe::RequestParams
|
|
297
|
-
# The email of the recipient the ticket is delivered to.
|
|
298
|
-
attr_accessor :email
|
|
299
|
-
# The name of the recipient the ticket is delivered to.
|
|
300
|
-
attr_accessor :name
|
|
301
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
302
|
-
attr_accessor :phone
|
|
303
|
-
|
|
304
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
305
|
-
@email = email
|
|
306
|
-
@name = name
|
|
307
|
-
@phone = phone
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
# The delivery method for the payment
|
|
311
|
-
attr_accessor :mode
|
|
312
|
-
# Details of the recipient.
|
|
313
|
-
attr_accessor :recipient
|
|
314
|
-
|
|
315
|
-
def initialize(mode: nil, recipient: nil)
|
|
316
|
-
@mode = mode
|
|
317
|
-
@recipient = recipient
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
class Distance < ::Stripe::RequestParams
|
|
322
|
-
# Distance traveled.
|
|
323
|
-
attr_accessor :amount
|
|
324
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
325
|
-
attr_accessor :unit
|
|
326
|
-
|
|
327
|
-
def initialize(amount: nil, unit: nil)
|
|
328
|
-
@amount = amount
|
|
329
|
-
@unit = unit
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
class Driver < ::Stripe::RequestParams
|
|
334
|
-
# Driver's identification number.
|
|
335
|
-
attr_accessor :driver_identification_number
|
|
336
|
-
# Driver's tax number.
|
|
337
|
-
attr_accessor :driver_tax_number
|
|
338
|
-
# Full name of the person or entity on the car reservation.
|
|
339
|
-
attr_accessor :name
|
|
340
|
-
|
|
341
|
-
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
342
|
-
@driver_identification_number = driver_identification_number
|
|
343
|
-
@driver_tax_number = driver_tax_number
|
|
344
|
-
@name = name
|
|
345
|
-
end
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
class PickupAddress < ::Stripe::RequestParams
|
|
349
|
-
# City, district, suburb, town, or village.
|
|
350
|
-
attr_accessor :city
|
|
351
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
352
|
-
attr_accessor :country
|
|
353
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
354
|
-
attr_accessor :line1
|
|
355
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
356
|
-
attr_accessor :line2
|
|
357
|
-
# ZIP or postal code.
|
|
358
|
-
attr_accessor :postal_code
|
|
359
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
360
|
-
attr_accessor :state
|
|
361
|
-
|
|
362
|
-
def initialize(
|
|
363
|
-
city: nil,
|
|
364
|
-
country: nil,
|
|
365
|
-
line1: nil,
|
|
366
|
-
line2: nil,
|
|
367
|
-
postal_code: nil,
|
|
368
|
-
state: nil
|
|
369
|
-
)
|
|
370
|
-
@city = city
|
|
371
|
-
@country = country
|
|
372
|
-
@line1 = line1
|
|
373
|
-
@line2 = line2
|
|
374
|
-
@postal_code = postal_code
|
|
375
|
-
@state = state
|
|
376
|
-
end
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
class ReturnAddress < ::Stripe::RequestParams
|
|
380
|
-
# City, district, suburb, town, or village.
|
|
381
|
-
attr_accessor :city
|
|
382
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
383
|
-
attr_accessor :country
|
|
384
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
385
|
-
attr_accessor :line1
|
|
386
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
387
|
-
attr_accessor :line2
|
|
388
|
-
# ZIP or postal code.
|
|
389
|
-
attr_accessor :postal_code
|
|
390
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
391
|
-
attr_accessor :state
|
|
392
|
-
|
|
393
|
-
def initialize(
|
|
394
|
-
city: nil,
|
|
395
|
-
country: nil,
|
|
396
|
-
line1: nil,
|
|
397
|
-
line2: nil,
|
|
398
|
-
postal_code: nil,
|
|
399
|
-
state: nil
|
|
400
|
-
)
|
|
401
|
-
@city = city
|
|
402
|
-
@country = country
|
|
403
|
-
@line1 = line1
|
|
404
|
-
@line2 = line2
|
|
405
|
-
@postal_code = postal_code
|
|
406
|
-
@state = state
|
|
407
|
-
end
|
|
408
|
-
end
|
|
409
|
-
# Affiliate details for this purchase.
|
|
410
|
-
attr_accessor :affiliate
|
|
411
|
-
# The booking number associated with the car rental.
|
|
412
|
-
attr_accessor :booking_number
|
|
413
|
-
# Class code of the car.
|
|
414
|
-
attr_accessor :car_class_code
|
|
415
|
-
# Make of the car.
|
|
416
|
-
attr_accessor :car_make
|
|
417
|
-
# Model of the car.
|
|
418
|
-
attr_accessor :car_model
|
|
419
|
-
# The name of the rental car company.
|
|
420
|
-
attr_accessor :company
|
|
421
|
-
# The customer service phone number of the car rental company.
|
|
422
|
-
attr_accessor :customer_service_phone_number
|
|
423
|
-
# Number of days the car is being rented.
|
|
424
|
-
attr_accessor :days_rented
|
|
425
|
-
# Delivery details for this purchase.
|
|
426
|
-
attr_accessor :delivery
|
|
427
|
-
# The details of the distance traveled during the rental period.
|
|
428
|
-
attr_accessor :distance
|
|
429
|
-
# The details of the passengers in the travel reservation
|
|
430
|
-
attr_accessor :drivers
|
|
431
|
-
# List of additional charges being billed.
|
|
432
|
-
attr_accessor :extra_charges
|
|
433
|
-
# Indicates if the customer did not keep nor cancel their booking.
|
|
434
|
-
attr_accessor :no_show
|
|
435
|
-
# Car pick-up address.
|
|
436
|
-
attr_accessor :pickup_address
|
|
437
|
-
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
438
|
-
attr_accessor :pickup_at
|
|
439
|
-
# Name of the pickup location.
|
|
440
|
-
attr_accessor :pickup_location_name
|
|
441
|
-
# Rental rate.
|
|
442
|
-
attr_accessor :rate_amount
|
|
443
|
-
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
444
|
-
attr_accessor :rate_interval
|
|
445
|
-
# The name of the person or entity renting the car.
|
|
446
|
-
attr_accessor :renter_name
|
|
447
|
-
# Car return address.
|
|
448
|
-
attr_accessor :return_address
|
|
449
|
-
# Car return time. Measured in seconds since the Unix epoch.
|
|
450
|
-
attr_accessor :return_at
|
|
451
|
-
# Name of the return location.
|
|
452
|
-
attr_accessor :return_location_name
|
|
453
|
-
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
454
|
-
attr_accessor :tax_exempt
|
|
455
|
-
# The vehicle identification number.
|
|
456
|
-
attr_accessor :vehicle_identification_number
|
|
457
|
-
|
|
458
|
-
def initialize(
|
|
459
|
-
affiliate: nil,
|
|
460
|
-
booking_number: nil,
|
|
461
|
-
car_class_code: nil,
|
|
462
|
-
car_make: nil,
|
|
463
|
-
car_model: nil,
|
|
464
|
-
company: nil,
|
|
465
|
-
customer_service_phone_number: nil,
|
|
466
|
-
days_rented: nil,
|
|
467
|
-
delivery: nil,
|
|
468
|
-
distance: nil,
|
|
469
|
-
drivers: nil,
|
|
470
|
-
extra_charges: nil,
|
|
471
|
-
no_show: nil,
|
|
472
|
-
pickup_address: nil,
|
|
473
|
-
pickup_at: nil,
|
|
474
|
-
pickup_location_name: nil,
|
|
475
|
-
rate_amount: nil,
|
|
476
|
-
rate_interval: nil,
|
|
477
|
-
renter_name: nil,
|
|
478
|
-
return_address: nil,
|
|
479
|
-
return_at: nil,
|
|
480
|
-
return_location_name: nil,
|
|
481
|
-
tax_exempt: nil,
|
|
482
|
-
vehicle_identification_number: nil
|
|
483
|
-
)
|
|
484
|
-
@affiliate = affiliate
|
|
485
|
-
@booking_number = booking_number
|
|
486
|
-
@car_class_code = car_class_code
|
|
487
|
-
@car_make = car_make
|
|
488
|
-
@car_model = car_model
|
|
489
|
-
@company = company
|
|
490
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
491
|
-
@days_rented = days_rented
|
|
492
|
-
@delivery = delivery
|
|
493
|
-
@distance = distance
|
|
494
|
-
@drivers = drivers
|
|
495
|
-
@extra_charges = extra_charges
|
|
496
|
-
@no_show = no_show
|
|
497
|
-
@pickup_address = pickup_address
|
|
498
|
-
@pickup_at = pickup_at
|
|
499
|
-
@pickup_location_name = pickup_location_name
|
|
500
|
-
@rate_amount = rate_amount
|
|
501
|
-
@rate_interval = rate_interval
|
|
502
|
-
@renter_name = renter_name
|
|
503
|
-
@return_address = return_address
|
|
504
|
-
@return_at = return_at
|
|
505
|
-
@return_location_name = return_location_name
|
|
506
|
-
@tax_exempt = tax_exempt
|
|
507
|
-
@vehicle_identification_number = vehicle_identification_number
|
|
508
|
-
end
|
|
509
|
-
end
|
|
510
|
-
|
|
511
|
-
class CarRentalDatum < ::Stripe::RequestParams
|
|
512
|
-
class Affiliate < ::Stripe::RequestParams
|
|
513
|
-
# Affiliate partner code.
|
|
514
|
-
attr_accessor :code
|
|
515
|
-
# Name of affiliate partner.
|
|
516
|
-
attr_accessor :name
|
|
517
|
-
|
|
518
|
-
def initialize(code: nil, name: nil)
|
|
519
|
-
@code = code
|
|
520
|
-
@name = name
|
|
521
|
-
end
|
|
522
|
-
end
|
|
523
|
-
|
|
524
|
-
class Distance < ::Stripe::RequestParams
|
|
525
|
-
# Distance traveled.
|
|
526
|
-
attr_accessor :amount
|
|
527
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
528
|
-
attr_accessor :unit
|
|
529
|
-
|
|
530
|
-
def initialize(amount: nil, unit: nil)
|
|
531
|
-
@amount = amount
|
|
532
|
-
@unit = unit
|
|
533
|
-
end
|
|
534
|
-
end
|
|
535
|
-
|
|
536
|
-
class Driver < ::Stripe::RequestParams
|
|
537
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
538
|
-
# Day of birth (1-31).
|
|
539
|
-
attr_accessor :day
|
|
540
|
-
# Month of birth (1-12).
|
|
541
|
-
attr_accessor :month
|
|
542
|
-
# Year of birth (must be greater than 1900).
|
|
543
|
-
attr_accessor :year
|
|
544
|
-
|
|
545
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
546
|
-
@day = day
|
|
547
|
-
@month = month
|
|
548
|
-
@year = year
|
|
549
|
-
end
|
|
550
|
-
end
|
|
551
|
-
# Driver's date of birth.
|
|
552
|
-
attr_accessor :date_of_birth
|
|
553
|
-
# Driver's identification number.
|
|
554
|
-
attr_accessor :driver_identification_number
|
|
555
|
-
# Driver's tax number.
|
|
556
|
-
attr_accessor :driver_tax_number
|
|
557
|
-
# Driver's full name.
|
|
558
|
-
attr_accessor :name
|
|
559
|
-
|
|
560
|
-
def initialize(
|
|
561
|
-
date_of_birth: nil,
|
|
562
|
-
driver_identification_number: nil,
|
|
563
|
-
driver_tax_number: nil,
|
|
564
|
-
name: nil
|
|
565
|
-
)
|
|
566
|
-
@date_of_birth = date_of_birth
|
|
567
|
-
@driver_identification_number = driver_identification_number
|
|
568
|
-
@driver_tax_number = driver_tax_number
|
|
569
|
-
@name = name
|
|
570
|
-
end
|
|
571
|
-
end
|
|
572
|
-
|
|
573
|
-
class DropOff < ::Stripe::RequestParams
|
|
574
|
-
class Address < ::Stripe::RequestParams
|
|
575
|
-
# City, district, suburb, town, or village.
|
|
576
|
-
attr_accessor :city
|
|
577
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
578
|
-
attr_accessor :country
|
|
579
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
580
|
-
attr_accessor :line1
|
|
581
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
582
|
-
attr_accessor :line2
|
|
583
|
-
# ZIP or postal code.
|
|
584
|
-
attr_accessor :postal_code
|
|
585
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
586
|
-
attr_accessor :state
|
|
587
|
-
|
|
588
|
-
def initialize(
|
|
589
|
-
city: nil,
|
|
590
|
-
country: nil,
|
|
591
|
-
line1: nil,
|
|
592
|
-
line2: nil,
|
|
593
|
-
postal_code: nil,
|
|
594
|
-
state: nil
|
|
595
|
-
)
|
|
596
|
-
@city = city
|
|
597
|
-
@country = country
|
|
598
|
-
@line1 = line1
|
|
599
|
-
@line2 = line2
|
|
600
|
-
@postal_code = postal_code
|
|
601
|
-
@state = state
|
|
602
|
-
end
|
|
603
|
-
end
|
|
604
|
-
# Address of the rental location.
|
|
605
|
-
attr_accessor :address
|
|
606
|
-
# Location name.
|
|
607
|
-
attr_accessor :location_name
|
|
608
|
-
# Timestamp for the location.
|
|
609
|
-
attr_accessor :time
|
|
610
|
-
|
|
611
|
-
def initialize(address: nil, location_name: nil, time: nil)
|
|
612
|
-
@address = address
|
|
613
|
-
@location_name = location_name
|
|
614
|
-
@time = time
|
|
615
|
-
end
|
|
616
|
-
end
|
|
617
|
-
|
|
618
|
-
class Insurance < ::Stripe::RequestParams
|
|
619
|
-
# Amount of the insurance coverage in cents.
|
|
620
|
-
attr_accessor :amount
|
|
621
|
-
# Currency of the insurance amount.
|
|
622
|
-
attr_accessor :currency
|
|
623
|
-
# Name of the insurance company.
|
|
624
|
-
attr_accessor :insurance_company_name
|
|
625
|
-
# Type of insurance coverage.
|
|
626
|
-
attr_accessor :insurance_type
|
|
627
|
-
|
|
628
|
-
def initialize(
|
|
629
|
-
amount: nil,
|
|
630
|
-
currency: nil,
|
|
631
|
-
insurance_company_name: nil,
|
|
632
|
-
insurance_type: nil
|
|
633
|
-
)
|
|
634
|
-
@amount = amount
|
|
635
|
-
@currency = currency
|
|
636
|
-
@insurance_company_name = insurance_company_name
|
|
637
|
-
@insurance_type = insurance_type
|
|
638
|
-
end
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
class Pickup < ::Stripe::RequestParams
|
|
642
|
-
class Address < ::Stripe::RequestParams
|
|
643
|
-
# City, district, suburb, town, or village.
|
|
644
|
-
attr_accessor :city
|
|
645
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
646
|
-
attr_accessor :country
|
|
647
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
648
|
-
attr_accessor :line1
|
|
649
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
650
|
-
attr_accessor :line2
|
|
651
|
-
# ZIP or postal code.
|
|
652
|
-
attr_accessor :postal_code
|
|
653
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
654
|
-
attr_accessor :state
|
|
655
|
-
|
|
656
|
-
def initialize(
|
|
657
|
-
city: nil,
|
|
658
|
-
country: nil,
|
|
659
|
-
line1: nil,
|
|
660
|
-
line2: nil,
|
|
661
|
-
postal_code: nil,
|
|
662
|
-
state: nil
|
|
663
|
-
)
|
|
664
|
-
@city = city
|
|
665
|
-
@country = country
|
|
666
|
-
@line1 = line1
|
|
667
|
-
@line2 = line2
|
|
668
|
-
@postal_code = postal_code
|
|
669
|
-
@state = state
|
|
670
|
-
end
|
|
671
|
-
end
|
|
672
|
-
# Address of the rental location.
|
|
673
|
-
attr_accessor :address
|
|
674
|
-
# Location name.
|
|
675
|
-
attr_accessor :location_name
|
|
676
|
-
# Timestamp for the location.
|
|
677
|
-
attr_accessor :time
|
|
678
|
-
|
|
679
|
-
def initialize(address: nil, location_name: nil, time: nil)
|
|
680
|
-
@address = address
|
|
681
|
-
@location_name = location_name
|
|
682
|
-
@time = time
|
|
683
|
-
end
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
class Total < ::Stripe::RequestParams
|
|
687
|
-
class Discounts < ::Stripe::RequestParams
|
|
688
|
-
# Corporate client discount code.
|
|
689
|
-
attr_accessor :corporate_client_code
|
|
690
|
-
# Coupon code applied to the rental.
|
|
691
|
-
attr_accessor :coupon
|
|
692
|
-
# Maximum number of free miles or kilometers included.
|
|
693
|
-
attr_accessor :maximum_free_miles_or_kilometers
|
|
694
|
-
|
|
695
|
-
def initialize(
|
|
696
|
-
corporate_client_code: nil,
|
|
697
|
-
coupon: nil,
|
|
698
|
-
maximum_free_miles_or_kilometers: nil
|
|
699
|
-
)
|
|
700
|
-
@corporate_client_code = corporate_client_code
|
|
701
|
-
@coupon = coupon
|
|
702
|
-
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
703
|
-
end
|
|
704
|
-
end
|
|
705
|
-
|
|
706
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
707
|
-
# Amount of the extra charge in cents.
|
|
708
|
-
attr_accessor :amount
|
|
709
|
-
# Type of extra charge.
|
|
710
|
-
attr_accessor :type
|
|
711
|
-
|
|
712
|
-
def initialize(amount: nil, type: nil)
|
|
713
|
-
@amount = amount
|
|
714
|
-
@type = type
|
|
715
|
-
end
|
|
716
|
-
end
|
|
717
|
-
|
|
718
|
-
class Tax < ::Stripe::RequestParams
|
|
719
|
-
class TaxItem < ::Stripe::RequestParams
|
|
720
|
-
# Tax amount.
|
|
721
|
-
attr_accessor :amount
|
|
722
|
-
# Tax rate applied.
|
|
723
|
-
attr_accessor :rate
|
|
724
|
-
# Type of tax applied.
|
|
725
|
-
attr_accessor :type
|
|
726
|
-
|
|
727
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
728
|
-
@amount = amount
|
|
729
|
-
@rate = rate
|
|
730
|
-
@type = type
|
|
731
|
-
end
|
|
732
|
-
end
|
|
733
|
-
# Indicates if the transaction is tax exempt.
|
|
734
|
-
attr_accessor :tax_exempt_indicator
|
|
735
|
-
# Array of tax details.
|
|
736
|
-
attr_accessor :tax_items
|
|
737
|
-
|
|
738
|
-
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
739
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
740
|
-
@tax_items = tax_items
|
|
741
|
-
end
|
|
742
|
-
end
|
|
743
|
-
# Total amount in cents.
|
|
744
|
-
attr_accessor :amount
|
|
745
|
-
# Currency of the amount.
|
|
746
|
-
attr_accessor :currency
|
|
747
|
-
# Discount details for the rental.
|
|
748
|
-
attr_accessor :discounts
|
|
749
|
-
# Additional charges for the rental.
|
|
750
|
-
attr_accessor :extra_charges
|
|
751
|
-
# Rate per unit for the rental.
|
|
752
|
-
attr_accessor :rate_per_unit
|
|
753
|
-
# Unit of measurement for the rate.
|
|
754
|
-
attr_accessor :rate_unit
|
|
755
|
-
# Tax breakdown for the rental.
|
|
756
|
-
attr_accessor :tax
|
|
757
|
-
|
|
758
|
-
def initialize(
|
|
759
|
-
amount: nil,
|
|
760
|
-
currency: nil,
|
|
761
|
-
discounts: nil,
|
|
762
|
-
extra_charges: nil,
|
|
763
|
-
rate_per_unit: nil,
|
|
764
|
-
rate_unit: nil,
|
|
765
|
-
tax: nil
|
|
766
|
-
)
|
|
767
|
-
@amount = amount
|
|
768
|
-
@currency = currency
|
|
769
|
-
@discounts = discounts
|
|
770
|
-
@extra_charges = extra_charges
|
|
771
|
-
@rate_per_unit = rate_per_unit
|
|
772
|
-
@rate_unit = rate_unit
|
|
773
|
-
@tax = tax
|
|
774
|
-
end
|
|
775
|
-
end
|
|
776
|
-
|
|
777
|
-
class Vehicle < ::Stripe::RequestParams
|
|
778
|
-
# Make of the rental vehicle.
|
|
779
|
-
attr_accessor :make
|
|
780
|
-
# Model of the rental vehicle.
|
|
781
|
-
attr_accessor :model
|
|
782
|
-
# Odometer reading at the time of rental.
|
|
783
|
-
attr_accessor :odometer
|
|
784
|
-
# Type of the rental vehicle.
|
|
785
|
-
attr_accessor :type
|
|
786
|
-
# Class of the rental vehicle.
|
|
787
|
-
attr_accessor :vehicle_class
|
|
788
|
-
# Vehicle identification number (VIN).
|
|
789
|
-
attr_accessor :vehicle_identification_number
|
|
790
|
-
|
|
791
|
-
def initialize(
|
|
792
|
-
make: nil,
|
|
793
|
-
model: nil,
|
|
794
|
-
odometer: nil,
|
|
795
|
-
type: nil,
|
|
796
|
-
vehicle_class: nil,
|
|
797
|
-
vehicle_identification_number: nil
|
|
798
|
-
)
|
|
799
|
-
@make = make
|
|
800
|
-
@model = model
|
|
801
|
-
@odometer = odometer
|
|
802
|
-
@type = type
|
|
803
|
-
@vehicle_class = vehicle_class
|
|
804
|
-
@vehicle_identification_number = vehicle_identification_number
|
|
805
|
-
end
|
|
806
|
-
end
|
|
807
|
-
# Affiliate (such as travel agency) details for the rental.
|
|
808
|
-
attr_accessor :affiliate
|
|
809
|
-
# Booking confirmation number for the car rental.
|
|
810
|
-
attr_accessor :booking_number
|
|
811
|
-
# Name of the car rental company.
|
|
812
|
-
attr_accessor :carrier_name
|
|
813
|
-
# Customer service phone number for the car rental company.
|
|
814
|
-
attr_accessor :customer_service_phone_number
|
|
815
|
-
# Number of days the car is being rented.
|
|
816
|
-
attr_accessor :days_rented
|
|
817
|
-
# Distance details for the rental.
|
|
818
|
-
attr_accessor :distance
|
|
819
|
-
# List of drivers for the rental.
|
|
820
|
-
attr_accessor :drivers
|
|
821
|
-
# Drop-off location details.
|
|
822
|
-
attr_accessor :drop_off
|
|
823
|
-
# Insurance details for the rental.
|
|
824
|
-
attr_accessor :insurances
|
|
825
|
-
# Indicates if the customer was a no-show.
|
|
826
|
-
attr_accessor :no_show_indicator
|
|
827
|
-
# Pickup location details.
|
|
828
|
-
attr_accessor :pickup
|
|
829
|
-
# Name of the person renting the vehicle.
|
|
830
|
-
attr_accessor :renter_name
|
|
831
|
-
# Total cost breakdown for the rental.
|
|
832
|
-
attr_accessor :total
|
|
833
|
-
# Vehicle details for the rental.
|
|
834
|
-
attr_accessor :vehicle
|
|
835
|
-
|
|
836
|
-
def initialize(
|
|
837
|
-
affiliate: nil,
|
|
838
|
-
booking_number: nil,
|
|
839
|
-
carrier_name: nil,
|
|
840
|
-
customer_service_phone_number: nil,
|
|
841
|
-
days_rented: nil,
|
|
842
|
-
distance: nil,
|
|
843
|
-
drivers: nil,
|
|
844
|
-
drop_off: nil,
|
|
845
|
-
insurances: nil,
|
|
846
|
-
no_show_indicator: nil,
|
|
847
|
-
pickup: nil,
|
|
848
|
-
renter_name: nil,
|
|
849
|
-
total: nil,
|
|
850
|
-
vehicle: nil
|
|
851
|
-
)
|
|
852
|
-
@affiliate = affiliate
|
|
853
|
-
@booking_number = booking_number
|
|
854
|
-
@carrier_name = carrier_name
|
|
855
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
856
|
-
@days_rented = days_rented
|
|
857
|
-
@distance = distance
|
|
858
|
-
@drivers = drivers
|
|
859
|
-
@drop_off = drop_off
|
|
860
|
-
@insurances = insurances
|
|
861
|
-
@no_show_indicator = no_show_indicator
|
|
862
|
-
@pickup = pickup
|
|
863
|
-
@renter_name = renter_name
|
|
864
|
-
@total = total
|
|
865
|
-
@vehicle = vehicle
|
|
866
|
-
end
|
|
867
|
-
end
|
|
868
|
-
|
|
869
|
-
class EventDetails < ::Stripe::RequestParams
|
|
870
|
-
class Address < ::Stripe::RequestParams
|
|
871
|
-
# City, district, suburb, town, or village.
|
|
872
|
-
attr_accessor :city
|
|
873
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
874
|
-
attr_accessor :country
|
|
875
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
876
|
-
attr_accessor :line1
|
|
877
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
878
|
-
attr_accessor :line2
|
|
879
|
-
# ZIP or postal code.
|
|
880
|
-
attr_accessor :postal_code
|
|
881
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
882
|
-
attr_accessor :state
|
|
883
|
-
|
|
884
|
-
def initialize(
|
|
885
|
-
city: nil,
|
|
886
|
-
country: nil,
|
|
887
|
-
line1: nil,
|
|
888
|
-
line2: nil,
|
|
889
|
-
postal_code: nil,
|
|
890
|
-
state: nil
|
|
891
|
-
)
|
|
892
|
-
@city = city
|
|
893
|
-
@country = country
|
|
894
|
-
@line1 = line1
|
|
895
|
-
@line2 = line2
|
|
896
|
-
@postal_code = postal_code
|
|
897
|
-
@state = state
|
|
898
|
-
end
|
|
899
|
-
end
|
|
900
|
-
|
|
901
|
-
class Affiliate < ::Stripe::RequestParams
|
|
902
|
-
# The name of the affiliate that originated the purchase.
|
|
903
|
-
attr_accessor :name
|
|
904
|
-
|
|
905
|
-
def initialize(name: nil)
|
|
906
|
-
@name = name
|
|
907
|
-
end
|
|
908
|
-
end
|
|
909
|
-
|
|
910
|
-
class Delivery < ::Stripe::RequestParams
|
|
911
|
-
class Recipient < ::Stripe::RequestParams
|
|
912
|
-
# The email of the recipient the ticket is delivered to.
|
|
913
|
-
attr_accessor :email
|
|
914
|
-
# The name of the recipient the ticket is delivered to.
|
|
915
|
-
attr_accessor :name
|
|
916
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
917
|
-
attr_accessor :phone
|
|
918
|
-
|
|
919
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
920
|
-
@email = email
|
|
921
|
-
@name = name
|
|
922
|
-
@phone = phone
|
|
923
|
-
end
|
|
924
|
-
end
|
|
925
|
-
# The delivery method for the payment
|
|
926
|
-
attr_accessor :mode
|
|
927
|
-
# Details of the recipient.
|
|
928
|
-
attr_accessor :recipient
|
|
929
|
-
|
|
930
|
-
def initialize(mode: nil, recipient: nil)
|
|
931
|
-
@mode = mode
|
|
932
|
-
@recipient = recipient
|
|
933
|
-
end
|
|
934
|
-
end
|
|
935
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
936
|
-
attr_accessor :access_controlled_venue
|
|
937
|
-
# The event location's address.
|
|
938
|
-
attr_accessor :address
|
|
939
|
-
# Affiliate details for this purchase.
|
|
940
|
-
attr_accessor :affiliate
|
|
941
|
-
# The name of the company
|
|
942
|
-
attr_accessor :company
|
|
943
|
-
# Delivery details for this purchase.
|
|
944
|
-
attr_accessor :delivery
|
|
945
|
-
# Event end time. Measured in seconds since the Unix epoch.
|
|
946
|
-
attr_accessor :ends_at
|
|
947
|
-
# Type of the event entertainment (concert, sports event etc)
|
|
948
|
-
attr_accessor :genre
|
|
949
|
-
# The name of the event.
|
|
950
|
-
attr_accessor :name
|
|
951
|
-
# Event start time. Measured in seconds since the Unix epoch.
|
|
952
|
-
attr_accessor :starts_at
|
|
953
|
-
|
|
954
|
-
def initialize(
|
|
955
|
-
access_controlled_venue: nil,
|
|
956
|
-
address: nil,
|
|
957
|
-
affiliate: nil,
|
|
958
|
-
company: nil,
|
|
959
|
-
delivery: nil,
|
|
960
|
-
ends_at: nil,
|
|
961
|
-
genre: nil,
|
|
962
|
-
name: nil,
|
|
963
|
-
starts_at: nil
|
|
964
|
-
)
|
|
965
|
-
@access_controlled_venue = access_controlled_venue
|
|
966
|
-
@address = address
|
|
967
|
-
@affiliate = affiliate
|
|
968
|
-
@company = company
|
|
969
|
-
@delivery = delivery
|
|
970
|
-
@ends_at = ends_at
|
|
971
|
-
@genre = genre
|
|
972
|
-
@name = name
|
|
973
|
-
@starts_at = starts_at
|
|
974
|
-
end
|
|
975
|
-
end
|
|
976
|
-
|
|
977
|
-
class Flight < ::Stripe::RequestParams
|
|
978
|
-
class Affiliate < ::Stripe::RequestParams
|
|
979
|
-
# The name of the affiliate that originated the purchase.
|
|
980
|
-
attr_accessor :name
|
|
981
|
-
|
|
982
|
-
def initialize(name: nil)
|
|
983
|
-
@name = name
|
|
984
|
-
end
|
|
985
|
-
end
|
|
986
|
-
|
|
987
|
-
class Delivery < ::Stripe::RequestParams
|
|
988
|
-
class Recipient < ::Stripe::RequestParams
|
|
989
|
-
# The email of the recipient the ticket is delivered to.
|
|
990
|
-
attr_accessor :email
|
|
991
|
-
# The name of the recipient the ticket is delivered to.
|
|
992
|
-
attr_accessor :name
|
|
993
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
994
|
-
attr_accessor :phone
|
|
995
|
-
|
|
996
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
997
|
-
@email = email
|
|
998
|
-
@name = name
|
|
999
|
-
@phone = phone
|
|
1000
|
-
end
|
|
1001
|
-
end
|
|
1002
|
-
# The delivery method for the payment
|
|
1003
|
-
attr_accessor :mode
|
|
1004
|
-
# Details of the recipient.
|
|
1005
|
-
attr_accessor :recipient
|
|
1006
|
-
|
|
1007
|
-
def initialize(mode: nil, recipient: nil)
|
|
1008
|
-
@mode = mode
|
|
1009
|
-
@recipient = recipient
|
|
1010
|
-
end
|
|
1011
|
-
end
|
|
1012
|
-
|
|
1013
|
-
class Passenger < ::Stripe::RequestParams
|
|
1014
|
-
# Full name of the person or entity on the flight reservation.
|
|
1015
|
-
attr_accessor :name
|
|
1016
|
-
|
|
1017
|
-
def initialize(name: nil)
|
|
1018
|
-
@name = name
|
|
1019
|
-
end
|
|
1020
|
-
end
|
|
1021
|
-
|
|
1022
|
-
class Segment < ::Stripe::RequestParams
|
|
1023
|
-
# The flight segment amount.
|
|
1024
|
-
attr_accessor :amount
|
|
1025
|
-
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1026
|
-
attr_accessor :arrival_airport
|
|
1027
|
-
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1028
|
-
attr_accessor :arrives_at
|
|
1029
|
-
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1030
|
-
attr_accessor :carrier
|
|
1031
|
-
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1032
|
-
attr_accessor :departs_at
|
|
1033
|
-
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1034
|
-
attr_accessor :departure_airport
|
|
1035
|
-
# The flight number associated with the segment
|
|
1036
|
-
attr_accessor :flight_number
|
|
1037
|
-
# The fare class for the segment.
|
|
1038
|
-
attr_accessor :service_class
|
|
1039
|
-
|
|
1040
|
-
def initialize(
|
|
1041
|
-
amount: nil,
|
|
1042
|
-
arrival_airport: nil,
|
|
1043
|
-
arrives_at: nil,
|
|
1044
|
-
carrier: nil,
|
|
1045
|
-
departs_at: nil,
|
|
1046
|
-
departure_airport: nil,
|
|
1047
|
-
flight_number: nil,
|
|
1048
|
-
service_class: nil
|
|
1049
|
-
)
|
|
1050
|
-
@amount = amount
|
|
1051
|
-
@arrival_airport = arrival_airport
|
|
1052
|
-
@arrives_at = arrives_at
|
|
1053
|
-
@carrier = carrier
|
|
1054
|
-
@departs_at = departs_at
|
|
1055
|
-
@departure_airport = departure_airport
|
|
1056
|
-
@flight_number = flight_number
|
|
1057
|
-
@service_class = service_class
|
|
1058
|
-
end
|
|
1059
|
-
end
|
|
1060
|
-
# Affiliate details for this purchase.
|
|
1061
|
-
attr_accessor :affiliate
|
|
1062
|
-
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1063
|
-
attr_accessor :agency_number
|
|
1064
|
-
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1065
|
-
attr_accessor :carrier
|
|
1066
|
-
# Delivery details for this purchase.
|
|
1067
|
-
attr_accessor :delivery
|
|
1068
|
-
# The name of the person or entity on the reservation.
|
|
1069
|
-
attr_accessor :passenger_name
|
|
1070
|
-
# The details of the passengers in the travel reservation.
|
|
1071
|
-
attr_accessor :passengers
|
|
1072
|
-
# The individual flight segments associated with the trip.
|
|
1073
|
-
attr_accessor :segments
|
|
1074
|
-
# The ticket number associated with the travel reservation.
|
|
1075
|
-
attr_accessor :ticket_number
|
|
1076
|
-
|
|
1077
|
-
def initialize(
|
|
1078
|
-
affiliate: nil,
|
|
1079
|
-
agency_number: nil,
|
|
1080
|
-
carrier: nil,
|
|
1081
|
-
delivery: nil,
|
|
1082
|
-
passenger_name: nil,
|
|
1083
|
-
passengers: nil,
|
|
1084
|
-
segments: nil,
|
|
1085
|
-
ticket_number: nil
|
|
1086
|
-
)
|
|
1087
|
-
@affiliate = affiliate
|
|
1088
|
-
@agency_number = agency_number
|
|
1089
|
-
@carrier = carrier
|
|
1090
|
-
@delivery = delivery
|
|
1091
|
-
@passenger_name = passenger_name
|
|
1092
|
-
@passengers = passengers
|
|
1093
|
-
@segments = segments
|
|
1094
|
-
@ticket_number = ticket_number
|
|
1095
|
-
end
|
|
1096
|
-
end
|
|
1097
|
-
|
|
1098
|
-
class FlightDatum < ::Stripe::RequestParams
|
|
1099
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1100
|
-
# Affiliate partner code.
|
|
1101
|
-
attr_accessor :code
|
|
1102
|
-
# Name of affiliate partner.
|
|
1103
|
-
attr_accessor :name
|
|
1104
|
-
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1105
|
-
attr_accessor :travel_authorization_code
|
|
1106
|
-
|
|
1107
|
-
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1108
|
-
@code = code
|
|
1109
|
-
@name = name
|
|
1110
|
-
@travel_authorization_code = travel_authorization_code
|
|
1111
|
-
end
|
|
1112
|
-
end
|
|
1113
|
-
|
|
1114
|
-
class Insurance < ::Stripe::RequestParams
|
|
1115
|
-
# Insurance cost.
|
|
1116
|
-
attr_accessor :amount
|
|
1117
|
-
# Insurance currency.
|
|
1118
|
-
attr_accessor :currency
|
|
1119
|
-
# Insurance company name.
|
|
1120
|
-
attr_accessor :insurance_company_name
|
|
1121
|
-
# Type of insurance.
|
|
1122
|
-
attr_accessor :insurance_type
|
|
1123
|
-
|
|
1124
|
-
def initialize(
|
|
1125
|
-
amount: nil,
|
|
1126
|
-
currency: nil,
|
|
1127
|
-
insurance_company_name: nil,
|
|
1128
|
-
insurance_type: nil
|
|
1129
|
-
)
|
|
1130
|
-
@amount = amount
|
|
1131
|
-
@currency = currency
|
|
1132
|
-
@insurance_company_name = insurance_company_name
|
|
1133
|
-
@insurance_type = insurance_type
|
|
1134
|
-
end
|
|
1135
|
-
end
|
|
1136
|
-
|
|
1137
|
-
class Passenger < ::Stripe::RequestParams
|
|
1138
|
-
# Passenger's full name.
|
|
1139
|
-
attr_accessor :name
|
|
1140
|
-
|
|
1141
|
-
def initialize(name: nil)
|
|
1142
|
-
@name = name
|
|
1143
|
-
end
|
|
1144
|
-
end
|
|
1145
|
-
|
|
1146
|
-
class Segment < ::Stripe::RequestParams
|
|
1147
|
-
class Arrival < ::Stripe::RequestParams
|
|
1148
|
-
# Arrival airport IATA code.
|
|
1149
|
-
attr_accessor :airport
|
|
1150
|
-
# Arrival date/time.
|
|
1151
|
-
attr_accessor :arrives_at
|
|
1152
|
-
# Arrival city.
|
|
1153
|
-
attr_accessor :city
|
|
1154
|
-
# Arrival country.
|
|
1155
|
-
attr_accessor :country
|
|
1156
|
-
|
|
1157
|
-
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1158
|
-
@airport = airport
|
|
1159
|
-
@arrives_at = arrives_at
|
|
1160
|
-
@city = city
|
|
1161
|
-
@country = country
|
|
1162
|
-
end
|
|
1163
|
-
end
|
|
1164
|
-
|
|
1165
|
-
class Departure < ::Stripe::RequestParams
|
|
1166
|
-
# Departure airport IATA code.
|
|
1167
|
-
attr_accessor :airport
|
|
1168
|
-
# Departure city.
|
|
1169
|
-
attr_accessor :city
|
|
1170
|
-
# Departure country.
|
|
1171
|
-
attr_accessor :country
|
|
1172
|
-
# Departure date/time.
|
|
1173
|
-
attr_accessor :departs_at
|
|
1174
|
-
|
|
1175
|
-
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1176
|
-
@airport = airport
|
|
1177
|
-
@city = city
|
|
1178
|
-
@country = country
|
|
1179
|
-
@departs_at = departs_at
|
|
1180
|
-
end
|
|
1181
|
-
end
|
|
1182
|
-
# Segment fare amount.
|
|
1183
|
-
attr_accessor :amount
|
|
1184
|
-
# Arrival details.
|
|
1185
|
-
attr_accessor :arrival
|
|
1186
|
-
# Airline carrier code.
|
|
1187
|
-
attr_accessor :carrier_code
|
|
1188
|
-
# Carrier name.
|
|
1189
|
-
attr_accessor :carrier_name
|
|
1190
|
-
# Segment currency.
|
|
1191
|
-
attr_accessor :currency
|
|
1192
|
-
# Departure details.
|
|
1193
|
-
attr_accessor :departure
|
|
1194
|
-
# Exchange ticket number.
|
|
1195
|
-
attr_accessor :exchange_ticket_number
|
|
1196
|
-
# Fare basis code.
|
|
1197
|
-
attr_accessor :fare_basis_code
|
|
1198
|
-
# Additional fees.
|
|
1199
|
-
attr_accessor :fees
|
|
1200
|
-
# Flight number.
|
|
1201
|
-
attr_accessor :flight_number
|
|
1202
|
-
# Stopover indicator.
|
|
1203
|
-
attr_accessor :is_stop_over_indicator
|
|
1204
|
-
# Refundable ticket indicator.
|
|
1205
|
-
attr_accessor :refundable
|
|
1206
|
-
# Class of service.
|
|
1207
|
-
attr_accessor :service_class
|
|
1208
|
-
# Tax amount for segment.
|
|
1209
|
-
attr_accessor :tax_amount
|
|
1210
|
-
# Ticket number.
|
|
1211
|
-
attr_accessor :ticket_number
|
|
1212
|
-
|
|
1213
|
-
def initialize(
|
|
1214
|
-
amount: nil,
|
|
1215
|
-
arrival: nil,
|
|
1216
|
-
carrier_code: nil,
|
|
1217
|
-
carrier_name: nil,
|
|
1218
|
-
currency: nil,
|
|
1219
|
-
departure: nil,
|
|
1220
|
-
exchange_ticket_number: nil,
|
|
1221
|
-
fare_basis_code: nil,
|
|
1222
|
-
fees: nil,
|
|
1223
|
-
flight_number: nil,
|
|
1224
|
-
is_stop_over_indicator: nil,
|
|
1225
|
-
refundable: nil,
|
|
1226
|
-
service_class: nil,
|
|
1227
|
-
tax_amount: nil,
|
|
1228
|
-
ticket_number: nil
|
|
1229
|
-
)
|
|
1230
|
-
@amount = amount
|
|
1231
|
-
@arrival = arrival
|
|
1232
|
-
@carrier_code = carrier_code
|
|
1233
|
-
@carrier_name = carrier_name
|
|
1234
|
-
@currency = currency
|
|
1235
|
-
@departure = departure
|
|
1236
|
-
@exchange_ticket_number = exchange_ticket_number
|
|
1237
|
-
@fare_basis_code = fare_basis_code
|
|
1238
|
-
@fees = fees
|
|
1239
|
-
@flight_number = flight_number
|
|
1240
|
-
@is_stop_over_indicator = is_stop_over_indicator
|
|
1241
|
-
@refundable = refundable
|
|
1242
|
-
@service_class = service_class
|
|
1243
|
-
@tax_amount = tax_amount
|
|
1244
|
-
@ticket_number = ticket_number
|
|
1245
|
-
end
|
|
1246
|
-
end
|
|
1247
|
-
|
|
1248
|
-
class Total < ::Stripe::RequestParams
|
|
1249
|
-
class Discounts < ::Stripe::RequestParams
|
|
1250
|
-
# Corporate client discount code.
|
|
1251
|
-
attr_accessor :corporate_client_code
|
|
1252
|
-
|
|
1253
|
-
def initialize(corporate_client_code: nil)
|
|
1254
|
-
@corporate_client_code = corporate_client_code
|
|
1255
|
-
end
|
|
1256
|
-
end
|
|
1257
|
-
|
|
1258
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
1259
|
-
# Amount of additional charges.
|
|
1260
|
-
attr_accessor :amount
|
|
1261
|
-
# Type of additional charges.
|
|
1262
|
-
attr_accessor :type
|
|
1263
|
-
|
|
1264
|
-
def initialize(amount: nil, type: nil)
|
|
1265
|
-
@amount = amount
|
|
1266
|
-
@type = type
|
|
1267
|
-
end
|
|
1268
|
-
end
|
|
1269
|
-
|
|
1270
|
-
class Tax < ::Stripe::RequestParams
|
|
1271
|
-
class TaxItem < ::Stripe::RequestParams
|
|
1272
|
-
# Tax amount.
|
|
1273
|
-
attr_accessor :amount
|
|
1274
|
-
# Tax rate.
|
|
1275
|
-
attr_accessor :rate
|
|
1276
|
-
# Type of tax.
|
|
1277
|
-
attr_accessor :type
|
|
1278
|
-
|
|
1279
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
1280
|
-
@amount = amount
|
|
1281
|
-
@rate = rate
|
|
1282
|
-
@type = type
|
|
1283
|
-
end
|
|
1284
|
-
end
|
|
1285
|
-
# Array of tax details.
|
|
1286
|
-
attr_accessor :tax_items
|
|
1287
|
-
|
|
1288
|
-
def initialize(tax_items: nil)
|
|
1289
|
-
@tax_items = tax_items
|
|
1290
|
-
end
|
|
1291
|
-
end
|
|
1292
|
-
# Total flight amount.
|
|
1293
|
-
attr_accessor :amount
|
|
1294
|
-
# Reason for credit.
|
|
1295
|
-
attr_accessor :credit_reason
|
|
1296
|
-
# Total currency.
|
|
1297
|
-
attr_accessor :currency
|
|
1298
|
-
# Discount details.
|
|
1299
|
-
attr_accessor :discounts
|
|
1300
|
-
# Additional charges.
|
|
1301
|
-
attr_accessor :extra_charges
|
|
1302
|
-
# Tax breakdown.
|
|
1303
|
-
attr_accessor :tax
|
|
1304
|
-
|
|
1305
|
-
def initialize(
|
|
1306
|
-
amount: nil,
|
|
1307
|
-
credit_reason: nil,
|
|
1308
|
-
currency: nil,
|
|
1309
|
-
discounts: nil,
|
|
1310
|
-
extra_charges: nil,
|
|
1311
|
-
tax: nil
|
|
1312
|
-
)
|
|
1313
|
-
@amount = amount
|
|
1314
|
-
@credit_reason = credit_reason
|
|
1315
|
-
@currency = currency
|
|
1316
|
-
@discounts = discounts
|
|
1317
|
-
@extra_charges = extra_charges
|
|
1318
|
-
@tax = tax
|
|
1319
|
-
end
|
|
1320
|
-
end
|
|
1321
|
-
# Affiliate details if applicable.
|
|
1322
|
-
attr_accessor :affiliate
|
|
1323
|
-
# Reservation reference.
|
|
1324
|
-
attr_accessor :booking_number
|
|
1325
|
-
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1326
|
-
attr_accessor :computerized_reservation_system
|
|
1327
|
-
# Ticket restrictions.
|
|
1328
|
-
attr_accessor :endorsements_and_restrictions
|
|
1329
|
-
# List of insurances.
|
|
1330
|
-
attr_accessor :insurances
|
|
1331
|
-
# List of passengers.
|
|
1332
|
-
attr_accessor :passengers
|
|
1333
|
-
# List of flight segments.
|
|
1334
|
-
attr_accessor :segments
|
|
1335
|
-
# Electronic ticket indicator.
|
|
1336
|
-
attr_accessor :ticket_electronically_issued_indicator
|
|
1337
|
-
# Total cost breakdown.
|
|
1338
|
-
attr_accessor :total
|
|
1339
|
-
# Type of flight transaction.
|
|
1340
|
-
attr_accessor :transaction_type
|
|
1341
|
-
|
|
1342
|
-
def initialize(
|
|
1343
|
-
affiliate: nil,
|
|
1344
|
-
booking_number: nil,
|
|
1345
|
-
computerized_reservation_system: nil,
|
|
1346
|
-
endorsements_and_restrictions: nil,
|
|
1347
|
-
insurances: nil,
|
|
1348
|
-
passengers: nil,
|
|
1349
|
-
segments: nil,
|
|
1350
|
-
ticket_electronically_issued_indicator: nil,
|
|
1351
|
-
total: nil,
|
|
1352
|
-
transaction_type: nil
|
|
1353
|
-
)
|
|
1354
|
-
@affiliate = affiliate
|
|
1355
|
-
@booking_number = booking_number
|
|
1356
|
-
@computerized_reservation_system = computerized_reservation_system
|
|
1357
|
-
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1358
|
-
@insurances = insurances
|
|
1359
|
-
@passengers = passengers
|
|
1360
|
-
@segments = segments
|
|
1361
|
-
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1362
|
-
@total = total
|
|
1363
|
-
@transaction_type = transaction_type
|
|
1364
|
-
end
|
|
1365
|
-
end
|
|
1366
|
-
|
|
1367
|
-
class Lodging < ::Stripe::RequestParams
|
|
1368
|
-
class Address < ::Stripe::RequestParams
|
|
1369
|
-
# City, district, suburb, town, or village.
|
|
1370
|
-
attr_accessor :city
|
|
1371
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1372
|
-
attr_accessor :country
|
|
1373
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1374
|
-
attr_accessor :line1
|
|
1375
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1376
|
-
attr_accessor :line2
|
|
1377
|
-
# ZIP or postal code.
|
|
1378
|
-
attr_accessor :postal_code
|
|
1379
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1380
|
-
attr_accessor :state
|
|
1381
|
-
|
|
1382
|
-
def initialize(
|
|
1383
|
-
city: nil,
|
|
1384
|
-
country: nil,
|
|
1385
|
-
line1: nil,
|
|
1386
|
-
line2: nil,
|
|
1387
|
-
postal_code: nil,
|
|
1388
|
-
state: nil
|
|
1389
|
-
)
|
|
1390
|
-
@city = city
|
|
1391
|
-
@country = country
|
|
1392
|
-
@line1 = line1
|
|
1393
|
-
@line2 = line2
|
|
1394
|
-
@postal_code = postal_code
|
|
1395
|
-
@state = state
|
|
1396
|
-
end
|
|
1397
|
-
end
|
|
1398
|
-
|
|
1399
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1400
|
-
# The name of the affiliate that originated the purchase.
|
|
1401
|
-
attr_accessor :name
|
|
1402
|
-
|
|
1403
|
-
def initialize(name: nil)
|
|
1404
|
-
@name = name
|
|
1405
|
-
end
|
|
1406
|
-
end
|
|
1407
|
-
|
|
1408
|
-
class Delivery < ::Stripe::RequestParams
|
|
1409
|
-
class Recipient < ::Stripe::RequestParams
|
|
1410
|
-
# The email of the recipient the ticket is delivered to.
|
|
1411
|
-
attr_accessor :email
|
|
1412
|
-
# The name of the recipient the ticket is delivered to.
|
|
1413
|
-
attr_accessor :name
|
|
1414
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
1415
|
-
attr_accessor :phone
|
|
1416
|
-
|
|
1417
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
1418
|
-
@email = email
|
|
1419
|
-
@name = name
|
|
1420
|
-
@phone = phone
|
|
1421
|
-
end
|
|
1422
|
-
end
|
|
1423
|
-
# The delivery method for the payment
|
|
1424
|
-
attr_accessor :mode
|
|
1425
|
-
# Details of the recipient.
|
|
1426
|
-
attr_accessor :recipient
|
|
1427
|
-
|
|
1428
|
-
def initialize(mode: nil, recipient: nil)
|
|
1429
|
-
@mode = mode
|
|
1430
|
-
@recipient = recipient
|
|
1431
|
-
end
|
|
1432
|
-
end
|
|
1433
|
-
|
|
1434
|
-
class Passenger < ::Stripe::RequestParams
|
|
1435
|
-
# Full name of the person or entity on the lodging reservation.
|
|
1436
|
-
attr_accessor :name
|
|
1437
|
-
|
|
1438
|
-
def initialize(name: nil)
|
|
1439
|
-
@name = name
|
|
1440
|
-
end
|
|
1441
|
-
end
|
|
1442
|
-
# The lodging location's address.
|
|
1443
|
-
attr_accessor :address
|
|
1444
|
-
# The number of adults on the booking
|
|
1445
|
-
attr_accessor :adults
|
|
1446
|
-
# Affiliate details for this purchase.
|
|
1447
|
-
attr_accessor :affiliate
|
|
1448
|
-
# The booking number associated with the lodging reservation.
|
|
1449
|
-
attr_accessor :booking_number
|
|
1450
|
-
# The lodging category
|
|
1451
|
-
attr_accessor :category
|
|
1452
|
-
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1453
|
-
attr_accessor :checkin_at
|
|
1454
|
-
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1455
|
-
attr_accessor :checkout_at
|
|
1456
|
-
# The customer service phone number of the lodging company.
|
|
1457
|
-
attr_accessor :customer_service_phone_number
|
|
1458
|
-
# The daily lodging room rate.
|
|
1459
|
-
attr_accessor :daily_room_rate_amount
|
|
1460
|
-
# Delivery details for this purchase.
|
|
1461
|
-
attr_accessor :delivery
|
|
1462
|
-
# List of additional charges being billed.
|
|
1463
|
-
attr_accessor :extra_charges
|
|
1464
|
-
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1465
|
-
attr_accessor :fire_safety_act_compliance
|
|
1466
|
-
# The name of the lodging location.
|
|
1467
|
-
attr_accessor :name
|
|
1468
|
-
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1469
|
-
attr_accessor :no_show
|
|
1470
|
-
# The number of rooms on the booking
|
|
1471
|
-
attr_accessor :number_of_rooms
|
|
1472
|
-
# The details of the passengers in the travel reservation
|
|
1473
|
-
attr_accessor :passengers
|
|
1474
|
-
# The phone number of the lodging location.
|
|
1475
|
-
attr_accessor :property_phone_number
|
|
1476
|
-
# The room class for this purchase.
|
|
1477
|
-
attr_accessor :room_class
|
|
1478
|
-
# The number of room nights
|
|
1479
|
-
attr_accessor :room_nights
|
|
1480
|
-
# The total tax amount associating with the room reservation.
|
|
1481
|
-
attr_accessor :total_room_tax_amount
|
|
1482
|
-
# The total tax amount
|
|
1483
|
-
attr_accessor :total_tax_amount
|
|
1484
|
-
|
|
1485
|
-
def initialize(
|
|
1486
|
-
address: nil,
|
|
1487
|
-
adults: nil,
|
|
1488
|
-
affiliate: nil,
|
|
1489
|
-
booking_number: nil,
|
|
1490
|
-
category: nil,
|
|
1491
|
-
checkin_at: nil,
|
|
1492
|
-
checkout_at: nil,
|
|
1493
|
-
customer_service_phone_number: nil,
|
|
1494
|
-
daily_room_rate_amount: nil,
|
|
1495
|
-
delivery: nil,
|
|
1496
|
-
extra_charges: nil,
|
|
1497
|
-
fire_safety_act_compliance: nil,
|
|
1498
|
-
name: nil,
|
|
1499
|
-
no_show: nil,
|
|
1500
|
-
number_of_rooms: nil,
|
|
1501
|
-
passengers: nil,
|
|
1502
|
-
property_phone_number: nil,
|
|
1503
|
-
room_class: nil,
|
|
1504
|
-
room_nights: nil,
|
|
1505
|
-
total_room_tax_amount: nil,
|
|
1506
|
-
total_tax_amount: nil
|
|
1507
|
-
)
|
|
1508
|
-
@address = address
|
|
1509
|
-
@adults = adults
|
|
1510
|
-
@affiliate = affiliate
|
|
1511
|
-
@booking_number = booking_number
|
|
1512
|
-
@category = category
|
|
1513
|
-
@checkin_at = checkin_at
|
|
1514
|
-
@checkout_at = checkout_at
|
|
1515
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
1516
|
-
@daily_room_rate_amount = daily_room_rate_amount
|
|
1517
|
-
@delivery = delivery
|
|
1518
|
-
@extra_charges = extra_charges
|
|
1519
|
-
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1520
|
-
@name = name
|
|
1521
|
-
@no_show = no_show
|
|
1522
|
-
@number_of_rooms = number_of_rooms
|
|
1523
|
-
@passengers = passengers
|
|
1524
|
-
@property_phone_number = property_phone_number
|
|
1525
|
-
@room_class = room_class
|
|
1526
|
-
@room_nights = room_nights
|
|
1527
|
-
@total_room_tax_amount = total_room_tax_amount
|
|
1528
|
-
@total_tax_amount = total_tax_amount
|
|
1529
|
-
end
|
|
1530
|
-
end
|
|
1531
|
-
|
|
1532
|
-
class LodgingDatum < ::Stripe::RequestParams
|
|
1533
|
-
class Accommodation < ::Stripe::RequestParams
|
|
1534
|
-
# Type of accommodation.
|
|
1535
|
-
attr_accessor :accommodation_type
|
|
1536
|
-
# Bed type.
|
|
1537
|
-
attr_accessor :bed_type
|
|
1538
|
-
# Daily accommodation rate in cents.
|
|
1539
|
-
attr_accessor :daily_rate_amount
|
|
1540
|
-
# Number of nights.
|
|
1541
|
-
attr_accessor :nights
|
|
1542
|
-
# Number of rooms, cabanas, apartments, and so on.
|
|
1543
|
-
attr_accessor :number_of_rooms
|
|
1544
|
-
# Rate type.
|
|
1545
|
-
attr_accessor :rate_type
|
|
1546
|
-
# Whether smoking is allowed.
|
|
1547
|
-
attr_accessor :smoking_indicator
|
|
1548
|
-
|
|
1549
|
-
def initialize(
|
|
1550
|
-
accommodation_type: nil,
|
|
1551
|
-
bed_type: nil,
|
|
1552
|
-
daily_rate_amount: nil,
|
|
1553
|
-
nights: nil,
|
|
1554
|
-
number_of_rooms: nil,
|
|
1555
|
-
rate_type: nil,
|
|
1556
|
-
smoking_indicator: nil
|
|
1557
|
-
)
|
|
1558
|
-
@accommodation_type = accommodation_type
|
|
1559
|
-
@bed_type = bed_type
|
|
1560
|
-
@daily_rate_amount = daily_rate_amount
|
|
1561
|
-
@nights = nights
|
|
1562
|
-
@number_of_rooms = number_of_rooms
|
|
1563
|
-
@rate_type = rate_type
|
|
1564
|
-
@smoking_indicator = smoking_indicator
|
|
1565
|
-
end
|
|
1566
|
-
end
|
|
1567
|
-
|
|
1568
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1569
|
-
# Affiliate partner code.
|
|
1570
|
-
attr_accessor :code
|
|
1571
|
-
# Affiliate partner name.
|
|
1572
|
-
attr_accessor :name
|
|
1573
|
-
|
|
1574
|
-
def initialize(code: nil, name: nil)
|
|
1575
|
-
@code = code
|
|
1576
|
-
@name = name
|
|
1577
|
-
end
|
|
1578
|
-
end
|
|
1579
|
-
|
|
1580
|
-
class Guest < ::Stripe::RequestParams
|
|
1581
|
-
# Guest's full name.
|
|
1582
|
-
attr_accessor :name
|
|
1583
|
-
|
|
1584
|
-
def initialize(name: nil)
|
|
1585
|
-
@name = name
|
|
1586
|
-
end
|
|
1587
|
-
end
|
|
1588
|
-
|
|
1589
|
-
class Host < ::Stripe::RequestParams
|
|
1590
|
-
class Address < ::Stripe::RequestParams
|
|
1591
|
-
# City, district, suburb, town, or village.
|
|
1592
|
-
attr_accessor :city
|
|
1593
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1594
|
-
attr_accessor :country
|
|
1595
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1596
|
-
attr_accessor :line1
|
|
1597
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1598
|
-
attr_accessor :line2
|
|
1599
|
-
# ZIP or postal code.
|
|
1600
|
-
attr_accessor :postal_code
|
|
1601
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1602
|
-
attr_accessor :state
|
|
1603
|
-
|
|
1604
|
-
def initialize(
|
|
1605
|
-
city: nil,
|
|
1606
|
-
country: nil,
|
|
1607
|
-
line1: nil,
|
|
1608
|
-
line2: nil,
|
|
1609
|
-
postal_code: nil,
|
|
1610
|
-
state: nil
|
|
1611
|
-
)
|
|
1612
|
-
@city = city
|
|
1613
|
-
@country = country
|
|
1614
|
-
@line1 = line1
|
|
1615
|
-
@line2 = line2
|
|
1616
|
-
@postal_code = postal_code
|
|
1617
|
-
@state = state
|
|
1618
|
-
end
|
|
1619
|
-
end
|
|
1620
|
-
# Address of the host.
|
|
1621
|
-
attr_accessor :address
|
|
1622
|
-
# Host's country of domicile.
|
|
1623
|
-
attr_accessor :country_of_domicile
|
|
1624
|
-
# Reference number for the host.
|
|
1625
|
-
attr_accessor :host_reference
|
|
1626
|
-
# Type of host.
|
|
1627
|
-
attr_accessor :host_type
|
|
1628
|
-
# Name of the lodging property or host.
|
|
1629
|
-
attr_accessor :name
|
|
1630
|
-
# Total number of reservations for the host.
|
|
1631
|
-
attr_accessor :number_of_reservations
|
|
1632
|
-
# Property phone number.
|
|
1633
|
-
attr_accessor :property_phone_number
|
|
1634
|
-
# Host's registration date.
|
|
1635
|
-
attr_accessor :registered_at
|
|
1636
|
-
|
|
1637
|
-
def initialize(
|
|
1638
|
-
address: nil,
|
|
1639
|
-
country_of_domicile: nil,
|
|
1640
|
-
host_reference: nil,
|
|
1641
|
-
host_type: nil,
|
|
1642
|
-
name: nil,
|
|
1643
|
-
number_of_reservations: nil,
|
|
1644
|
-
property_phone_number: nil,
|
|
1645
|
-
registered_at: nil
|
|
1646
|
-
)
|
|
1647
|
-
@address = address
|
|
1648
|
-
@country_of_domicile = country_of_domicile
|
|
1649
|
-
@host_reference = host_reference
|
|
1650
|
-
@host_type = host_type
|
|
1651
|
-
@name = name
|
|
1652
|
-
@number_of_reservations = number_of_reservations
|
|
1653
|
-
@property_phone_number = property_phone_number
|
|
1654
|
-
@registered_at = registered_at
|
|
1655
|
-
end
|
|
1656
|
-
end
|
|
1657
|
-
|
|
1658
|
-
class Insurance < ::Stripe::RequestParams
|
|
1659
|
-
# Price of the insurance coverage in cents.
|
|
1660
|
-
attr_accessor :amount
|
|
1661
|
-
# Currency of the insurance amount.
|
|
1662
|
-
attr_accessor :currency
|
|
1663
|
-
# Name of the insurance company.
|
|
1664
|
-
attr_accessor :insurance_company_name
|
|
1665
|
-
# Type of insurance coverage.
|
|
1666
|
-
attr_accessor :insurance_type
|
|
148
|
+
class Tax < ::Stripe::RequestParams
|
|
149
|
+
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
150
|
+
#
|
|
151
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
152
|
+
attr_accessor :total_tax_amount
|
|
1667
153
|
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
currency: nil,
|
|
1671
|
-
insurance_company_name: nil,
|
|
1672
|
-
insurance_type: nil
|
|
1673
|
-
)
|
|
1674
|
-
@amount = amount
|
|
1675
|
-
@currency = currency
|
|
1676
|
-
@insurance_company_name = insurance_company_name
|
|
1677
|
-
@insurance_type = insurance_type
|
|
1678
|
-
end
|
|
154
|
+
def initialize(total_tax_amount: nil)
|
|
155
|
+
@total_tax_amount = total_tax_amount
|
|
1679
156
|
end
|
|
157
|
+
end
|
|
158
|
+
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
159
|
+
#
|
|
160
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
|
+
attr_accessor :discount_amount
|
|
162
|
+
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
163
|
+
#
|
|
164
|
+
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
165
|
+
#
|
|
166
|
+
# For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
|
|
167
|
+
attr_accessor :enforce_arithmetic_validation
|
|
168
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
169
|
+
attr_accessor :line_items
|
|
170
|
+
# Contains information about the shipping portion of the amount.
|
|
171
|
+
attr_accessor :shipping
|
|
172
|
+
# Contains information about the tax portion of the amount.
|
|
173
|
+
attr_accessor :tax
|
|
1680
174
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
175
|
+
def initialize(
|
|
176
|
+
discount_amount: nil,
|
|
177
|
+
enforce_arithmetic_validation: nil,
|
|
178
|
+
line_items: nil,
|
|
179
|
+
shipping: nil,
|
|
180
|
+
tax: nil
|
|
181
|
+
)
|
|
182
|
+
@discount_amount = discount_amount
|
|
183
|
+
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
184
|
+
@line_items = line_items
|
|
185
|
+
@shipping = shipping
|
|
186
|
+
@tax = tax
|
|
187
|
+
end
|
|
188
|
+
end
|
|
1693
189
|
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
190
|
+
class AutomaticPaymentMethods < ::Stripe::RequestParams
|
|
191
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
|
192
|
+
#
|
|
193
|
+
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
|
194
|
+
attr_accessor :allow_redirects
|
|
195
|
+
# Whether this feature is enabled.
|
|
196
|
+
attr_accessor :enabled
|
|
1699
197
|
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
198
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
|
199
|
+
@allow_redirects = allow_redirects
|
|
200
|
+
@enabled = enabled
|
|
201
|
+
end
|
|
202
|
+
end
|
|
1705
203
|
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
attr_accessor :rate
|
|
1712
|
-
# Type of tax applied.
|
|
1713
|
-
attr_accessor :type
|
|
1714
|
-
|
|
1715
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
1716
|
-
@amount = amount
|
|
1717
|
-
@rate = rate
|
|
1718
|
-
@type = type
|
|
1719
|
-
end
|
|
1720
|
-
end
|
|
1721
|
-
# Indicates whether the transaction is tax exempt.
|
|
1722
|
-
attr_accessor :tax_exempt_indicator
|
|
1723
|
-
# Tax details.
|
|
1724
|
-
attr_accessor :tax_items
|
|
1725
|
-
|
|
1726
|
-
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
1727
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
1728
|
-
@tax_items = tax_items
|
|
1729
|
-
end
|
|
1730
|
-
end
|
|
1731
|
-
# Total price of the lodging reservation in cents.
|
|
1732
|
-
attr_accessor :amount
|
|
1733
|
-
# Cash advances in cents.
|
|
1734
|
-
attr_accessor :cash_advances
|
|
1735
|
-
# Currency of the total amount.
|
|
1736
|
-
attr_accessor :currency
|
|
1737
|
-
# Discount details for the lodging.
|
|
1738
|
-
attr_accessor :discounts
|
|
1739
|
-
# Additional charges for the lodging.
|
|
1740
|
-
attr_accessor :extra_charges
|
|
1741
|
-
# Prepaid amount in cents.
|
|
1742
|
-
attr_accessor :prepaid_amount
|
|
1743
|
-
# Tax breakdown for the lodging reservation.
|
|
1744
|
-
attr_accessor :tax
|
|
204
|
+
class Hooks < ::Stripe::RequestParams
|
|
205
|
+
class Inputs < ::Stripe::RequestParams
|
|
206
|
+
class Tax < ::Stripe::RequestParams
|
|
207
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
208
|
+
attr_accessor :calculation
|
|
1745
209
|
|
|
1746
|
-
def initialize(
|
|
1747
|
-
|
|
1748
|
-
cash_advances: nil,
|
|
1749
|
-
currency: nil,
|
|
1750
|
-
discounts: nil,
|
|
1751
|
-
extra_charges: nil,
|
|
1752
|
-
prepaid_amount: nil,
|
|
1753
|
-
tax: nil
|
|
1754
|
-
)
|
|
1755
|
-
@amount = amount
|
|
1756
|
-
@cash_advances = cash_advances
|
|
1757
|
-
@currency = currency
|
|
1758
|
-
@discounts = discounts
|
|
1759
|
-
@extra_charges = extra_charges
|
|
1760
|
-
@prepaid_amount = prepaid_amount
|
|
1761
|
-
@tax = tax
|
|
210
|
+
def initialize(calculation: nil)
|
|
211
|
+
@calculation = calculation
|
|
1762
212
|
end
|
|
1763
213
|
end
|
|
1764
|
-
#
|
|
1765
|
-
attr_accessor :
|
|
1766
|
-
# Affiliate details if applicable.
|
|
1767
|
-
attr_accessor :affiliate
|
|
1768
|
-
# Booking confirmation number for the lodging.
|
|
1769
|
-
attr_accessor :booking_number
|
|
1770
|
-
# Check-in date.
|
|
1771
|
-
attr_accessor :checkin_at
|
|
1772
|
-
# Check-out date.
|
|
1773
|
-
attr_accessor :checkout_at
|
|
1774
|
-
# Customer service phone number for the lodging company.
|
|
1775
|
-
attr_accessor :customer_service_phone_number
|
|
1776
|
-
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1777
|
-
attr_accessor :fire_safety_act_compliance_indicator
|
|
1778
|
-
# List of guests for the lodging.
|
|
1779
|
-
attr_accessor :guests
|
|
1780
|
-
# Host details for the lodging.
|
|
1781
|
-
attr_accessor :host
|
|
1782
|
-
# List of insurances for the lodging.
|
|
1783
|
-
attr_accessor :insurances
|
|
1784
|
-
# Whether the renter is a no-show.
|
|
1785
|
-
attr_accessor :no_show_indicator
|
|
1786
|
-
# Renter ID number for the lodging.
|
|
1787
|
-
attr_accessor :renter_id_number
|
|
1788
|
-
# Renter name for the lodging.
|
|
1789
|
-
attr_accessor :renter_name
|
|
1790
|
-
# Total details for the lodging.
|
|
1791
|
-
attr_accessor :total
|
|
214
|
+
# Tax arguments for automations
|
|
215
|
+
attr_accessor :tax
|
|
1792
216
|
|
|
1793
|
-
def initialize(
|
|
1794
|
-
|
|
1795
|
-
affiliate: nil,
|
|
1796
|
-
booking_number: nil,
|
|
1797
|
-
checkin_at: nil,
|
|
1798
|
-
checkout_at: nil,
|
|
1799
|
-
customer_service_phone_number: nil,
|
|
1800
|
-
fire_safety_act_compliance_indicator: nil,
|
|
1801
|
-
guests: nil,
|
|
1802
|
-
host: nil,
|
|
1803
|
-
insurances: nil,
|
|
1804
|
-
no_show_indicator: nil,
|
|
1805
|
-
renter_id_number: nil,
|
|
1806
|
-
renter_name: nil,
|
|
1807
|
-
total: nil
|
|
1808
|
-
)
|
|
1809
|
-
@accommodation = accommodation
|
|
1810
|
-
@affiliate = affiliate
|
|
1811
|
-
@booking_number = booking_number
|
|
1812
|
-
@checkin_at = checkin_at
|
|
1813
|
-
@checkout_at = checkout_at
|
|
1814
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
1815
|
-
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1816
|
-
@guests = guests
|
|
1817
|
-
@host = host
|
|
1818
|
-
@insurances = insurances
|
|
1819
|
-
@no_show_indicator = no_show_indicator
|
|
1820
|
-
@renter_id_number = renter_id_number
|
|
1821
|
-
@renter_name = renter_name
|
|
1822
|
-
@total = total
|
|
217
|
+
def initialize(tax: nil)
|
|
218
|
+
@tax = tax
|
|
1823
219
|
end
|
|
1824
220
|
end
|
|
221
|
+
# Arguments passed in automations
|
|
222
|
+
attr_accessor :inputs
|
|
1825
223
|
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
224
|
+
def initialize(inputs: nil)
|
|
225
|
+
@inputs = inputs
|
|
226
|
+
end
|
|
227
|
+
end
|
|
1830
228
|
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
end
|
|
229
|
+
class MandateData < ::Stripe::RequestParams
|
|
230
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
231
|
+
class Offline < ::Stripe::RequestParams; end
|
|
1835
232
|
|
|
1836
|
-
class
|
|
1837
|
-
# The
|
|
1838
|
-
attr_accessor :
|
|
1839
|
-
#
|
|
1840
|
-
attr_accessor :
|
|
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
|
|
1841
238
|
|
|
1842
|
-
def initialize(
|
|
1843
|
-
@
|
|
1844
|
-
@
|
|
239
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
240
|
+
@ip_address = ip_address
|
|
241
|
+
@user_agent = user_agent
|
|
1845
242
|
end
|
|
1846
243
|
end
|
|
1847
|
-
#
|
|
1848
|
-
attr_accessor :
|
|
1849
|
-
#
|
|
1850
|
-
attr_accessor :
|
|
1851
|
-
#
|
|
1852
|
-
attr_accessor :
|
|
1853
|
-
#
|
|
1854
|
-
attr_accessor :
|
|
1855
|
-
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1856
|
-
attr_accessor :name
|
|
1857
|
-
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1858
|
-
attr_accessor :starts_at
|
|
244
|
+
# The time at which the customer accepted the Mandate.
|
|
245
|
+
attr_accessor :accepted_at
|
|
246
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
247
|
+
attr_accessor :offline
|
|
248
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
249
|
+
attr_accessor :online
|
|
250
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
251
|
+
attr_accessor :type
|
|
1859
252
|
|
|
1860
|
-
def initialize(
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
name: nil,
|
|
1866
|
-
starts_at: nil
|
|
1867
|
-
)
|
|
1868
|
-
@affiliate = affiliate
|
|
1869
|
-
@auto_renewal = auto_renewal
|
|
1870
|
-
@billing_interval = billing_interval
|
|
1871
|
-
@ends_at = ends_at
|
|
1872
|
-
@name = name
|
|
1873
|
-
@starts_at = starts_at
|
|
253
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
254
|
+
@accepted_at = accepted_at
|
|
255
|
+
@offline = offline
|
|
256
|
+
@online = online
|
|
257
|
+
@type = type
|
|
1874
258
|
end
|
|
1875
259
|
end
|
|
1876
|
-
#
|
|
1877
|
-
attr_accessor :
|
|
1878
|
-
|
|
1879
|
-
|
|
260
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
261
|
+
attr_accessor :customer_acceptance
|
|
262
|
+
|
|
263
|
+
def initialize(customer_acceptance: nil)
|
|
264
|
+
@customer_acceptance = customer_acceptance
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
1880
269
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1881
270
|
#
|
|
1882
271
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1883
272
|
attr_accessor :customer_reference
|
|
1884
|
-
# Event details for this PaymentIntent
|
|
1885
|
-
attr_accessor :event_details
|
|
1886
|
-
# Flight reservation details for this PaymentIntent
|
|
1887
|
-
attr_accessor :flight
|
|
1888
|
-
# Flight data for this PaymentIntent.
|
|
1889
|
-
attr_accessor :flight_data
|
|
1890
|
-
# Lodging reservation details for this PaymentIntent
|
|
1891
|
-
attr_accessor :lodging
|
|
1892
|
-
# Lodging data for this PaymentIntent.
|
|
1893
|
-
attr_accessor :lodging_data
|
|
1894
273
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1895
274
|
#
|
|
1896
275
|
# 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.
|
|
1897
276
|
attr_accessor :order_reference
|
|
1898
|
-
# Subscription details for this PaymentIntent
|
|
1899
|
-
attr_accessor :subscription
|
|
1900
277
|
|
|
1901
|
-
def initialize(
|
|
1902
|
-
car_rental: nil,
|
|
1903
|
-
car_rental_data: nil,
|
|
1904
|
-
customer_reference: nil,
|
|
1905
|
-
event_details: nil,
|
|
1906
|
-
flight: nil,
|
|
1907
|
-
flight_data: nil,
|
|
1908
|
-
lodging: nil,
|
|
1909
|
-
lodging_data: nil,
|
|
1910
|
-
order_reference: nil,
|
|
1911
|
-
subscription: nil
|
|
1912
|
-
)
|
|
1913
|
-
@car_rental = car_rental
|
|
1914
|
-
@car_rental_data = car_rental_data
|
|
278
|
+
def initialize(customer_reference: nil, order_reference: nil)
|
|
1915
279
|
@customer_reference = customer_reference
|
|
1916
|
-
@event_details = event_details
|
|
1917
|
-
@flight = flight
|
|
1918
|
-
@flight_data = flight_data
|
|
1919
|
-
@lodging = lodging
|
|
1920
|
-
@lodging_data = lodging_data
|
|
1921
280
|
@order_reference = order_reference
|
|
1922
|
-
@subscription = subscription
|
|
1923
281
|
end
|
|
1924
282
|
end
|
|
1925
283
|
|
|
@@ -2061,18 +419,8 @@ module Stripe
|
|
|
2061
419
|
end
|
|
2062
420
|
|
|
2063
421
|
class Giropay < ::Stripe::RequestParams; end
|
|
2064
|
-
class Gopay < ::Stripe::RequestParams; end
|
|
2065
422
|
class Grabpay < ::Stripe::RequestParams; end
|
|
2066
423
|
|
|
2067
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
2068
|
-
# Bank where the account is held.
|
|
2069
|
-
attr_accessor :bank
|
|
2070
|
-
|
|
2071
|
-
def initialize(bank: nil)
|
|
2072
|
-
@bank = bank
|
|
2073
|
-
end
|
|
2074
|
-
end
|
|
2075
|
-
|
|
2076
424
|
class Ideal < ::Stripe::RequestParams
|
|
2077
425
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
2078
426
|
attr_accessor :bank
|
|
@@ -2189,7 +537,6 @@ module Stripe
|
|
|
2189
537
|
|
|
2190
538
|
class Pix < ::Stripe::RequestParams; end
|
|
2191
539
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2192
|
-
class Qris < ::Stripe::RequestParams; end
|
|
2193
540
|
|
|
2194
541
|
class RadarOptions < ::Stripe::RequestParams
|
|
2195
542
|
# 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.
|
|
@@ -2200,29 +547,6 @@ module Stripe
|
|
|
2200
547
|
end
|
|
2201
548
|
end
|
|
2202
549
|
|
|
2203
|
-
class Rechnung < ::Stripe::RequestParams
|
|
2204
|
-
class Dob < ::Stripe::RequestParams
|
|
2205
|
-
# The day of birth, between 1 and 31.
|
|
2206
|
-
attr_accessor :day
|
|
2207
|
-
# The month of birth, between 1 and 12.
|
|
2208
|
-
attr_accessor :month
|
|
2209
|
-
# The four-digit year of birth.
|
|
2210
|
-
attr_accessor :year
|
|
2211
|
-
|
|
2212
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
2213
|
-
@day = day
|
|
2214
|
-
@month = month
|
|
2215
|
-
@year = year
|
|
2216
|
-
end
|
|
2217
|
-
end
|
|
2218
|
-
# Customer's date of birth
|
|
2219
|
-
attr_accessor :dob
|
|
2220
|
-
|
|
2221
|
-
def initialize(dob: nil)
|
|
2222
|
-
@dob = dob
|
|
2223
|
-
end
|
|
2224
|
-
end
|
|
2225
|
-
|
|
2226
550
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
2227
551
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
2228
552
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -2238,7 +562,6 @@ module Stripe
|
|
|
2238
562
|
end
|
|
2239
563
|
|
|
2240
564
|
class Sequra < ::Stripe::RequestParams; end
|
|
2241
|
-
class Shopeepay < ::Stripe::RequestParams; end
|
|
2242
565
|
|
|
2243
566
|
class Sofort < ::Stripe::RequestParams
|
|
2244
567
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -2249,15 +572,6 @@ module Stripe
|
|
|
2249
572
|
end
|
|
2250
573
|
end
|
|
2251
574
|
|
|
2252
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
2253
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2254
|
-
attr_accessor :account
|
|
2255
|
-
|
|
2256
|
-
def initialize(account: nil)
|
|
2257
|
-
@account = account
|
|
2258
|
-
end
|
|
2259
|
-
end
|
|
2260
|
-
|
|
2261
575
|
class Sunbit < ::Stripe::RequestParams; end
|
|
2262
576
|
class Swish < ::Stripe::RequestParams; end
|
|
2263
577
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -2289,25 +603,12 @@ module Stripe
|
|
|
2289
603
|
end
|
|
2290
604
|
|
|
2291
605
|
class UsBankAccount < ::Stripe::RequestParams
|
|
2292
|
-
class ExternalToken < ::Stripe::RequestParams
|
|
2293
|
-
# The Plaid processor token to use for this bank account.
|
|
2294
|
-
attr_accessor :plaid_processor_token
|
|
2295
|
-
# The type of external token.
|
|
2296
|
-
attr_accessor :type
|
|
2297
|
-
|
|
2298
|
-
def initialize(plaid_processor_token: nil, type: nil)
|
|
2299
|
-
@plaid_processor_token = plaid_processor_token
|
|
2300
|
-
@type = type
|
|
2301
|
-
end
|
|
2302
|
-
end
|
|
2303
606
|
# Account holder type: individual or company.
|
|
2304
607
|
attr_accessor :account_holder_type
|
|
2305
608
|
# Account number of the bank account.
|
|
2306
609
|
attr_accessor :account_number
|
|
2307
610
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
2308
611
|
attr_accessor :account_type
|
|
2309
|
-
# An external token used to create a payment method.
|
|
2310
|
-
attr_accessor :external_token
|
|
2311
612
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
2312
613
|
attr_accessor :financial_connections_account
|
|
2313
614
|
# Routing number of the bank account.
|
|
@@ -2317,21 +618,18 @@ module Stripe
|
|
|
2317
618
|
account_holder_type: nil,
|
|
2318
619
|
account_number: nil,
|
|
2319
620
|
account_type: nil,
|
|
2320
|
-
external_token: nil,
|
|
2321
621
|
financial_connections_account: nil,
|
|
2322
622
|
routing_number: nil
|
|
2323
623
|
)
|
|
2324
624
|
@account_holder_type = account_holder_type
|
|
2325
625
|
@account_number = account_number
|
|
2326
626
|
@account_type = account_type
|
|
2327
|
-
@external_token = external_token
|
|
2328
627
|
@financial_connections_account = financial_connections_account
|
|
2329
628
|
@routing_number = routing_number
|
|
2330
629
|
end
|
|
2331
630
|
end
|
|
2332
631
|
|
|
2333
632
|
class WechatPay < ::Stripe::RequestParams; end
|
|
2334
|
-
class Wero < ::Stripe::RequestParams; end
|
|
2335
633
|
class Zip < ::Stripe::RequestParams; end
|
|
2336
634
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
2337
635
|
attr_accessor :acss_debit
|
|
@@ -2375,12 +673,8 @@ module Stripe
|
|
|
2375
673
|
attr_accessor :fpx
|
|
2376
674
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2377
675
|
attr_accessor :giropay
|
|
2378
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2379
|
-
attr_accessor :gopay
|
|
2380
676
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
2381
677
|
attr_accessor :grabpay
|
|
2382
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2383
|
-
attr_accessor :id_bank_transfer
|
|
2384
678
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
2385
679
|
attr_accessor :ideal
|
|
2386
680
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -2427,12 +721,8 @@ module Stripe
|
|
|
2427
721
|
attr_accessor :pix
|
|
2428
722
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
2429
723
|
attr_accessor :promptpay
|
|
2430
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2431
|
-
attr_accessor :qris
|
|
2432
724
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2433
725
|
attr_accessor :radar_options
|
|
2434
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2435
|
-
attr_accessor :rechnung
|
|
2436
726
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2437
727
|
attr_accessor :revolut_pay
|
|
2438
728
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -2445,14 +735,8 @@ module Stripe
|
|
|
2445
735
|
attr_accessor :sepa_debit
|
|
2446
736
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
2447
737
|
attr_accessor :sequra
|
|
2448
|
-
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2449
|
-
attr_accessor :shared_payment_granted_token
|
|
2450
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2451
|
-
attr_accessor :shopeepay
|
|
2452
738
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
2453
739
|
attr_accessor :sofort
|
|
2454
|
-
# This hash contains details about the Stripe balance payment method.
|
|
2455
|
-
attr_accessor :stripe_balance
|
|
2456
740
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
2457
741
|
attr_accessor :sunbit
|
|
2458
742
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -2467,8 +751,6 @@ module Stripe
|
|
|
2467
751
|
attr_accessor :us_bank_account
|
|
2468
752
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
2469
753
|
attr_accessor :wechat_pay
|
|
2470
|
-
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
2471
|
-
attr_accessor :wero
|
|
2472
754
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
2473
755
|
attr_accessor :zip
|
|
2474
756
|
|
|
@@ -2494,9 +776,7 @@ module Stripe
|
|
|
2494
776
|
eps: nil,
|
|
2495
777
|
fpx: nil,
|
|
2496
778
|
giropay: nil,
|
|
2497
|
-
gopay: nil,
|
|
2498
779
|
grabpay: nil,
|
|
2499
|
-
id_bank_transfer: nil,
|
|
2500
780
|
ideal: nil,
|
|
2501
781
|
interac_present: nil,
|
|
2502
782
|
kakao_pay: nil,
|
|
@@ -2520,19 +800,14 @@ module Stripe
|
|
|
2520
800
|
payto: nil,
|
|
2521
801
|
pix: nil,
|
|
2522
802
|
promptpay: nil,
|
|
2523
|
-
qris: nil,
|
|
2524
803
|
radar_options: nil,
|
|
2525
|
-
rechnung: nil,
|
|
2526
804
|
revolut_pay: nil,
|
|
2527
805
|
samsung_pay: nil,
|
|
2528
806
|
satispay: nil,
|
|
2529
807
|
scalapay: nil,
|
|
2530
808
|
sepa_debit: nil,
|
|
2531
809
|
sequra: nil,
|
|
2532
|
-
shared_payment_granted_token: nil,
|
|
2533
|
-
shopeepay: nil,
|
|
2534
810
|
sofort: nil,
|
|
2535
|
-
stripe_balance: nil,
|
|
2536
811
|
sunbit: nil,
|
|
2537
812
|
swish: nil,
|
|
2538
813
|
twint: nil,
|
|
@@ -2540,7 +815,6 @@ module Stripe
|
|
|
2540
815
|
upi: nil,
|
|
2541
816
|
us_bank_account: nil,
|
|
2542
817
|
wechat_pay: nil,
|
|
2543
|
-
wero: nil,
|
|
2544
818
|
zip: nil
|
|
2545
819
|
)
|
|
2546
820
|
@acss_debit = acss_debit
|
|
@@ -2564,9 +838,7 @@ module Stripe
|
|
|
2564
838
|
@eps = eps
|
|
2565
839
|
@fpx = fpx
|
|
2566
840
|
@giropay = giropay
|
|
2567
|
-
@gopay = gopay
|
|
2568
841
|
@grabpay = grabpay
|
|
2569
|
-
@id_bank_transfer = id_bank_transfer
|
|
2570
842
|
@ideal = ideal
|
|
2571
843
|
@interac_present = interac_present
|
|
2572
844
|
@kakao_pay = kakao_pay
|
|
@@ -2590,19 +862,14 @@ module Stripe
|
|
|
2590
862
|
@payto = payto
|
|
2591
863
|
@pix = pix
|
|
2592
864
|
@promptpay = promptpay
|
|
2593
|
-
@qris = qris
|
|
2594
865
|
@radar_options = radar_options
|
|
2595
|
-
@rechnung = rechnung
|
|
2596
866
|
@revolut_pay = revolut_pay
|
|
2597
867
|
@samsung_pay = samsung_pay
|
|
2598
868
|
@satispay = satispay
|
|
2599
869
|
@scalapay = scalapay
|
|
2600
870
|
@sepa_debit = sepa_debit
|
|
2601
871
|
@sequra = sequra
|
|
2602
|
-
@shared_payment_granted_token = shared_payment_granted_token
|
|
2603
|
-
@shopeepay = shopeepay
|
|
2604
872
|
@sofort = sofort
|
|
2605
|
-
@stripe_balance = stripe_balance
|
|
2606
873
|
@sunbit = sunbit
|
|
2607
874
|
@swish = swish
|
|
2608
875
|
@twint = twint
|
|
@@ -2610,7 +877,6 @@ module Stripe
|
|
|
2610
877
|
@upi = upi
|
|
2611
878
|
@us_bank_account = us_bank_account
|
|
2612
879
|
@wechat_pay = wechat_pay
|
|
2613
|
-
@wero = wero
|
|
2614
880
|
@zip = zip
|
|
2615
881
|
end
|
|
2616
882
|
end
|
|
@@ -3031,65 +1297,23 @@ module Stripe
|
|
|
3031
1297
|
def initialize(
|
|
3032
1298
|
amount: nil,
|
|
3033
1299
|
amount_type: nil,
|
|
3034
|
-
description: nil,
|
|
3035
|
-
end_date: nil,
|
|
3036
|
-
interval: nil,
|
|
3037
|
-
interval_count: nil,
|
|
3038
|
-
reference: nil,
|
|
3039
|
-
start_date: nil,
|
|
3040
|
-
supported_types: nil
|
|
3041
|
-
)
|
|
3042
|
-
@amount = amount
|
|
3043
|
-
@amount_type = amount_type
|
|
3044
|
-
@description = description
|
|
3045
|
-
@end_date = end_date
|
|
3046
|
-
@interval = interval
|
|
3047
|
-
@interval_count = interval_count
|
|
3048
|
-
@reference = reference
|
|
3049
|
-
@start_date = start_date
|
|
3050
|
-
@supported_types = supported_types
|
|
3051
|
-
end
|
|
3052
|
-
end
|
|
3053
|
-
|
|
3054
|
-
class StatementDetails < ::Stripe::RequestParams
|
|
3055
|
-
class Address < ::Stripe::RequestParams
|
|
3056
|
-
# City, district, suburb, town, or village.
|
|
3057
|
-
attr_accessor :city
|
|
3058
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
3059
|
-
attr_accessor :country
|
|
3060
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
3061
|
-
attr_accessor :line1
|
|
3062
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
3063
|
-
attr_accessor :line2
|
|
3064
|
-
# ZIP or postal code.
|
|
3065
|
-
attr_accessor :postal_code
|
|
3066
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
3067
|
-
attr_accessor :state
|
|
3068
|
-
|
|
3069
|
-
def initialize(
|
|
3070
|
-
city: nil,
|
|
3071
|
-
country: nil,
|
|
3072
|
-
line1: nil,
|
|
3073
|
-
line2: nil,
|
|
3074
|
-
postal_code: nil,
|
|
3075
|
-
state: nil
|
|
3076
|
-
)
|
|
3077
|
-
@city = city
|
|
3078
|
-
@country = country
|
|
3079
|
-
@line1 = line1
|
|
3080
|
-
@line2 = line2
|
|
3081
|
-
@postal_code = postal_code
|
|
3082
|
-
@state = state
|
|
3083
|
-
end
|
|
3084
|
-
end
|
|
3085
|
-
# Please pass in an address that is within your Stripe user account country
|
|
3086
|
-
attr_accessor :address
|
|
3087
|
-
# Phone number (e.g., a toll-free number that customers can call)
|
|
3088
|
-
attr_accessor :phone
|
|
3089
|
-
|
|
3090
|
-
def initialize(address: nil, phone: nil)
|
|
3091
|
-
@address = address
|
|
3092
|
-
@phone = phone
|
|
1300
|
+
description: nil,
|
|
1301
|
+
end_date: nil,
|
|
1302
|
+
interval: nil,
|
|
1303
|
+
interval_count: nil,
|
|
1304
|
+
reference: nil,
|
|
1305
|
+
start_date: nil,
|
|
1306
|
+
supported_types: nil
|
|
1307
|
+
)
|
|
1308
|
+
@amount = amount
|
|
1309
|
+
@amount_type = amount_type
|
|
1310
|
+
@description = description
|
|
1311
|
+
@end_date = end_date
|
|
1312
|
+
@interval = interval
|
|
1313
|
+
@interval_count = interval_count
|
|
1314
|
+
@reference = reference
|
|
1315
|
+
@start_date = start_date
|
|
1316
|
+
@supported_types = supported_types
|
|
3093
1317
|
end
|
|
3094
1318
|
end
|
|
3095
1319
|
|
|
@@ -3187,8 +1411,6 @@ module Stripe
|
|
|
3187
1411
|
attr_accessor :moto
|
|
3188
1412
|
# 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.
|
|
3189
1413
|
attr_accessor :network
|
|
3190
|
-
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3191
|
-
attr_accessor :request_decremental_authorization
|
|
3192
1414
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
3193
1415
|
attr_accessor :request_extended_authorization
|
|
3194
1416
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -3197,8 +1419,6 @@ module Stripe
|
|
|
3197
1419
|
attr_accessor :request_multicapture
|
|
3198
1420
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
3199
1421
|
attr_accessor :request_overcapture
|
|
3200
|
-
# Request partial authorization on this PaymentIntent.
|
|
3201
|
-
attr_accessor :request_partial_authorization
|
|
3202
1422
|
# 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.
|
|
3203
1423
|
attr_accessor :request_three_d_secure
|
|
3204
1424
|
# 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).
|
|
@@ -3219,8 +1439,6 @@ module Stripe
|
|
|
3219
1439
|
attr_accessor :statement_descriptor_suffix_kana
|
|
3220
1440
|
# 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.
|
|
3221
1441
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3222
|
-
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3223
|
-
attr_accessor :statement_details
|
|
3224
1442
|
# Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
|
|
3225
1443
|
#
|
|
3226
1444
|
# 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.
|
|
@@ -3240,19 +1458,16 @@ module Stripe
|
|
|
3240
1458
|
mandate_options: nil,
|
|
3241
1459
|
moto: nil,
|
|
3242
1460
|
network: nil,
|
|
3243
|
-
request_decremental_authorization: nil,
|
|
3244
1461
|
request_extended_authorization: nil,
|
|
3245
1462
|
request_incremental_authorization: nil,
|
|
3246
1463
|
request_multicapture: nil,
|
|
3247
1464
|
request_overcapture: nil,
|
|
3248
|
-
request_partial_authorization: nil,
|
|
3249
1465
|
request_three_d_secure: nil,
|
|
3250
1466
|
require_cvc_recollection: nil,
|
|
3251
1467
|
setup_credential_usage: nil,
|
|
3252
1468
|
setup_future_usage: nil,
|
|
3253
1469
|
statement_descriptor_suffix_kana: nil,
|
|
3254
1470
|
statement_descriptor_suffix_kanji: nil,
|
|
3255
|
-
statement_details: nil,
|
|
3256
1471
|
stored_credential_usage: nil,
|
|
3257
1472
|
three_d_secure: nil
|
|
3258
1473
|
)
|
|
@@ -3262,19 +1477,16 @@ module Stripe
|
|
|
3262
1477
|
@mandate_options = mandate_options
|
|
3263
1478
|
@moto = moto
|
|
3264
1479
|
@network = network
|
|
3265
|
-
@request_decremental_authorization = request_decremental_authorization
|
|
3266
1480
|
@request_extended_authorization = request_extended_authorization
|
|
3267
1481
|
@request_incremental_authorization = request_incremental_authorization
|
|
3268
1482
|
@request_multicapture = request_multicapture
|
|
3269
1483
|
@request_overcapture = request_overcapture
|
|
3270
|
-
@request_partial_authorization = request_partial_authorization
|
|
3271
1484
|
@request_three_d_secure = request_three_d_secure
|
|
3272
1485
|
@require_cvc_recollection = require_cvc_recollection
|
|
3273
1486
|
@setup_credential_usage = setup_credential_usage
|
|
3274
1487
|
@setup_future_usage = setup_future_usage
|
|
3275
1488
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
3276
1489
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3277
|
-
@statement_details = statement_details
|
|
3278
1490
|
@stored_credential_usage = stored_credential_usage
|
|
3279
1491
|
@three_d_secure = three_d_secure
|
|
3280
1492
|
end
|
|
@@ -3454,23 +1666,6 @@ module Stripe
|
|
|
3454
1666
|
end
|
|
3455
1667
|
end
|
|
3456
1668
|
|
|
3457
|
-
class Gopay < ::Stripe::RequestParams
|
|
3458
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3459
|
-
#
|
|
3460
|
-
# 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.
|
|
3461
|
-
#
|
|
3462
|
-
# 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.
|
|
3463
|
-
#
|
|
3464
|
-
# 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).
|
|
3465
|
-
#
|
|
3466
|
-
# 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`.
|
|
3467
|
-
attr_accessor :setup_future_usage
|
|
3468
|
-
|
|
3469
|
-
def initialize(setup_future_usage: nil)
|
|
3470
|
-
@setup_future_usage = setup_future_usage
|
|
3471
|
-
end
|
|
3472
|
-
end
|
|
3473
|
-
|
|
3474
1669
|
class Grabpay < ::Stripe::RequestParams
|
|
3475
1670
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3476
1671
|
#
|
|
@@ -3488,29 +1683,6 @@ module Stripe
|
|
|
3488
1683
|
end
|
|
3489
1684
|
end
|
|
3490
1685
|
|
|
3491
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
3492
|
-
# 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.
|
|
3493
|
-
attr_accessor :expires_after
|
|
3494
|
-
# 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.
|
|
3495
|
-
attr_accessor :expires_at
|
|
3496
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3497
|
-
#
|
|
3498
|
-
# 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.
|
|
3499
|
-
#
|
|
3500
|
-
# 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.
|
|
3501
|
-
#
|
|
3502
|
-
# 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).
|
|
3503
|
-
#
|
|
3504
|
-
# 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`.
|
|
3505
|
-
attr_accessor :setup_future_usage
|
|
3506
|
-
|
|
3507
|
-
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3508
|
-
@expires_after = expires_after
|
|
3509
|
-
@expires_at = expires_at
|
|
3510
|
-
@setup_future_usage = setup_future_usage
|
|
3511
|
-
end
|
|
3512
|
-
end
|
|
3513
|
-
|
|
3514
1686
|
class Ideal < ::Stripe::RequestParams
|
|
3515
1687
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3516
1688
|
#
|
|
@@ -3617,939 +1789,6 @@ module Stripe
|
|
|
3617
1789
|
@reference = reference
|
|
3618
1790
|
end
|
|
3619
1791
|
end
|
|
3620
|
-
|
|
3621
|
-
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3622
|
-
class BusReservationDetail < ::Stripe::RequestParams
|
|
3623
|
-
class Arrival < ::Stripe::RequestParams
|
|
3624
|
-
class Address < ::Stripe::RequestParams
|
|
3625
|
-
# The city or town.
|
|
3626
|
-
attr_accessor :city
|
|
3627
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3628
|
-
attr_accessor :country
|
|
3629
|
-
# The postal code formatted according to country.
|
|
3630
|
-
attr_accessor :postal_code
|
|
3631
|
-
# The state, county, province, or region formatted according to country.
|
|
3632
|
-
attr_accessor :region
|
|
3633
|
-
# Line 1 of the street address.
|
|
3634
|
-
attr_accessor :street_address
|
|
3635
|
-
# Line 2 of the street address.
|
|
3636
|
-
attr_accessor :street_address2
|
|
3637
|
-
|
|
3638
|
-
def initialize(
|
|
3639
|
-
city: nil,
|
|
3640
|
-
country: nil,
|
|
3641
|
-
postal_code: nil,
|
|
3642
|
-
region: nil,
|
|
3643
|
-
street_address: nil,
|
|
3644
|
-
street_address2: nil
|
|
3645
|
-
)
|
|
3646
|
-
@city = city
|
|
3647
|
-
@country = country
|
|
3648
|
-
@postal_code = postal_code
|
|
3649
|
-
@region = region
|
|
3650
|
-
@street_address = street_address
|
|
3651
|
-
@street_address2 = street_address2
|
|
3652
|
-
end
|
|
3653
|
-
end
|
|
3654
|
-
# Address of the arrival location.
|
|
3655
|
-
attr_accessor :address
|
|
3656
|
-
# Identifier name or reference for the arrival location.
|
|
3657
|
-
attr_accessor :arrival_location
|
|
3658
|
-
|
|
3659
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3660
|
-
@address = address
|
|
3661
|
-
@arrival_location = arrival_location
|
|
3662
|
-
end
|
|
3663
|
-
end
|
|
3664
|
-
|
|
3665
|
-
class Departure < ::Stripe::RequestParams
|
|
3666
|
-
class Address < ::Stripe::RequestParams
|
|
3667
|
-
# The city or town.
|
|
3668
|
-
attr_accessor :city
|
|
3669
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3670
|
-
attr_accessor :country
|
|
3671
|
-
# The postal code formatted according to country.
|
|
3672
|
-
attr_accessor :postal_code
|
|
3673
|
-
# The state, county, province, or region formatted according to country.
|
|
3674
|
-
attr_accessor :region
|
|
3675
|
-
# Line 1 of the street address.
|
|
3676
|
-
attr_accessor :street_address
|
|
3677
|
-
# Line 2 of the street address.
|
|
3678
|
-
attr_accessor :street_address2
|
|
3679
|
-
|
|
3680
|
-
def initialize(
|
|
3681
|
-
city: nil,
|
|
3682
|
-
country: nil,
|
|
3683
|
-
postal_code: nil,
|
|
3684
|
-
region: nil,
|
|
3685
|
-
street_address: nil,
|
|
3686
|
-
street_address2: nil
|
|
3687
|
-
)
|
|
3688
|
-
@city = city
|
|
3689
|
-
@country = country
|
|
3690
|
-
@postal_code = postal_code
|
|
3691
|
-
@region = region
|
|
3692
|
-
@street_address = street_address
|
|
3693
|
-
@street_address2 = street_address2
|
|
3694
|
-
end
|
|
3695
|
-
end
|
|
3696
|
-
# Address of the departure location.
|
|
3697
|
-
attr_accessor :address
|
|
3698
|
-
# Timestamp of departure.
|
|
3699
|
-
attr_accessor :departs_at
|
|
3700
|
-
# Identifier name or reference for the origin location.
|
|
3701
|
-
attr_accessor :departure_location
|
|
3702
|
-
|
|
3703
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3704
|
-
@address = address
|
|
3705
|
-
@departs_at = departs_at
|
|
3706
|
-
@departure_location = departure_location
|
|
3707
|
-
end
|
|
3708
|
-
end
|
|
3709
|
-
|
|
3710
|
-
class Insurance < ::Stripe::RequestParams
|
|
3711
|
-
# Insurance currency.
|
|
3712
|
-
attr_accessor :currency
|
|
3713
|
-
# Name of the company providing the insurance.
|
|
3714
|
-
attr_accessor :insurance_company_name
|
|
3715
|
-
# Type of insurance.
|
|
3716
|
-
attr_accessor :insurance_type
|
|
3717
|
-
# Price of insurance in cents.
|
|
3718
|
-
attr_accessor :price
|
|
3719
|
-
|
|
3720
|
-
def initialize(
|
|
3721
|
-
currency: nil,
|
|
3722
|
-
insurance_company_name: nil,
|
|
3723
|
-
insurance_type: nil,
|
|
3724
|
-
price: nil
|
|
3725
|
-
)
|
|
3726
|
-
@currency = currency
|
|
3727
|
-
@insurance_company_name = insurance_company_name
|
|
3728
|
-
@insurance_type = insurance_type
|
|
3729
|
-
@price = price
|
|
3730
|
-
end
|
|
3731
|
-
end
|
|
3732
|
-
|
|
3733
|
-
class Passenger < ::Stripe::RequestParams
|
|
3734
|
-
# The family name of the person.
|
|
3735
|
-
attr_accessor :family_name
|
|
3736
|
-
# The given name of the person.
|
|
3737
|
-
attr_accessor :given_name
|
|
3738
|
-
|
|
3739
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3740
|
-
@family_name = family_name
|
|
3741
|
-
@given_name = given_name
|
|
3742
|
-
end
|
|
3743
|
-
end
|
|
3744
|
-
# Name of associated or partner company for the service.
|
|
3745
|
-
attr_accessor :affiliate_name
|
|
3746
|
-
# Arrival details.
|
|
3747
|
-
attr_accessor :arrival
|
|
3748
|
-
# Name of transportation company.
|
|
3749
|
-
attr_accessor :carrier_name
|
|
3750
|
-
# Currency.
|
|
3751
|
-
attr_accessor :currency
|
|
3752
|
-
# Departure details.
|
|
3753
|
-
attr_accessor :departure
|
|
3754
|
-
# List of insurances for this reservation.
|
|
3755
|
-
attr_accessor :insurances
|
|
3756
|
-
# List of passengers that this reservation applies to.
|
|
3757
|
-
attr_accessor :passengers
|
|
3758
|
-
# Price in cents.
|
|
3759
|
-
attr_accessor :price
|
|
3760
|
-
# Ticket class.
|
|
3761
|
-
attr_accessor :ticket_class
|
|
3762
|
-
|
|
3763
|
-
def initialize(
|
|
3764
|
-
affiliate_name: nil,
|
|
3765
|
-
arrival: nil,
|
|
3766
|
-
carrier_name: nil,
|
|
3767
|
-
currency: nil,
|
|
3768
|
-
departure: nil,
|
|
3769
|
-
insurances: nil,
|
|
3770
|
-
passengers: nil,
|
|
3771
|
-
price: nil,
|
|
3772
|
-
ticket_class: nil
|
|
3773
|
-
)
|
|
3774
|
-
@affiliate_name = affiliate_name
|
|
3775
|
-
@arrival = arrival
|
|
3776
|
-
@carrier_name = carrier_name
|
|
3777
|
-
@currency = currency
|
|
3778
|
-
@departure = departure
|
|
3779
|
-
@insurances = insurances
|
|
3780
|
-
@passengers = passengers
|
|
3781
|
-
@price = price
|
|
3782
|
-
@ticket_class = ticket_class
|
|
3783
|
-
end
|
|
3784
|
-
end
|
|
3785
|
-
|
|
3786
|
-
class EventReservationDetail < ::Stripe::RequestParams
|
|
3787
|
-
class Address < ::Stripe::RequestParams
|
|
3788
|
-
# The city or town.
|
|
3789
|
-
attr_accessor :city
|
|
3790
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3791
|
-
attr_accessor :country
|
|
3792
|
-
# The postal code formatted according to country.
|
|
3793
|
-
attr_accessor :postal_code
|
|
3794
|
-
# The state, county, province, or region formatted according to country.
|
|
3795
|
-
attr_accessor :region
|
|
3796
|
-
# Line 1 of the street address.
|
|
3797
|
-
attr_accessor :street_address
|
|
3798
|
-
# Line 2 of the street address.
|
|
3799
|
-
attr_accessor :street_address2
|
|
3800
|
-
|
|
3801
|
-
def initialize(
|
|
3802
|
-
city: nil,
|
|
3803
|
-
country: nil,
|
|
3804
|
-
postal_code: nil,
|
|
3805
|
-
region: nil,
|
|
3806
|
-
street_address: nil,
|
|
3807
|
-
street_address2: nil
|
|
3808
|
-
)
|
|
3809
|
-
@city = city
|
|
3810
|
-
@country = country
|
|
3811
|
-
@postal_code = postal_code
|
|
3812
|
-
@region = region
|
|
3813
|
-
@street_address = street_address
|
|
3814
|
-
@street_address2 = street_address2
|
|
3815
|
-
end
|
|
3816
|
-
end
|
|
3817
|
-
|
|
3818
|
-
class Insurance < ::Stripe::RequestParams
|
|
3819
|
-
# Insurance currency.
|
|
3820
|
-
attr_accessor :currency
|
|
3821
|
-
# Name of the company providing the insurance.
|
|
3822
|
-
attr_accessor :insurance_company_name
|
|
3823
|
-
# Type of insurance.
|
|
3824
|
-
attr_accessor :insurance_type
|
|
3825
|
-
# Price of insurance in cents.
|
|
3826
|
-
attr_accessor :price
|
|
3827
|
-
|
|
3828
|
-
def initialize(
|
|
3829
|
-
currency: nil,
|
|
3830
|
-
insurance_company_name: nil,
|
|
3831
|
-
insurance_type: nil,
|
|
3832
|
-
price: nil
|
|
3833
|
-
)
|
|
3834
|
-
@currency = currency
|
|
3835
|
-
@insurance_company_name = insurance_company_name
|
|
3836
|
-
@insurance_type = insurance_type
|
|
3837
|
-
@price = price
|
|
3838
|
-
end
|
|
3839
|
-
end
|
|
3840
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3841
|
-
attr_accessor :access_controlled_venue
|
|
3842
|
-
# Address of the event.
|
|
3843
|
-
attr_accessor :address
|
|
3844
|
-
# Name of associated or partner company for the service.
|
|
3845
|
-
attr_accessor :affiliate_name
|
|
3846
|
-
# End timestamp of the event.
|
|
3847
|
-
attr_accessor :ends_at
|
|
3848
|
-
# Company selling the ticket.
|
|
3849
|
-
attr_accessor :event_company_name
|
|
3850
|
-
# Name of the event.
|
|
3851
|
-
attr_accessor :event_name
|
|
3852
|
-
# Type of the event.
|
|
3853
|
-
attr_accessor :event_type
|
|
3854
|
-
# List of insurances for this event.
|
|
3855
|
-
attr_accessor :insurances
|
|
3856
|
-
# Start timestamp of the event.
|
|
3857
|
-
attr_accessor :starts_at
|
|
3858
|
-
# Name of the venue where the event takes place.
|
|
3859
|
-
attr_accessor :venue_name
|
|
3860
|
-
|
|
3861
|
-
def initialize(
|
|
3862
|
-
access_controlled_venue: nil,
|
|
3863
|
-
address: nil,
|
|
3864
|
-
affiliate_name: nil,
|
|
3865
|
-
ends_at: nil,
|
|
3866
|
-
event_company_name: nil,
|
|
3867
|
-
event_name: nil,
|
|
3868
|
-
event_type: nil,
|
|
3869
|
-
insurances: nil,
|
|
3870
|
-
starts_at: nil,
|
|
3871
|
-
venue_name: nil
|
|
3872
|
-
)
|
|
3873
|
-
@access_controlled_venue = access_controlled_venue
|
|
3874
|
-
@address = address
|
|
3875
|
-
@affiliate_name = affiliate_name
|
|
3876
|
-
@ends_at = ends_at
|
|
3877
|
-
@event_company_name = event_company_name
|
|
3878
|
-
@event_name = event_name
|
|
3879
|
-
@event_type = event_type
|
|
3880
|
-
@insurances = insurances
|
|
3881
|
-
@starts_at = starts_at
|
|
3882
|
-
@venue_name = venue_name
|
|
3883
|
-
end
|
|
3884
|
-
end
|
|
3885
|
-
|
|
3886
|
-
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3887
|
-
class Arrival < ::Stripe::RequestParams
|
|
3888
|
-
class Address < ::Stripe::RequestParams
|
|
3889
|
-
# The city or town.
|
|
3890
|
-
attr_accessor :city
|
|
3891
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3892
|
-
attr_accessor :country
|
|
3893
|
-
# The postal code formatted according to country.
|
|
3894
|
-
attr_accessor :postal_code
|
|
3895
|
-
# The state, county, province, or region formatted according to country.
|
|
3896
|
-
attr_accessor :region
|
|
3897
|
-
# Line 1 of the street address.
|
|
3898
|
-
attr_accessor :street_address
|
|
3899
|
-
# Line 2 of the street address.
|
|
3900
|
-
attr_accessor :street_address2
|
|
3901
|
-
|
|
3902
|
-
def initialize(
|
|
3903
|
-
city: nil,
|
|
3904
|
-
country: nil,
|
|
3905
|
-
postal_code: nil,
|
|
3906
|
-
region: nil,
|
|
3907
|
-
street_address: nil,
|
|
3908
|
-
street_address2: nil
|
|
3909
|
-
)
|
|
3910
|
-
@city = city
|
|
3911
|
-
@country = country
|
|
3912
|
-
@postal_code = postal_code
|
|
3913
|
-
@region = region
|
|
3914
|
-
@street_address = street_address
|
|
3915
|
-
@street_address2 = street_address2
|
|
3916
|
-
end
|
|
3917
|
-
end
|
|
3918
|
-
# Address of the arrival location.
|
|
3919
|
-
attr_accessor :address
|
|
3920
|
-
# Identifier name or reference for the arrival location.
|
|
3921
|
-
attr_accessor :arrival_location
|
|
3922
|
-
|
|
3923
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3924
|
-
@address = address
|
|
3925
|
-
@arrival_location = arrival_location
|
|
3926
|
-
end
|
|
3927
|
-
end
|
|
3928
|
-
|
|
3929
|
-
class Departure < ::Stripe::RequestParams
|
|
3930
|
-
class Address < ::Stripe::RequestParams
|
|
3931
|
-
# The city or town.
|
|
3932
|
-
attr_accessor :city
|
|
3933
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3934
|
-
attr_accessor :country
|
|
3935
|
-
# The postal code formatted according to country.
|
|
3936
|
-
attr_accessor :postal_code
|
|
3937
|
-
# The state, county, province, or region formatted according to country.
|
|
3938
|
-
attr_accessor :region
|
|
3939
|
-
# Line 1 of the street address.
|
|
3940
|
-
attr_accessor :street_address
|
|
3941
|
-
# Line 2 of the street address.
|
|
3942
|
-
attr_accessor :street_address2
|
|
3943
|
-
|
|
3944
|
-
def initialize(
|
|
3945
|
-
city: nil,
|
|
3946
|
-
country: nil,
|
|
3947
|
-
postal_code: nil,
|
|
3948
|
-
region: nil,
|
|
3949
|
-
street_address: nil,
|
|
3950
|
-
street_address2: nil
|
|
3951
|
-
)
|
|
3952
|
-
@city = city
|
|
3953
|
-
@country = country
|
|
3954
|
-
@postal_code = postal_code
|
|
3955
|
-
@region = region
|
|
3956
|
-
@street_address = street_address
|
|
3957
|
-
@street_address2 = street_address2
|
|
3958
|
-
end
|
|
3959
|
-
end
|
|
3960
|
-
# Address of the departure location.
|
|
3961
|
-
attr_accessor :address
|
|
3962
|
-
# Timestamp of departure.
|
|
3963
|
-
attr_accessor :departs_at
|
|
3964
|
-
# Identifier name or reference for the origin location.
|
|
3965
|
-
attr_accessor :departure_location
|
|
3966
|
-
|
|
3967
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3968
|
-
@address = address
|
|
3969
|
-
@departs_at = departs_at
|
|
3970
|
-
@departure_location = departure_location
|
|
3971
|
-
end
|
|
3972
|
-
end
|
|
3973
|
-
|
|
3974
|
-
class Insurance < ::Stripe::RequestParams
|
|
3975
|
-
# Insurance currency.
|
|
3976
|
-
attr_accessor :currency
|
|
3977
|
-
# Name of the company providing the insurance.
|
|
3978
|
-
attr_accessor :insurance_company_name
|
|
3979
|
-
# Type of insurance.
|
|
3980
|
-
attr_accessor :insurance_type
|
|
3981
|
-
# Price of insurance in cents.
|
|
3982
|
-
attr_accessor :price
|
|
3983
|
-
|
|
3984
|
-
def initialize(
|
|
3985
|
-
currency: nil,
|
|
3986
|
-
insurance_company_name: nil,
|
|
3987
|
-
insurance_type: nil,
|
|
3988
|
-
price: nil
|
|
3989
|
-
)
|
|
3990
|
-
@currency = currency
|
|
3991
|
-
@insurance_company_name = insurance_company_name
|
|
3992
|
-
@insurance_type = insurance_type
|
|
3993
|
-
@price = price
|
|
3994
|
-
end
|
|
3995
|
-
end
|
|
3996
|
-
|
|
3997
|
-
class Passenger < ::Stripe::RequestParams
|
|
3998
|
-
# The family name of the person.
|
|
3999
|
-
attr_accessor :family_name
|
|
4000
|
-
# The given name of the person.
|
|
4001
|
-
attr_accessor :given_name
|
|
4002
|
-
|
|
4003
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4004
|
-
@family_name = family_name
|
|
4005
|
-
@given_name = given_name
|
|
4006
|
-
end
|
|
4007
|
-
end
|
|
4008
|
-
# Name of associated or partner company for the service.
|
|
4009
|
-
attr_accessor :affiliate_name
|
|
4010
|
-
# Arrival details.
|
|
4011
|
-
attr_accessor :arrival
|
|
4012
|
-
# Name of transportation company.
|
|
4013
|
-
attr_accessor :carrier_name
|
|
4014
|
-
# Currency.
|
|
4015
|
-
attr_accessor :currency
|
|
4016
|
-
# Departure details.
|
|
4017
|
-
attr_accessor :departure
|
|
4018
|
-
# List of insurances for this reservation.
|
|
4019
|
-
attr_accessor :insurances
|
|
4020
|
-
# List of passengers that this reservation applies to.
|
|
4021
|
-
attr_accessor :passengers
|
|
4022
|
-
# Price in cents.
|
|
4023
|
-
attr_accessor :price
|
|
4024
|
-
# Ticket class.
|
|
4025
|
-
attr_accessor :ticket_class
|
|
4026
|
-
|
|
4027
|
-
def initialize(
|
|
4028
|
-
affiliate_name: nil,
|
|
4029
|
-
arrival: nil,
|
|
4030
|
-
carrier_name: nil,
|
|
4031
|
-
currency: nil,
|
|
4032
|
-
departure: nil,
|
|
4033
|
-
insurances: nil,
|
|
4034
|
-
passengers: nil,
|
|
4035
|
-
price: nil,
|
|
4036
|
-
ticket_class: nil
|
|
4037
|
-
)
|
|
4038
|
-
@affiliate_name = affiliate_name
|
|
4039
|
-
@arrival = arrival
|
|
4040
|
-
@carrier_name = carrier_name
|
|
4041
|
-
@currency = currency
|
|
4042
|
-
@departure = departure
|
|
4043
|
-
@insurances = insurances
|
|
4044
|
-
@passengers = passengers
|
|
4045
|
-
@price = price
|
|
4046
|
-
@ticket_class = ticket_class
|
|
4047
|
-
end
|
|
4048
|
-
end
|
|
4049
|
-
|
|
4050
|
-
class Insurance < ::Stripe::RequestParams
|
|
4051
|
-
# Insurance currency.
|
|
4052
|
-
attr_accessor :currency
|
|
4053
|
-
# Name of the company providing the insurance.
|
|
4054
|
-
attr_accessor :insurance_company_name
|
|
4055
|
-
# Type of insurance
|
|
4056
|
-
attr_accessor :insurance_type
|
|
4057
|
-
# Price of insurance in cents.
|
|
4058
|
-
attr_accessor :price
|
|
4059
|
-
|
|
4060
|
-
def initialize(
|
|
4061
|
-
currency: nil,
|
|
4062
|
-
insurance_company_name: nil,
|
|
4063
|
-
insurance_type: nil,
|
|
4064
|
-
price: nil
|
|
4065
|
-
)
|
|
4066
|
-
@currency = currency
|
|
4067
|
-
@insurance_company_name = insurance_company_name
|
|
4068
|
-
@insurance_type = insurance_type
|
|
4069
|
-
@price = price
|
|
4070
|
-
end
|
|
4071
|
-
end
|
|
4072
|
-
|
|
4073
|
-
class MarketplaceSeller < ::Stripe::RequestParams
|
|
4074
|
-
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
4075
|
-
# The city or town.
|
|
4076
|
-
attr_accessor :city
|
|
4077
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4078
|
-
attr_accessor :country
|
|
4079
|
-
# The postal code formatted according to country.
|
|
4080
|
-
attr_accessor :postal_code
|
|
4081
|
-
# The state, county, province, or region formatted according to country.
|
|
4082
|
-
attr_accessor :region
|
|
4083
|
-
# Line 1 of the street address.
|
|
4084
|
-
attr_accessor :street_address
|
|
4085
|
-
# Line 2 of the street address.
|
|
4086
|
-
attr_accessor :street_address2
|
|
4087
|
-
|
|
4088
|
-
def initialize(
|
|
4089
|
-
city: nil,
|
|
4090
|
-
country: nil,
|
|
4091
|
-
postal_code: nil,
|
|
4092
|
-
region: nil,
|
|
4093
|
-
street_address: nil,
|
|
4094
|
-
street_address2: nil
|
|
4095
|
-
)
|
|
4096
|
-
@city = city
|
|
4097
|
-
@country = country
|
|
4098
|
-
@postal_code = postal_code
|
|
4099
|
-
@region = region
|
|
4100
|
-
@street_address = street_address
|
|
4101
|
-
@street_address2 = street_address2
|
|
4102
|
-
end
|
|
4103
|
-
end
|
|
4104
|
-
# The references to line items for purchases with multiple associated sub-sellers.
|
|
4105
|
-
attr_accessor :line_item_references
|
|
4106
|
-
# The address of the selling or delivering merchant.
|
|
4107
|
-
attr_accessor :marketplace_seller_address
|
|
4108
|
-
# The name of the marketplace seller.
|
|
4109
|
-
attr_accessor :marketplace_seller_name
|
|
4110
|
-
# The unique identifier for the marketplace seller.
|
|
4111
|
-
attr_accessor :marketplace_seller_reference
|
|
4112
|
-
# The number of transactions the sub-seller completed in the last 12 months.
|
|
4113
|
-
attr_accessor :number_of_transactions
|
|
4114
|
-
# The category of the product.
|
|
4115
|
-
attr_accessor :product_category
|
|
4116
|
-
# The date when the seller's account with the marketplace was last logged in.
|
|
4117
|
-
attr_accessor :seller_last_login_at
|
|
4118
|
-
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
4119
|
-
attr_accessor :seller_rating
|
|
4120
|
-
# The date when the seller's account with the marketplace was created.
|
|
4121
|
-
attr_accessor :seller_registered_at
|
|
4122
|
-
# The date when the seller's account with the marketplace was last updated.
|
|
4123
|
-
attr_accessor :seller_updated_at
|
|
4124
|
-
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
4125
|
-
attr_accessor :shipping_references
|
|
4126
|
-
# 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.
|
|
4127
|
-
attr_accessor :volume_of_transactions
|
|
4128
|
-
|
|
4129
|
-
def initialize(
|
|
4130
|
-
line_item_references: nil,
|
|
4131
|
-
marketplace_seller_address: nil,
|
|
4132
|
-
marketplace_seller_name: nil,
|
|
4133
|
-
marketplace_seller_reference: nil,
|
|
4134
|
-
number_of_transactions: nil,
|
|
4135
|
-
product_category: nil,
|
|
4136
|
-
seller_last_login_at: nil,
|
|
4137
|
-
seller_rating: nil,
|
|
4138
|
-
seller_registered_at: nil,
|
|
4139
|
-
seller_updated_at: nil,
|
|
4140
|
-
shipping_references: nil,
|
|
4141
|
-
volume_of_transactions: nil
|
|
4142
|
-
)
|
|
4143
|
-
@line_item_references = line_item_references
|
|
4144
|
-
@marketplace_seller_address = marketplace_seller_address
|
|
4145
|
-
@marketplace_seller_name = marketplace_seller_name
|
|
4146
|
-
@marketplace_seller_reference = marketplace_seller_reference
|
|
4147
|
-
@number_of_transactions = number_of_transactions
|
|
4148
|
-
@product_category = product_category
|
|
4149
|
-
@seller_last_login_at = seller_last_login_at
|
|
4150
|
-
@seller_rating = seller_rating
|
|
4151
|
-
@seller_registered_at = seller_registered_at
|
|
4152
|
-
@seller_updated_at = seller_updated_at
|
|
4153
|
-
@shipping_references = shipping_references
|
|
4154
|
-
@volume_of_transactions = volume_of_transactions
|
|
4155
|
-
end
|
|
4156
|
-
end
|
|
4157
|
-
|
|
4158
|
-
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4159
|
-
class Arrival < ::Stripe::RequestParams
|
|
4160
|
-
class Address < ::Stripe::RequestParams
|
|
4161
|
-
# The city or town.
|
|
4162
|
-
attr_accessor :city
|
|
4163
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4164
|
-
attr_accessor :country
|
|
4165
|
-
# The postal code formatted according to country.
|
|
4166
|
-
attr_accessor :postal_code
|
|
4167
|
-
# The state, county, province, or region formatted according to country.
|
|
4168
|
-
attr_accessor :region
|
|
4169
|
-
# Line 1 of the street address.
|
|
4170
|
-
attr_accessor :street_address
|
|
4171
|
-
# Line 2 of the street address.
|
|
4172
|
-
attr_accessor :street_address2
|
|
4173
|
-
|
|
4174
|
-
def initialize(
|
|
4175
|
-
city: nil,
|
|
4176
|
-
country: nil,
|
|
4177
|
-
postal_code: nil,
|
|
4178
|
-
region: nil,
|
|
4179
|
-
street_address: nil,
|
|
4180
|
-
street_address2: nil
|
|
4181
|
-
)
|
|
4182
|
-
@city = city
|
|
4183
|
-
@country = country
|
|
4184
|
-
@postal_code = postal_code
|
|
4185
|
-
@region = region
|
|
4186
|
-
@street_address = street_address
|
|
4187
|
-
@street_address2 = street_address2
|
|
4188
|
-
end
|
|
4189
|
-
end
|
|
4190
|
-
# Address of the arrival location.
|
|
4191
|
-
attr_accessor :address
|
|
4192
|
-
# Identifier name or reference for the arrival location.
|
|
4193
|
-
attr_accessor :arrival_location
|
|
4194
|
-
|
|
4195
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4196
|
-
@address = address
|
|
4197
|
-
@arrival_location = arrival_location
|
|
4198
|
-
end
|
|
4199
|
-
end
|
|
4200
|
-
|
|
4201
|
-
class Departure < ::Stripe::RequestParams
|
|
4202
|
-
class Address < ::Stripe::RequestParams
|
|
4203
|
-
# The city or town.
|
|
4204
|
-
attr_accessor :city
|
|
4205
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4206
|
-
attr_accessor :country
|
|
4207
|
-
# The postal code formatted according to country.
|
|
4208
|
-
attr_accessor :postal_code
|
|
4209
|
-
# The state, county, province, or region formatted according to country.
|
|
4210
|
-
attr_accessor :region
|
|
4211
|
-
# Line 1 of the street address.
|
|
4212
|
-
attr_accessor :street_address
|
|
4213
|
-
# Line 2 of the street address.
|
|
4214
|
-
attr_accessor :street_address2
|
|
4215
|
-
|
|
4216
|
-
def initialize(
|
|
4217
|
-
city: nil,
|
|
4218
|
-
country: nil,
|
|
4219
|
-
postal_code: nil,
|
|
4220
|
-
region: nil,
|
|
4221
|
-
street_address: nil,
|
|
4222
|
-
street_address2: nil
|
|
4223
|
-
)
|
|
4224
|
-
@city = city
|
|
4225
|
-
@country = country
|
|
4226
|
-
@postal_code = postal_code
|
|
4227
|
-
@region = region
|
|
4228
|
-
@street_address = street_address
|
|
4229
|
-
@street_address2 = street_address2
|
|
4230
|
-
end
|
|
4231
|
-
end
|
|
4232
|
-
# Address of the departure location.
|
|
4233
|
-
attr_accessor :address
|
|
4234
|
-
# Timestamp of departure.
|
|
4235
|
-
attr_accessor :departs_at
|
|
4236
|
-
# Identifier name or reference for the origin location.
|
|
4237
|
-
attr_accessor :departure_location
|
|
4238
|
-
|
|
4239
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4240
|
-
@address = address
|
|
4241
|
-
@departs_at = departs_at
|
|
4242
|
-
@departure_location = departure_location
|
|
4243
|
-
end
|
|
4244
|
-
end
|
|
4245
|
-
|
|
4246
|
-
class Insurance < ::Stripe::RequestParams
|
|
4247
|
-
# Insurance currency.
|
|
4248
|
-
attr_accessor :currency
|
|
4249
|
-
# Name of the company providing the insurance.
|
|
4250
|
-
attr_accessor :insurance_company_name
|
|
4251
|
-
# Type of insurance.
|
|
4252
|
-
attr_accessor :insurance_type
|
|
4253
|
-
# Price of insurance in cents.
|
|
4254
|
-
attr_accessor :price
|
|
4255
|
-
|
|
4256
|
-
def initialize(
|
|
4257
|
-
currency: nil,
|
|
4258
|
-
insurance_company_name: nil,
|
|
4259
|
-
insurance_type: nil,
|
|
4260
|
-
price: nil
|
|
4261
|
-
)
|
|
4262
|
-
@currency = currency
|
|
4263
|
-
@insurance_company_name = insurance_company_name
|
|
4264
|
-
@insurance_type = insurance_type
|
|
4265
|
-
@price = price
|
|
4266
|
-
end
|
|
4267
|
-
end
|
|
4268
|
-
|
|
4269
|
-
class Passenger < ::Stripe::RequestParams
|
|
4270
|
-
# The family name of the person.
|
|
4271
|
-
attr_accessor :family_name
|
|
4272
|
-
# The given name of the person.
|
|
4273
|
-
attr_accessor :given_name
|
|
4274
|
-
|
|
4275
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4276
|
-
@family_name = family_name
|
|
4277
|
-
@given_name = given_name
|
|
4278
|
-
end
|
|
4279
|
-
end
|
|
4280
|
-
# Name of associated or partner company for the service.
|
|
4281
|
-
attr_accessor :affiliate_name
|
|
4282
|
-
# Arrival details.
|
|
4283
|
-
attr_accessor :arrival
|
|
4284
|
-
# Name of transportation company.
|
|
4285
|
-
attr_accessor :carrier_name
|
|
4286
|
-
# Currency.
|
|
4287
|
-
attr_accessor :currency
|
|
4288
|
-
# Departure details.
|
|
4289
|
-
attr_accessor :departure
|
|
4290
|
-
# List of insurances for this reservation.
|
|
4291
|
-
attr_accessor :insurances
|
|
4292
|
-
# List of passengers that this reservation applies to.
|
|
4293
|
-
attr_accessor :passengers
|
|
4294
|
-
# Price in cents.
|
|
4295
|
-
attr_accessor :price
|
|
4296
|
-
# Ticket class.
|
|
4297
|
-
attr_accessor :ticket_class
|
|
4298
|
-
|
|
4299
|
-
def initialize(
|
|
4300
|
-
affiliate_name: nil,
|
|
4301
|
-
arrival: nil,
|
|
4302
|
-
carrier_name: nil,
|
|
4303
|
-
currency: nil,
|
|
4304
|
-
departure: nil,
|
|
4305
|
-
insurances: nil,
|
|
4306
|
-
passengers: nil,
|
|
4307
|
-
price: nil,
|
|
4308
|
-
ticket_class: nil
|
|
4309
|
-
)
|
|
4310
|
-
@affiliate_name = affiliate_name
|
|
4311
|
-
@arrival = arrival
|
|
4312
|
-
@carrier_name = carrier_name
|
|
4313
|
-
@currency = currency
|
|
4314
|
-
@departure = departure
|
|
4315
|
-
@insurances = insurances
|
|
4316
|
-
@passengers = passengers
|
|
4317
|
-
@price = price
|
|
4318
|
-
@ticket_class = ticket_class
|
|
4319
|
-
end
|
|
4320
|
-
end
|
|
4321
|
-
|
|
4322
|
-
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4323
|
-
class Arrival < ::Stripe::RequestParams
|
|
4324
|
-
class Address < ::Stripe::RequestParams
|
|
4325
|
-
# The city or town.
|
|
4326
|
-
attr_accessor :city
|
|
4327
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4328
|
-
attr_accessor :country
|
|
4329
|
-
# The postal code formatted according to country.
|
|
4330
|
-
attr_accessor :postal_code
|
|
4331
|
-
# The state, county, province, or region formatted according to country.
|
|
4332
|
-
attr_accessor :region
|
|
4333
|
-
# Line 1 of the street address.
|
|
4334
|
-
attr_accessor :street_address
|
|
4335
|
-
# Line 2 of the street address.
|
|
4336
|
-
attr_accessor :street_address2
|
|
4337
|
-
|
|
4338
|
-
def initialize(
|
|
4339
|
-
city: nil,
|
|
4340
|
-
country: nil,
|
|
4341
|
-
postal_code: nil,
|
|
4342
|
-
region: nil,
|
|
4343
|
-
street_address: nil,
|
|
4344
|
-
street_address2: nil
|
|
4345
|
-
)
|
|
4346
|
-
@city = city
|
|
4347
|
-
@country = country
|
|
4348
|
-
@postal_code = postal_code
|
|
4349
|
-
@region = region
|
|
4350
|
-
@street_address = street_address
|
|
4351
|
-
@street_address2 = street_address2
|
|
4352
|
-
end
|
|
4353
|
-
end
|
|
4354
|
-
# Address of the arrival location.
|
|
4355
|
-
attr_accessor :address
|
|
4356
|
-
# Identifier name or reference for the arrival location.
|
|
4357
|
-
attr_accessor :arrival_location
|
|
4358
|
-
|
|
4359
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4360
|
-
@address = address
|
|
4361
|
-
@arrival_location = arrival_location
|
|
4362
|
-
end
|
|
4363
|
-
end
|
|
4364
|
-
|
|
4365
|
-
class Departure < ::Stripe::RequestParams
|
|
4366
|
-
class Address < ::Stripe::RequestParams
|
|
4367
|
-
# The city or town.
|
|
4368
|
-
attr_accessor :city
|
|
4369
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4370
|
-
attr_accessor :country
|
|
4371
|
-
# The postal code formatted according to country.
|
|
4372
|
-
attr_accessor :postal_code
|
|
4373
|
-
# The state, county, province, or region formatted according to country.
|
|
4374
|
-
attr_accessor :region
|
|
4375
|
-
# Line 1 of the street address.
|
|
4376
|
-
attr_accessor :street_address
|
|
4377
|
-
# Line 2 of the street address.
|
|
4378
|
-
attr_accessor :street_address2
|
|
4379
|
-
|
|
4380
|
-
def initialize(
|
|
4381
|
-
city: nil,
|
|
4382
|
-
country: nil,
|
|
4383
|
-
postal_code: nil,
|
|
4384
|
-
region: nil,
|
|
4385
|
-
street_address: nil,
|
|
4386
|
-
street_address2: nil
|
|
4387
|
-
)
|
|
4388
|
-
@city = city
|
|
4389
|
-
@country = country
|
|
4390
|
-
@postal_code = postal_code
|
|
4391
|
-
@region = region
|
|
4392
|
-
@street_address = street_address
|
|
4393
|
-
@street_address2 = street_address2
|
|
4394
|
-
end
|
|
4395
|
-
end
|
|
4396
|
-
# Address of the departure location.
|
|
4397
|
-
attr_accessor :address
|
|
4398
|
-
# Timestamp of departure.
|
|
4399
|
-
attr_accessor :departs_at
|
|
4400
|
-
# Identifier name or reference for the origin location.
|
|
4401
|
-
attr_accessor :departure_location
|
|
4402
|
-
|
|
4403
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4404
|
-
@address = address
|
|
4405
|
-
@departs_at = departs_at
|
|
4406
|
-
@departure_location = departure_location
|
|
4407
|
-
end
|
|
4408
|
-
end
|
|
4409
|
-
|
|
4410
|
-
class Insurance < ::Stripe::RequestParams
|
|
4411
|
-
# Insurance currency.
|
|
4412
|
-
attr_accessor :currency
|
|
4413
|
-
# Name of the company providing the insurance.
|
|
4414
|
-
attr_accessor :insurance_company_name
|
|
4415
|
-
# Type of insurance.
|
|
4416
|
-
attr_accessor :insurance_type
|
|
4417
|
-
# Price of insurance in cents.
|
|
4418
|
-
attr_accessor :price
|
|
4419
|
-
|
|
4420
|
-
def initialize(
|
|
4421
|
-
currency: nil,
|
|
4422
|
-
insurance_company_name: nil,
|
|
4423
|
-
insurance_type: nil,
|
|
4424
|
-
price: nil
|
|
4425
|
-
)
|
|
4426
|
-
@currency = currency
|
|
4427
|
-
@insurance_company_name = insurance_company_name
|
|
4428
|
-
@insurance_type = insurance_type
|
|
4429
|
-
@price = price
|
|
4430
|
-
end
|
|
4431
|
-
end
|
|
4432
|
-
|
|
4433
|
-
class Passenger < ::Stripe::RequestParams
|
|
4434
|
-
# The family name of the person.
|
|
4435
|
-
attr_accessor :family_name
|
|
4436
|
-
# The given name of the person.
|
|
4437
|
-
attr_accessor :given_name
|
|
4438
|
-
|
|
4439
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4440
|
-
@family_name = family_name
|
|
4441
|
-
@given_name = given_name
|
|
4442
|
-
end
|
|
4443
|
-
end
|
|
4444
|
-
# Name of associated or partner company for the service.
|
|
4445
|
-
attr_accessor :affiliate_name
|
|
4446
|
-
# Arrival details.
|
|
4447
|
-
attr_accessor :arrival
|
|
4448
|
-
# Name of transportation company.
|
|
4449
|
-
attr_accessor :carrier_name
|
|
4450
|
-
# Currency.
|
|
4451
|
-
attr_accessor :currency
|
|
4452
|
-
# Departure details.
|
|
4453
|
-
attr_accessor :departure
|
|
4454
|
-
# List of insurances for this reservation.
|
|
4455
|
-
attr_accessor :insurances
|
|
4456
|
-
# List of passengers that this reservation applies to.
|
|
4457
|
-
attr_accessor :passengers
|
|
4458
|
-
# Price in cents.
|
|
4459
|
-
attr_accessor :price
|
|
4460
|
-
# Ticket class.
|
|
4461
|
-
attr_accessor :ticket_class
|
|
4462
|
-
|
|
4463
|
-
def initialize(
|
|
4464
|
-
affiliate_name: nil,
|
|
4465
|
-
arrival: nil,
|
|
4466
|
-
carrier_name: nil,
|
|
4467
|
-
currency: nil,
|
|
4468
|
-
departure: nil,
|
|
4469
|
-
insurances: nil,
|
|
4470
|
-
passengers: nil,
|
|
4471
|
-
price: nil,
|
|
4472
|
-
ticket_class: nil
|
|
4473
|
-
)
|
|
4474
|
-
@affiliate_name = affiliate_name
|
|
4475
|
-
@arrival = arrival
|
|
4476
|
-
@carrier_name = carrier_name
|
|
4477
|
-
@currency = currency
|
|
4478
|
-
@departure = departure
|
|
4479
|
-
@insurances = insurances
|
|
4480
|
-
@passengers = passengers
|
|
4481
|
-
@price = price
|
|
4482
|
-
@ticket_class = ticket_class
|
|
4483
|
-
end
|
|
4484
|
-
end
|
|
4485
|
-
|
|
4486
|
-
class Voucher < ::Stripe::RequestParams
|
|
4487
|
-
# Name of associated or partner company for this voucher.
|
|
4488
|
-
attr_accessor :affiliate_name
|
|
4489
|
-
# The voucher validity end time.
|
|
4490
|
-
attr_accessor :ends_at
|
|
4491
|
-
# The voucher validity start time.
|
|
4492
|
-
attr_accessor :starts_at
|
|
4493
|
-
# The issuer or provider of this voucher.
|
|
4494
|
-
attr_accessor :voucher_company
|
|
4495
|
-
# The name or reference to identify the voucher.
|
|
4496
|
-
attr_accessor :voucher_name
|
|
4497
|
-
# The type of this voucher.
|
|
4498
|
-
attr_accessor :voucher_type
|
|
4499
|
-
|
|
4500
|
-
def initialize(
|
|
4501
|
-
affiliate_name: nil,
|
|
4502
|
-
ends_at: nil,
|
|
4503
|
-
starts_at: nil,
|
|
4504
|
-
voucher_company: nil,
|
|
4505
|
-
voucher_name: nil,
|
|
4506
|
-
voucher_type: nil
|
|
4507
|
-
)
|
|
4508
|
-
@affiliate_name = affiliate_name
|
|
4509
|
-
@ends_at = ends_at
|
|
4510
|
-
@starts_at = starts_at
|
|
4511
|
-
@voucher_company = voucher_company
|
|
4512
|
-
@voucher_name = voucher_name
|
|
4513
|
-
@voucher_type = voucher_type
|
|
4514
|
-
end
|
|
4515
|
-
end
|
|
4516
|
-
# Supplementary bus reservation details.
|
|
4517
|
-
attr_accessor :bus_reservation_details
|
|
4518
|
-
# Supplementary event reservation details.
|
|
4519
|
-
attr_accessor :event_reservation_details
|
|
4520
|
-
# Supplementary ferry reservation details.
|
|
4521
|
-
attr_accessor :ferry_reservation_details
|
|
4522
|
-
# Supplementary insurance details.
|
|
4523
|
-
attr_accessor :insurances
|
|
4524
|
-
# Supplementary marketplace seller details.
|
|
4525
|
-
attr_accessor :marketplace_sellers
|
|
4526
|
-
# Supplementary round trip reservation details.
|
|
4527
|
-
attr_accessor :round_trip_reservation_details
|
|
4528
|
-
# Supplementary train reservation details.
|
|
4529
|
-
attr_accessor :train_reservation_details
|
|
4530
|
-
# Voucher details, such as a gift card or discount code.
|
|
4531
|
-
attr_accessor :vouchers
|
|
4532
|
-
|
|
4533
|
-
def initialize(
|
|
4534
|
-
bus_reservation_details: nil,
|
|
4535
|
-
event_reservation_details: nil,
|
|
4536
|
-
ferry_reservation_details: nil,
|
|
4537
|
-
insurances: nil,
|
|
4538
|
-
marketplace_sellers: nil,
|
|
4539
|
-
round_trip_reservation_details: nil,
|
|
4540
|
-
train_reservation_details: nil,
|
|
4541
|
-
vouchers: nil
|
|
4542
|
-
)
|
|
4543
|
-
@bus_reservation_details = bus_reservation_details
|
|
4544
|
-
@event_reservation_details = event_reservation_details
|
|
4545
|
-
@ferry_reservation_details = ferry_reservation_details
|
|
4546
|
-
@insurances = insurances
|
|
4547
|
-
@marketplace_sellers = marketplace_sellers
|
|
4548
|
-
@round_trip_reservation_details = round_trip_reservation_details
|
|
4549
|
-
@train_reservation_details = train_reservation_details
|
|
4550
|
-
@vouchers = vouchers
|
|
4551
|
-
end
|
|
4552
|
-
end
|
|
4553
1792
|
# Controls when the funds are captured from the customer's account.
|
|
4554
1793
|
#
|
|
4555
1794
|
# 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.
|
|
@@ -4572,23 +1811,19 @@ module Stripe
|
|
|
4572
1811
|
attr_accessor :setup_future_usage
|
|
4573
1812
|
# Subscription details if setting up or charging a subscription.
|
|
4574
1813
|
attr_accessor :subscriptions
|
|
4575
|
-
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4576
|
-
attr_accessor :supplementary_purchase_data
|
|
4577
1814
|
|
|
4578
1815
|
def initialize(
|
|
4579
1816
|
capture_method: nil,
|
|
4580
1817
|
on_demand: nil,
|
|
4581
1818
|
preferred_locale: nil,
|
|
4582
1819
|
setup_future_usage: nil,
|
|
4583
|
-
subscriptions: nil
|
|
4584
|
-
supplementary_purchase_data: nil
|
|
1820
|
+
subscriptions: nil
|
|
4585
1821
|
)
|
|
4586
1822
|
@capture_method = capture_method
|
|
4587
1823
|
@on_demand = on_demand
|
|
4588
1824
|
@preferred_locale = preferred_locale
|
|
4589
1825
|
@setup_future_usage = setup_future_usage
|
|
4590
1826
|
@subscriptions = subscriptions
|
|
4591
|
-
@supplementary_purchase_data = supplementary_purchase_data
|
|
4592
1827
|
end
|
|
4593
1828
|
end
|
|
4594
1829
|
|
|
@@ -4858,65 +2093,12 @@ module Stripe
|
|
|
4858
2093
|
end
|
|
4859
2094
|
|
|
4860
2095
|
class Paypal < ::Stripe::RequestParams
|
|
4861
|
-
class LineItem < ::Stripe::RequestParams
|
|
4862
|
-
class Tax < ::Stripe::RequestParams
|
|
4863
|
-
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4864
|
-
attr_accessor :amount
|
|
4865
|
-
# The tax behavior for the line item.
|
|
4866
|
-
attr_accessor :behavior
|
|
4867
|
-
|
|
4868
|
-
def initialize(amount: nil, behavior: nil)
|
|
4869
|
-
@amount = amount
|
|
4870
|
-
@behavior = behavior
|
|
4871
|
-
end
|
|
4872
|
-
end
|
|
4873
|
-
# Type of the line item.
|
|
4874
|
-
attr_accessor :category
|
|
4875
|
-
# Description of the line item.
|
|
4876
|
-
attr_accessor :description
|
|
4877
|
-
# Descriptive name of the line item.
|
|
4878
|
-
attr_accessor :name
|
|
4879
|
-
# Quantity of the line item. Must be a positive number.
|
|
4880
|
-
attr_accessor :quantity
|
|
4881
|
-
# Client facing stock keeping unit, article number or similar.
|
|
4882
|
-
attr_accessor :sku
|
|
4883
|
-
# The Stripe account ID of the connected account that sells the item.
|
|
4884
|
-
attr_accessor :sold_by
|
|
4885
|
-
# The tax information for the line item.
|
|
4886
|
-
attr_accessor :tax
|
|
4887
|
-
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4888
|
-
attr_accessor :unit_amount
|
|
4889
|
-
|
|
4890
|
-
def initialize(
|
|
4891
|
-
category: nil,
|
|
4892
|
-
description: nil,
|
|
4893
|
-
name: nil,
|
|
4894
|
-
quantity: nil,
|
|
4895
|
-
sku: nil,
|
|
4896
|
-
sold_by: nil,
|
|
4897
|
-
tax: nil,
|
|
4898
|
-
unit_amount: nil
|
|
4899
|
-
)
|
|
4900
|
-
@category = category
|
|
4901
|
-
@description = description
|
|
4902
|
-
@name = name
|
|
4903
|
-
@quantity = quantity
|
|
4904
|
-
@sku = sku
|
|
4905
|
-
@sold_by = sold_by
|
|
4906
|
-
@tax = tax
|
|
4907
|
-
@unit_amount = unit_amount
|
|
4908
|
-
end
|
|
4909
|
-
end
|
|
4910
2096
|
# Controls when the funds will be captured from the customer's account.
|
|
4911
2097
|
attr_accessor :capture_method
|
|
4912
|
-
# The line items purchased by the customer.
|
|
4913
|
-
attr_accessor :line_items
|
|
4914
2098
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
4915
2099
|
attr_accessor :preferred_locale
|
|
4916
2100
|
# 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.
|
|
4917
2101
|
attr_accessor :reference
|
|
4918
|
-
# 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.
|
|
4919
|
-
attr_accessor :reference_id
|
|
4920
2102
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
4921
2103
|
attr_accessor :risk_correlation_id
|
|
4922
2104
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -4929,27 +2111,19 @@ module Stripe
|
|
|
4929
2111
|
#
|
|
4930
2112
|
# 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`.
|
|
4931
2113
|
attr_accessor :setup_future_usage
|
|
4932
|
-
# 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.
|
|
4933
|
-
attr_accessor :subsellers
|
|
4934
2114
|
|
|
4935
2115
|
def initialize(
|
|
4936
2116
|
capture_method: nil,
|
|
4937
|
-
line_items: nil,
|
|
4938
2117
|
preferred_locale: nil,
|
|
4939
2118
|
reference: nil,
|
|
4940
|
-
reference_id: nil,
|
|
4941
2119
|
risk_correlation_id: nil,
|
|
4942
|
-
setup_future_usage: nil
|
|
4943
|
-
subsellers: nil
|
|
2120
|
+
setup_future_usage: nil
|
|
4944
2121
|
)
|
|
4945
2122
|
@capture_method = capture_method
|
|
4946
|
-
@line_items = line_items
|
|
4947
2123
|
@preferred_locale = preferred_locale
|
|
4948
2124
|
@reference = reference
|
|
4949
|
-
@reference_id = reference_id
|
|
4950
2125
|
@risk_correlation_id = risk_correlation_id
|
|
4951
2126
|
@setup_future_usage = setup_future_usage
|
|
4952
|
-
@subsellers = subsellers
|
|
4953
2127
|
end
|
|
4954
2128
|
end
|
|
4955
2129
|
|
|
@@ -5093,25 +2267,6 @@ module Stripe
|
|
|
5093
2267
|
end
|
|
5094
2268
|
end
|
|
5095
2269
|
|
|
5096
|
-
class Qris < ::Stripe::RequestParams
|
|
5097
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5098
|
-
#
|
|
5099
|
-
# 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.
|
|
5100
|
-
#
|
|
5101
|
-
# 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.
|
|
5102
|
-
#
|
|
5103
|
-
# 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).
|
|
5104
|
-
#
|
|
5105
|
-
# 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`.
|
|
5106
|
-
attr_accessor :setup_future_usage
|
|
5107
|
-
|
|
5108
|
-
def initialize(setup_future_usage: nil)
|
|
5109
|
-
@setup_future_usage = setup_future_usage
|
|
5110
|
-
end
|
|
5111
|
-
end
|
|
5112
|
-
|
|
5113
|
-
class Rechnung < ::Stripe::RequestParams; end
|
|
5114
|
-
|
|
5115
2270
|
class RevolutPay < ::Stripe::RequestParams
|
|
5116
2271
|
# Controls when the funds are captured from the customer's account.
|
|
5117
2272
|
#
|
|
@@ -5246,23 +2401,6 @@ module Stripe
|
|
|
5246
2401
|
end
|
|
5247
2402
|
end
|
|
5248
2403
|
|
|
5249
|
-
class Shopeepay < ::Stripe::RequestParams
|
|
5250
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5251
|
-
#
|
|
5252
|
-
# 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.
|
|
5253
|
-
#
|
|
5254
|
-
# 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.
|
|
5255
|
-
#
|
|
5256
|
-
# 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).
|
|
5257
|
-
#
|
|
5258
|
-
# 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`.
|
|
5259
|
-
attr_accessor :setup_future_usage
|
|
5260
|
-
|
|
5261
|
-
def initialize(setup_future_usage: nil)
|
|
5262
|
-
@setup_future_usage = setup_future_usage
|
|
5263
|
-
end
|
|
5264
|
-
end
|
|
5265
|
-
|
|
5266
2404
|
class Sofort < ::Stripe::RequestParams
|
|
5267
2405
|
# Language shown to the payer on redirect.
|
|
5268
2406
|
attr_accessor :preferred_language
|
|
@@ -5283,23 +2421,6 @@ module Stripe
|
|
|
5283
2421
|
end
|
|
5284
2422
|
end
|
|
5285
2423
|
|
|
5286
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
5287
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5288
|
-
#
|
|
5289
|
-
# 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.
|
|
5290
|
-
#
|
|
5291
|
-
# 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.
|
|
5292
|
-
#
|
|
5293
|
-
# 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).
|
|
5294
|
-
#
|
|
5295
|
-
# 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`.
|
|
5296
|
-
attr_accessor :setup_future_usage
|
|
5297
|
-
|
|
5298
|
-
def initialize(setup_future_usage: nil)
|
|
5299
|
-
@setup_future_usage = setup_future_usage
|
|
5300
|
-
end
|
|
5301
|
-
end
|
|
5302
|
-
|
|
5303
2424
|
class Sunbit < ::Stripe::RequestParams
|
|
5304
2425
|
# Controls when the funds are captured from the customer's account.
|
|
5305
2426
|
#
|
|
@@ -5393,27 +2514,13 @@ module Stripe
|
|
|
5393
2514
|
class Filters < ::Stripe::RequestParams
|
|
5394
2515
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
5395
2516
|
attr_accessor :account_subcategories
|
|
5396
|
-
# ID of the institution to use to filter for selectable accounts.
|
|
5397
|
-
attr_accessor :institution
|
|
5398
2517
|
|
|
5399
|
-
def initialize(account_subcategories: nil
|
|
2518
|
+
def initialize(account_subcategories: nil)
|
|
5400
2519
|
@account_subcategories = account_subcategories
|
|
5401
|
-
@institution = institution
|
|
5402
|
-
end
|
|
5403
|
-
end
|
|
5404
|
-
|
|
5405
|
-
class ManualEntry < ::Stripe::RequestParams
|
|
5406
|
-
# Settings for configuring manual entry of account details.
|
|
5407
|
-
attr_accessor :mode
|
|
5408
|
-
|
|
5409
|
-
def initialize(mode: nil)
|
|
5410
|
-
@mode = mode
|
|
5411
2520
|
end
|
|
5412
2521
|
end
|
|
5413
2522
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
5414
2523
|
attr_accessor :filters
|
|
5415
|
-
# Customize manual entry behavior
|
|
5416
|
-
attr_accessor :manual_entry
|
|
5417
2524
|
# 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`.
|
|
5418
2525
|
attr_accessor :permissions
|
|
5419
2526
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -5421,15 +2528,8 @@ module Stripe
|
|
|
5421
2528
|
# 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.
|
|
5422
2529
|
attr_accessor :return_url
|
|
5423
2530
|
|
|
5424
|
-
def initialize(
|
|
5425
|
-
filters: nil,
|
|
5426
|
-
manual_entry: nil,
|
|
5427
|
-
permissions: nil,
|
|
5428
|
-
prefetch: nil,
|
|
5429
|
-
return_url: nil
|
|
5430
|
-
)
|
|
2531
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
|
5431
2532
|
@filters = filters
|
|
5432
|
-
@manual_entry = manual_entry
|
|
5433
2533
|
@permissions = permissions
|
|
5434
2534
|
@prefetch = prefetch
|
|
5435
2535
|
@return_url = return_url
|
|
@@ -5518,23 +2618,6 @@ module Stripe
|
|
|
5518
2618
|
end
|
|
5519
2619
|
end
|
|
5520
2620
|
|
|
5521
|
-
class Wero < ::Stripe::RequestParams
|
|
5522
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5523
|
-
#
|
|
5524
|
-
# 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.
|
|
5525
|
-
#
|
|
5526
|
-
# 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.
|
|
5527
|
-
#
|
|
5528
|
-
# 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).
|
|
5529
|
-
#
|
|
5530
|
-
# 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`.
|
|
5531
|
-
attr_accessor :setup_future_usage
|
|
5532
|
-
|
|
5533
|
-
def initialize(setup_future_usage: nil)
|
|
5534
|
-
@setup_future_usage = setup_future_usage
|
|
5535
|
-
end
|
|
5536
|
-
end
|
|
5537
|
-
|
|
5538
2621
|
class Zip < ::Stripe::RequestParams
|
|
5539
2622
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5540
2623
|
#
|
|
@@ -5593,12 +2676,8 @@ module Stripe
|
|
|
5593
2676
|
attr_accessor :fpx
|
|
5594
2677
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
5595
2678
|
attr_accessor :giropay
|
|
5596
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5597
|
-
attr_accessor :gopay
|
|
5598
2679
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
5599
2680
|
attr_accessor :grabpay
|
|
5600
|
-
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5601
|
-
attr_accessor :id_bank_transfer
|
|
5602
2681
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
5603
2682
|
attr_accessor :ideal
|
|
5604
2683
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -5643,10 +2722,6 @@ module Stripe
|
|
|
5643
2722
|
attr_accessor :pix
|
|
5644
2723
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
5645
2724
|
attr_accessor :promptpay
|
|
5646
|
-
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5647
|
-
attr_accessor :qris
|
|
5648
|
-
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5649
|
-
attr_accessor :rechnung
|
|
5650
2725
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
5651
2726
|
attr_accessor :revolut_pay
|
|
5652
2727
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -5659,12 +2734,8 @@ module Stripe
|
|
|
5659
2734
|
attr_accessor :sepa_debit
|
|
5660
2735
|
# If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
|
|
5661
2736
|
attr_accessor :sequra
|
|
5662
|
-
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5663
|
-
attr_accessor :shopeepay
|
|
5664
2737
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
5665
2738
|
attr_accessor :sofort
|
|
5666
|
-
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5667
|
-
attr_accessor :stripe_balance
|
|
5668
2739
|
# If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
|
|
5669
2740
|
attr_accessor :sunbit
|
|
5670
2741
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
@@ -5677,8 +2748,6 @@ module Stripe
|
|
|
5677
2748
|
attr_accessor :us_bank_account
|
|
5678
2749
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
5679
2750
|
attr_accessor :wechat_pay
|
|
5680
|
-
# If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
|
|
5681
|
-
attr_accessor :wero
|
|
5682
2751
|
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
|
|
5683
2752
|
attr_accessor :zip
|
|
5684
2753
|
|
|
@@ -5704,9 +2773,7 @@ module Stripe
|
|
|
5704
2773
|
eps: nil,
|
|
5705
2774
|
fpx: nil,
|
|
5706
2775
|
giropay: nil,
|
|
5707
|
-
gopay: nil,
|
|
5708
2776
|
grabpay: nil,
|
|
5709
|
-
id_bank_transfer: nil,
|
|
5710
2777
|
ideal: nil,
|
|
5711
2778
|
interac_present: nil,
|
|
5712
2779
|
kakao_pay: nil,
|
|
@@ -5729,24 +2796,19 @@ module Stripe
|
|
|
5729
2796
|
payto: nil,
|
|
5730
2797
|
pix: nil,
|
|
5731
2798
|
promptpay: nil,
|
|
5732
|
-
qris: nil,
|
|
5733
|
-
rechnung: nil,
|
|
5734
2799
|
revolut_pay: nil,
|
|
5735
2800
|
samsung_pay: nil,
|
|
5736
2801
|
satispay: nil,
|
|
5737
2802
|
scalapay: nil,
|
|
5738
2803
|
sepa_debit: nil,
|
|
5739
2804
|
sequra: nil,
|
|
5740
|
-
shopeepay: nil,
|
|
5741
2805
|
sofort: nil,
|
|
5742
|
-
stripe_balance: nil,
|
|
5743
2806
|
sunbit: nil,
|
|
5744
2807
|
swish: nil,
|
|
5745
2808
|
twint: nil,
|
|
5746
2809
|
upi: nil,
|
|
5747
2810
|
us_bank_account: nil,
|
|
5748
2811
|
wechat_pay: nil,
|
|
5749
|
-
wero: nil,
|
|
5750
2812
|
zip: nil
|
|
5751
2813
|
)
|
|
5752
2814
|
@acss_debit = acss_debit
|
|
@@ -5770,9 +2832,7 @@ module Stripe
|
|
|
5770
2832
|
@eps = eps
|
|
5771
2833
|
@fpx = fpx
|
|
5772
2834
|
@giropay = giropay
|
|
5773
|
-
@gopay = gopay
|
|
5774
2835
|
@grabpay = grabpay
|
|
5775
|
-
@id_bank_transfer = id_bank_transfer
|
|
5776
2836
|
@ideal = ideal
|
|
5777
2837
|
@interac_present = interac_present
|
|
5778
2838
|
@kakao_pay = kakao_pay
|
|
@@ -5795,24 +2855,19 @@ module Stripe
|
|
|
5795
2855
|
@payto = payto
|
|
5796
2856
|
@pix = pix
|
|
5797
2857
|
@promptpay = promptpay
|
|
5798
|
-
@qris = qris
|
|
5799
|
-
@rechnung = rechnung
|
|
5800
2858
|
@revolut_pay = revolut_pay
|
|
5801
2859
|
@samsung_pay = samsung_pay
|
|
5802
2860
|
@satispay = satispay
|
|
5803
2861
|
@scalapay = scalapay
|
|
5804
2862
|
@sepa_debit = sepa_debit
|
|
5805
2863
|
@sequra = sequra
|
|
5806
|
-
@shopeepay = shopeepay
|
|
5807
2864
|
@sofort = sofort
|
|
5808
|
-
@stripe_balance = stripe_balance
|
|
5809
2865
|
@sunbit = sunbit
|
|
5810
2866
|
@swish = swish
|
|
5811
2867
|
@twint = twint
|
|
5812
2868
|
@upi = upi
|
|
5813
2869
|
@us_bank_account = us_bank_account
|
|
5814
2870
|
@wechat_pay = wechat_pay
|
|
5815
|
-
@wero = wero
|
|
5816
2871
|
@zip = zip
|
|
5817
2872
|
end
|
|
5818
2873
|
end
|
|
@@ -5968,8 +3023,6 @@ module Stripe
|
|
|
5968
3023
|
attr_accessor :excluded_payment_method_types
|
|
5969
3024
|
# Specifies which fields in the response should be expanded.
|
|
5970
3025
|
attr_accessor :expand
|
|
5971
|
-
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5972
|
-
attr_accessor :fx_quote
|
|
5973
3026
|
# Automations to be run during the PaymentIntent lifecycle
|
|
5974
3027
|
attr_accessor :hooks
|
|
5975
3028
|
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
@@ -6004,8 +3057,6 @@ module Stripe
|
|
|
6004
3057
|
attr_accessor :receipt_email
|
|
6005
3058
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
|
|
6006
3059
|
attr_accessor :return_url
|
|
6007
|
-
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
6008
|
-
attr_accessor :secret_key_confirmation
|
|
6009
3060
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
6010
3061
|
#
|
|
6011
3062
|
# 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.
|
|
@@ -6047,7 +3098,6 @@ module Stripe
|
|
|
6047
3098
|
error_on_requires_action: nil,
|
|
6048
3099
|
excluded_payment_method_types: nil,
|
|
6049
3100
|
expand: nil,
|
|
6050
|
-
fx_quote: nil,
|
|
6051
3101
|
hooks: nil,
|
|
6052
3102
|
mandate: nil,
|
|
6053
3103
|
mandate_data: nil,
|
|
@@ -6062,7 +3112,6 @@ module Stripe
|
|
|
6062
3112
|
radar_options: nil,
|
|
6063
3113
|
receipt_email: nil,
|
|
6064
3114
|
return_url: nil,
|
|
6065
|
-
secret_key_confirmation: nil,
|
|
6066
3115
|
setup_future_usage: nil,
|
|
6067
3116
|
shipping: nil,
|
|
6068
3117
|
statement_descriptor: nil,
|
|
@@ -6087,7 +3136,6 @@ module Stripe
|
|
|
6087
3136
|
@error_on_requires_action = error_on_requires_action
|
|
6088
3137
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
6089
3138
|
@expand = expand
|
|
6090
|
-
@fx_quote = fx_quote
|
|
6091
3139
|
@hooks = hooks
|
|
6092
3140
|
@mandate = mandate
|
|
6093
3141
|
@mandate_data = mandate_data
|
|
@@ -6102,7 +3150,6 @@ module Stripe
|
|
|
6102
3150
|
@radar_options = radar_options
|
|
6103
3151
|
@receipt_email = receipt_email
|
|
6104
3152
|
@return_url = return_url
|
|
6105
|
-
@secret_key_confirmation = secret_key_confirmation
|
|
6106
3153
|
@setup_future_usage = setup_future_usage
|
|
6107
3154
|
@shipping = shipping
|
|
6108
3155
|
@statement_descriptor = statement_descriptor
|