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,1767 +145,125 @@ 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 Hooks < ::Stripe::RequestParams
|
|
207
|
-
class Inputs < ::Stripe::RequestParams
|
|
208
|
-
class Tax < ::Stripe::RequestParams
|
|
209
|
-
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
210
|
-
attr_accessor :calculation
|
|
211
|
-
|
|
212
|
-
def initialize(calculation: nil)
|
|
213
|
-
@calculation = calculation
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
# Tax arguments for automations
|
|
217
|
-
attr_accessor :tax
|
|
218
|
-
|
|
219
|
-
def initialize(tax: nil)
|
|
220
|
-
@tax = tax
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
# Arguments passed in automations
|
|
224
|
-
attr_accessor :inputs
|
|
225
|
-
|
|
226
|
-
def initialize(inputs: nil)
|
|
227
|
-
@inputs = inputs
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
class MandateData < ::Stripe::RequestParams
|
|
232
|
-
class CustomerAcceptance < ::Stripe::RequestParams
|
|
233
|
-
class Offline < ::Stripe::RequestParams; end
|
|
234
|
-
|
|
235
|
-
class Online < ::Stripe::RequestParams
|
|
236
|
-
# The IP address from which the Mandate was accepted by the customer.
|
|
237
|
-
attr_accessor :ip_address
|
|
238
|
-
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
239
|
-
attr_accessor :user_agent
|
|
240
|
-
|
|
241
|
-
def initialize(ip_address: nil, user_agent: nil)
|
|
242
|
-
@ip_address = ip_address
|
|
243
|
-
@user_agent = user_agent
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
# The time at which the customer accepted the Mandate.
|
|
247
|
-
attr_accessor :accepted_at
|
|
248
|
-
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
249
|
-
attr_accessor :offline
|
|
250
|
-
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
251
|
-
attr_accessor :online
|
|
252
|
-
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
253
|
-
attr_accessor :type
|
|
254
|
-
|
|
255
|
-
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
256
|
-
@accepted_at = accepted_at
|
|
257
|
-
@offline = offline
|
|
258
|
-
@online = online
|
|
259
|
-
@type = type
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
# This hash contains details about the customer acceptance of the Mandate.
|
|
263
|
-
attr_accessor :customer_acceptance
|
|
264
|
-
|
|
265
|
-
def initialize(customer_acceptance: nil)
|
|
266
|
-
@customer_acceptance = customer_acceptance
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
class PaymentDetails < ::Stripe::RequestParams
|
|
271
|
-
class CarRental < ::Stripe::RequestParams
|
|
272
|
-
class Affiliate < ::Stripe::RequestParams
|
|
273
|
-
# The name of the affiliate that originated the purchase.
|
|
274
|
-
attr_accessor :name
|
|
275
|
-
|
|
276
|
-
def initialize(name: nil)
|
|
277
|
-
@name = name
|
|
278
|
-
end
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
class Delivery < ::Stripe::RequestParams
|
|
282
|
-
class Recipient < ::Stripe::RequestParams
|
|
283
|
-
# The email of the recipient the ticket is delivered to.
|
|
284
|
-
attr_accessor :email
|
|
285
|
-
# The name of the recipient the ticket is delivered to.
|
|
286
|
-
attr_accessor :name
|
|
287
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
288
|
-
attr_accessor :phone
|
|
289
|
-
|
|
290
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
291
|
-
@email = email
|
|
292
|
-
@name = name
|
|
293
|
-
@phone = phone
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
# The delivery method for the payment
|
|
297
|
-
attr_accessor :mode
|
|
298
|
-
# Details of the recipient.
|
|
299
|
-
attr_accessor :recipient
|
|
300
|
-
|
|
301
|
-
def initialize(mode: nil, recipient: nil)
|
|
302
|
-
@mode = mode
|
|
303
|
-
@recipient = recipient
|
|
304
|
-
end
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
class Distance < ::Stripe::RequestParams
|
|
308
|
-
# Distance traveled.
|
|
309
|
-
attr_accessor :amount
|
|
310
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
311
|
-
attr_accessor :unit
|
|
312
|
-
|
|
313
|
-
def initialize(amount: nil, unit: nil)
|
|
314
|
-
@amount = amount
|
|
315
|
-
@unit = unit
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
class Driver < ::Stripe::RequestParams
|
|
320
|
-
# Driver's identification number.
|
|
321
|
-
attr_accessor :driver_identification_number
|
|
322
|
-
# Driver's tax number.
|
|
323
|
-
attr_accessor :driver_tax_number
|
|
324
|
-
# Full name of the person or entity on the car reservation.
|
|
325
|
-
attr_accessor :name
|
|
326
|
-
|
|
327
|
-
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
328
|
-
@driver_identification_number = driver_identification_number
|
|
329
|
-
@driver_tax_number = driver_tax_number
|
|
330
|
-
@name = name
|
|
331
|
-
end
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
class PickupAddress < ::Stripe::RequestParams
|
|
335
|
-
# City, district, suburb, town, or village.
|
|
336
|
-
attr_accessor :city
|
|
337
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
338
|
-
attr_accessor :country
|
|
339
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
340
|
-
attr_accessor :line1
|
|
341
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
342
|
-
attr_accessor :line2
|
|
343
|
-
# ZIP or postal code.
|
|
344
|
-
attr_accessor :postal_code
|
|
345
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
346
|
-
attr_accessor :state
|
|
347
|
-
|
|
348
|
-
def initialize(
|
|
349
|
-
city: nil,
|
|
350
|
-
country: nil,
|
|
351
|
-
line1: nil,
|
|
352
|
-
line2: nil,
|
|
353
|
-
postal_code: nil,
|
|
354
|
-
state: nil
|
|
355
|
-
)
|
|
356
|
-
@city = city
|
|
357
|
-
@country = country
|
|
358
|
-
@line1 = line1
|
|
359
|
-
@line2 = line2
|
|
360
|
-
@postal_code = postal_code
|
|
361
|
-
@state = state
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
class ReturnAddress < ::Stripe::RequestParams
|
|
366
|
-
# City, district, suburb, town, or village.
|
|
367
|
-
attr_accessor :city
|
|
368
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
369
|
-
attr_accessor :country
|
|
370
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
371
|
-
attr_accessor :line1
|
|
372
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
373
|
-
attr_accessor :line2
|
|
374
|
-
# ZIP or postal code.
|
|
375
|
-
attr_accessor :postal_code
|
|
376
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
377
|
-
attr_accessor :state
|
|
378
|
-
|
|
379
|
-
def initialize(
|
|
380
|
-
city: nil,
|
|
381
|
-
country: nil,
|
|
382
|
-
line1: nil,
|
|
383
|
-
line2: nil,
|
|
384
|
-
postal_code: nil,
|
|
385
|
-
state: nil
|
|
386
|
-
)
|
|
387
|
-
@city = city
|
|
388
|
-
@country = country
|
|
389
|
-
@line1 = line1
|
|
390
|
-
@line2 = line2
|
|
391
|
-
@postal_code = postal_code
|
|
392
|
-
@state = state
|
|
393
|
-
end
|
|
394
|
-
end
|
|
395
|
-
# Affiliate details for this purchase.
|
|
396
|
-
attr_accessor :affiliate
|
|
397
|
-
# The booking number associated with the car rental.
|
|
398
|
-
attr_accessor :booking_number
|
|
399
|
-
# Class code of the car.
|
|
400
|
-
attr_accessor :car_class_code
|
|
401
|
-
# Make of the car.
|
|
402
|
-
attr_accessor :car_make
|
|
403
|
-
# Model of the car.
|
|
404
|
-
attr_accessor :car_model
|
|
405
|
-
# The name of the rental car company.
|
|
406
|
-
attr_accessor :company
|
|
407
|
-
# The customer service phone number of the car rental company.
|
|
408
|
-
attr_accessor :customer_service_phone_number
|
|
409
|
-
# Number of days the car is being rented.
|
|
410
|
-
attr_accessor :days_rented
|
|
411
|
-
# Delivery details for this purchase.
|
|
412
|
-
attr_accessor :delivery
|
|
413
|
-
# The details of the distance traveled during the rental period.
|
|
414
|
-
attr_accessor :distance
|
|
415
|
-
# The details of the passengers in the travel reservation
|
|
416
|
-
attr_accessor :drivers
|
|
417
|
-
# List of additional charges being billed.
|
|
418
|
-
attr_accessor :extra_charges
|
|
419
|
-
# Indicates if the customer did not keep nor cancel their booking.
|
|
420
|
-
attr_accessor :no_show
|
|
421
|
-
# Car pick-up address.
|
|
422
|
-
attr_accessor :pickup_address
|
|
423
|
-
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
424
|
-
attr_accessor :pickup_at
|
|
425
|
-
# Name of the pickup location.
|
|
426
|
-
attr_accessor :pickup_location_name
|
|
427
|
-
# Rental rate.
|
|
428
|
-
attr_accessor :rate_amount
|
|
429
|
-
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
430
|
-
attr_accessor :rate_interval
|
|
431
|
-
# The name of the person or entity renting the car.
|
|
432
|
-
attr_accessor :renter_name
|
|
433
|
-
# Car return address.
|
|
434
|
-
attr_accessor :return_address
|
|
435
|
-
# Car return time. Measured in seconds since the Unix epoch.
|
|
436
|
-
attr_accessor :return_at
|
|
437
|
-
# Name of the return location.
|
|
438
|
-
attr_accessor :return_location_name
|
|
439
|
-
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
440
|
-
attr_accessor :tax_exempt
|
|
441
|
-
# The vehicle identification number.
|
|
442
|
-
attr_accessor :vehicle_identification_number
|
|
443
|
-
|
|
444
|
-
def initialize(
|
|
445
|
-
affiliate: nil,
|
|
446
|
-
booking_number: nil,
|
|
447
|
-
car_class_code: nil,
|
|
448
|
-
car_make: nil,
|
|
449
|
-
car_model: nil,
|
|
450
|
-
company: nil,
|
|
451
|
-
customer_service_phone_number: nil,
|
|
452
|
-
days_rented: nil,
|
|
453
|
-
delivery: nil,
|
|
454
|
-
distance: nil,
|
|
455
|
-
drivers: nil,
|
|
456
|
-
extra_charges: nil,
|
|
457
|
-
no_show: nil,
|
|
458
|
-
pickup_address: nil,
|
|
459
|
-
pickup_at: nil,
|
|
460
|
-
pickup_location_name: nil,
|
|
461
|
-
rate_amount: nil,
|
|
462
|
-
rate_interval: nil,
|
|
463
|
-
renter_name: nil,
|
|
464
|
-
return_address: nil,
|
|
465
|
-
return_at: nil,
|
|
466
|
-
return_location_name: nil,
|
|
467
|
-
tax_exempt: nil,
|
|
468
|
-
vehicle_identification_number: nil
|
|
469
|
-
)
|
|
470
|
-
@affiliate = affiliate
|
|
471
|
-
@booking_number = booking_number
|
|
472
|
-
@car_class_code = car_class_code
|
|
473
|
-
@car_make = car_make
|
|
474
|
-
@car_model = car_model
|
|
475
|
-
@company = company
|
|
476
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
477
|
-
@days_rented = days_rented
|
|
478
|
-
@delivery = delivery
|
|
479
|
-
@distance = distance
|
|
480
|
-
@drivers = drivers
|
|
481
|
-
@extra_charges = extra_charges
|
|
482
|
-
@no_show = no_show
|
|
483
|
-
@pickup_address = pickup_address
|
|
484
|
-
@pickup_at = pickup_at
|
|
485
|
-
@pickup_location_name = pickup_location_name
|
|
486
|
-
@rate_amount = rate_amount
|
|
487
|
-
@rate_interval = rate_interval
|
|
488
|
-
@renter_name = renter_name
|
|
489
|
-
@return_address = return_address
|
|
490
|
-
@return_at = return_at
|
|
491
|
-
@return_location_name = return_location_name
|
|
492
|
-
@tax_exempt = tax_exempt
|
|
493
|
-
@vehicle_identification_number = vehicle_identification_number
|
|
494
|
-
end
|
|
495
|
-
end
|
|
496
|
-
|
|
497
|
-
class CarRentalDatum < ::Stripe::RequestParams
|
|
498
|
-
class Affiliate < ::Stripe::RequestParams
|
|
499
|
-
# Affiliate partner code.
|
|
500
|
-
attr_accessor :code
|
|
501
|
-
# Name of affiliate partner.
|
|
502
|
-
attr_accessor :name
|
|
503
|
-
|
|
504
|
-
def initialize(code: nil, name: nil)
|
|
505
|
-
@code = code
|
|
506
|
-
@name = name
|
|
507
|
-
end
|
|
508
|
-
end
|
|
509
|
-
|
|
510
|
-
class Distance < ::Stripe::RequestParams
|
|
511
|
-
# Distance traveled.
|
|
512
|
-
attr_accessor :amount
|
|
513
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
514
|
-
attr_accessor :unit
|
|
515
|
-
|
|
516
|
-
def initialize(amount: nil, unit: nil)
|
|
517
|
-
@amount = amount
|
|
518
|
-
@unit = unit
|
|
519
|
-
end
|
|
520
|
-
end
|
|
521
|
-
|
|
522
|
-
class Driver < ::Stripe::RequestParams
|
|
523
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
524
|
-
# Day of birth (1-31).
|
|
525
|
-
attr_accessor :day
|
|
526
|
-
# Month of birth (1-12).
|
|
527
|
-
attr_accessor :month
|
|
528
|
-
# Year of birth (must be greater than 1900).
|
|
529
|
-
attr_accessor :year
|
|
530
|
-
|
|
531
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
532
|
-
@day = day
|
|
533
|
-
@month = month
|
|
534
|
-
@year = year
|
|
535
|
-
end
|
|
536
|
-
end
|
|
537
|
-
# Driver's date of birth.
|
|
538
|
-
attr_accessor :date_of_birth
|
|
539
|
-
# Driver's identification number.
|
|
540
|
-
attr_accessor :driver_identification_number
|
|
541
|
-
# Driver's tax number.
|
|
542
|
-
attr_accessor :driver_tax_number
|
|
543
|
-
# Driver's full name.
|
|
544
|
-
attr_accessor :name
|
|
545
|
-
|
|
546
|
-
def initialize(
|
|
547
|
-
date_of_birth: nil,
|
|
548
|
-
driver_identification_number: nil,
|
|
549
|
-
driver_tax_number: nil,
|
|
550
|
-
name: nil
|
|
551
|
-
)
|
|
552
|
-
@date_of_birth = date_of_birth
|
|
553
|
-
@driver_identification_number = driver_identification_number
|
|
554
|
-
@driver_tax_number = driver_tax_number
|
|
555
|
-
@name = name
|
|
556
|
-
end
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
class DropOff < ::Stripe::RequestParams
|
|
560
|
-
class Address < ::Stripe::RequestParams
|
|
561
|
-
# City, district, suburb, town, or village.
|
|
562
|
-
attr_accessor :city
|
|
563
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
564
|
-
attr_accessor :country
|
|
565
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
566
|
-
attr_accessor :line1
|
|
567
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
568
|
-
attr_accessor :line2
|
|
569
|
-
# ZIP or postal code.
|
|
570
|
-
attr_accessor :postal_code
|
|
571
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
572
|
-
attr_accessor :state
|
|
573
|
-
|
|
574
|
-
def initialize(
|
|
575
|
-
city: nil,
|
|
576
|
-
country: nil,
|
|
577
|
-
line1: nil,
|
|
578
|
-
line2: nil,
|
|
579
|
-
postal_code: nil,
|
|
580
|
-
state: nil
|
|
581
|
-
)
|
|
582
|
-
@city = city
|
|
583
|
-
@country = country
|
|
584
|
-
@line1 = line1
|
|
585
|
-
@line2 = line2
|
|
586
|
-
@postal_code = postal_code
|
|
587
|
-
@state = state
|
|
588
|
-
end
|
|
589
|
-
end
|
|
590
|
-
# Address of the rental location.
|
|
591
|
-
attr_accessor :address
|
|
592
|
-
# Location name.
|
|
593
|
-
attr_accessor :location_name
|
|
594
|
-
# Timestamp for the location.
|
|
595
|
-
attr_accessor :time
|
|
596
|
-
|
|
597
|
-
def initialize(address: nil, location_name: nil, time: nil)
|
|
598
|
-
@address = address
|
|
599
|
-
@location_name = location_name
|
|
600
|
-
@time = time
|
|
601
|
-
end
|
|
602
|
-
end
|
|
603
|
-
|
|
604
|
-
class Insurance < ::Stripe::RequestParams
|
|
605
|
-
# Amount of the insurance coverage in cents.
|
|
606
|
-
attr_accessor :amount
|
|
607
|
-
# Currency of the insurance amount.
|
|
608
|
-
attr_accessor :currency
|
|
609
|
-
# Name of the insurance company.
|
|
610
|
-
attr_accessor :insurance_company_name
|
|
611
|
-
# Type of insurance coverage.
|
|
612
|
-
attr_accessor :insurance_type
|
|
613
|
-
|
|
614
|
-
def initialize(
|
|
615
|
-
amount: nil,
|
|
616
|
-
currency: nil,
|
|
617
|
-
insurance_company_name: nil,
|
|
618
|
-
insurance_type: nil
|
|
619
|
-
)
|
|
620
|
-
@amount = amount
|
|
621
|
-
@currency = currency
|
|
622
|
-
@insurance_company_name = insurance_company_name
|
|
623
|
-
@insurance_type = insurance_type
|
|
624
|
-
end
|
|
625
|
-
end
|
|
626
|
-
|
|
627
|
-
class Pickup < ::Stripe::RequestParams
|
|
628
|
-
class Address < ::Stripe::RequestParams
|
|
629
|
-
# City, district, suburb, town, or village.
|
|
630
|
-
attr_accessor :city
|
|
631
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
632
|
-
attr_accessor :country
|
|
633
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
634
|
-
attr_accessor :line1
|
|
635
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
636
|
-
attr_accessor :line2
|
|
637
|
-
# ZIP or postal code.
|
|
638
|
-
attr_accessor :postal_code
|
|
639
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
640
|
-
attr_accessor :state
|
|
641
|
-
|
|
642
|
-
def initialize(
|
|
643
|
-
city: nil,
|
|
644
|
-
country: nil,
|
|
645
|
-
line1: nil,
|
|
646
|
-
line2: nil,
|
|
647
|
-
postal_code: nil,
|
|
648
|
-
state: nil
|
|
649
|
-
)
|
|
650
|
-
@city = city
|
|
651
|
-
@country = country
|
|
652
|
-
@line1 = line1
|
|
653
|
-
@line2 = line2
|
|
654
|
-
@postal_code = postal_code
|
|
655
|
-
@state = state
|
|
656
|
-
end
|
|
657
|
-
end
|
|
658
|
-
# Address of the rental location.
|
|
659
|
-
attr_accessor :address
|
|
660
|
-
# Location name.
|
|
661
|
-
attr_accessor :location_name
|
|
662
|
-
# Timestamp for the location.
|
|
663
|
-
attr_accessor :time
|
|
664
|
-
|
|
665
|
-
def initialize(address: nil, location_name: nil, time: nil)
|
|
666
|
-
@address = address
|
|
667
|
-
@location_name = location_name
|
|
668
|
-
@time = time
|
|
669
|
-
end
|
|
670
|
-
end
|
|
671
|
-
|
|
672
|
-
class Total < ::Stripe::RequestParams
|
|
673
|
-
class Discounts < ::Stripe::RequestParams
|
|
674
|
-
# Corporate client discount code.
|
|
675
|
-
attr_accessor :corporate_client_code
|
|
676
|
-
# Coupon code applied to the rental.
|
|
677
|
-
attr_accessor :coupon
|
|
678
|
-
# Maximum number of free miles or kilometers included.
|
|
679
|
-
attr_accessor :maximum_free_miles_or_kilometers
|
|
680
|
-
|
|
681
|
-
def initialize(
|
|
682
|
-
corporate_client_code: nil,
|
|
683
|
-
coupon: nil,
|
|
684
|
-
maximum_free_miles_or_kilometers: nil
|
|
685
|
-
)
|
|
686
|
-
@corporate_client_code = corporate_client_code
|
|
687
|
-
@coupon = coupon
|
|
688
|
-
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
689
|
-
end
|
|
690
|
-
end
|
|
691
|
-
|
|
692
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
693
|
-
# Amount of the extra charge in cents.
|
|
694
|
-
attr_accessor :amount
|
|
695
|
-
# Type of extra charge.
|
|
696
|
-
attr_accessor :type
|
|
697
|
-
|
|
698
|
-
def initialize(amount: nil, type: nil)
|
|
699
|
-
@amount = amount
|
|
700
|
-
@type = type
|
|
701
|
-
end
|
|
702
|
-
end
|
|
703
|
-
|
|
704
|
-
class Tax < ::Stripe::RequestParams
|
|
705
|
-
class TaxItem < ::Stripe::RequestParams
|
|
706
|
-
# Tax amount.
|
|
707
|
-
attr_accessor :amount
|
|
708
|
-
# Tax rate applied.
|
|
709
|
-
attr_accessor :rate
|
|
710
|
-
# Type of tax applied.
|
|
711
|
-
attr_accessor :type
|
|
712
|
-
|
|
713
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
714
|
-
@amount = amount
|
|
715
|
-
@rate = rate
|
|
716
|
-
@type = type
|
|
717
|
-
end
|
|
718
|
-
end
|
|
719
|
-
# Indicates if the transaction is tax exempt.
|
|
720
|
-
attr_accessor :tax_exempt_indicator
|
|
721
|
-
# Array of tax details.
|
|
722
|
-
attr_accessor :tax_items
|
|
723
|
-
|
|
724
|
-
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
725
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
726
|
-
@tax_items = tax_items
|
|
727
|
-
end
|
|
728
|
-
end
|
|
729
|
-
# Total amount in cents.
|
|
730
|
-
attr_accessor :amount
|
|
731
|
-
# Currency of the amount.
|
|
732
|
-
attr_accessor :currency
|
|
733
|
-
# Discount details for the rental.
|
|
734
|
-
attr_accessor :discounts
|
|
735
|
-
# Additional charges for the rental.
|
|
736
|
-
attr_accessor :extra_charges
|
|
737
|
-
# Rate per unit for the rental.
|
|
738
|
-
attr_accessor :rate_per_unit
|
|
739
|
-
# Unit of measurement for the rate.
|
|
740
|
-
attr_accessor :rate_unit
|
|
741
|
-
# Tax breakdown for the rental.
|
|
742
|
-
attr_accessor :tax
|
|
743
|
-
|
|
744
|
-
def initialize(
|
|
745
|
-
amount: nil,
|
|
746
|
-
currency: nil,
|
|
747
|
-
discounts: nil,
|
|
748
|
-
extra_charges: nil,
|
|
749
|
-
rate_per_unit: nil,
|
|
750
|
-
rate_unit: nil,
|
|
751
|
-
tax: nil
|
|
752
|
-
)
|
|
753
|
-
@amount = amount
|
|
754
|
-
@currency = currency
|
|
755
|
-
@discounts = discounts
|
|
756
|
-
@extra_charges = extra_charges
|
|
757
|
-
@rate_per_unit = rate_per_unit
|
|
758
|
-
@rate_unit = rate_unit
|
|
759
|
-
@tax = tax
|
|
760
|
-
end
|
|
761
|
-
end
|
|
762
|
-
|
|
763
|
-
class Vehicle < ::Stripe::RequestParams
|
|
764
|
-
# Make of the rental vehicle.
|
|
765
|
-
attr_accessor :make
|
|
766
|
-
# Model of the rental vehicle.
|
|
767
|
-
attr_accessor :model
|
|
768
|
-
# Odometer reading at the time of rental.
|
|
769
|
-
attr_accessor :odometer
|
|
770
|
-
# Type of the rental vehicle.
|
|
771
|
-
attr_accessor :type
|
|
772
|
-
# Class of the rental vehicle.
|
|
773
|
-
attr_accessor :vehicle_class
|
|
774
|
-
# Vehicle identification number (VIN).
|
|
775
|
-
attr_accessor :vehicle_identification_number
|
|
776
|
-
|
|
777
|
-
def initialize(
|
|
778
|
-
make: nil,
|
|
779
|
-
model: nil,
|
|
780
|
-
odometer: nil,
|
|
781
|
-
type: nil,
|
|
782
|
-
vehicle_class: nil,
|
|
783
|
-
vehicle_identification_number: nil
|
|
784
|
-
)
|
|
785
|
-
@make = make
|
|
786
|
-
@model = model
|
|
787
|
-
@odometer = odometer
|
|
788
|
-
@type = type
|
|
789
|
-
@vehicle_class = vehicle_class
|
|
790
|
-
@vehicle_identification_number = vehicle_identification_number
|
|
791
|
-
end
|
|
792
|
-
end
|
|
793
|
-
# Affiliate (such as travel agency) details for the rental.
|
|
794
|
-
attr_accessor :affiliate
|
|
795
|
-
# Booking confirmation number for the car rental.
|
|
796
|
-
attr_accessor :booking_number
|
|
797
|
-
# Name of the car rental company.
|
|
798
|
-
attr_accessor :carrier_name
|
|
799
|
-
# Customer service phone number for the car rental company.
|
|
800
|
-
attr_accessor :customer_service_phone_number
|
|
801
|
-
# Number of days the car is being rented.
|
|
802
|
-
attr_accessor :days_rented
|
|
803
|
-
# Distance details for the rental.
|
|
804
|
-
attr_accessor :distance
|
|
805
|
-
# List of drivers for the rental.
|
|
806
|
-
attr_accessor :drivers
|
|
807
|
-
# Drop-off location details.
|
|
808
|
-
attr_accessor :drop_off
|
|
809
|
-
# Insurance details for the rental.
|
|
810
|
-
attr_accessor :insurances
|
|
811
|
-
# Indicates if the customer was a no-show.
|
|
812
|
-
attr_accessor :no_show_indicator
|
|
813
|
-
# Pickup location details.
|
|
814
|
-
attr_accessor :pickup
|
|
815
|
-
# Name of the person renting the vehicle.
|
|
816
|
-
attr_accessor :renter_name
|
|
817
|
-
# Total cost breakdown for the rental.
|
|
818
|
-
attr_accessor :total
|
|
819
|
-
# Vehicle details for the rental.
|
|
820
|
-
attr_accessor :vehicle
|
|
821
|
-
|
|
822
|
-
def initialize(
|
|
823
|
-
affiliate: nil,
|
|
824
|
-
booking_number: nil,
|
|
825
|
-
carrier_name: nil,
|
|
826
|
-
customer_service_phone_number: nil,
|
|
827
|
-
days_rented: nil,
|
|
828
|
-
distance: nil,
|
|
829
|
-
drivers: nil,
|
|
830
|
-
drop_off: nil,
|
|
831
|
-
insurances: nil,
|
|
832
|
-
no_show_indicator: nil,
|
|
833
|
-
pickup: nil,
|
|
834
|
-
renter_name: nil,
|
|
835
|
-
total: nil,
|
|
836
|
-
vehicle: nil
|
|
837
|
-
)
|
|
838
|
-
@affiliate = affiliate
|
|
839
|
-
@booking_number = booking_number
|
|
840
|
-
@carrier_name = carrier_name
|
|
841
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
842
|
-
@days_rented = days_rented
|
|
843
|
-
@distance = distance
|
|
844
|
-
@drivers = drivers
|
|
845
|
-
@drop_off = drop_off
|
|
846
|
-
@insurances = insurances
|
|
847
|
-
@no_show_indicator = no_show_indicator
|
|
848
|
-
@pickup = pickup
|
|
849
|
-
@renter_name = renter_name
|
|
850
|
-
@total = total
|
|
851
|
-
@vehicle = vehicle
|
|
852
|
-
end
|
|
853
|
-
end
|
|
854
|
-
|
|
855
|
-
class EventDetails < ::Stripe::RequestParams
|
|
856
|
-
class Address < ::Stripe::RequestParams
|
|
857
|
-
# City, district, suburb, town, or village.
|
|
858
|
-
attr_accessor :city
|
|
859
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
860
|
-
attr_accessor :country
|
|
861
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
862
|
-
attr_accessor :line1
|
|
863
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
864
|
-
attr_accessor :line2
|
|
865
|
-
# ZIP or postal code.
|
|
866
|
-
attr_accessor :postal_code
|
|
867
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
868
|
-
attr_accessor :state
|
|
869
|
-
|
|
870
|
-
def initialize(
|
|
871
|
-
city: nil,
|
|
872
|
-
country: nil,
|
|
873
|
-
line1: nil,
|
|
874
|
-
line2: nil,
|
|
875
|
-
postal_code: nil,
|
|
876
|
-
state: nil
|
|
877
|
-
)
|
|
878
|
-
@city = city
|
|
879
|
-
@country = country
|
|
880
|
-
@line1 = line1
|
|
881
|
-
@line2 = line2
|
|
882
|
-
@postal_code = postal_code
|
|
883
|
-
@state = state
|
|
884
|
-
end
|
|
885
|
-
end
|
|
886
|
-
|
|
887
|
-
class Affiliate < ::Stripe::RequestParams
|
|
888
|
-
# The name of the affiliate that originated the purchase.
|
|
889
|
-
attr_accessor :name
|
|
890
|
-
|
|
891
|
-
def initialize(name: nil)
|
|
892
|
-
@name = name
|
|
893
|
-
end
|
|
894
|
-
end
|
|
895
|
-
|
|
896
|
-
class Delivery < ::Stripe::RequestParams
|
|
897
|
-
class Recipient < ::Stripe::RequestParams
|
|
898
|
-
# The email of the recipient the ticket is delivered to.
|
|
899
|
-
attr_accessor :email
|
|
900
|
-
# The name of the recipient the ticket is delivered to.
|
|
901
|
-
attr_accessor :name
|
|
902
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
903
|
-
attr_accessor :phone
|
|
904
|
-
|
|
905
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
906
|
-
@email = email
|
|
907
|
-
@name = name
|
|
908
|
-
@phone = phone
|
|
909
|
-
end
|
|
910
|
-
end
|
|
911
|
-
# The delivery method for the payment
|
|
912
|
-
attr_accessor :mode
|
|
913
|
-
# Details of the recipient.
|
|
914
|
-
attr_accessor :recipient
|
|
915
|
-
|
|
916
|
-
def initialize(mode: nil, recipient: nil)
|
|
917
|
-
@mode = mode
|
|
918
|
-
@recipient = recipient
|
|
919
|
-
end
|
|
920
|
-
end
|
|
921
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
922
|
-
attr_accessor :access_controlled_venue
|
|
923
|
-
# The event location's address.
|
|
924
|
-
attr_accessor :address
|
|
925
|
-
# Affiliate details for this purchase.
|
|
926
|
-
attr_accessor :affiliate
|
|
927
|
-
# The name of the company
|
|
928
|
-
attr_accessor :company
|
|
929
|
-
# Delivery details for this purchase.
|
|
930
|
-
attr_accessor :delivery
|
|
931
|
-
# Event end time. Measured in seconds since the Unix epoch.
|
|
932
|
-
attr_accessor :ends_at
|
|
933
|
-
# Type of the event entertainment (concert, sports event etc)
|
|
934
|
-
attr_accessor :genre
|
|
935
|
-
# The name of the event.
|
|
936
|
-
attr_accessor :name
|
|
937
|
-
# Event start time. Measured in seconds since the Unix epoch.
|
|
938
|
-
attr_accessor :starts_at
|
|
939
|
-
|
|
940
|
-
def initialize(
|
|
941
|
-
access_controlled_venue: nil,
|
|
942
|
-
address: nil,
|
|
943
|
-
affiliate: nil,
|
|
944
|
-
company: nil,
|
|
945
|
-
delivery: nil,
|
|
946
|
-
ends_at: nil,
|
|
947
|
-
genre: nil,
|
|
948
|
-
name: nil,
|
|
949
|
-
starts_at: nil
|
|
950
|
-
)
|
|
951
|
-
@access_controlled_venue = access_controlled_venue
|
|
952
|
-
@address = address
|
|
953
|
-
@affiliate = affiliate
|
|
954
|
-
@company = company
|
|
955
|
-
@delivery = delivery
|
|
956
|
-
@ends_at = ends_at
|
|
957
|
-
@genre = genre
|
|
958
|
-
@name = name
|
|
959
|
-
@starts_at = starts_at
|
|
960
|
-
end
|
|
961
|
-
end
|
|
962
|
-
|
|
963
|
-
class Flight < ::Stripe::RequestParams
|
|
964
|
-
class Affiliate < ::Stripe::RequestParams
|
|
965
|
-
# The name of the affiliate that originated the purchase.
|
|
966
|
-
attr_accessor :name
|
|
967
|
-
|
|
968
|
-
def initialize(name: nil)
|
|
969
|
-
@name = name
|
|
970
|
-
end
|
|
971
|
-
end
|
|
972
|
-
|
|
973
|
-
class Delivery < ::Stripe::RequestParams
|
|
974
|
-
class Recipient < ::Stripe::RequestParams
|
|
975
|
-
# The email of the recipient the ticket is delivered to.
|
|
976
|
-
attr_accessor :email
|
|
977
|
-
# The name of the recipient the ticket is delivered to.
|
|
978
|
-
attr_accessor :name
|
|
979
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
980
|
-
attr_accessor :phone
|
|
981
|
-
|
|
982
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
983
|
-
@email = email
|
|
984
|
-
@name = name
|
|
985
|
-
@phone = phone
|
|
986
|
-
end
|
|
987
|
-
end
|
|
988
|
-
# The delivery method for the payment
|
|
989
|
-
attr_accessor :mode
|
|
990
|
-
# Details of the recipient.
|
|
991
|
-
attr_accessor :recipient
|
|
992
|
-
|
|
993
|
-
def initialize(mode: nil, recipient: nil)
|
|
994
|
-
@mode = mode
|
|
995
|
-
@recipient = recipient
|
|
996
|
-
end
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
class Passenger < ::Stripe::RequestParams
|
|
1000
|
-
# Full name of the person or entity on the flight reservation.
|
|
1001
|
-
attr_accessor :name
|
|
1002
|
-
|
|
1003
|
-
def initialize(name: nil)
|
|
1004
|
-
@name = name
|
|
1005
|
-
end
|
|
1006
|
-
end
|
|
1007
|
-
|
|
1008
|
-
class Segment < ::Stripe::RequestParams
|
|
1009
|
-
# The flight segment amount.
|
|
1010
|
-
attr_accessor :amount
|
|
1011
|
-
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
1012
|
-
attr_accessor :arrival_airport
|
|
1013
|
-
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1014
|
-
attr_accessor :arrives_at
|
|
1015
|
-
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
1016
|
-
attr_accessor :carrier
|
|
1017
|
-
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
1018
|
-
attr_accessor :departs_at
|
|
1019
|
-
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
1020
|
-
attr_accessor :departure_airport
|
|
1021
|
-
# The flight number associated with the segment
|
|
1022
|
-
attr_accessor :flight_number
|
|
1023
|
-
# The fare class for the segment.
|
|
1024
|
-
attr_accessor :service_class
|
|
1025
|
-
|
|
1026
|
-
def initialize(
|
|
1027
|
-
amount: nil,
|
|
1028
|
-
arrival_airport: nil,
|
|
1029
|
-
arrives_at: nil,
|
|
1030
|
-
carrier: nil,
|
|
1031
|
-
departs_at: nil,
|
|
1032
|
-
departure_airport: nil,
|
|
1033
|
-
flight_number: nil,
|
|
1034
|
-
service_class: nil
|
|
1035
|
-
)
|
|
1036
|
-
@amount = amount
|
|
1037
|
-
@arrival_airport = arrival_airport
|
|
1038
|
-
@arrives_at = arrives_at
|
|
1039
|
-
@carrier = carrier
|
|
1040
|
-
@departs_at = departs_at
|
|
1041
|
-
@departure_airport = departure_airport
|
|
1042
|
-
@flight_number = flight_number
|
|
1043
|
-
@service_class = service_class
|
|
1044
|
-
end
|
|
1045
|
-
end
|
|
1046
|
-
# Affiliate details for this purchase.
|
|
1047
|
-
attr_accessor :affiliate
|
|
1048
|
-
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1049
|
-
attr_accessor :agency_number
|
|
1050
|
-
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1051
|
-
attr_accessor :carrier
|
|
1052
|
-
# Delivery details for this purchase.
|
|
1053
|
-
attr_accessor :delivery
|
|
1054
|
-
# The name of the person or entity on the reservation.
|
|
1055
|
-
attr_accessor :passenger_name
|
|
1056
|
-
# The details of the passengers in the travel reservation.
|
|
1057
|
-
attr_accessor :passengers
|
|
1058
|
-
# The individual flight segments associated with the trip.
|
|
1059
|
-
attr_accessor :segments
|
|
1060
|
-
# The ticket number associated with the travel reservation.
|
|
1061
|
-
attr_accessor :ticket_number
|
|
1062
|
-
|
|
1063
|
-
def initialize(
|
|
1064
|
-
affiliate: nil,
|
|
1065
|
-
agency_number: nil,
|
|
1066
|
-
carrier: nil,
|
|
1067
|
-
delivery: nil,
|
|
1068
|
-
passenger_name: nil,
|
|
1069
|
-
passengers: nil,
|
|
1070
|
-
segments: nil,
|
|
1071
|
-
ticket_number: nil
|
|
1072
|
-
)
|
|
1073
|
-
@affiliate = affiliate
|
|
1074
|
-
@agency_number = agency_number
|
|
1075
|
-
@carrier = carrier
|
|
1076
|
-
@delivery = delivery
|
|
1077
|
-
@passenger_name = passenger_name
|
|
1078
|
-
@passengers = passengers
|
|
1079
|
-
@segments = segments
|
|
1080
|
-
@ticket_number = ticket_number
|
|
1081
|
-
end
|
|
1082
|
-
end
|
|
1083
|
-
|
|
1084
|
-
class FlightDatum < ::Stripe::RequestParams
|
|
1085
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1086
|
-
# Affiliate partner code.
|
|
1087
|
-
attr_accessor :code
|
|
1088
|
-
# Name of affiliate partner.
|
|
1089
|
-
attr_accessor :name
|
|
1090
|
-
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1091
|
-
attr_accessor :travel_authorization_code
|
|
1092
|
-
|
|
1093
|
-
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1094
|
-
@code = code
|
|
1095
|
-
@name = name
|
|
1096
|
-
@travel_authorization_code = travel_authorization_code
|
|
1097
|
-
end
|
|
1098
|
-
end
|
|
1099
|
-
|
|
1100
|
-
class Insurance < ::Stripe::RequestParams
|
|
1101
|
-
# Insurance cost.
|
|
1102
|
-
attr_accessor :amount
|
|
1103
|
-
# Insurance currency.
|
|
1104
|
-
attr_accessor :currency
|
|
1105
|
-
# Insurance company name.
|
|
1106
|
-
attr_accessor :insurance_company_name
|
|
1107
|
-
# Type of insurance.
|
|
1108
|
-
attr_accessor :insurance_type
|
|
1109
|
-
|
|
1110
|
-
def initialize(
|
|
1111
|
-
amount: nil,
|
|
1112
|
-
currency: nil,
|
|
1113
|
-
insurance_company_name: nil,
|
|
1114
|
-
insurance_type: nil
|
|
1115
|
-
)
|
|
1116
|
-
@amount = amount
|
|
1117
|
-
@currency = currency
|
|
1118
|
-
@insurance_company_name = insurance_company_name
|
|
1119
|
-
@insurance_type = insurance_type
|
|
1120
|
-
end
|
|
1121
|
-
end
|
|
1122
|
-
|
|
1123
|
-
class Passenger < ::Stripe::RequestParams
|
|
1124
|
-
# Passenger's full name.
|
|
1125
|
-
attr_accessor :name
|
|
1126
|
-
|
|
1127
|
-
def initialize(name: nil)
|
|
1128
|
-
@name = name
|
|
1129
|
-
end
|
|
1130
|
-
end
|
|
1131
|
-
|
|
1132
|
-
class Segment < ::Stripe::RequestParams
|
|
1133
|
-
class Arrival < ::Stripe::RequestParams
|
|
1134
|
-
# Arrival airport IATA code.
|
|
1135
|
-
attr_accessor :airport
|
|
1136
|
-
# Arrival date/time.
|
|
1137
|
-
attr_accessor :arrives_at
|
|
1138
|
-
# Arrival city.
|
|
1139
|
-
attr_accessor :city
|
|
1140
|
-
# Arrival country.
|
|
1141
|
-
attr_accessor :country
|
|
1142
|
-
|
|
1143
|
-
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1144
|
-
@airport = airport
|
|
1145
|
-
@arrives_at = arrives_at
|
|
1146
|
-
@city = city
|
|
1147
|
-
@country = country
|
|
1148
|
-
end
|
|
1149
|
-
end
|
|
1150
|
-
|
|
1151
|
-
class Departure < ::Stripe::RequestParams
|
|
1152
|
-
# Departure airport IATA code.
|
|
1153
|
-
attr_accessor :airport
|
|
1154
|
-
# Departure city.
|
|
1155
|
-
attr_accessor :city
|
|
1156
|
-
# Departure country.
|
|
1157
|
-
attr_accessor :country
|
|
1158
|
-
# Departure date/time.
|
|
1159
|
-
attr_accessor :departs_at
|
|
1160
|
-
|
|
1161
|
-
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1162
|
-
@airport = airport
|
|
1163
|
-
@city = city
|
|
1164
|
-
@country = country
|
|
1165
|
-
@departs_at = departs_at
|
|
1166
|
-
end
|
|
1167
|
-
end
|
|
1168
|
-
# Segment fare amount.
|
|
1169
|
-
attr_accessor :amount
|
|
1170
|
-
# Arrival details.
|
|
1171
|
-
attr_accessor :arrival
|
|
1172
|
-
# Airline carrier code.
|
|
1173
|
-
attr_accessor :carrier_code
|
|
1174
|
-
# Carrier name.
|
|
1175
|
-
attr_accessor :carrier_name
|
|
1176
|
-
# Segment currency.
|
|
1177
|
-
attr_accessor :currency
|
|
1178
|
-
# Departure details.
|
|
1179
|
-
attr_accessor :departure
|
|
1180
|
-
# Exchange ticket number.
|
|
1181
|
-
attr_accessor :exchange_ticket_number
|
|
1182
|
-
# Fare basis code.
|
|
1183
|
-
attr_accessor :fare_basis_code
|
|
1184
|
-
# Additional fees.
|
|
1185
|
-
attr_accessor :fees
|
|
1186
|
-
# Flight number.
|
|
1187
|
-
attr_accessor :flight_number
|
|
1188
|
-
# Stopover indicator.
|
|
1189
|
-
attr_accessor :is_stop_over_indicator
|
|
1190
|
-
# Refundable ticket indicator.
|
|
1191
|
-
attr_accessor :refundable
|
|
1192
|
-
# Class of service.
|
|
1193
|
-
attr_accessor :service_class
|
|
1194
|
-
# Tax amount for segment.
|
|
1195
|
-
attr_accessor :tax_amount
|
|
1196
|
-
# Ticket number.
|
|
1197
|
-
attr_accessor :ticket_number
|
|
1198
|
-
|
|
1199
|
-
def initialize(
|
|
1200
|
-
amount: nil,
|
|
1201
|
-
arrival: nil,
|
|
1202
|
-
carrier_code: nil,
|
|
1203
|
-
carrier_name: nil,
|
|
1204
|
-
currency: nil,
|
|
1205
|
-
departure: nil,
|
|
1206
|
-
exchange_ticket_number: nil,
|
|
1207
|
-
fare_basis_code: nil,
|
|
1208
|
-
fees: nil,
|
|
1209
|
-
flight_number: nil,
|
|
1210
|
-
is_stop_over_indicator: nil,
|
|
1211
|
-
refundable: nil,
|
|
1212
|
-
service_class: nil,
|
|
1213
|
-
tax_amount: nil,
|
|
1214
|
-
ticket_number: nil
|
|
1215
|
-
)
|
|
1216
|
-
@amount = amount
|
|
1217
|
-
@arrival = arrival
|
|
1218
|
-
@carrier_code = carrier_code
|
|
1219
|
-
@carrier_name = carrier_name
|
|
1220
|
-
@currency = currency
|
|
1221
|
-
@departure = departure
|
|
1222
|
-
@exchange_ticket_number = exchange_ticket_number
|
|
1223
|
-
@fare_basis_code = fare_basis_code
|
|
1224
|
-
@fees = fees
|
|
1225
|
-
@flight_number = flight_number
|
|
1226
|
-
@is_stop_over_indicator = is_stop_over_indicator
|
|
1227
|
-
@refundable = refundable
|
|
1228
|
-
@service_class = service_class
|
|
1229
|
-
@tax_amount = tax_amount
|
|
1230
|
-
@ticket_number = ticket_number
|
|
1231
|
-
end
|
|
1232
|
-
end
|
|
1233
|
-
|
|
1234
|
-
class Total < ::Stripe::RequestParams
|
|
1235
|
-
class Discounts < ::Stripe::RequestParams
|
|
1236
|
-
# Corporate client discount code.
|
|
1237
|
-
attr_accessor :corporate_client_code
|
|
1238
|
-
|
|
1239
|
-
def initialize(corporate_client_code: nil)
|
|
1240
|
-
@corporate_client_code = corporate_client_code
|
|
1241
|
-
end
|
|
1242
|
-
end
|
|
1243
|
-
|
|
1244
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
1245
|
-
# Amount of additional charges.
|
|
1246
|
-
attr_accessor :amount
|
|
1247
|
-
# Type of additional charges.
|
|
1248
|
-
attr_accessor :type
|
|
1249
|
-
|
|
1250
|
-
def initialize(amount: nil, type: nil)
|
|
1251
|
-
@amount = amount
|
|
1252
|
-
@type = type
|
|
1253
|
-
end
|
|
1254
|
-
end
|
|
1255
|
-
|
|
1256
|
-
class Tax < ::Stripe::RequestParams
|
|
1257
|
-
class TaxItem < ::Stripe::RequestParams
|
|
1258
|
-
# Tax amount.
|
|
1259
|
-
attr_accessor :amount
|
|
1260
|
-
# Tax rate.
|
|
1261
|
-
attr_accessor :rate
|
|
1262
|
-
# Type of tax.
|
|
1263
|
-
attr_accessor :type
|
|
1264
|
-
|
|
1265
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
1266
|
-
@amount = amount
|
|
1267
|
-
@rate = rate
|
|
1268
|
-
@type = type
|
|
1269
|
-
end
|
|
1270
|
-
end
|
|
1271
|
-
# Array of tax details.
|
|
1272
|
-
attr_accessor :tax_items
|
|
1273
|
-
|
|
1274
|
-
def initialize(tax_items: nil)
|
|
1275
|
-
@tax_items = tax_items
|
|
1276
|
-
end
|
|
1277
|
-
end
|
|
1278
|
-
# Total flight amount.
|
|
1279
|
-
attr_accessor :amount
|
|
1280
|
-
# Reason for credit.
|
|
1281
|
-
attr_accessor :credit_reason
|
|
1282
|
-
# Total currency.
|
|
1283
|
-
attr_accessor :currency
|
|
1284
|
-
# Discount details.
|
|
1285
|
-
attr_accessor :discounts
|
|
1286
|
-
# Additional charges.
|
|
1287
|
-
attr_accessor :extra_charges
|
|
1288
|
-
# Tax breakdown.
|
|
1289
|
-
attr_accessor :tax
|
|
1290
|
-
|
|
1291
|
-
def initialize(
|
|
1292
|
-
amount: nil,
|
|
1293
|
-
credit_reason: nil,
|
|
1294
|
-
currency: nil,
|
|
1295
|
-
discounts: nil,
|
|
1296
|
-
extra_charges: nil,
|
|
1297
|
-
tax: nil
|
|
1298
|
-
)
|
|
1299
|
-
@amount = amount
|
|
1300
|
-
@credit_reason = credit_reason
|
|
1301
|
-
@currency = currency
|
|
1302
|
-
@discounts = discounts
|
|
1303
|
-
@extra_charges = extra_charges
|
|
1304
|
-
@tax = tax
|
|
1305
|
-
end
|
|
1306
|
-
end
|
|
1307
|
-
# Affiliate details if applicable.
|
|
1308
|
-
attr_accessor :affiliate
|
|
1309
|
-
# Reservation reference.
|
|
1310
|
-
attr_accessor :booking_number
|
|
1311
|
-
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1312
|
-
attr_accessor :computerized_reservation_system
|
|
1313
|
-
# Ticket restrictions.
|
|
1314
|
-
attr_accessor :endorsements_and_restrictions
|
|
1315
|
-
# List of insurances.
|
|
1316
|
-
attr_accessor :insurances
|
|
1317
|
-
# List of passengers.
|
|
1318
|
-
attr_accessor :passengers
|
|
1319
|
-
# List of flight segments.
|
|
1320
|
-
attr_accessor :segments
|
|
1321
|
-
# Electronic ticket indicator.
|
|
1322
|
-
attr_accessor :ticket_electronically_issued_indicator
|
|
1323
|
-
# Total cost breakdown.
|
|
1324
|
-
attr_accessor :total
|
|
1325
|
-
# Type of flight transaction.
|
|
1326
|
-
attr_accessor :transaction_type
|
|
1327
|
-
|
|
1328
|
-
def initialize(
|
|
1329
|
-
affiliate: nil,
|
|
1330
|
-
booking_number: nil,
|
|
1331
|
-
computerized_reservation_system: nil,
|
|
1332
|
-
endorsements_and_restrictions: nil,
|
|
1333
|
-
insurances: nil,
|
|
1334
|
-
passengers: nil,
|
|
1335
|
-
segments: nil,
|
|
1336
|
-
ticket_electronically_issued_indicator: nil,
|
|
1337
|
-
total: nil,
|
|
1338
|
-
transaction_type: nil
|
|
1339
|
-
)
|
|
1340
|
-
@affiliate = affiliate
|
|
1341
|
-
@booking_number = booking_number
|
|
1342
|
-
@computerized_reservation_system = computerized_reservation_system
|
|
1343
|
-
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1344
|
-
@insurances = insurances
|
|
1345
|
-
@passengers = passengers
|
|
1346
|
-
@segments = segments
|
|
1347
|
-
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1348
|
-
@total = total
|
|
1349
|
-
@transaction_type = transaction_type
|
|
1350
|
-
end
|
|
1351
|
-
end
|
|
1352
|
-
|
|
1353
|
-
class Lodging < ::Stripe::RequestParams
|
|
1354
|
-
class Address < ::Stripe::RequestParams
|
|
1355
|
-
# City, district, suburb, town, or village.
|
|
1356
|
-
attr_accessor :city
|
|
1357
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1358
|
-
attr_accessor :country
|
|
1359
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1360
|
-
attr_accessor :line1
|
|
1361
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1362
|
-
attr_accessor :line2
|
|
1363
|
-
# ZIP or postal code.
|
|
1364
|
-
attr_accessor :postal_code
|
|
1365
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1366
|
-
attr_accessor :state
|
|
1367
|
-
|
|
1368
|
-
def initialize(
|
|
1369
|
-
city: nil,
|
|
1370
|
-
country: nil,
|
|
1371
|
-
line1: nil,
|
|
1372
|
-
line2: nil,
|
|
1373
|
-
postal_code: nil,
|
|
1374
|
-
state: nil
|
|
1375
|
-
)
|
|
1376
|
-
@city = city
|
|
1377
|
-
@country = country
|
|
1378
|
-
@line1 = line1
|
|
1379
|
-
@line2 = line2
|
|
1380
|
-
@postal_code = postal_code
|
|
1381
|
-
@state = state
|
|
1382
|
-
end
|
|
1383
|
-
end
|
|
1384
|
-
|
|
1385
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1386
|
-
# The name of the affiliate that originated the purchase.
|
|
1387
|
-
attr_accessor :name
|
|
1388
|
-
|
|
1389
|
-
def initialize(name: nil)
|
|
1390
|
-
@name = name
|
|
1391
|
-
end
|
|
1392
|
-
end
|
|
1393
|
-
|
|
1394
|
-
class Delivery < ::Stripe::RequestParams
|
|
1395
|
-
class Recipient < ::Stripe::RequestParams
|
|
1396
|
-
# The email of the recipient the ticket is delivered to.
|
|
1397
|
-
attr_accessor :email
|
|
1398
|
-
# The name of the recipient the ticket is delivered to.
|
|
1399
|
-
attr_accessor :name
|
|
1400
|
-
# The phone number of the recipient the ticket is delivered to.
|
|
1401
|
-
attr_accessor :phone
|
|
1402
|
-
|
|
1403
|
-
def initialize(email: nil, name: nil, phone: nil)
|
|
1404
|
-
@email = email
|
|
1405
|
-
@name = name
|
|
1406
|
-
@phone = phone
|
|
1407
|
-
end
|
|
1408
|
-
end
|
|
1409
|
-
# The delivery method for the payment
|
|
1410
|
-
attr_accessor :mode
|
|
1411
|
-
# Details of the recipient.
|
|
1412
|
-
attr_accessor :recipient
|
|
1413
|
-
|
|
1414
|
-
def initialize(mode: nil, recipient: nil)
|
|
1415
|
-
@mode = mode
|
|
1416
|
-
@recipient = recipient
|
|
1417
|
-
end
|
|
1418
|
-
end
|
|
1419
|
-
|
|
1420
|
-
class Passenger < ::Stripe::RequestParams
|
|
1421
|
-
# Full name of the person or entity on the lodging reservation.
|
|
1422
|
-
attr_accessor :name
|
|
1423
|
-
|
|
1424
|
-
def initialize(name: nil)
|
|
1425
|
-
@name = name
|
|
1426
|
-
end
|
|
1427
|
-
end
|
|
1428
|
-
# The lodging location's address.
|
|
1429
|
-
attr_accessor :address
|
|
1430
|
-
# The number of adults on the booking
|
|
1431
|
-
attr_accessor :adults
|
|
1432
|
-
# Affiliate details for this purchase.
|
|
1433
|
-
attr_accessor :affiliate
|
|
1434
|
-
# The booking number associated with the lodging reservation.
|
|
1435
|
-
attr_accessor :booking_number
|
|
1436
|
-
# The lodging category
|
|
1437
|
-
attr_accessor :category
|
|
1438
|
-
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1439
|
-
attr_accessor :checkin_at
|
|
1440
|
-
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1441
|
-
attr_accessor :checkout_at
|
|
1442
|
-
# The customer service phone number of the lodging company.
|
|
1443
|
-
attr_accessor :customer_service_phone_number
|
|
1444
|
-
# The daily lodging room rate.
|
|
1445
|
-
attr_accessor :daily_room_rate_amount
|
|
1446
|
-
# Delivery details for this purchase.
|
|
1447
|
-
attr_accessor :delivery
|
|
1448
|
-
# List of additional charges being billed.
|
|
1449
|
-
attr_accessor :extra_charges
|
|
1450
|
-
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1451
|
-
attr_accessor :fire_safety_act_compliance
|
|
1452
|
-
# The name of the lodging location.
|
|
1453
|
-
attr_accessor :name
|
|
1454
|
-
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1455
|
-
attr_accessor :no_show
|
|
1456
|
-
# The number of rooms on the booking
|
|
1457
|
-
attr_accessor :number_of_rooms
|
|
1458
|
-
# The details of the passengers in the travel reservation
|
|
1459
|
-
attr_accessor :passengers
|
|
1460
|
-
# The phone number of the lodging location.
|
|
1461
|
-
attr_accessor :property_phone_number
|
|
1462
|
-
# The room class for this purchase.
|
|
1463
|
-
attr_accessor :room_class
|
|
1464
|
-
# The number of room nights
|
|
1465
|
-
attr_accessor :room_nights
|
|
1466
|
-
# The total tax amount associating with the room reservation.
|
|
1467
|
-
attr_accessor :total_room_tax_amount
|
|
1468
|
-
# The total tax amount
|
|
1469
|
-
attr_accessor :total_tax_amount
|
|
1470
|
-
|
|
1471
|
-
def initialize(
|
|
1472
|
-
address: nil,
|
|
1473
|
-
adults: nil,
|
|
1474
|
-
affiliate: nil,
|
|
1475
|
-
booking_number: nil,
|
|
1476
|
-
category: nil,
|
|
1477
|
-
checkin_at: nil,
|
|
1478
|
-
checkout_at: nil,
|
|
1479
|
-
customer_service_phone_number: nil,
|
|
1480
|
-
daily_room_rate_amount: nil,
|
|
1481
|
-
delivery: nil,
|
|
1482
|
-
extra_charges: nil,
|
|
1483
|
-
fire_safety_act_compliance: nil,
|
|
1484
|
-
name: nil,
|
|
1485
|
-
no_show: nil,
|
|
1486
|
-
number_of_rooms: nil,
|
|
1487
|
-
passengers: nil,
|
|
1488
|
-
property_phone_number: nil,
|
|
1489
|
-
room_class: nil,
|
|
1490
|
-
room_nights: nil,
|
|
1491
|
-
total_room_tax_amount: nil,
|
|
1492
|
-
total_tax_amount: nil
|
|
1493
|
-
)
|
|
1494
|
-
@address = address
|
|
1495
|
-
@adults = adults
|
|
1496
|
-
@affiliate = affiliate
|
|
1497
|
-
@booking_number = booking_number
|
|
1498
|
-
@category = category
|
|
1499
|
-
@checkin_at = checkin_at
|
|
1500
|
-
@checkout_at = checkout_at
|
|
1501
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
1502
|
-
@daily_room_rate_amount = daily_room_rate_amount
|
|
1503
|
-
@delivery = delivery
|
|
1504
|
-
@extra_charges = extra_charges
|
|
1505
|
-
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1506
|
-
@name = name
|
|
1507
|
-
@no_show = no_show
|
|
1508
|
-
@number_of_rooms = number_of_rooms
|
|
1509
|
-
@passengers = passengers
|
|
1510
|
-
@property_phone_number = property_phone_number
|
|
1511
|
-
@room_class = room_class
|
|
1512
|
-
@room_nights = room_nights
|
|
1513
|
-
@total_room_tax_amount = total_room_tax_amount
|
|
1514
|
-
@total_tax_amount = total_tax_amount
|
|
1515
|
-
end
|
|
1516
|
-
end
|
|
1517
|
-
|
|
1518
|
-
class LodgingDatum < ::Stripe::RequestParams
|
|
1519
|
-
class Accommodation < ::Stripe::RequestParams
|
|
1520
|
-
# Type of accommodation.
|
|
1521
|
-
attr_accessor :accommodation_type
|
|
1522
|
-
# Bed type.
|
|
1523
|
-
attr_accessor :bed_type
|
|
1524
|
-
# Daily accommodation rate in cents.
|
|
1525
|
-
attr_accessor :daily_rate_amount
|
|
1526
|
-
# Number of nights.
|
|
1527
|
-
attr_accessor :nights
|
|
1528
|
-
# Number of rooms, cabanas, apartments, and so on.
|
|
1529
|
-
attr_accessor :number_of_rooms
|
|
1530
|
-
# Rate type.
|
|
1531
|
-
attr_accessor :rate_type
|
|
1532
|
-
# Whether smoking is allowed.
|
|
1533
|
-
attr_accessor :smoking_indicator
|
|
1534
|
-
|
|
1535
|
-
def initialize(
|
|
1536
|
-
accommodation_type: nil,
|
|
1537
|
-
bed_type: nil,
|
|
1538
|
-
daily_rate_amount: nil,
|
|
1539
|
-
nights: nil,
|
|
1540
|
-
number_of_rooms: nil,
|
|
1541
|
-
rate_type: nil,
|
|
1542
|
-
smoking_indicator: nil
|
|
1543
|
-
)
|
|
1544
|
-
@accommodation_type = accommodation_type
|
|
1545
|
-
@bed_type = bed_type
|
|
1546
|
-
@daily_rate_amount = daily_rate_amount
|
|
1547
|
-
@nights = nights
|
|
1548
|
-
@number_of_rooms = number_of_rooms
|
|
1549
|
-
@rate_type = rate_type
|
|
1550
|
-
@smoking_indicator = smoking_indicator
|
|
1551
|
-
end
|
|
1552
|
-
end
|
|
1553
|
-
|
|
1554
|
-
class Affiliate < ::Stripe::RequestParams
|
|
1555
|
-
# Affiliate partner code.
|
|
1556
|
-
attr_accessor :code
|
|
1557
|
-
# Affiliate partner name.
|
|
1558
|
-
attr_accessor :name
|
|
1559
|
-
|
|
1560
|
-
def initialize(code: nil, name: nil)
|
|
1561
|
-
@code = code
|
|
1562
|
-
@name = name
|
|
1563
|
-
end
|
|
1564
|
-
end
|
|
1565
|
-
|
|
1566
|
-
class Guest < ::Stripe::RequestParams
|
|
1567
|
-
# Guest's full name.
|
|
1568
|
-
attr_accessor :name
|
|
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
|
|
1569
153
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
end
|
|
154
|
+
def initialize(total_tax_amount: nil)
|
|
155
|
+
@total_tax_amount = total_tax_amount
|
|
1573
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
|
|
1574
174
|
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
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
|
|
1589
189
|
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
postal_code: nil,
|
|
1596
|
-
state: nil
|
|
1597
|
-
)
|
|
1598
|
-
@city = city
|
|
1599
|
-
@country = country
|
|
1600
|
-
@line1 = line1
|
|
1601
|
-
@line2 = line2
|
|
1602
|
-
@postal_code = postal_code
|
|
1603
|
-
@state = state
|
|
1604
|
-
end
|
|
1605
|
-
end
|
|
1606
|
-
# Address of the host.
|
|
1607
|
-
attr_accessor :address
|
|
1608
|
-
# Host's country of domicile.
|
|
1609
|
-
attr_accessor :country_of_domicile
|
|
1610
|
-
# Reference number for the host.
|
|
1611
|
-
attr_accessor :host_reference
|
|
1612
|
-
# Type of host.
|
|
1613
|
-
attr_accessor :host_type
|
|
1614
|
-
# Name of the lodging property or host.
|
|
1615
|
-
attr_accessor :name
|
|
1616
|
-
# Total number of reservations for the host.
|
|
1617
|
-
attr_accessor :number_of_reservations
|
|
1618
|
-
# Property phone number.
|
|
1619
|
-
attr_accessor :property_phone_number
|
|
1620
|
-
# Host's registration date.
|
|
1621
|
-
attr_accessor :registered_at
|
|
190
|
+
class Hooks < ::Stripe::RequestParams
|
|
191
|
+
class Inputs < ::Stripe::RequestParams
|
|
192
|
+
class Tax < ::Stripe::RequestParams
|
|
193
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
194
|
+
attr_accessor :calculation
|
|
1622
195
|
|
|
1623
|
-
def initialize(
|
|
1624
|
-
|
|
1625
|
-
country_of_domicile: nil,
|
|
1626
|
-
host_reference: nil,
|
|
1627
|
-
host_type: nil,
|
|
1628
|
-
name: nil,
|
|
1629
|
-
number_of_reservations: nil,
|
|
1630
|
-
property_phone_number: nil,
|
|
1631
|
-
registered_at: nil
|
|
1632
|
-
)
|
|
1633
|
-
@address = address
|
|
1634
|
-
@country_of_domicile = country_of_domicile
|
|
1635
|
-
@host_reference = host_reference
|
|
1636
|
-
@host_type = host_type
|
|
1637
|
-
@name = name
|
|
1638
|
-
@number_of_reservations = number_of_reservations
|
|
1639
|
-
@property_phone_number = property_phone_number
|
|
1640
|
-
@registered_at = registered_at
|
|
196
|
+
def initialize(calculation: nil)
|
|
197
|
+
@calculation = calculation
|
|
1641
198
|
end
|
|
1642
199
|
end
|
|
200
|
+
# Tax arguments for automations
|
|
201
|
+
attr_accessor :tax
|
|
1643
202
|
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
attr_accessor :amount
|
|
1647
|
-
# Currency of the insurance amount.
|
|
1648
|
-
attr_accessor :currency
|
|
1649
|
-
# Name of the insurance company.
|
|
1650
|
-
attr_accessor :insurance_company_name
|
|
1651
|
-
# Type of insurance coverage.
|
|
1652
|
-
attr_accessor :insurance_type
|
|
1653
|
-
|
|
1654
|
-
def initialize(
|
|
1655
|
-
amount: nil,
|
|
1656
|
-
currency: nil,
|
|
1657
|
-
insurance_company_name: nil,
|
|
1658
|
-
insurance_type: nil
|
|
1659
|
-
)
|
|
1660
|
-
@amount = amount
|
|
1661
|
-
@currency = currency
|
|
1662
|
-
@insurance_company_name = insurance_company_name
|
|
1663
|
-
@insurance_type = insurance_type
|
|
1664
|
-
end
|
|
203
|
+
def initialize(tax: nil)
|
|
204
|
+
@tax = tax
|
|
1665
205
|
end
|
|
206
|
+
end
|
|
207
|
+
# Arguments passed in automations
|
|
208
|
+
attr_accessor :inputs
|
|
1666
209
|
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
# Coupon code.
|
|
1672
|
-
attr_accessor :coupon
|
|
1673
|
-
|
|
1674
|
-
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1675
|
-
@corporate_client_code = corporate_client_code
|
|
1676
|
-
@coupon = coupon
|
|
1677
|
-
end
|
|
1678
|
-
end
|
|
1679
|
-
|
|
1680
|
-
class ExtraCharge < ::Stripe::RequestParams
|
|
1681
|
-
# Amount of the extra charge in cents.
|
|
1682
|
-
attr_accessor :amount
|
|
1683
|
-
# Type of extra charge.
|
|
1684
|
-
attr_accessor :type
|
|
210
|
+
def initialize(inputs: nil)
|
|
211
|
+
@inputs = inputs
|
|
212
|
+
end
|
|
213
|
+
end
|
|
1685
214
|
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
end
|
|
1690
|
-
end
|
|
215
|
+
class MandateData < ::Stripe::RequestParams
|
|
216
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
217
|
+
class Offline < ::Stripe::RequestParams; end
|
|
1691
218
|
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
attr_accessor :rate
|
|
1698
|
-
# Type of tax applied.
|
|
1699
|
-
attr_accessor :type
|
|
1700
|
-
|
|
1701
|
-
def initialize(amount: nil, rate: nil, type: nil)
|
|
1702
|
-
@amount = amount
|
|
1703
|
-
@rate = rate
|
|
1704
|
-
@type = type
|
|
1705
|
-
end
|
|
1706
|
-
end
|
|
1707
|
-
# Indicates whether the transaction is tax exempt.
|
|
1708
|
-
attr_accessor :tax_exempt_indicator
|
|
1709
|
-
# Tax details.
|
|
1710
|
-
attr_accessor :tax_items
|
|
1711
|
-
|
|
1712
|
-
def initialize(tax_exempt_indicator: nil, tax_items: nil)
|
|
1713
|
-
@tax_exempt_indicator = tax_exempt_indicator
|
|
1714
|
-
@tax_items = tax_items
|
|
1715
|
-
end
|
|
1716
|
-
end
|
|
1717
|
-
# Total price of the lodging reservation in cents.
|
|
1718
|
-
attr_accessor :amount
|
|
1719
|
-
# Cash advances in cents.
|
|
1720
|
-
attr_accessor :cash_advances
|
|
1721
|
-
# Currency of the total amount.
|
|
1722
|
-
attr_accessor :currency
|
|
1723
|
-
# Discount details for the lodging.
|
|
1724
|
-
attr_accessor :discounts
|
|
1725
|
-
# Additional charges for the lodging.
|
|
1726
|
-
attr_accessor :extra_charges
|
|
1727
|
-
# Prepaid amount in cents.
|
|
1728
|
-
attr_accessor :prepaid_amount
|
|
1729
|
-
# Tax breakdown for the lodging reservation.
|
|
1730
|
-
attr_accessor :tax
|
|
219
|
+
class Online < ::Stripe::RequestParams
|
|
220
|
+
# The IP address from which the Mandate was accepted by the customer.
|
|
221
|
+
attr_accessor :ip_address
|
|
222
|
+
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
223
|
+
attr_accessor :user_agent
|
|
1731
224
|
|
|
1732
|
-
def initialize(
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
currency: nil,
|
|
1736
|
-
discounts: nil,
|
|
1737
|
-
extra_charges: nil,
|
|
1738
|
-
prepaid_amount: nil,
|
|
1739
|
-
tax: nil
|
|
1740
|
-
)
|
|
1741
|
-
@amount = amount
|
|
1742
|
-
@cash_advances = cash_advances
|
|
1743
|
-
@currency = currency
|
|
1744
|
-
@discounts = discounts
|
|
1745
|
-
@extra_charges = extra_charges
|
|
1746
|
-
@prepaid_amount = prepaid_amount
|
|
1747
|
-
@tax = tax
|
|
225
|
+
def initialize(ip_address: nil, user_agent: nil)
|
|
226
|
+
@ip_address = ip_address
|
|
227
|
+
@user_agent = user_agent
|
|
1748
228
|
end
|
|
1749
229
|
end
|
|
1750
|
-
#
|
|
1751
|
-
attr_accessor :
|
|
1752
|
-
#
|
|
1753
|
-
attr_accessor :
|
|
1754
|
-
#
|
|
1755
|
-
attr_accessor :
|
|
1756
|
-
#
|
|
1757
|
-
attr_accessor :
|
|
1758
|
-
# Check-out date.
|
|
1759
|
-
attr_accessor :checkout_at
|
|
1760
|
-
# Customer service phone number for the lodging company.
|
|
1761
|
-
attr_accessor :customer_service_phone_number
|
|
1762
|
-
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1763
|
-
attr_accessor :fire_safety_act_compliance_indicator
|
|
1764
|
-
# List of guests for the lodging.
|
|
1765
|
-
attr_accessor :guests
|
|
1766
|
-
# Host details for the lodging.
|
|
1767
|
-
attr_accessor :host
|
|
1768
|
-
# List of insurances for the lodging.
|
|
1769
|
-
attr_accessor :insurances
|
|
1770
|
-
# Whether the renter is a no-show.
|
|
1771
|
-
attr_accessor :no_show_indicator
|
|
1772
|
-
# Renter ID number for the lodging.
|
|
1773
|
-
attr_accessor :renter_id_number
|
|
1774
|
-
# Renter name for the lodging.
|
|
1775
|
-
attr_accessor :renter_name
|
|
1776
|
-
# Total details for the lodging.
|
|
1777
|
-
attr_accessor :total
|
|
230
|
+
# The time at which the customer accepted the Mandate.
|
|
231
|
+
attr_accessor :accepted_at
|
|
232
|
+
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
|
233
|
+
attr_accessor :offline
|
|
234
|
+
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
|
235
|
+
attr_accessor :online
|
|
236
|
+
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
|
237
|
+
attr_accessor :type
|
|
1778
238
|
|
|
1779
|
-
def initialize(
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
checkout_at: nil,
|
|
1785
|
-
customer_service_phone_number: nil,
|
|
1786
|
-
fire_safety_act_compliance_indicator: nil,
|
|
1787
|
-
guests: nil,
|
|
1788
|
-
host: nil,
|
|
1789
|
-
insurances: nil,
|
|
1790
|
-
no_show_indicator: nil,
|
|
1791
|
-
renter_id_number: nil,
|
|
1792
|
-
renter_name: nil,
|
|
1793
|
-
total: nil
|
|
1794
|
-
)
|
|
1795
|
-
@accommodation = accommodation
|
|
1796
|
-
@affiliate = affiliate
|
|
1797
|
-
@booking_number = booking_number
|
|
1798
|
-
@checkin_at = checkin_at
|
|
1799
|
-
@checkout_at = checkout_at
|
|
1800
|
-
@customer_service_phone_number = customer_service_phone_number
|
|
1801
|
-
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1802
|
-
@guests = guests
|
|
1803
|
-
@host = host
|
|
1804
|
-
@insurances = insurances
|
|
1805
|
-
@no_show_indicator = no_show_indicator
|
|
1806
|
-
@renter_id_number = renter_id_number
|
|
1807
|
-
@renter_name = renter_name
|
|
1808
|
-
@total = total
|
|
239
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
|
240
|
+
@accepted_at = accepted_at
|
|
241
|
+
@offline = offline
|
|
242
|
+
@online = online
|
|
243
|
+
@type = type
|
|
1809
244
|
end
|
|
1810
245
|
end
|
|
246
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
|
247
|
+
attr_accessor :customer_acceptance
|
|
1811
248
|
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
# The name of the affiliate that originated the purchase.
|
|
1815
|
-
attr_accessor :name
|
|
1816
|
-
|
|
1817
|
-
def initialize(name: nil)
|
|
1818
|
-
@name = name
|
|
1819
|
-
end
|
|
1820
|
-
end
|
|
1821
|
-
|
|
1822
|
-
class BillingInterval < ::Stripe::RequestParams
|
|
1823
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1824
|
-
attr_accessor :count
|
|
1825
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1826
|
-
attr_accessor :interval
|
|
1827
|
-
|
|
1828
|
-
def initialize(count: nil, interval: nil)
|
|
1829
|
-
@count = count
|
|
1830
|
-
@interval = interval
|
|
1831
|
-
end
|
|
1832
|
-
end
|
|
1833
|
-
# Affiliate details for this purchase.
|
|
1834
|
-
attr_accessor :affiliate
|
|
1835
|
-
# Info whether the subscription will be auto renewed upon expiry.
|
|
1836
|
-
attr_accessor :auto_renewal
|
|
1837
|
-
# Subscription billing details for this purchase.
|
|
1838
|
-
attr_accessor :billing_interval
|
|
1839
|
-
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1840
|
-
attr_accessor :ends_at
|
|
1841
|
-
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1842
|
-
attr_accessor :name
|
|
1843
|
-
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1844
|
-
attr_accessor :starts_at
|
|
1845
|
-
|
|
1846
|
-
def initialize(
|
|
1847
|
-
affiliate: nil,
|
|
1848
|
-
auto_renewal: nil,
|
|
1849
|
-
billing_interval: nil,
|
|
1850
|
-
ends_at: nil,
|
|
1851
|
-
name: nil,
|
|
1852
|
-
starts_at: nil
|
|
1853
|
-
)
|
|
1854
|
-
@affiliate = affiliate
|
|
1855
|
-
@auto_renewal = auto_renewal
|
|
1856
|
-
@billing_interval = billing_interval
|
|
1857
|
-
@ends_at = ends_at
|
|
1858
|
-
@name = name
|
|
1859
|
-
@starts_at = starts_at
|
|
1860
|
-
end
|
|
249
|
+
def initialize(customer_acceptance: nil)
|
|
250
|
+
@customer_acceptance = customer_acceptance
|
|
1861
251
|
end
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
attr_accessor :car_rental_data
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
1866
255
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1867
256
|
#
|
|
1868
257
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1869
258
|
attr_accessor :customer_reference
|
|
1870
|
-
# Event details for this PaymentIntent
|
|
1871
|
-
attr_accessor :event_details
|
|
1872
|
-
# Flight reservation details for this PaymentIntent
|
|
1873
|
-
attr_accessor :flight
|
|
1874
|
-
# Flight data for this PaymentIntent.
|
|
1875
|
-
attr_accessor :flight_data
|
|
1876
|
-
# Lodging reservation details for this PaymentIntent
|
|
1877
|
-
attr_accessor :lodging
|
|
1878
|
-
# Lodging data for this PaymentIntent.
|
|
1879
|
-
attr_accessor :lodging_data
|
|
1880
259
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1881
260
|
#
|
|
1882
261
|
# 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.
|
|
1883
262
|
attr_accessor :order_reference
|
|
1884
|
-
# Subscription details for this PaymentIntent
|
|
1885
|
-
attr_accessor :subscription
|
|
1886
263
|
|
|
1887
|
-
def initialize(
|
|
1888
|
-
car_rental: nil,
|
|
1889
|
-
car_rental_data: nil,
|
|
1890
|
-
customer_reference: nil,
|
|
1891
|
-
event_details: nil,
|
|
1892
|
-
flight: nil,
|
|
1893
|
-
flight_data: nil,
|
|
1894
|
-
lodging: nil,
|
|
1895
|
-
lodging_data: nil,
|
|
1896
|
-
order_reference: nil,
|
|
1897
|
-
subscription: nil
|
|
1898
|
-
)
|
|
1899
|
-
@car_rental = car_rental
|
|
1900
|
-
@car_rental_data = car_rental_data
|
|
264
|
+
def initialize(customer_reference: nil, order_reference: nil)
|
|
1901
265
|
@customer_reference = customer_reference
|
|
1902
|
-
@event_details = event_details
|
|
1903
|
-
@flight = flight
|
|
1904
|
-
@flight_data = flight_data
|
|
1905
|
-
@lodging = lodging
|
|
1906
|
-
@lodging_data = lodging_data
|
|
1907
266
|
@order_reference = order_reference
|
|
1908
|
-
@subscription = subscription
|
|
1909
267
|
end
|
|
1910
268
|
end
|
|
1911
269
|
|
|
@@ -2047,18 +405,8 @@ module Stripe
|
|
|
2047
405
|
end
|
|
2048
406
|
|
|
2049
407
|
class Giropay < ::Stripe::RequestParams; end
|
|
2050
|
-
class Gopay < ::Stripe::RequestParams; end
|
|
2051
408
|
class Grabpay < ::Stripe::RequestParams; end
|
|
2052
409
|
|
|
2053
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
2054
|
-
# Bank where the account is held.
|
|
2055
|
-
attr_accessor :bank
|
|
2056
|
-
|
|
2057
|
-
def initialize(bank: nil)
|
|
2058
|
-
@bank = bank
|
|
2059
|
-
end
|
|
2060
|
-
end
|
|
2061
|
-
|
|
2062
410
|
class Ideal < ::Stripe::RequestParams
|
|
2063
411
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
2064
412
|
attr_accessor :bank
|
|
@@ -2175,7 +523,6 @@ module Stripe
|
|
|
2175
523
|
|
|
2176
524
|
class Pix < ::Stripe::RequestParams; end
|
|
2177
525
|
class Promptpay < ::Stripe::RequestParams; end
|
|
2178
|
-
class Qris < ::Stripe::RequestParams; end
|
|
2179
526
|
|
|
2180
527
|
class RadarOptions < ::Stripe::RequestParams
|
|
2181
528
|
# 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.
|
|
@@ -2186,29 +533,6 @@ module Stripe
|
|
|
2186
533
|
end
|
|
2187
534
|
end
|
|
2188
535
|
|
|
2189
|
-
class Rechnung < ::Stripe::RequestParams
|
|
2190
|
-
class Dob < ::Stripe::RequestParams
|
|
2191
|
-
# The day of birth, between 1 and 31.
|
|
2192
|
-
attr_accessor :day
|
|
2193
|
-
# The month of birth, between 1 and 12.
|
|
2194
|
-
attr_accessor :month
|
|
2195
|
-
# The four-digit year of birth.
|
|
2196
|
-
attr_accessor :year
|
|
2197
|
-
|
|
2198
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
2199
|
-
@day = day
|
|
2200
|
-
@month = month
|
|
2201
|
-
@year = year
|
|
2202
|
-
end
|
|
2203
|
-
end
|
|
2204
|
-
# Customer's date of birth
|
|
2205
|
-
attr_accessor :dob
|
|
2206
|
-
|
|
2207
|
-
def initialize(dob: nil)
|
|
2208
|
-
@dob = dob
|
|
2209
|
-
end
|
|
2210
|
-
end
|
|
2211
|
-
|
|
2212
536
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
2213
537
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
2214
538
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -2224,7 +548,6 @@ module Stripe
|
|
|
2224
548
|
end
|
|
2225
549
|
|
|
2226
550
|
class Sequra < ::Stripe::RequestParams; end
|
|
2227
|
-
class Shopeepay < ::Stripe::RequestParams; end
|
|
2228
551
|
|
|
2229
552
|
class Sofort < ::Stripe::RequestParams
|
|
2230
553
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -2235,15 +558,6 @@ module Stripe
|
|
|
2235
558
|
end
|
|
2236
559
|
end
|
|
2237
560
|
|
|
2238
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
2239
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
|
2240
|
-
attr_accessor :account
|
|
2241
|
-
|
|
2242
|
-
def initialize(account: nil)
|
|
2243
|
-
@account = account
|
|
2244
|
-
end
|
|
2245
|
-
end
|
|
2246
|
-
|
|
2247
561
|
class Sunbit < ::Stripe::RequestParams; end
|
|
2248
562
|
class Swish < ::Stripe::RequestParams; end
|
|
2249
563
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -2275,25 +589,12 @@ module Stripe
|
|
|
2275
589
|
end
|
|
2276
590
|
|
|
2277
591
|
class UsBankAccount < ::Stripe::RequestParams
|
|
2278
|
-
class ExternalToken < ::Stripe::RequestParams
|
|
2279
|
-
# The Plaid processor token to use for this bank account.
|
|
2280
|
-
attr_accessor :plaid_processor_token
|
|
2281
|
-
# The type of external token.
|
|
2282
|
-
attr_accessor :type
|
|
2283
|
-
|
|
2284
|
-
def initialize(plaid_processor_token: nil, type: nil)
|
|
2285
|
-
@plaid_processor_token = plaid_processor_token
|
|
2286
|
-
@type = type
|
|
2287
|
-
end
|
|
2288
|
-
end
|
|
2289
592
|
# Account holder type: individual or company.
|
|
2290
593
|
attr_accessor :account_holder_type
|
|
2291
594
|
# Account number of the bank account.
|
|
2292
595
|
attr_accessor :account_number
|
|
2293
596
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
2294
597
|
attr_accessor :account_type
|
|
2295
|
-
# An external token used to create a payment method.
|
|
2296
|
-
attr_accessor :external_token
|
|
2297
598
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
2298
599
|
attr_accessor :financial_connections_account
|
|
2299
600
|
# Routing number of the bank account.
|
|
@@ -2303,21 +604,18 @@ module Stripe
|
|
|
2303
604
|
account_holder_type: nil,
|
|
2304
605
|
account_number: nil,
|
|
2305
606
|
account_type: nil,
|
|
2306
|
-
external_token: nil,
|
|
2307
607
|
financial_connections_account: nil,
|
|
2308
608
|
routing_number: nil
|
|
2309
609
|
)
|
|
2310
610
|
@account_holder_type = account_holder_type
|
|
2311
611
|
@account_number = account_number
|
|
2312
612
|
@account_type = account_type
|
|
2313
|
-
@external_token = external_token
|
|
2314
613
|
@financial_connections_account = financial_connections_account
|
|
2315
614
|
@routing_number = routing_number
|
|
2316
615
|
end
|
|
2317
616
|
end
|
|
2318
617
|
|
|
2319
618
|
class WechatPay < ::Stripe::RequestParams; end
|
|
2320
|
-
class Wero < ::Stripe::RequestParams; end
|
|
2321
619
|
class Zip < ::Stripe::RequestParams; end
|
|
2322
620
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
2323
621
|
attr_accessor :acss_debit
|
|
@@ -2361,12 +659,8 @@ module Stripe
|
|
|
2361
659
|
attr_accessor :fpx
|
|
2362
660
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2363
661
|
attr_accessor :giropay
|
|
2364
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
2365
|
-
attr_accessor :gopay
|
|
2366
662
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
2367
663
|
attr_accessor :grabpay
|
|
2368
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
2369
|
-
attr_accessor :id_bank_transfer
|
|
2370
664
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
2371
665
|
attr_accessor :ideal
|
|
2372
666
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -2413,12 +707,8 @@ module Stripe
|
|
|
2413
707
|
attr_accessor :pix
|
|
2414
708
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
2415
709
|
attr_accessor :promptpay
|
|
2416
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
2417
|
-
attr_accessor :qris
|
|
2418
710
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2419
711
|
attr_accessor :radar_options
|
|
2420
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2421
|
-
attr_accessor :rechnung
|
|
2422
712
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
2423
713
|
attr_accessor :revolut_pay
|
|
2424
714
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -2431,14 +721,8 @@ module Stripe
|
|
|
2431
721
|
attr_accessor :sepa_debit
|
|
2432
722
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
2433
723
|
attr_accessor :sequra
|
|
2434
|
-
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2435
|
-
attr_accessor :shared_payment_granted_token
|
|
2436
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
2437
|
-
attr_accessor :shopeepay
|
|
2438
724
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
2439
725
|
attr_accessor :sofort
|
|
2440
|
-
# This hash contains details about the Stripe balance payment method.
|
|
2441
|
-
attr_accessor :stripe_balance
|
|
2442
726
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
2443
727
|
attr_accessor :sunbit
|
|
2444
728
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -2453,8 +737,6 @@ module Stripe
|
|
|
2453
737
|
attr_accessor :us_bank_account
|
|
2454
738
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
2455
739
|
attr_accessor :wechat_pay
|
|
2456
|
-
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
2457
|
-
attr_accessor :wero
|
|
2458
740
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
2459
741
|
attr_accessor :zip
|
|
2460
742
|
|
|
@@ -2480,9 +762,7 @@ module Stripe
|
|
|
2480
762
|
eps: nil,
|
|
2481
763
|
fpx: nil,
|
|
2482
764
|
giropay: nil,
|
|
2483
|
-
gopay: nil,
|
|
2484
765
|
grabpay: nil,
|
|
2485
|
-
id_bank_transfer: nil,
|
|
2486
766
|
ideal: nil,
|
|
2487
767
|
interac_present: nil,
|
|
2488
768
|
kakao_pay: nil,
|
|
@@ -2506,19 +786,14 @@ module Stripe
|
|
|
2506
786
|
payto: nil,
|
|
2507
787
|
pix: nil,
|
|
2508
788
|
promptpay: nil,
|
|
2509
|
-
qris: nil,
|
|
2510
789
|
radar_options: nil,
|
|
2511
|
-
rechnung: nil,
|
|
2512
790
|
revolut_pay: nil,
|
|
2513
791
|
samsung_pay: nil,
|
|
2514
792
|
satispay: nil,
|
|
2515
793
|
scalapay: nil,
|
|
2516
794
|
sepa_debit: nil,
|
|
2517
795
|
sequra: nil,
|
|
2518
|
-
shared_payment_granted_token: nil,
|
|
2519
|
-
shopeepay: nil,
|
|
2520
796
|
sofort: nil,
|
|
2521
|
-
stripe_balance: nil,
|
|
2522
797
|
sunbit: nil,
|
|
2523
798
|
swish: nil,
|
|
2524
799
|
twint: nil,
|
|
@@ -2526,7 +801,6 @@ module Stripe
|
|
|
2526
801
|
upi: nil,
|
|
2527
802
|
us_bank_account: nil,
|
|
2528
803
|
wechat_pay: nil,
|
|
2529
|
-
wero: nil,
|
|
2530
804
|
zip: nil
|
|
2531
805
|
)
|
|
2532
806
|
@acss_debit = acss_debit
|
|
@@ -2550,9 +824,7 @@ module Stripe
|
|
|
2550
824
|
@eps = eps
|
|
2551
825
|
@fpx = fpx
|
|
2552
826
|
@giropay = giropay
|
|
2553
|
-
@gopay = gopay
|
|
2554
827
|
@grabpay = grabpay
|
|
2555
|
-
@id_bank_transfer = id_bank_transfer
|
|
2556
828
|
@ideal = ideal
|
|
2557
829
|
@interac_present = interac_present
|
|
2558
830
|
@kakao_pay = kakao_pay
|
|
@@ -2576,19 +848,14 @@ module Stripe
|
|
|
2576
848
|
@payto = payto
|
|
2577
849
|
@pix = pix
|
|
2578
850
|
@promptpay = promptpay
|
|
2579
|
-
@qris = qris
|
|
2580
851
|
@radar_options = radar_options
|
|
2581
|
-
@rechnung = rechnung
|
|
2582
852
|
@revolut_pay = revolut_pay
|
|
2583
853
|
@samsung_pay = samsung_pay
|
|
2584
854
|
@satispay = satispay
|
|
2585
855
|
@scalapay = scalapay
|
|
2586
856
|
@sepa_debit = sepa_debit
|
|
2587
857
|
@sequra = sequra
|
|
2588
|
-
@shared_payment_granted_token = shared_payment_granted_token
|
|
2589
|
-
@shopeepay = shopeepay
|
|
2590
858
|
@sofort = sofort
|
|
2591
|
-
@stripe_balance = stripe_balance
|
|
2592
859
|
@sunbit = sunbit
|
|
2593
860
|
@swish = swish
|
|
2594
861
|
@twint = twint
|
|
@@ -2596,7 +863,6 @@ module Stripe
|
|
|
2596
863
|
@upi = upi
|
|
2597
864
|
@us_bank_account = us_bank_account
|
|
2598
865
|
@wechat_pay = wechat_pay
|
|
2599
|
-
@wero = wero
|
|
2600
866
|
@zip = zip
|
|
2601
867
|
end
|
|
2602
868
|
end
|
|
@@ -3017,65 +1283,23 @@ module Stripe
|
|
|
3017
1283
|
def initialize(
|
|
3018
1284
|
amount: nil,
|
|
3019
1285
|
amount_type: nil,
|
|
3020
|
-
description: nil,
|
|
3021
|
-
end_date: nil,
|
|
3022
|
-
interval: nil,
|
|
3023
|
-
interval_count: nil,
|
|
3024
|
-
reference: nil,
|
|
3025
|
-
start_date: nil,
|
|
3026
|
-
supported_types: nil
|
|
3027
|
-
)
|
|
3028
|
-
@amount = amount
|
|
3029
|
-
@amount_type = amount_type
|
|
3030
|
-
@description = description
|
|
3031
|
-
@end_date = end_date
|
|
3032
|
-
@interval = interval
|
|
3033
|
-
@interval_count = interval_count
|
|
3034
|
-
@reference = reference
|
|
3035
|
-
@start_date = start_date
|
|
3036
|
-
@supported_types = supported_types
|
|
3037
|
-
end
|
|
3038
|
-
end
|
|
3039
|
-
|
|
3040
|
-
class StatementDetails < ::Stripe::RequestParams
|
|
3041
|
-
class Address < ::Stripe::RequestParams
|
|
3042
|
-
# City, district, suburb, town, or village.
|
|
3043
|
-
attr_accessor :city
|
|
3044
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
3045
|
-
attr_accessor :country
|
|
3046
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
3047
|
-
attr_accessor :line1
|
|
3048
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
3049
|
-
attr_accessor :line2
|
|
3050
|
-
# ZIP or postal code.
|
|
3051
|
-
attr_accessor :postal_code
|
|
3052
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
3053
|
-
attr_accessor :state
|
|
3054
|
-
|
|
3055
|
-
def initialize(
|
|
3056
|
-
city: nil,
|
|
3057
|
-
country: nil,
|
|
3058
|
-
line1: nil,
|
|
3059
|
-
line2: nil,
|
|
3060
|
-
postal_code: nil,
|
|
3061
|
-
state: nil
|
|
3062
|
-
)
|
|
3063
|
-
@city = city
|
|
3064
|
-
@country = country
|
|
3065
|
-
@line1 = line1
|
|
3066
|
-
@line2 = line2
|
|
3067
|
-
@postal_code = postal_code
|
|
3068
|
-
@state = state
|
|
3069
|
-
end
|
|
3070
|
-
end
|
|
3071
|
-
# Please pass in an address that is within your Stripe user account country
|
|
3072
|
-
attr_accessor :address
|
|
3073
|
-
# Phone number (e.g., a toll-free number that customers can call)
|
|
3074
|
-
attr_accessor :phone
|
|
3075
|
-
|
|
3076
|
-
def initialize(address: nil, phone: nil)
|
|
3077
|
-
@address = address
|
|
3078
|
-
@phone = phone
|
|
1286
|
+
description: nil,
|
|
1287
|
+
end_date: nil,
|
|
1288
|
+
interval: nil,
|
|
1289
|
+
interval_count: nil,
|
|
1290
|
+
reference: nil,
|
|
1291
|
+
start_date: nil,
|
|
1292
|
+
supported_types: nil
|
|
1293
|
+
)
|
|
1294
|
+
@amount = amount
|
|
1295
|
+
@amount_type = amount_type
|
|
1296
|
+
@description = description
|
|
1297
|
+
@end_date = end_date
|
|
1298
|
+
@interval = interval
|
|
1299
|
+
@interval_count = interval_count
|
|
1300
|
+
@reference = reference
|
|
1301
|
+
@start_date = start_date
|
|
1302
|
+
@supported_types = supported_types
|
|
3079
1303
|
end
|
|
3080
1304
|
end
|
|
3081
1305
|
|
|
@@ -3173,8 +1397,6 @@ module Stripe
|
|
|
3173
1397
|
attr_accessor :moto
|
|
3174
1398
|
# 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.
|
|
3175
1399
|
attr_accessor :network
|
|
3176
|
-
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
3177
|
-
attr_accessor :request_decremental_authorization
|
|
3178
1400
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
3179
1401
|
attr_accessor :request_extended_authorization
|
|
3180
1402
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -3183,8 +1405,6 @@ module Stripe
|
|
|
3183
1405
|
attr_accessor :request_multicapture
|
|
3184
1406
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
3185
1407
|
attr_accessor :request_overcapture
|
|
3186
|
-
# Request partial authorization on this PaymentIntent.
|
|
3187
|
-
attr_accessor :request_partial_authorization
|
|
3188
1408
|
# 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.
|
|
3189
1409
|
attr_accessor :request_three_d_secure
|
|
3190
1410
|
# 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).
|
|
@@ -3205,8 +1425,6 @@ module Stripe
|
|
|
3205
1425
|
attr_accessor :statement_descriptor_suffix_kana
|
|
3206
1426
|
# 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.
|
|
3207
1427
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
3208
|
-
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
3209
|
-
attr_accessor :statement_details
|
|
3210
1428
|
# Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
|
|
3211
1429
|
#
|
|
3212
1430
|
# 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.
|
|
@@ -3226,19 +1444,16 @@ module Stripe
|
|
|
3226
1444
|
mandate_options: nil,
|
|
3227
1445
|
moto: nil,
|
|
3228
1446
|
network: nil,
|
|
3229
|
-
request_decremental_authorization: nil,
|
|
3230
1447
|
request_extended_authorization: nil,
|
|
3231
1448
|
request_incremental_authorization: nil,
|
|
3232
1449
|
request_multicapture: nil,
|
|
3233
1450
|
request_overcapture: nil,
|
|
3234
|
-
request_partial_authorization: nil,
|
|
3235
1451
|
request_three_d_secure: nil,
|
|
3236
1452
|
require_cvc_recollection: nil,
|
|
3237
1453
|
setup_credential_usage: nil,
|
|
3238
1454
|
setup_future_usage: nil,
|
|
3239
1455
|
statement_descriptor_suffix_kana: nil,
|
|
3240
1456
|
statement_descriptor_suffix_kanji: nil,
|
|
3241
|
-
statement_details: nil,
|
|
3242
1457
|
stored_credential_usage: nil,
|
|
3243
1458
|
three_d_secure: nil
|
|
3244
1459
|
)
|
|
@@ -3248,19 +1463,16 @@ module Stripe
|
|
|
3248
1463
|
@mandate_options = mandate_options
|
|
3249
1464
|
@moto = moto
|
|
3250
1465
|
@network = network
|
|
3251
|
-
@request_decremental_authorization = request_decremental_authorization
|
|
3252
1466
|
@request_extended_authorization = request_extended_authorization
|
|
3253
1467
|
@request_incremental_authorization = request_incremental_authorization
|
|
3254
1468
|
@request_multicapture = request_multicapture
|
|
3255
1469
|
@request_overcapture = request_overcapture
|
|
3256
|
-
@request_partial_authorization = request_partial_authorization
|
|
3257
1470
|
@request_three_d_secure = request_three_d_secure
|
|
3258
1471
|
@require_cvc_recollection = require_cvc_recollection
|
|
3259
1472
|
@setup_credential_usage = setup_credential_usage
|
|
3260
1473
|
@setup_future_usage = setup_future_usage
|
|
3261
1474
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
3262
1475
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
3263
|
-
@statement_details = statement_details
|
|
3264
1476
|
@stored_credential_usage = stored_credential_usage
|
|
3265
1477
|
@three_d_secure = three_d_secure
|
|
3266
1478
|
end
|
|
@@ -3440,23 +1652,6 @@ module Stripe
|
|
|
3440
1652
|
end
|
|
3441
1653
|
end
|
|
3442
1654
|
|
|
3443
|
-
class Gopay < ::Stripe::RequestParams
|
|
3444
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3445
|
-
#
|
|
3446
|
-
# 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.
|
|
3447
|
-
#
|
|
3448
|
-
# 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.
|
|
3449
|
-
#
|
|
3450
|
-
# 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).
|
|
3451
|
-
#
|
|
3452
|
-
# 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`.
|
|
3453
|
-
attr_accessor :setup_future_usage
|
|
3454
|
-
|
|
3455
|
-
def initialize(setup_future_usage: nil)
|
|
3456
|
-
@setup_future_usage = setup_future_usage
|
|
3457
|
-
end
|
|
3458
|
-
end
|
|
3459
|
-
|
|
3460
1655
|
class Grabpay < ::Stripe::RequestParams
|
|
3461
1656
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3462
1657
|
#
|
|
@@ -3474,29 +1669,6 @@ module Stripe
|
|
|
3474
1669
|
end
|
|
3475
1670
|
end
|
|
3476
1671
|
|
|
3477
|
-
class IdBankTransfer < ::Stripe::RequestParams
|
|
3478
|
-
# 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.
|
|
3479
|
-
attr_accessor :expires_after
|
|
3480
|
-
# 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.
|
|
3481
|
-
attr_accessor :expires_at
|
|
3482
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3483
|
-
#
|
|
3484
|
-
# 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.
|
|
3485
|
-
#
|
|
3486
|
-
# 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.
|
|
3487
|
-
#
|
|
3488
|
-
# 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).
|
|
3489
|
-
#
|
|
3490
|
-
# 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`.
|
|
3491
|
-
attr_accessor :setup_future_usage
|
|
3492
|
-
|
|
3493
|
-
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
3494
|
-
@expires_after = expires_after
|
|
3495
|
-
@expires_at = expires_at
|
|
3496
|
-
@setup_future_usage = setup_future_usage
|
|
3497
|
-
end
|
|
3498
|
-
end
|
|
3499
|
-
|
|
3500
1672
|
class Ideal < ::Stripe::RequestParams
|
|
3501
1673
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3502
1674
|
#
|
|
@@ -3603,939 +1775,6 @@ module Stripe
|
|
|
3603
1775
|
@reference = reference
|
|
3604
1776
|
end
|
|
3605
1777
|
end
|
|
3606
|
-
|
|
3607
|
-
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
3608
|
-
class BusReservationDetail < ::Stripe::RequestParams
|
|
3609
|
-
class Arrival < ::Stripe::RequestParams
|
|
3610
|
-
class Address < ::Stripe::RequestParams
|
|
3611
|
-
# The city or town.
|
|
3612
|
-
attr_accessor :city
|
|
3613
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3614
|
-
attr_accessor :country
|
|
3615
|
-
# The postal code formatted according to country.
|
|
3616
|
-
attr_accessor :postal_code
|
|
3617
|
-
# The state, county, province, or region formatted according to country.
|
|
3618
|
-
attr_accessor :region
|
|
3619
|
-
# Line 1 of the street address.
|
|
3620
|
-
attr_accessor :street_address
|
|
3621
|
-
# Line 2 of the street address.
|
|
3622
|
-
attr_accessor :street_address2
|
|
3623
|
-
|
|
3624
|
-
def initialize(
|
|
3625
|
-
city: nil,
|
|
3626
|
-
country: nil,
|
|
3627
|
-
postal_code: nil,
|
|
3628
|
-
region: nil,
|
|
3629
|
-
street_address: nil,
|
|
3630
|
-
street_address2: nil
|
|
3631
|
-
)
|
|
3632
|
-
@city = city
|
|
3633
|
-
@country = country
|
|
3634
|
-
@postal_code = postal_code
|
|
3635
|
-
@region = region
|
|
3636
|
-
@street_address = street_address
|
|
3637
|
-
@street_address2 = street_address2
|
|
3638
|
-
end
|
|
3639
|
-
end
|
|
3640
|
-
# Address of the arrival location.
|
|
3641
|
-
attr_accessor :address
|
|
3642
|
-
# Identifier name or reference for the arrival location.
|
|
3643
|
-
attr_accessor :arrival_location
|
|
3644
|
-
|
|
3645
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3646
|
-
@address = address
|
|
3647
|
-
@arrival_location = arrival_location
|
|
3648
|
-
end
|
|
3649
|
-
end
|
|
3650
|
-
|
|
3651
|
-
class Departure < ::Stripe::RequestParams
|
|
3652
|
-
class Address < ::Stripe::RequestParams
|
|
3653
|
-
# The city or town.
|
|
3654
|
-
attr_accessor :city
|
|
3655
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3656
|
-
attr_accessor :country
|
|
3657
|
-
# The postal code formatted according to country.
|
|
3658
|
-
attr_accessor :postal_code
|
|
3659
|
-
# The state, county, province, or region formatted according to country.
|
|
3660
|
-
attr_accessor :region
|
|
3661
|
-
# Line 1 of the street address.
|
|
3662
|
-
attr_accessor :street_address
|
|
3663
|
-
# Line 2 of the street address.
|
|
3664
|
-
attr_accessor :street_address2
|
|
3665
|
-
|
|
3666
|
-
def initialize(
|
|
3667
|
-
city: nil,
|
|
3668
|
-
country: nil,
|
|
3669
|
-
postal_code: nil,
|
|
3670
|
-
region: nil,
|
|
3671
|
-
street_address: nil,
|
|
3672
|
-
street_address2: nil
|
|
3673
|
-
)
|
|
3674
|
-
@city = city
|
|
3675
|
-
@country = country
|
|
3676
|
-
@postal_code = postal_code
|
|
3677
|
-
@region = region
|
|
3678
|
-
@street_address = street_address
|
|
3679
|
-
@street_address2 = street_address2
|
|
3680
|
-
end
|
|
3681
|
-
end
|
|
3682
|
-
# Address of the departure location.
|
|
3683
|
-
attr_accessor :address
|
|
3684
|
-
# Timestamp of departure.
|
|
3685
|
-
attr_accessor :departs_at
|
|
3686
|
-
# Identifier name or reference for the origin location.
|
|
3687
|
-
attr_accessor :departure_location
|
|
3688
|
-
|
|
3689
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3690
|
-
@address = address
|
|
3691
|
-
@departs_at = departs_at
|
|
3692
|
-
@departure_location = departure_location
|
|
3693
|
-
end
|
|
3694
|
-
end
|
|
3695
|
-
|
|
3696
|
-
class Insurance < ::Stripe::RequestParams
|
|
3697
|
-
# Insurance currency.
|
|
3698
|
-
attr_accessor :currency
|
|
3699
|
-
# Name of the company providing the insurance.
|
|
3700
|
-
attr_accessor :insurance_company_name
|
|
3701
|
-
# Type of insurance.
|
|
3702
|
-
attr_accessor :insurance_type
|
|
3703
|
-
# Price of insurance in cents.
|
|
3704
|
-
attr_accessor :price
|
|
3705
|
-
|
|
3706
|
-
def initialize(
|
|
3707
|
-
currency: nil,
|
|
3708
|
-
insurance_company_name: nil,
|
|
3709
|
-
insurance_type: nil,
|
|
3710
|
-
price: nil
|
|
3711
|
-
)
|
|
3712
|
-
@currency = currency
|
|
3713
|
-
@insurance_company_name = insurance_company_name
|
|
3714
|
-
@insurance_type = insurance_type
|
|
3715
|
-
@price = price
|
|
3716
|
-
end
|
|
3717
|
-
end
|
|
3718
|
-
|
|
3719
|
-
class Passenger < ::Stripe::RequestParams
|
|
3720
|
-
# The family name of the person.
|
|
3721
|
-
attr_accessor :family_name
|
|
3722
|
-
# The given name of the person.
|
|
3723
|
-
attr_accessor :given_name
|
|
3724
|
-
|
|
3725
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3726
|
-
@family_name = family_name
|
|
3727
|
-
@given_name = given_name
|
|
3728
|
-
end
|
|
3729
|
-
end
|
|
3730
|
-
# Name of associated or partner company for the service.
|
|
3731
|
-
attr_accessor :affiliate_name
|
|
3732
|
-
# Arrival details.
|
|
3733
|
-
attr_accessor :arrival
|
|
3734
|
-
# Name of transportation company.
|
|
3735
|
-
attr_accessor :carrier_name
|
|
3736
|
-
# Currency.
|
|
3737
|
-
attr_accessor :currency
|
|
3738
|
-
# Departure details.
|
|
3739
|
-
attr_accessor :departure
|
|
3740
|
-
# List of insurances for this reservation.
|
|
3741
|
-
attr_accessor :insurances
|
|
3742
|
-
# List of passengers that this reservation applies to.
|
|
3743
|
-
attr_accessor :passengers
|
|
3744
|
-
# Price in cents.
|
|
3745
|
-
attr_accessor :price
|
|
3746
|
-
# Ticket class.
|
|
3747
|
-
attr_accessor :ticket_class
|
|
3748
|
-
|
|
3749
|
-
def initialize(
|
|
3750
|
-
affiliate_name: nil,
|
|
3751
|
-
arrival: nil,
|
|
3752
|
-
carrier_name: nil,
|
|
3753
|
-
currency: nil,
|
|
3754
|
-
departure: nil,
|
|
3755
|
-
insurances: nil,
|
|
3756
|
-
passengers: nil,
|
|
3757
|
-
price: nil,
|
|
3758
|
-
ticket_class: nil
|
|
3759
|
-
)
|
|
3760
|
-
@affiliate_name = affiliate_name
|
|
3761
|
-
@arrival = arrival
|
|
3762
|
-
@carrier_name = carrier_name
|
|
3763
|
-
@currency = currency
|
|
3764
|
-
@departure = departure
|
|
3765
|
-
@insurances = insurances
|
|
3766
|
-
@passengers = passengers
|
|
3767
|
-
@price = price
|
|
3768
|
-
@ticket_class = ticket_class
|
|
3769
|
-
end
|
|
3770
|
-
end
|
|
3771
|
-
|
|
3772
|
-
class EventReservationDetail < ::Stripe::RequestParams
|
|
3773
|
-
class Address < ::Stripe::RequestParams
|
|
3774
|
-
# The city or town.
|
|
3775
|
-
attr_accessor :city
|
|
3776
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3777
|
-
attr_accessor :country
|
|
3778
|
-
# The postal code formatted according to country.
|
|
3779
|
-
attr_accessor :postal_code
|
|
3780
|
-
# The state, county, province, or region formatted according to country.
|
|
3781
|
-
attr_accessor :region
|
|
3782
|
-
# Line 1 of the street address.
|
|
3783
|
-
attr_accessor :street_address
|
|
3784
|
-
# Line 2 of the street address.
|
|
3785
|
-
attr_accessor :street_address2
|
|
3786
|
-
|
|
3787
|
-
def initialize(
|
|
3788
|
-
city: nil,
|
|
3789
|
-
country: nil,
|
|
3790
|
-
postal_code: nil,
|
|
3791
|
-
region: nil,
|
|
3792
|
-
street_address: nil,
|
|
3793
|
-
street_address2: nil
|
|
3794
|
-
)
|
|
3795
|
-
@city = city
|
|
3796
|
-
@country = country
|
|
3797
|
-
@postal_code = postal_code
|
|
3798
|
-
@region = region
|
|
3799
|
-
@street_address = street_address
|
|
3800
|
-
@street_address2 = street_address2
|
|
3801
|
-
end
|
|
3802
|
-
end
|
|
3803
|
-
|
|
3804
|
-
class Insurance < ::Stripe::RequestParams
|
|
3805
|
-
# Insurance currency.
|
|
3806
|
-
attr_accessor :currency
|
|
3807
|
-
# Name of the company providing the insurance.
|
|
3808
|
-
attr_accessor :insurance_company_name
|
|
3809
|
-
# Type of insurance.
|
|
3810
|
-
attr_accessor :insurance_type
|
|
3811
|
-
# Price of insurance in cents.
|
|
3812
|
-
attr_accessor :price
|
|
3813
|
-
|
|
3814
|
-
def initialize(
|
|
3815
|
-
currency: nil,
|
|
3816
|
-
insurance_company_name: nil,
|
|
3817
|
-
insurance_type: nil,
|
|
3818
|
-
price: nil
|
|
3819
|
-
)
|
|
3820
|
-
@currency = currency
|
|
3821
|
-
@insurance_company_name = insurance_company_name
|
|
3822
|
-
@insurance_type = insurance_type
|
|
3823
|
-
@price = price
|
|
3824
|
-
end
|
|
3825
|
-
end
|
|
3826
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
|
3827
|
-
attr_accessor :access_controlled_venue
|
|
3828
|
-
# Address of the event.
|
|
3829
|
-
attr_accessor :address
|
|
3830
|
-
# Name of associated or partner company for the service.
|
|
3831
|
-
attr_accessor :affiliate_name
|
|
3832
|
-
# End timestamp of the event.
|
|
3833
|
-
attr_accessor :ends_at
|
|
3834
|
-
# Company selling the ticket.
|
|
3835
|
-
attr_accessor :event_company_name
|
|
3836
|
-
# Name of the event.
|
|
3837
|
-
attr_accessor :event_name
|
|
3838
|
-
# Type of the event.
|
|
3839
|
-
attr_accessor :event_type
|
|
3840
|
-
# List of insurances for this event.
|
|
3841
|
-
attr_accessor :insurances
|
|
3842
|
-
# Start timestamp of the event.
|
|
3843
|
-
attr_accessor :starts_at
|
|
3844
|
-
# Name of the venue where the event takes place.
|
|
3845
|
-
attr_accessor :venue_name
|
|
3846
|
-
|
|
3847
|
-
def initialize(
|
|
3848
|
-
access_controlled_venue: nil,
|
|
3849
|
-
address: nil,
|
|
3850
|
-
affiliate_name: nil,
|
|
3851
|
-
ends_at: nil,
|
|
3852
|
-
event_company_name: nil,
|
|
3853
|
-
event_name: nil,
|
|
3854
|
-
event_type: nil,
|
|
3855
|
-
insurances: nil,
|
|
3856
|
-
starts_at: nil,
|
|
3857
|
-
venue_name: nil
|
|
3858
|
-
)
|
|
3859
|
-
@access_controlled_venue = access_controlled_venue
|
|
3860
|
-
@address = address
|
|
3861
|
-
@affiliate_name = affiliate_name
|
|
3862
|
-
@ends_at = ends_at
|
|
3863
|
-
@event_company_name = event_company_name
|
|
3864
|
-
@event_name = event_name
|
|
3865
|
-
@event_type = event_type
|
|
3866
|
-
@insurances = insurances
|
|
3867
|
-
@starts_at = starts_at
|
|
3868
|
-
@venue_name = venue_name
|
|
3869
|
-
end
|
|
3870
|
-
end
|
|
3871
|
-
|
|
3872
|
-
class FerryReservationDetail < ::Stripe::RequestParams
|
|
3873
|
-
class Arrival < ::Stripe::RequestParams
|
|
3874
|
-
class Address < ::Stripe::RequestParams
|
|
3875
|
-
# The city or town.
|
|
3876
|
-
attr_accessor :city
|
|
3877
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3878
|
-
attr_accessor :country
|
|
3879
|
-
# The postal code formatted according to country.
|
|
3880
|
-
attr_accessor :postal_code
|
|
3881
|
-
# The state, county, province, or region formatted according to country.
|
|
3882
|
-
attr_accessor :region
|
|
3883
|
-
# Line 1 of the street address.
|
|
3884
|
-
attr_accessor :street_address
|
|
3885
|
-
# Line 2 of the street address.
|
|
3886
|
-
attr_accessor :street_address2
|
|
3887
|
-
|
|
3888
|
-
def initialize(
|
|
3889
|
-
city: nil,
|
|
3890
|
-
country: nil,
|
|
3891
|
-
postal_code: nil,
|
|
3892
|
-
region: nil,
|
|
3893
|
-
street_address: nil,
|
|
3894
|
-
street_address2: nil
|
|
3895
|
-
)
|
|
3896
|
-
@city = city
|
|
3897
|
-
@country = country
|
|
3898
|
-
@postal_code = postal_code
|
|
3899
|
-
@region = region
|
|
3900
|
-
@street_address = street_address
|
|
3901
|
-
@street_address2 = street_address2
|
|
3902
|
-
end
|
|
3903
|
-
end
|
|
3904
|
-
# Address of the arrival location.
|
|
3905
|
-
attr_accessor :address
|
|
3906
|
-
# Identifier name or reference for the arrival location.
|
|
3907
|
-
attr_accessor :arrival_location
|
|
3908
|
-
|
|
3909
|
-
def initialize(address: nil, arrival_location: nil)
|
|
3910
|
-
@address = address
|
|
3911
|
-
@arrival_location = arrival_location
|
|
3912
|
-
end
|
|
3913
|
-
end
|
|
3914
|
-
|
|
3915
|
-
class Departure < ::Stripe::RequestParams
|
|
3916
|
-
class Address < ::Stripe::RequestParams
|
|
3917
|
-
# The city or town.
|
|
3918
|
-
attr_accessor :city
|
|
3919
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
3920
|
-
attr_accessor :country
|
|
3921
|
-
# The postal code formatted according to country.
|
|
3922
|
-
attr_accessor :postal_code
|
|
3923
|
-
# The state, county, province, or region formatted according to country.
|
|
3924
|
-
attr_accessor :region
|
|
3925
|
-
# Line 1 of the street address.
|
|
3926
|
-
attr_accessor :street_address
|
|
3927
|
-
# Line 2 of the street address.
|
|
3928
|
-
attr_accessor :street_address2
|
|
3929
|
-
|
|
3930
|
-
def initialize(
|
|
3931
|
-
city: nil,
|
|
3932
|
-
country: nil,
|
|
3933
|
-
postal_code: nil,
|
|
3934
|
-
region: nil,
|
|
3935
|
-
street_address: nil,
|
|
3936
|
-
street_address2: nil
|
|
3937
|
-
)
|
|
3938
|
-
@city = city
|
|
3939
|
-
@country = country
|
|
3940
|
-
@postal_code = postal_code
|
|
3941
|
-
@region = region
|
|
3942
|
-
@street_address = street_address
|
|
3943
|
-
@street_address2 = street_address2
|
|
3944
|
-
end
|
|
3945
|
-
end
|
|
3946
|
-
# Address of the departure location.
|
|
3947
|
-
attr_accessor :address
|
|
3948
|
-
# Timestamp of departure.
|
|
3949
|
-
attr_accessor :departs_at
|
|
3950
|
-
# Identifier name or reference for the origin location.
|
|
3951
|
-
attr_accessor :departure_location
|
|
3952
|
-
|
|
3953
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
3954
|
-
@address = address
|
|
3955
|
-
@departs_at = departs_at
|
|
3956
|
-
@departure_location = departure_location
|
|
3957
|
-
end
|
|
3958
|
-
end
|
|
3959
|
-
|
|
3960
|
-
class Insurance < ::Stripe::RequestParams
|
|
3961
|
-
# Insurance currency.
|
|
3962
|
-
attr_accessor :currency
|
|
3963
|
-
# Name of the company providing the insurance.
|
|
3964
|
-
attr_accessor :insurance_company_name
|
|
3965
|
-
# Type of insurance.
|
|
3966
|
-
attr_accessor :insurance_type
|
|
3967
|
-
# Price of insurance in cents.
|
|
3968
|
-
attr_accessor :price
|
|
3969
|
-
|
|
3970
|
-
def initialize(
|
|
3971
|
-
currency: nil,
|
|
3972
|
-
insurance_company_name: nil,
|
|
3973
|
-
insurance_type: nil,
|
|
3974
|
-
price: nil
|
|
3975
|
-
)
|
|
3976
|
-
@currency = currency
|
|
3977
|
-
@insurance_company_name = insurance_company_name
|
|
3978
|
-
@insurance_type = insurance_type
|
|
3979
|
-
@price = price
|
|
3980
|
-
end
|
|
3981
|
-
end
|
|
3982
|
-
|
|
3983
|
-
class Passenger < ::Stripe::RequestParams
|
|
3984
|
-
# The family name of the person.
|
|
3985
|
-
attr_accessor :family_name
|
|
3986
|
-
# The given name of the person.
|
|
3987
|
-
attr_accessor :given_name
|
|
3988
|
-
|
|
3989
|
-
def initialize(family_name: nil, given_name: nil)
|
|
3990
|
-
@family_name = family_name
|
|
3991
|
-
@given_name = given_name
|
|
3992
|
-
end
|
|
3993
|
-
end
|
|
3994
|
-
# Name of associated or partner company for the service.
|
|
3995
|
-
attr_accessor :affiliate_name
|
|
3996
|
-
# Arrival details.
|
|
3997
|
-
attr_accessor :arrival
|
|
3998
|
-
# Name of transportation company.
|
|
3999
|
-
attr_accessor :carrier_name
|
|
4000
|
-
# Currency.
|
|
4001
|
-
attr_accessor :currency
|
|
4002
|
-
# Departure details.
|
|
4003
|
-
attr_accessor :departure
|
|
4004
|
-
# List of insurances for this reservation.
|
|
4005
|
-
attr_accessor :insurances
|
|
4006
|
-
# List of passengers that this reservation applies to.
|
|
4007
|
-
attr_accessor :passengers
|
|
4008
|
-
# Price in cents.
|
|
4009
|
-
attr_accessor :price
|
|
4010
|
-
# Ticket class.
|
|
4011
|
-
attr_accessor :ticket_class
|
|
4012
|
-
|
|
4013
|
-
def initialize(
|
|
4014
|
-
affiliate_name: nil,
|
|
4015
|
-
arrival: nil,
|
|
4016
|
-
carrier_name: nil,
|
|
4017
|
-
currency: nil,
|
|
4018
|
-
departure: nil,
|
|
4019
|
-
insurances: nil,
|
|
4020
|
-
passengers: nil,
|
|
4021
|
-
price: nil,
|
|
4022
|
-
ticket_class: nil
|
|
4023
|
-
)
|
|
4024
|
-
@affiliate_name = affiliate_name
|
|
4025
|
-
@arrival = arrival
|
|
4026
|
-
@carrier_name = carrier_name
|
|
4027
|
-
@currency = currency
|
|
4028
|
-
@departure = departure
|
|
4029
|
-
@insurances = insurances
|
|
4030
|
-
@passengers = passengers
|
|
4031
|
-
@price = price
|
|
4032
|
-
@ticket_class = ticket_class
|
|
4033
|
-
end
|
|
4034
|
-
end
|
|
4035
|
-
|
|
4036
|
-
class Insurance < ::Stripe::RequestParams
|
|
4037
|
-
# Insurance currency.
|
|
4038
|
-
attr_accessor :currency
|
|
4039
|
-
# Name of the company providing the insurance.
|
|
4040
|
-
attr_accessor :insurance_company_name
|
|
4041
|
-
# Type of insurance
|
|
4042
|
-
attr_accessor :insurance_type
|
|
4043
|
-
# Price of insurance in cents.
|
|
4044
|
-
attr_accessor :price
|
|
4045
|
-
|
|
4046
|
-
def initialize(
|
|
4047
|
-
currency: nil,
|
|
4048
|
-
insurance_company_name: nil,
|
|
4049
|
-
insurance_type: nil,
|
|
4050
|
-
price: nil
|
|
4051
|
-
)
|
|
4052
|
-
@currency = currency
|
|
4053
|
-
@insurance_company_name = insurance_company_name
|
|
4054
|
-
@insurance_type = insurance_type
|
|
4055
|
-
@price = price
|
|
4056
|
-
end
|
|
4057
|
-
end
|
|
4058
|
-
|
|
4059
|
-
class MarketplaceSeller < ::Stripe::RequestParams
|
|
4060
|
-
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
4061
|
-
# The city or town.
|
|
4062
|
-
attr_accessor :city
|
|
4063
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4064
|
-
attr_accessor :country
|
|
4065
|
-
# The postal code formatted according to country.
|
|
4066
|
-
attr_accessor :postal_code
|
|
4067
|
-
# The state, county, province, or region formatted according to country.
|
|
4068
|
-
attr_accessor :region
|
|
4069
|
-
# Line 1 of the street address.
|
|
4070
|
-
attr_accessor :street_address
|
|
4071
|
-
# Line 2 of the street address.
|
|
4072
|
-
attr_accessor :street_address2
|
|
4073
|
-
|
|
4074
|
-
def initialize(
|
|
4075
|
-
city: nil,
|
|
4076
|
-
country: nil,
|
|
4077
|
-
postal_code: nil,
|
|
4078
|
-
region: nil,
|
|
4079
|
-
street_address: nil,
|
|
4080
|
-
street_address2: nil
|
|
4081
|
-
)
|
|
4082
|
-
@city = city
|
|
4083
|
-
@country = country
|
|
4084
|
-
@postal_code = postal_code
|
|
4085
|
-
@region = region
|
|
4086
|
-
@street_address = street_address
|
|
4087
|
-
@street_address2 = street_address2
|
|
4088
|
-
end
|
|
4089
|
-
end
|
|
4090
|
-
# The references to line items for purchases with multiple associated sub-sellers.
|
|
4091
|
-
attr_accessor :line_item_references
|
|
4092
|
-
# The address of the selling or delivering merchant.
|
|
4093
|
-
attr_accessor :marketplace_seller_address
|
|
4094
|
-
# The name of the marketplace seller.
|
|
4095
|
-
attr_accessor :marketplace_seller_name
|
|
4096
|
-
# The unique identifier for the marketplace seller.
|
|
4097
|
-
attr_accessor :marketplace_seller_reference
|
|
4098
|
-
# The number of transactions the sub-seller completed in the last 12 months.
|
|
4099
|
-
attr_accessor :number_of_transactions
|
|
4100
|
-
# The category of the product.
|
|
4101
|
-
attr_accessor :product_category
|
|
4102
|
-
# The date when the seller's account with the marketplace was last logged in.
|
|
4103
|
-
attr_accessor :seller_last_login_at
|
|
4104
|
-
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
4105
|
-
attr_accessor :seller_rating
|
|
4106
|
-
# The date when the seller's account with the marketplace was created.
|
|
4107
|
-
attr_accessor :seller_registered_at
|
|
4108
|
-
# The date when the seller's account with the marketplace was last updated.
|
|
4109
|
-
attr_accessor :seller_updated_at
|
|
4110
|
-
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
4111
|
-
attr_accessor :shipping_references
|
|
4112
|
-
# 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.
|
|
4113
|
-
attr_accessor :volume_of_transactions
|
|
4114
|
-
|
|
4115
|
-
def initialize(
|
|
4116
|
-
line_item_references: nil,
|
|
4117
|
-
marketplace_seller_address: nil,
|
|
4118
|
-
marketplace_seller_name: nil,
|
|
4119
|
-
marketplace_seller_reference: nil,
|
|
4120
|
-
number_of_transactions: nil,
|
|
4121
|
-
product_category: nil,
|
|
4122
|
-
seller_last_login_at: nil,
|
|
4123
|
-
seller_rating: nil,
|
|
4124
|
-
seller_registered_at: nil,
|
|
4125
|
-
seller_updated_at: nil,
|
|
4126
|
-
shipping_references: nil,
|
|
4127
|
-
volume_of_transactions: nil
|
|
4128
|
-
)
|
|
4129
|
-
@line_item_references = line_item_references
|
|
4130
|
-
@marketplace_seller_address = marketplace_seller_address
|
|
4131
|
-
@marketplace_seller_name = marketplace_seller_name
|
|
4132
|
-
@marketplace_seller_reference = marketplace_seller_reference
|
|
4133
|
-
@number_of_transactions = number_of_transactions
|
|
4134
|
-
@product_category = product_category
|
|
4135
|
-
@seller_last_login_at = seller_last_login_at
|
|
4136
|
-
@seller_rating = seller_rating
|
|
4137
|
-
@seller_registered_at = seller_registered_at
|
|
4138
|
-
@seller_updated_at = seller_updated_at
|
|
4139
|
-
@shipping_references = shipping_references
|
|
4140
|
-
@volume_of_transactions = volume_of_transactions
|
|
4141
|
-
end
|
|
4142
|
-
end
|
|
4143
|
-
|
|
4144
|
-
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
4145
|
-
class Arrival < ::Stripe::RequestParams
|
|
4146
|
-
class Address < ::Stripe::RequestParams
|
|
4147
|
-
# The city or town.
|
|
4148
|
-
attr_accessor :city
|
|
4149
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4150
|
-
attr_accessor :country
|
|
4151
|
-
# The postal code formatted according to country.
|
|
4152
|
-
attr_accessor :postal_code
|
|
4153
|
-
# The state, county, province, or region formatted according to country.
|
|
4154
|
-
attr_accessor :region
|
|
4155
|
-
# Line 1 of the street address.
|
|
4156
|
-
attr_accessor :street_address
|
|
4157
|
-
# Line 2 of the street address.
|
|
4158
|
-
attr_accessor :street_address2
|
|
4159
|
-
|
|
4160
|
-
def initialize(
|
|
4161
|
-
city: nil,
|
|
4162
|
-
country: nil,
|
|
4163
|
-
postal_code: nil,
|
|
4164
|
-
region: nil,
|
|
4165
|
-
street_address: nil,
|
|
4166
|
-
street_address2: nil
|
|
4167
|
-
)
|
|
4168
|
-
@city = city
|
|
4169
|
-
@country = country
|
|
4170
|
-
@postal_code = postal_code
|
|
4171
|
-
@region = region
|
|
4172
|
-
@street_address = street_address
|
|
4173
|
-
@street_address2 = street_address2
|
|
4174
|
-
end
|
|
4175
|
-
end
|
|
4176
|
-
# Address of the arrival location.
|
|
4177
|
-
attr_accessor :address
|
|
4178
|
-
# Identifier name or reference for the arrival location.
|
|
4179
|
-
attr_accessor :arrival_location
|
|
4180
|
-
|
|
4181
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4182
|
-
@address = address
|
|
4183
|
-
@arrival_location = arrival_location
|
|
4184
|
-
end
|
|
4185
|
-
end
|
|
4186
|
-
|
|
4187
|
-
class Departure < ::Stripe::RequestParams
|
|
4188
|
-
class Address < ::Stripe::RequestParams
|
|
4189
|
-
# The city or town.
|
|
4190
|
-
attr_accessor :city
|
|
4191
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4192
|
-
attr_accessor :country
|
|
4193
|
-
# The postal code formatted according to country.
|
|
4194
|
-
attr_accessor :postal_code
|
|
4195
|
-
# The state, county, province, or region formatted according to country.
|
|
4196
|
-
attr_accessor :region
|
|
4197
|
-
# Line 1 of the street address.
|
|
4198
|
-
attr_accessor :street_address
|
|
4199
|
-
# Line 2 of the street address.
|
|
4200
|
-
attr_accessor :street_address2
|
|
4201
|
-
|
|
4202
|
-
def initialize(
|
|
4203
|
-
city: nil,
|
|
4204
|
-
country: nil,
|
|
4205
|
-
postal_code: nil,
|
|
4206
|
-
region: nil,
|
|
4207
|
-
street_address: nil,
|
|
4208
|
-
street_address2: nil
|
|
4209
|
-
)
|
|
4210
|
-
@city = city
|
|
4211
|
-
@country = country
|
|
4212
|
-
@postal_code = postal_code
|
|
4213
|
-
@region = region
|
|
4214
|
-
@street_address = street_address
|
|
4215
|
-
@street_address2 = street_address2
|
|
4216
|
-
end
|
|
4217
|
-
end
|
|
4218
|
-
# Address of the departure location.
|
|
4219
|
-
attr_accessor :address
|
|
4220
|
-
# Timestamp of departure.
|
|
4221
|
-
attr_accessor :departs_at
|
|
4222
|
-
# Identifier name or reference for the origin location.
|
|
4223
|
-
attr_accessor :departure_location
|
|
4224
|
-
|
|
4225
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4226
|
-
@address = address
|
|
4227
|
-
@departs_at = departs_at
|
|
4228
|
-
@departure_location = departure_location
|
|
4229
|
-
end
|
|
4230
|
-
end
|
|
4231
|
-
|
|
4232
|
-
class Insurance < ::Stripe::RequestParams
|
|
4233
|
-
# Insurance currency.
|
|
4234
|
-
attr_accessor :currency
|
|
4235
|
-
# Name of the company providing the insurance.
|
|
4236
|
-
attr_accessor :insurance_company_name
|
|
4237
|
-
# Type of insurance.
|
|
4238
|
-
attr_accessor :insurance_type
|
|
4239
|
-
# Price of insurance in cents.
|
|
4240
|
-
attr_accessor :price
|
|
4241
|
-
|
|
4242
|
-
def initialize(
|
|
4243
|
-
currency: nil,
|
|
4244
|
-
insurance_company_name: nil,
|
|
4245
|
-
insurance_type: nil,
|
|
4246
|
-
price: nil
|
|
4247
|
-
)
|
|
4248
|
-
@currency = currency
|
|
4249
|
-
@insurance_company_name = insurance_company_name
|
|
4250
|
-
@insurance_type = insurance_type
|
|
4251
|
-
@price = price
|
|
4252
|
-
end
|
|
4253
|
-
end
|
|
4254
|
-
|
|
4255
|
-
class Passenger < ::Stripe::RequestParams
|
|
4256
|
-
# The family name of the person.
|
|
4257
|
-
attr_accessor :family_name
|
|
4258
|
-
# The given name of the person.
|
|
4259
|
-
attr_accessor :given_name
|
|
4260
|
-
|
|
4261
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4262
|
-
@family_name = family_name
|
|
4263
|
-
@given_name = given_name
|
|
4264
|
-
end
|
|
4265
|
-
end
|
|
4266
|
-
# Name of associated or partner company for the service.
|
|
4267
|
-
attr_accessor :affiliate_name
|
|
4268
|
-
# Arrival details.
|
|
4269
|
-
attr_accessor :arrival
|
|
4270
|
-
# Name of transportation company.
|
|
4271
|
-
attr_accessor :carrier_name
|
|
4272
|
-
# Currency.
|
|
4273
|
-
attr_accessor :currency
|
|
4274
|
-
# Departure details.
|
|
4275
|
-
attr_accessor :departure
|
|
4276
|
-
# List of insurances for this reservation.
|
|
4277
|
-
attr_accessor :insurances
|
|
4278
|
-
# List of passengers that this reservation applies to.
|
|
4279
|
-
attr_accessor :passengers
|
|
4280
|
-
# Price in cents.
|
|
4281
|
-
attr_accessor :price
|
|
4282
|
-
# Ticket class.
|
|
4283
|
-
attr_accessor :ticket_class
|
|
4284
|
-
|
|
4285
|
-
def initialize(
|
|
4286
|
-
affiliate_name: nil,
|
|
4287
|
-
arrival: nil,
|
|
4288
|
-
carrier_name: nil,
|
|
4289
|
-
currency: nil,
|
|
4290
|
-
departure: nil,
|
|
4291
|
-
insurances: nil,
|
|
4292
|
-
passengers: nil,
|
|
4293
|
-
price: nil,
|
|
4294
|
-
ticket_class: nil
|
|
4295
|
-
)
|
|
4296
|
-
@affiliate_name = affiliate_name
|
|
4297
|
-
@arrival = arrival
|
|
4298
|
-
@carrier_name = carrier_name
|
|
4299
|
-
@currency = currency
|
|
4300
|
-
@departure = departure
|
|
4301
|
-
@insurances = insurances
|
|
4302
|
-
@passengers = passengers
|
|
4303
|
-
@price = price
|
|
4304
|
-
@ticket_class = ticket_class
|
|
4305
|
-
end
|
|
4306
|
-
end
|
|
4307
|
-
|
|
4308
|
-
class TrainReservationDetail < ::Stripe::RequestParams
|
|
4309
|
-
class Arrival < ::Stripe::RequestParams
|
|
4310
|
-
class Address < ::Stripe::RequestParams
|
|
4311
|
-
# The city or town.
|
|
4312
|
-
attr_accessor :city
|
|
4313
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4314
|
-
attr_accessor :country
|
|
4315
|
-
# The postal code formatted according to country.
|
|
4316
|
-
attr_accessor :postal_code
|
|
4317
|
-
# The state, county, province, or region formatted according to country.
|
|
4318
|
-
attr_accessor :region
|
|
4319
|
-
# Line 1 of the street address.
|
|
4320
|
-
attr_accessor :street_address
|
|
4321
|
-
# Line 2 of the street address.
|
|
4322
|
-
attr_accessor :street_address2
|
|
4323
|
-
|
|
4324
|
-
def initialize(
|
|
4325
|
-
city: nil,
|
|
4326
|
-
country: nil,
|
|
4327
|
-
postal_code: nil,
|
|
4328
|
-
region: nil,
|
|
4329
|
-
street_address: nil,
|
|
4330
|
-
street_address2: nil
|
|
4331
|
-
)
|
|
4332
|
-
@city = city
|
|
4333
|
-
@country = country
|
|
4334
|
-
@postal_code = postal_code
|
|
4335
|
-
@region = region
|
|
4336
|
-
@street_address = street_address
|
|
4337
|
-
@street_address2 = street_address2
|
|
4338
|
-
end
|
|
4339
|
-
end
|
|
4340
|
-
# Address of the arrival location.
|
|
4341
|
-
attr_accessor :address
|
|
4342
|
-
# Identifier name or reference for the arrival location.
|
|
4343
|
-
attr_accessor :arrival_location
|
|
4344
|
-
|
|
4345
|
-
def initialize(address: nil, arrival_location: nil)
|
|
4346
|
-
@address = address
|
|
4347
|
-
@arrival_location = arrival_location
|
|
4348
|
-
end
|
|
4349
|
-
end
|
|
4350
|
-
|
|
4351
|
-
class Departure < ::Stripe::RequestParams
|
|
4352
|
-
class Address < ::Stripe::RequestParams
|
|
4353
|
-
# The city or town.
|
|
4354
|
-
attr_accessor :city
|
|
4355
|
-
# The country in ISO 3166-1 alpha-2 format.
|
|
4356
|
-
attr_accessor :country
|
|
4357
|
-
# The postal code formatted according to country.
|
|
4358
|
-
attr_accessor :postal_code
|
|
4359
|
-
# The state, county, province, or region formatted according to country.
|
|
4360
|
-
attr_accessor :region
|
|
4361
|
-
# Line 1 of the street address.
|
|
4362
|
-
attr_accessor :street_address
|
|
4363
|
-
# Line 2 of the street address.
|
|
4364
|
-
attr_accessor :street_address2
|
|
4365
|
-
|
|
4366
|
-
def initialize(
|
|
4367
|
-
city: nil,
|
|
4368
|
-
country: nil,
|
|
4369
|
-
postal_code: nil,
|
|
4370
|
-
region: nil,
|
|
4371
|
-
street_address: nil,
|
|
4372
|
-
street_address2: nil
|
|
4373
|
-
)
|
|
4374
|
-
@city = city
|
|
4375
|
-
@country = country
|
|
4376
|
-
@postal_code = postal_code
|
|
4377
|
-
@region = region
|
|
4378
|
-
@street_address = street_address
|
|
4379
|
-
@street_address2 = street_address2
|
|
4380
|
-
end
|
|
4381
|
-
end
|
|
4382
|
-
# Address of the departure location.
|
|
4383
|
-
attr_accessor :address
|
|
4384
|
-
# Timestamp of departure.
|
|
4385
|
-
attr_accessor :departs_at
|
|
4386
|
-
# Identifier name or reference for the origin location.
|
|
4387
|
-
attr_accessor :departure_location
|
|
4388
|
-
|
|
4389
|
-
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
4390
|
-
@address = address
|
|
4391
|
-
@departs_at = departs_at
|
|
4392
|
-
@departure_location = departure_location
|
|
4393
|
-
end
|
|
4394
|
-
end
|
|
4395
|
-
|
|
4396
|
-
class Insurance < ::Stripe::RequestParams
|
|
4397
|
-
# Insurance currency.
|
|
4398
|
-
attr_accessor :currency
|
|
4399
|
-
# Name of the company providing the insurance.
|
|
4400
|
-
attr_accessor :insurance_company_name
|
|
4401
|
-
# Type of insurance.
|
|
4402
|
-
attr_accessor :insurance_type
|
|
4403
|
-
# Price of insurance in cents.
|
|
4404
|
-
attr_accessor :price
|
|
4405
|
-
|
|
4406
|
-
def initialize(
|
|
4407
|
-
currency: nil,
|
|
4408
|
-
insurance_company_name: nil,
|
|
4409
|
-
insurance_type: nil,
|
|
4410
|
-
price: nil
|
|
4411
|
-
)
|
|
4412
|
-
@currency = currency
|
|
4413
|
-
@insurance_company_name = insurance_company_name
|
|
4414
|
-
@insurance_type = insurance_type
|
|
4415
|
-
@price = price
|
|
4416
|
-
end
|
|
4417
|
-
end
|
|
4418
|
-
|
|
4419
|
-
class Passenger < ::Stripe::RequestParams
|
|
4420
|
-
# The family name of the person.
|
|
4421
|
-
attr_accessor :family_name
|
|
4422
|
-
# The given name of the person.
|
|
4423
|
-
attr_accessor :given_name
|
|
4424
|
-
|
|
4425
|
-
def initialize(family_name: nil, given_name: nil)
|
|
4426
|
-
@family_name = family_name
|
|
4427
|
-
@given_name = given_name
|
|
4428
|
-
end
|
|
4429
|
-
end
|
|
4430
|
-
# Name of associated or partner company for the service.
|
|
4431
|
-
attr_accessor :affiliate_name
|
|
4432
|
-
# Arrival details.
|
|
4433
|
-
attr_accessor :arrival
|
|
4434
|
-
# Name of transportation company.
|
|
4435
|
-
attr_accessor :carrier_name
|
|
4436
|
-
# Currency.
|
|
4437
|
-
attr_accessor :currency
|
|
4438
|
-
# Departure details.
|
|
4439
|
-
attr_accessor :departure
|
|
4440
|
-
# List of insurances for this reservation.
|
|
4441
|
-
attr_accessor :insurances
|
|
4442
|
-
# List of passengers that this reservation applies to.
|
|
4443
|
-
attr_accessor :passengers
|
|
4444
|
-
# Price in cents.
|
|
4445
|
-
attr_accessor :price
|
|
4446
|
-
# Ticket class.
|
|
4447
|
-
attr_accessor :ticket_class
|
|
4448
|
-
|
|
4449
|
-
def initialize(
|
|
4450
|
-
affiliate_name: nil,
|
|
4451
|
-
arrival: nil,
|
|
4452
|
-
carrier_name: nil,
|
|
4453
|
-
currency: nil,
|
|
4454
|
-
departure: nil,
|
|
4455
|
-
insurances: nil,
|
|
4456
|
-
passengers: nil,
|
|
4457
|
-
price: nil,
|
|
4458
|
-
ticket_class: nil
|
|
4459
|
-
)
|
|
4460
|
-
@affiliate_name = affiliate_name
|
|
4461
|
-
@arrival = arrival
|
|
4462
|
-
@carrier_name = carrier_name
|
|
4463
|
-
@currency = currency
|
|
4464
|
-
@departure = departure
|
|
4465
|
-
@insurances = insurances
|
|
4466
|
-
@passengers = passengers
|
|
4467
|
-
@price = price
|
|
4468
|
-
@ticket_class = ticket_class
|
|
4469
|
-
end
|
|
4470
|
-
end
|
|
4471
|
-
|
|
4472
|
-
class Voucher < ::Stripe::RequestParams
|
|
4473
|
-
# Name of associated or partner company for this voucher.
|
|
4474
|
-
attr_accessor :affiliate_name
|
|
4475
|
-
# The voucher validity end time.
|
|
4476
|
-
attr_accessor :ends_at
|
|
4477
|
-
# The voucher validity start time.
|
|
4478
|
-
attr_accessor :starts_at
|
|
4479
|
-
# The issuer or provider of this voucher.
|
|
4480
|
-
attr_accessor :voucher_company
|
|
4481
|
-
# The name or reference to identify the voucher.
|
|
4482
|
-
attr_accessor :voucher_name
|
|
4483
|
-
# The type of this voucher.
|
|
4484
|
-
attr_accessor :voucher_type
|
|
4485
|
-
|
|
4486
|
-
def initialize(
|
|
4487
|
-
affiliate_name: nil,
|
|
4488
|
-
ends_at: nil,
|
|
4489
|
-
starts_at: nil,
|
|
4490
|
-
voucher_company: nil,
|
|
4491
|
-
voucher_name: nil,
|
|
4492
|
-
voucher_type: nil
|
|
4493
|
-
)
|
|
4494
|
-
@affiliate_name = affiliate_name
|
|
4495
|
-
@ends_at = ends_at
|
|
4496
|
-
@starts_at = starts_at
|
|
4497
|
-
@voucher_company = voucher_company
|
|
4498
|
-
@voucher_name = voucher_name
|
|
4499
|
-
@voucher_type = voucher_type
|
|
4500
|
-
end
|
|
4501
|
-
end
|
|
4502
|
-
# Supplementary bus reservation details.
|
|
4503
|
-
attr_accessor :bus_reservation_details
|
|
4504
|
-
# Supplementary event reservation details.
|
|
4505
|
-
attr_accessor :event_reservation_details
|
|
4506
|
-
# Supplementary ferry reservation details.
|
|
4507
|
-
attr_accessor :ferry_reservation_details
|
|
4508
|
-
# Supplementary insurance details.
|
|
4509
|
-
attr_accessor :insurances
|
|
4510
|
-
# Supplementary marketplace seller details.
|
|
4511
|
-
attr_accessor :marketplace_sellers
|
|
4512
|
-
# Supplementary round trip reservation details.
|
|
4513
|
-
attr_accessor :round_trip_reservation_details
|
|
4514
|
-
# Supplementary train reservation details.
|
|
4515
|
-
attr_accessor :train_reservation_details
|
|
4516
|
-
# Voucher details, such as a gift card or discount code.
|
|
4517
|
-
attr_accessor :vouchers
|
|
4518
|
-
|
|
4519
|
-
def initialize(
|
|
4520
|
-
bus_reservation_details: nil,
|
|
4521
|
-
event_reservation_details: nil,
|
|
4522
|
-
ferry_reservation_details: nil,
|
|
4523
|
-
insurances: nil,
|
|
4524
|
-
marketplace_sellers: nil,
|
|
4525
|
-
round_trip_reservation_details: nil,
|
|
4526
|
-
train_reservation_details: nil,
|
|
4527
|
-
vouchers: nil
|
|
4528
|
-
)
|
|
4529
|
-
@bus_reservation_details = bus_reservation_details
|
|
4530
|
-
@event_reservation_details = event_reservation_details
|
|
4531
|
-
@ferry_reservation_details = ferry_reservation_details
|
|
4532
|
-
@insurances = insurances
|
|
4533
|
-
@marketplace_sellers = marketplace_sellers
|
|
4534
|
-
@round_trip_reservation_details = round_trip_reservation_details
|
|
4535
|
-
@train_reservation_details = train_reservation_details
|
|
4536
|
-
@vouchers = vouchers
|
|
4537
|
-
end
|
|
4538
|
-
end
|
|
4539
1778
|
# Controls when the funds are captured from the customer's account.
|
|
4540
1779
|
#
|
|
4541
1780
|
# 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.
|
|
@@ -4558,23 +1797,19 @@ module Stripe
|
|
|
4558
1797
|
attr_accessor :setup_future_usage
|
|
4559
1798
|
# Subscription details if setting up or charging a subscription.
|
|
4560
1799
|
attr_accessor :subscriptions
|
|
4561
|
-
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
4562
|
-
attr_accessor :supplementary_purchase_data
|
|
4563
1800
|
|
|
4564
1801
|
def initialize(
|
|
4565
1802
|
capture_method: nil,
|
|
4566
1803
|
on_demand: nil,
|
|
4567
1804
|
preferred_locale: nil,
|
|
4568
1805
|
setup_future_usage: nil,
|
|
4569
|
-
subscriptions: nil
|
|
4570
|
-
supplementary_purchase_data: nil
|
|
1806
|
+
subscriptions: nil
|
|
4571
1807
|
)
|
|
4572
1808
|
@capture_method = capture_method
|
|
4573
1809
|
@on_demand = on_demand
|
|
4574
1810
|
@preferred_locale = preferred_locale
|
|
4575
1811
|
@setup_future_usage = setup_future_usage
|
|
4576
1812
|
@subscriptions = subscriptions
|
|
4577
|
-
@supplementary_purchase_data = supplementary_purchase_data
|
|
4578
1813
|
end
|
|
4579
1814
|
end
|
|
4580
1815
|
|
|
@@ -4844,65 +2079,12 @@ module Stripe
|
|
|
4844
2079
|
end
|
|
4845
2080
|
|
|
4846
2081
|
class Paypal < ::Stripe::RequestParams
|
|
4847
|
-
class LineItem < ::Stripe::RequestParams
|
|
4848
|
-
class Tax < ::Stripe::RequestParams
|
|
4849
|
-
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4850
|
-
attr_accessor :amount
|
|
4851
|
-
# The tax behavior for the line item.
|
|
4852
|
-
attr_accessor :behavior
|
|
4853
|
-
|
|
4854
|
-
def initialize(amount: nil, behavior: nil)
|
|
4855
|
-
@amount = amount
|
|
4856
|
-
@behavior = behavior
|
|
4857
|
-
end
|
|
4858
|
-
end
|
|
4859
|
-
# Type of the line item.
|
|
4860
|
-
attr_accessor :category
|
|
4861
|
-
# Description of the line item.
|
|
4862
|
-
attr_accessor :description
|
|
4863
|
-
# Descriptive name of the line item.
|
|
4864
|
-
attr_accessor :name
|
|
4865
|
-
# Quantity of the line item. Must be a positive number.
|
|
4866
|
-
attr_accessor :quantity
|
|
4867
|
-
# Client facing stock keeping unit, article number or similar.
|
|
4868
|
-
attr_accessor :sku
|
|
4869
|
-
# The Stripe account ID of the connected account that sells the item.
|
|
4870
|
-
attr_accessor :sold_by
|
|
4871
|
-
# The tax information for the line item.
|
|
4872
|
-
attr_accessor :tax
|
|
4873
|
-
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
4874
|
-
attr_accessor :unit_amount
|
|
4875
|
-
|
|
4876
|
-
def initialize(
|
|
4877
|
-
category: nil,
|
|
4878
|
-
description: nil,
|
|
4879
|
-
name: nil,
|
|
4880
|
-
quantity: nil,
|
|
4881
|
-
sku: nil,
|
|
4882
|
-
sold_by: nil,
|
|
4883
|
-
tax: nil,
|
|
4884
|
-
unit_amount: nil
|
|
4885
|
-
)
|
|
4886
|
-
@category = category
|
|
4887
|
-
@description = description
|
|
4888
|
-
@name = name
|
|
4889
|
-
@quantity = quantity
|
|
4890
|
-
@sku = sku
|
|
4891
|
-
@sold_by = sold_by
|
|
4892
|
-
@tax = tax
|
|
4893
|
-
@unit_amount = unit_amount
|
|
4894
|
-
end
|
|
4895
|
-
end
|
|
4896
2082
|
# Controls when the funds will be captured from the customer's account.
|
|
4897
2083
|
attr_accessor :capture_method
|
|
4898
|
-
# The line items purchased by the customer.
|
|
4899
|
-
attr_accessor :line_items
|
|
4900
2084
|
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
4901
2085
|
attr_accessor :preferred_locale
|
|
4902
2086
|
# 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.
|
|
4903
2087
|
attr_accessor :reference
|
|
4904
|
-
# 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.
|
|
4905
|
-
attr_accessor :reference_id
|
|
4906
2088
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
4907
2089
|
attr_accessor :risk_correlation_id
|
|
4908
2090
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -4915,27 +2097,19 @@ module Stripe
|
|
|
4915
2097
|
#
|
|
4916
2098
|
# 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`.
|
|
4917
2099
|
attr_accessor :setup_future_usage
|
|
4918
|
-
# 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.
|
|
4919
|
-
attr_accessor :subsellers
|
|
4920
2100
|
|
|
4921
2101
|
def initialize(
|
|
4922
2102
|
capture_method: nil,
|
|
4923
|
-
line_items: nil,
|
|
4924
2103
|
preferred_locale: nil,
|
|
4925
2104
|
reference: nil,
|
|
4926
|
-
reference_id: nil,
|
|
4927
2105
|
risk_correlation_id: nil,
|
|
4928
|
-
setup_future_usage: nil
|
|
4929
|
-
subsellers: nil
|
|
2106
|
+
setup_future_usage: nil
|
|
4930
2107
|
)
|
|
4931
2108
|
@capture_method = capture_method
|
|
4932
|
-
@line_items = line_items
|
|
4933
2109
|
@preferred_locale = preferred_locale
|
|
4934
2110
|
@reference = reference
|
|
4935
|
-
@reference_id = reference_id
|
|
4936
2111
|
@risk_correlation_id = risk_correlation_id
|
|
4937
2112
|
@setup_future_usage = setup_future_usage
|
|
4938
|
-
@subsellers = subsellers
|
|
4939
2113
|
end
|
|
4940
2114
|
end
|
|
4941
2115
|
|
|
@@ -5079,25 +2253,6 @@ module Stripe
|
|
|
5079
2253
|
end
|
|
5080
2254
|
end
|
|
5081
2255
|
|
|
5082
|
-
class Qris < ::Stripe::RequestParams
|
|
5083
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5084
|
-
#
|
|
5085
|
-
# 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.
|
|
5086
|
-
#
|
|
5087
|
-
# 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.
|
|
5088
|
-
#
|
|
5089
|
-
# 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).
|
|
5090
|
-
#
|
|
5091
|
-
# 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`.
|
|
5092
|
-
attr_accessor :setup_future_usage
|
|
5093
|
-
|
|
5094
|
-
def initialize(setup_future_usage: nil)
|
|
5095
|
-
@setup_future_usage = setup_future_usage
|
|
5096
|
-
end
|
|
5097
|
-
end
|
|
5098
|
-
|
|
5099
|
-
class Rechnung < ::Stripe::RequestParams; end
|
|
5100
|
-
|
|
5101
2256
|
class RevolutPay < ::Stripe::RequestParams
|
|
5102
2257
|
# Controls when the funds are captured from the customer's account.
|
|
5103
2258
|
#
|
|
@@ -5232,23 +2387,6 @@ module Stripe
|
|
|
5232
2387
|
end
|
|
5233
2388
|
end
|
|
5234
2389
|
|
|
5235
|
-
class Shopeepay < ::Stripe::RequestParams
|
|
5236
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5237
|
-
#
|
|
5238
|
-
# 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.
|
|
5239
|
-
#
|
|
5240
|
-
# 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.
|
|
5241
|
-
#
|
|
5242
|
-
# 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).
|
|
5243
|
-
#
|
|
5244
|
-
# 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`.
|
|
5245
|
-
attr_accessor :setup_future_usage
|
|
5246
|
-
|
|
5247
|
-
def initialize(setup_future_usage: nil)
|
|
5248
|
-
@setup_future_usage = setup_future_usage
|
|
5249
|
-
end
|
|
5250
|
-
end
|
|
5251
|
-
|
|
5252
2390
|
class Sofort < ::Stripe::RequestParams
|
|
5253
2391
|
# Language shown to the payer on redirect.
|
|
5254
2392
|
attr_accessor :preferred_language
|
|
@@ -5269,23 +2407,6 @@ module Stripe
|
|
|
5269
2407
|
end
|
|
5270
2408
|
end
|
|
5271
2409
|
|
|
5272
|
-
class StripeBalance < ::Stripe::RequestParams
|
|
5273
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5274
|
-
#
|
|
5275
|
-
# 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.
|
|
5276
|
-
#
|
|
5277
|
-
# 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.
|
|
5278
|
-
#
|
|
5279
|
-
# 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).
|
|
5280
|
-
#
|
|
5281
|
-
# 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`.
|
|
5282
|
-
attr_accessor :setup_future_usage
|
|
5283
|
-
|
|
5284
|
-
def initialize(setup_future_usage: nil)
|
|
5285
|
-
@setup_future_usage = setup_future_usage
|
|
5286
|
-
end
|
|
5287
|
-
end
|
|
5288
|
-
|
|
5289
2410
|
class Sunbit < ::Stripe::RequestParams
|
|
5290
2411
|
# Controls when the funds are captured from the customer's account.
|
|
5291
2412
|
#
|
|
@@ -5379,27 +2500,13 @@ module Stripe
|
|
|
5379
2500
|
class Filters < ::Stripe::RequestParams
|
|
5380
2501
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
5381
2502
|
attr_accessor :account_subcategories
|
|
5382
|
-
# ID of the institution to use to filter for selectable accounts.
|
|
5383
|
-
attr_accessor :institution
|
|
5384
2503
|
|
|
5385
|
-
def initialize(account_subcategories: nil
|
|
2504
|
+
def initialize(account_subcategories: nil)
|
|
5386
2505
|
@account_subcategories = account_subcategories
|
|
5387
|
-
@institution = institution
|
|
5388
|
-
end
|
|
5389
|
-
end
|
|
5390
|
-
|
|
5391
|
-
class ManualEntry < ::Stripe::RequestParams
|
|
5392
|
-
# Settings for configuring manual entry of account details.
|
|
5393
|
-
attr_accessor :mode
|
|
5394
|
-
|
|
5395
|
-
def initialize(mode: nil)
|
|
5396
|
-
@mode = mode
|
|
5397
2506
|
end
|
|
5398
2507
|
end
|
|
5399
2508
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
5400
2509
|
attr_accessor :filters
|
|
5401
|
-
# Customize manual entry behavior
|
|
5402
|
-
attr_accessor :manual_entry
|
|
5403
2510
|
# 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`.
|
|
5404
2511
|
attr_accessor :permissions
|
|
5405
2512
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -5407,15 +2514,8 @@ module Stripe
|
|
|
5407
2514
|
# 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.
|
|
5408
2515
|
attr_accessor :return_url
|
|
5409
2516
|
|
|
5410
|
-
def initialize(
|
|
5411
|
-
filters: nil,
|
|
5412
|
-
manual_entry: nil,
|
|
5413
|
-
permissions: nil,
|
|
5414
|
-
prefetch: nil,
|
|
5415
|
-
return_url: nil
|
|
5416
|
-
)
|
|
2517
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
|
5417
2518
|
@filters = filters
|
|
5418
|
-
@manual_entry = manual_entry
|
|
5419
2519
|
@permissions = permissions
|
|
5420
2520
|
@prefetch = prefetch
|
|
5421
2521
|
@return_url = return_url
|
|
@@ -5504,23 +2604,6 @@ module Stripe
|
|
|
5504
2604
|
end
|
|
5505
2605
|
end
|
|
5506
2606
|
|
|
5507
|
-
class Wero < ::Stripe::RequestParams
|
|
5508
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5509
|
-
#
|
|
5510
|
-
# 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.
|
|
5511
|
-
#
|
|
5512
|
-
# 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.
|
|
5513
|
-
#
|
|
5514
|
-
# 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).
|
|
5515
|
-
#
|
|
5516
|
-
# 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`.
|
|
5517
|
-
attr_accessor :setup_future_usage
|
|
5518
|
-
|
|
5519
|
-
def initialize(setup_future_usage: nil)
|
|
5520
|
-
@setup_future_usage = setup_future_usage
|
|
5521
|
-
end
|
|
5522
|
-
end
|
|
5523
|
-
|
|
5524
2607
|
class Zip < ::Stripe::RequestParams
|
|
5525
2608
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5526
2609
|
#
|
|
@@ -5579,12 +2662,8 @@ module Stripe
|
|
|
5579
2662
|
attr_accessor :fpx
|
|
5580
2663
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
5581
2664
|
attr_accessor :giropay
|
|
5582
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
5583
|
-
attr_accessor :gopay
|
|
5584
2665
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
5585
2666
|
attr_accessor :grabpay
|
|
5586
|
-
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
5587
|
-
attr_accessor :id_bank_transfer
|
|
5588
2667
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
5589
2668
|
attr_accessor :ideal
|
|
5590
2669
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -5629,10 +2708,6 @@ module Stripe
|
|
|
5629
2708
|
attr_accessor :pix
|
|
5630
2709
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
5631
2710
|
attr_accessor :promptpay
|
|
5632
|
-
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
5633
|
-
attr_accessor :qris
|
|
5634
|
-
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
5635
|
-
attr_accessor :rechnung
|
|
5636
2711
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
5637
2712
|
attr_accessor :revolut_pay
|
|
5638
2713
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -5645,12 +2720,8 @@ module Stripe
|
|
|
5645
2720
|
attr_accessor :sepa_debit
|
|
5646
2721
|
# If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
|
|
5647
2722
|
attr_accessor :sequra
|
|
5648
|
-
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
5649
|
-
attr_accessor :shopeepay
|
|
5650
2723
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
5651
2724
|
attr_accessor :sofort
|
|
5652
|
-
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
5653
|
-
attr_accessor :stripe_balance
|
|
5654
2725
|
# If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
|
|
5655
2726
|
attr_accessor :sunbit
|
|
5656
2727
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
@@ -5663,8 +2734,6 @@ module Stripe
|
|
|
5663
2734
|
attr_accessor :us_bank_account
|
|
5664
2735
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
5665
2736
|
attr_accessor :wechat_pay
|
|
5666
|
-
# If this is a `wero` PaymentMethod, this sub-hash contains details about the Wero payment method options.
|
|
5667
|
-
attr_accessor :wero
|
|
5668
2737
|
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
|
|
5669
2738
|
attr_accessor :zip
|
|
5670
2739
|
|
|
@@ -5690,9 +2759,7 @@ module Stripe
|
|
|
5690
2759
|
eps: nil,
|
|
5691
2760
|
fpx: nil,
|
|
5692
2761
|
giropay: nil,
|
|
5693
|
-
gopay: nil,
|
|
5694
2762
|
grabpay: nil,
|
|
5695
|
-
id_bank_transfer: nil,
|
|
5696
2763
|
ideal: nil,
|
|
5697
2764
|
interac_present: nil,
|
|
5698
2765
|
kakao_pay: nil,
|
|
@@ -5715,24 +2782,19 @@ module Stripe
|
|
|
5715
2782
|
payto: nil,
|
|
5716
2783
|
pix: nil,
|
|
5717
2784
|
promptpay: nil,
|
|
5718
|
-
qris: nil,
|
|
5719
|
-
rechnung: nil,
|
|
5720
2785
|
revolut_pay: nil,
|
|
5721
2786
|
samsung_pay: nil,
|
|
5722
2787
|
satispay: nil,
|
|
5723
2788
|
scalapay: nil,
|
|
5724
2789
|
sepa_debit: nil,
|
|
5725
2790
|
sequra: nil,
|
|
5726
|
-
shopeepay: nil,
|
|
5727
2791
|
sofort: nil,
|
|
5728
|
-
stripe_balance: nil,
|
|
5729
2792
|
sunbit: nil,
|
|
5730
2793
|
swish: nil,
|
|
5731
2794
|
twint: nil,
|
|
5732
2795
|
upi: nil,
|
|
5733
2796
|
us_bank_account: nil,
|
|
5734
2797
|
wechat_pay: nil,
|
|
5735
|
-
wero: nil,
|
|
5736
2798
|
zip: nil
|
|
5737
2799
|
)
|
|
5738
2800
|
@acss_debit = acss_debit
|
|
@@ -5756,9 +2818,7 @@ module Stripe
|
|
|
5756
2818
|
@eps = eps
|
|
5757
2819
|
@fpx = fpx
|
|
5758
2820
|
@giropay = giropay
|
|
5759
|
-
@gopay = gopay
|
|
5760
2821
|
@grabpay = grabpay
|
|
5761
|
-
@id_bank_transfer = id_bank_transfer
|
|
5762
2822
|
@ideal = ideal
|
|
5763
2823
|
@interac_present = interac_present
|
|
5764
2824
|
@kakao_pay = kakao_pay
|
|
@@ -5781,24 +2841,19 @@ module Stripe
|
|
|
5781
2841
|
@payto = payto
|
|
5782
2842
|
@pix = pix
|
|
5783
2843
|
@promptpay = promptpay
|
|
5784
|
-
@qris = qris
|
|
5785
|
-
@rechnung = rechnung
|
|
5786
2844
|
@revolut_pay = revolut_pay
|
|
5787
2845
|
@samsung_pay = samsung_pay
|
|
5788
2846
|
@satispay = satispay
|
|
5789
2847
|
@scalapay = scalapay
|
|
5790
2848
|
@sepa_debit = sepa_debit
|
|
5791
2849
|
@sequra = sequra
|
|
5792
|
-
@shopeepay = shopeepay
|
|
5793
2850
|
@sofort = sofort
|
|
5794
|
-
@stripe_balance = stripe_balance
|
|
5795
2851
|
@sunbit = sunbit
|
|
5796
2852
|
@swish = swish
|
|
5797
2853
|
@twint = twint
|
|
5798
2854
|
@upi = upi
|
|
5799
2855
|
@us_bank_account = us_bank_account
|
|
5800
2856
|
@wechat_pay = wechat_pay
|
|
5801
|
-
@wero = wero
|
|
5802
2857
|
@zip = zip
|
|
5803
2858
|
end
|
|
5804
2859
|
end
|
|
@@ -5871,8 +2926,6 @@ module Stripe
|
|
|
5871
2926
|
attr_accessor :amount_details
|
|
5872
2927
|
# Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
|
|
5873
2928
|
attr_accessor :amount_to_confirm
|
|
5874
|
-
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
5875
|
-
attr_accessor :application_fee_amount
|
|
5876
2929
|
# Controls when the funds will be captured from the customer's account.
|
|
5877
2930
|
attr_accessor :capture_method
|
|
5878
2931
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
|
@@ -5885,8 +2938,6 @@ module Stripe
|
|
|
5885
2938
|
attr_accessor :excluded_payment_method_types
|
|
5886
2939
|
# Specifies which fields in the response should be expanded.
|
|
5887
2940
|
attr_accessor :expand
|
|
5888
|
-
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
5889
|
-
attr_accessor :fx_quote
|
|
5890
2941
|
# Automations to be run during the PaymentIntent lifecycle
|
|
5891
2942
|
attr_accessor :hooks
|
|
5892
2943
|
# ID of the mandate that's used for this payment.
|
|
@@ -5933,13 +2984,11 @@ module Stripe
|
|
|
5933
2984
|
allowed_payment_method_types: nil,
|
|
5934
2985
|
amount_details: nil,
|
|
5935
2986
|
amount_to_confirm: nil,
|
|
5936
|
-
application_fee_amount: nil,
|
|
5937
2987
|
capture_method: nil,
|
|
5938
2988
|
confirmation_token: nil,
|
|
5939
2989
|
error_on_requires_action: nil,
|
|
5940
2990
|
excluded_payment_method_types: nil,
|
|
5941
2991
|
expand: nil,
|
|
5942
|
-
fx_quote: nil,
|
|
5943
2992
|
hooks: nil,
|
|
5944
2993
|
mandate: nil,
|
|
5945
2994
|
mandate_data: nil,
|
|
@@ -5958,13 +3007,11 @@ module Stripe
|
|
|
5958
3007
|
@allowed_payment_method_types = allowed_payment_method_types
|
|
5959
3008
|
@amount_details = amount_details
|
|
5960
3009
|
@amount_to_confirm = amount_to_confirm
|
|
5961
|
-
@application_fee_amount = application_fee_amount
|
|
5962
3010
|
@capture_method = capture_method
|
|
5963
3011
|
@confirmation_token = confirmation_token
|
|
5964
3012
|
@error_on_requires_action = error_on_requires_action
|
|
5965
3013
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
5966
3014
|
@expand = expand
|
|
5967
|
-
@fx_quote = fx_quote
|
|
5968
3015
|
@hooks = hooks
|
|
5969
3016
|
@mandate = mandate
|
|
5970
3017
|
@mandate_data = mandate_data
|