stripe 19.2.0 → 19.3.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +63 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +336 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -0
- data/lib/stripe/params/quote_create_params.rb +809 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +817 -4
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +67 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +78 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +92 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +426 -0
- data/lib/stripe/resources/account.rb +259 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/charge.rb +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1561 -8
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources.rb +417 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data_service.rb +15 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +8 -1
- data/lib/stripe/services.rb +209 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +582 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -60,6 +60,25 @@ module Stripe
|
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
class Surcharge < ::Stripe::StripeObject
|
|
64
|
+
# Portion of the amount that corresponds to a surcharge.
|
|
65
|
+
attr_reader :amount
|
|
66
|
+
# Indicate whether to enforce validations on the surcharge amount.
|
|
67
|
+
attr_reader :enforce_validation
|
|
68
|
+
# The maximum amount allowed for the surcharge.
|
|
69
|
+
attr_reader :maximum_amount
|
|
70
|
+
# The status of the surcharge.
|
|
71
|
+
attr_reader :status
|
|
72
|
+
|
|
73
|
+
def self.inner_class_types
|
|
74
|
+
@inner_class_types = {}
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def self.field_remappings
|
|
78
|
+
@field_remappings = {}
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
63
82
|
class Tax < ::Stripe::StripeObject
|
|
64
83
|
# 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.
|
|
65
84
|
#
|
|
@@ -97,13 +116,58 @@ module Stripe
|
|
|
97
116
|
attr_reader :line_items
|
|
98
117
|
# Attribute for field shipping
|
|
99
118
|
attr_reader :shipping
|
|
119
|
+
# Attribute for field surcharge
|
|
120
|
+
attr_reader :surcharge
|
|
100
121
|
# Attribute for field tax
|
|
101
122
|
attr_reader :tax
|
|
102
123
|
# Attribute for field tip
|
|
103
124
|
attr_reader :tip
|
|
104
125
|
|
|
105
126
|
def self.inner_class_types
|
|
106
|
-
@inner_class_types = {
|
|
127
|
+
@inner_class_types = {
|
|
128
|
+
error: Error,
|
|
129
|
+
shipping: Shipping,
|
|
130
|
+
surcharge: Surcharge,
|
|
131
|
+
tax: Tax,
|
|
132
|
+
tip: Tip,
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def self.field_remappings
|
|
137
|
+
@field_remappings = {}
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
class AsyncWorkflows < ::Stripe::StripeObject
|
|
142
|
+
class Inputs < ::Stripe::StripeObject
|
|
143
|
+
class Tax < ::Stripe::StripeObject
|
|
144
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
145
|
+
attr_reader :calculation
|
|
146
|
+
|
|
147
|
+
def self.inner_class_types
|
|
148
|
+
@inner_class_types = {}
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
def self.field_remappings
|
|
152
|
+
@field_remappings = {}
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
# Attribute for field tax
|
|
156
|
+
attr_reader :tax
|
|
157
|
+
|
|
158
|
+
def self.inner_class_types
|
|
159
|
+
@inner_class_types = { tax: Tax }
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
def self.field_remappings
|
|
163
|
+
@field_remappings = {}
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
# Attribute for field inputs
|
|
167
|
+
attr_reader :inputs
|
|
168
|
+
|
|
169
|
+
def self.inner_class_types
|
|
170
|
+
@inner_class_types = { inputs: Inputs }
|
|
107
171
|
end
|
|
108
172
|
|
|
109
173
|
def self.field_remappings
|
|
@@ -1278,23 +1342,1185 @@ module Stripe
|
|
|
1278
1342
|
}
|
|
1279
1343
|
end
|
|
1280
1344
|
|
|
1281
|
-
def self.field_remappings
|
|
1282
|
-
@field_remappings = {}
|
|
1345
|
+
def self.field_remappings
|
|
1346
|
+
@field_remappings = {}
|
|
1347
|
+
end
|
|
1348
|
+
end
|
|
1349
|
+
|
|
1350
|
+
class PaymentDetails < ::Stripe::StripeObject
|
|
1351
|
+
class CarRental < ::Stripe::StripeObject
|
|
1352
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1353
|
+
# The name of the affiliate that originated the purchase.
|
|
1354
|
+
attr_reader :name
|
|
1355
|
+
|
|
1356
|
+
def self.inner_class_types
|
|
1357
|
+
@inner_class_types = {}
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
def self.field_remappings
|
|
1361
|
+
@field_remappings = {}
|
|
1362
|
+
end
|
|
1363
|
+
end
|
|
1364
|
+
|
|
1365
|
+
class Delivery < ::Stripe::StripeObject
|
|
1366
|
+
class Recipient < ::Stripe::StripeObject
|
|
1367
|
+
# The email of the recipient the ticket is delivered to.
|
|
1368
|
+
attr_reader :email
|
|
1369
|
+
# The name of the recipient the ticket is delivered to.
|
|
1370
|
+
attr_reader :name
|
|
1371
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1372
|
+
attr_reader :phone
|
|
1373
|
+
|
|
1374
|
+
def self.inner_class_types
|
|
1375
|
+
@inner_class_types = {}
|
|
1376
|
+
end
|
|
1377
|
+
|
|
1378
|
+
def self.field_remappings
|
|
1379
|
+
@field_remappings = {}
|
|
1380
|
+
end
|
|
1381
|
+
end
|
|
1382
|
+
# The delivery method for the payment
|
|
1383
|
+
attr_reader :mode
|
|
1384
|
+
# Attribute for field recipient
|
|
1385
|
+
attr_reader :recipient
|
|
1386
|
+
|
|
1387
|
+
def self.inner_class_types
|
|
1388
|
+
@inner_class_types = { recipient: Recipient }
|
|
1389
|
+
end
|
|
1390
|
+
|
|
1391
|
+
def self.field_remappings
|
|
1392
|
+
@field_remappings = {}
|
|
1393
|
+
end
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
class Distance < ::Stripe::StripeObject
|
|
1397
|
+
# Distance traveled.
|
|
1398
|
+
attr_reader :amount
|
|
1399
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
|
1400
|
+
attr_reader :unit
|
|
1401
|
+
|
|
1402
|
+
def self.inner_class_types
|
|
1403
|
+
@inner_class_types = {}
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1406
|
+
def self.field_remappings
|
|
1407
|
+
@field_remappings = {}
|
|
1408
|
+
end
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
class Driver < ::Stripe::StripeObject
|
|
1412
|
+
# Driver's identification number.
|
|
1413
|
+
attr_reader :driver_identification_number
|
|
1414
|
+
# Driver's tax number.
|
|
1415
|
+
attr_reader :driver_tax_number
|
|
1416
|
+
# Full name of the driver on the reservation.
|
|
1417
|
+
attr_reader :name
|
|
1418
|
+
|
|
1419
|
+
def self.inner_class_types
|
|
1420
|
+
@inner_class_types = {}
|
|
1421
|
+
end
|
|
1422
|
+
|
|
1423
|
+
def self.field_remappings
|
|
1424
|
+
@field_remappings = {}
|
|
1425
|
+
end
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
class PickupAddress < ::Stripe::StripeObject
|
|
1429
|
+
# City, district, suburb, town, or village.
|
|
1430
|
+
attr_reader :city
|
|
1431
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1432
|
+
attr_reader :country
|
|
1433
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1434
|
+
attr_reader :line1
|
|
1435
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1436
|
+
attr_reader :line2
|
|
1437
|
+
# ZIP or postal code.
|
|
1438
|
+
attr_reader :postal_code
|
|
1439
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1440
|
+
attr_reader :state
|
|
1441
|
+
|
|
1442
|
+
def self.inner_class_types
|
|
1443
|
+
@inner_class_types = {}
|
|
1444
|
+
end
|
|
1445
|
+
|
|
1446
|
+
def self.field_remappings
|
|
1447
|
+
@field_remappings = {}
|
|
1448
|
+
end
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1451
|
+
class ReturnAddress < ::Stripe::StripeObject
|
|
1452
|
+
# City, district, suburb, town, or village.
|
|
1453
|
+
attr_reader :city
|
|
1454
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1455
|
+
attr_reader :country
|
|
1456
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1457
|
+
attr_reader :line1
|
|
1458
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1459
|
+
attr_reader :line2
|
|
1460
|
+
# ZIP or postal code.
|
|
1461
|
+
attr_reader :postal_code
|
|
1462
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1463
|
+
attr_reader :state
|
|
1464
|
+
|
|
1465
|
+
def self.inner_class_types
|
|
1466
|
+
@inner_class_types = {}
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
def self.field_remappings
|
|
1470
|
+
@field_remappings = {}
|
|
1471
|
+
end
|
|
1472
|
+
end
|
|
1473
|
+
# Attribute for field affiliate
|
|
1474
|
+
attr_reader :affiliate
|
|
1475
|
+
# The booking number associated with the car rental.
|
|
1476
|
+
attr_reader :booking_number
|
|
1477
|
+
# Class code of the car.
|
|
1478
|
+
attr_reader :car_class_code
|
|
1479
|
+
# Make of the car.
|
|
1480
|
+
attr_reader :car_make
|
|
1481
|
+
# Model of the car.
|
|
1482
|
+
attr_reader :car_model
|
|
1483
|
+
# The name of the rental car company.
|
|
1484
|
+
attr_reader :company
|
|
1485
|
+
# The customer service phone number of the car rental company.
|
|
1486
|
+
attr_reader :customer_service_phone_number
|
|
1487
|
+
# Number of days the car is being rented.
|
|
1488
|
+
attr_reader :days_rented
|
|
1489
|
+
# Attribute for field delivery
|
|
1490
|
+
attr_reader :delivery
|
|
1491
|
+
# Attribute for field distance
|
|
1492
|
+
attr_reader :distance
|
|
1493
|
+
# The details of the drivers associated with the trip.
|
|
1494
|
+
attr_reader :drivers
|
|
1495
|
+
# List of additional charges being billed.
|
|
1496
|
+
attr_reader :extra_charges
|
|
1497
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
1498
|
+
attr_reader :no_show
|
|
1499
|
+
# Attribute for field pickup_address
|
|
1500
|
+
attr_reader :pickup_address
|
|
1501
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
1502
|
+
attr_reader :pickup_at
|
|
1503
|
+
# Name of the pickup location.
|
|
1504
|
+
attr_reader :pickup_location_name
|
|
1505
|
+
# Rental rate.
|
|
1506
|
+
attr_reader :rate_amount
|
|
1507
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
1508
|
+
attr_reader :rate_interval
|
|
1509
|
+
# The full name of the person or entity renting the car.
|
|
1510
|
+
attr_reader :renter_name
|
|
1511
|
+
# Attribute for field return_address
|
|
1512
|
+
attr_reader :return_address
|
|
1513
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
1514
|
+
attr_reader :return_at
|
|
1515
|
+
# Name of the return location.
|
|
1516
|
+
attr_reader :return_location_name
|
|
1517
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
1518
|
+
attr_reader :tax_exempt
|
|
1519
|
+
# The vehicle identification number of the car.
|
|
1520
|
+
attr_reader :vehicle_identification_number
|
|
1521
|
+
|
|
1522
|
+
def self.inner_class_types
|
|
1523
|
+
@inner_class_types = {
|
|
1524
|
+
affiliate: Affiliate,
|
|
1525
|
+
delivery: Delivery,
|
|
1526
|
+
distance: Distance,
|
|
1527
|
+
drivers: Driver,
|
|
1528
|
+
pickup_address: PickupAddress,
|
|
1529
|
+
return_address: ReturnAddress,
|
|
1530
|
+
}
|
|
1531
|
+
end
|
|
1532
|
+
|
|
1533
|
+
def self.field_remappings
|
|
1534
|
+
@field_remappings = {}
|
|
1535
|
+
end
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1538
|
+
class CarRentalDatum < ::Stripe::StripeObject
|
|
1539
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1540
|
+
# Affiliate code.
|
|
1541
|
+
attr_reader :code
|
|
1542
|
+
# Affiliate name.
|
|
1543
|
+
attr_reader :name
|
|
1544
|
+
|
|
1545
|
+
def self.inner_class_types
|
|
1546
|
+
@inner_class_types = {}
|
|
1547
|
+
end
|
|
1548
|
+
|
|
1549
|
+
def self.field_remappings
|
|
1550
|
+
@field_remappings = {}
|
|
1551
|
+
end
|
|
1552
|
+
end
|
|
1553
|
+
|
|
1554
|
+
class Distance < ::Stripe::StripeObject
|
|
1555
|
+
# Distance amount.
|
|
1556
|
+
attr_reader :amount
|
|
1557
|
+
# Unit for the distance.
|
|
1558
|
+
attr_reader :unit
|
|
1559
|
+
|
|
1560
|
+
def self.inner_class_types
|
|
1561
|
+
@inner_class_types = {}
|
|
1562
|
+
end
|
|
1563
|
+
|
|
1564
|
+
def self.field_remappings
|
|
1565
|
+
@field_remappings = {}
|
|
1566
|
+
end
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
class Driver < ::Stripe::StripeObject
|
|
1570
|
+
class DateOfBirth < ::Stripe::StripeObject
|
|
1571
|
+
# Day of birth.
|
|
1572
|
+
attr_reader :day
|
|
1573
|
+
# Month of birth.
|
|
1574
|
+
attr_reader :month
|
|
1575
|
+
# Year of birth.
|
|
1576
|
+
attr_reader :year
|
|
1577
|
+
|
|
1578
|
+
def self.inner_class_types
|
|
1579
|
+
@inner_class_types = {}
|
|
1580
|
+
end
|
|
1581
|
+
|
|
1582
|
+
def self.field_remappings
|
|
1583
|
+
@field_remappings = {}
|
|
1584
|
+
end
|
|
1585
|
+
end
|
|
1586
|
+
# Attribute for field date_of_birth
|
|
1587
|
+
attr_reader :date_of_birth
|
|
1588
|
+
# Driver's identification number.
|
|
1589
|
+
attr_reader :driver_identification_number
|
|
1590
|
+
# Driver's tax number.
|
|
1591
|
+
attr_reader :driver_tax_number
|
|
1592
|
+
# Full name of the driver.
|
|
1593
|
+
attr_reader :name
|
|
1594
|
+
|
|
1595
|
+
def self.inner_class_types
|
|
1596
|
+
@inner_class_types = { date_of_birth: DateOfBirth }
|
|
1597
|
+
end
|
|
1598
|
+
|
|
1599
|
+
def self.field_remappings
|
|
1600
|
+
@field_remappings = {}
|
|
1601
|
+
end
|
|
1602
|
+
end
|
|
1603
|
+
|
|
1604
|
+
class DropOff < ::Stripe::StripeObject
|
|
1605
|
+
class Address < ::Stripe::StripeObject
|
|
1606
|
+
# City, district, suburb, town, or village.
|
|
1607
|
+
attr_reader :city
|
|
1608
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1609
|
+
attr_reader :country
|
|
1610
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1611
|
+
attr_reader :line1
|
|
1612
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1613
|
+
attr_reader :line2
|
|
1614
|
+
# ZIP or postal code.
|
|
1615
|
+
attr_reader :postal_code
|
|
1616
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1617
|
+
attr_reader :state
|
|
1618
|
+
|
|
1619
|
+
def self.inner_class_types
|
|
1620
|
+
@inner_class_types = {}
|
|
1621
|
+
end
|
|
1622
|
+
|
|
1623
|
+
def self.field_remappings
|
|
1624
|
+
@field_remappings = {}
|
|
1625
|
+
end
|
|
1626
|
+
end
|
|
1627
|
+
# Attribute for field address
|
|
1628
|
+
attr_reader :address
|
|
1629
|
+
# Name of the location.
|
|
1630
|
+
attr_reader :location_name
|
|
1631
|
+
# Time associated with the location.
|
|
1632
|
+
attr_reader :time
|
|
1633
|
+
|
|
1634
|
+
def self.inner_class_types
|
|
1635
|
+
@inner_class_types = { address: Address }
|
|
1636
|
+
end
|
|
1637
|
+
|
|
1638
|
+
def self.field_remappings
|
|
1639
|
+
@field_remappings = {}
|
|
1640
|
+
end
|
|
1641
|
+
end
|
|
1642
|
+
|
|
1643
|
+
class Insurance < ::Stripe::StripeObject
|
|
1644
|
+
# Amount of the insurance.
|
|
1645
|
+
attr_reader :amount
|
|
1646
|
+
# Currency for the insurance price.
|
|
1647
|
+
attr_reader :currency
|
|
1648
|
+
# Name of the insurance company.
|
|
1649
|
+
attr_reader :insurance_company_name
|
|
1650
|
+
# Type of insurance.
|
|
1651
|
+
attr_reader :insurance_type
|
|
1652
|
+
|
|
1653
|
+
def self.inner_class_types
|
|
1654
|
+
@inner_class_types = {}
|
|
1655
|
+
end
|
|
1656
|
+
|
|
1657
|
+
def self.field_remappings
|
|
1658
|
+
@field_remappings = {}
|
|
1659
|
+
end
|
|
1660
|
+
end
|
|
1661
|
+
|
|
1662
|
+
class Pickup < ::Stripe::StripeObject
|
|
1663
|
+
class Address < ::Stripe::StripeObject
|
|
1664
|
+
# City, district, suburb, town, or village.
|
|
1665
|
+
attr_reader :city
|
|
1666
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1667
|
+
attr_reader :country
|
|
1668
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1669
|
+
attr_reader :line1
|
|
1670
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1671
|
+
attr_reader :line2
|
|
1672
|
+
# ZIP or postal code.
|
|
1673
|
+
attr_reader :postal_code
|
|
1674
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1675
|
+
attr_reader :state
|
|
1676
|
+
|
|
1677
|
+
def self.inner_class_types
|
|
1678
|
+
@inner_class_types = {}
|
|
1679
|
+
end
|
|
1680
|
+
|
|
1681
|
+
def self.field_remappings
|
|
1682
|
+
@field_remappings = {}
|
|
1683
|
+
end
|
|
1684
|
+
end
|
|
1685
|
+
# Attribute for field address
|
|
1686
|
+
attr_reader :address
|
|
1687
|
+
# Name of the location.
|
|
1688
|
+
attr_reader :location_name
|
|
1689
|
+
# Time associated with the location.
|
|
1690
|
+
attr_reader :time
|
|
1691
|
+
|
|
1692
|
+
def self.inner_class_types
|
|
1693
|
+
@inner_class_types = { address: Address }
|
|
1694
|
+
end
|
|
1695
|
+
|
|
1696
|
+
def self.field_remappings
|
|
1697
|
+
@field_remappings = {}
|
|
1698
|
+
end
|
|
1699
|
+
end
|
|
1700
|
+
|
|
1701
|
+
class Total < ::Stripe::StripeObject
|
|
1702
|
+
class Discounts < ::Stripe::StripeObject
|
|
1703
|
+
# Corporate client discount code.
|
|
1704
|
+
attr_reader :corporate_client_code
|
|
1705
|
+
# Coupon code applied.
|
|
1706
|
+
attr_reader :coupon
|
|
1707
|
+
# Maximum free miles or kilometers included.
|
|
1708
|
+
attr_reader :maximum_free_miles_or_kilometers
|
|
1709
|
+
|
|
1710
|
+
def self.inner_class_types
|
|
1711
|
+
@inner_class_types = {}
|
|
1712
|
+
end
|
|
1713
|
+
|
|
1714
|
+
def self.field_remappings
|
|
1715
|
+
@field_remappings = {}
|
|
1716
|
+
end
|
|
1717
|
+
end
|
|
1718
|
+
|
|
1719
|
+
class ExtraCharge < ::Stripe::StripeObject
|
|
1720
|
+
# Amount of the extra charge.
|
|
1721
|
+
attr_reader :amount
|
|
1722
|
+
# Type of extra charge.
|
|
1723
|
+
attr_reader :type
|
|
1724
|
+
|
|
1725
|
+
def self.inner_class_types
|
|
1726
|
+
@inner_class_types = {}
|
|
1727
|
+
end
|
|
1728
|
+
|
|
1729
|
+
def self.field_remappings
|
|
1730
|
+
@field_remappings = {}
|
|
1731
|
+
end
|
|
1732
|
+
end
|
|
1733
|
+
|
|
1734
|
+
class Tax < ::Stripe::StripeObject
|
|
1735
|
+
class Tax < ::Stripe::StripeObject
|
|
1736
|
+
# Tax amount.
|
|
1737
|
+
attr_reader :amount
|
|
1738
|
+
# Tax rate.
|
|
1739
|
+
attr_reader :rate
|
|
1740
|
+
# Type of tax.
|
|
1741
|
+
attr_reader :type
|
|
1742
|
+
|
|
1743
|
+
def self.inner_class_types
|
|
1744
|
+
@inner_class_types = {}
|
|
1745
|
+
end
|
|
1746
|
+
|
|
1747
|
+
def self.field_remappings
|
|
1748
|
+
@field_remappings = {}
|
|
1749
|
+
end
|
|
1750
|
+
end
|
|
1751
|
+
# Indicates whether the rental is tax-exempt.
|
|
1752
|
+
attr_reader :tax_exempt_indicator
|
|
1753
|
+
# Tax details.
|
|
1754
|
+
attr_reader :taxes
|
|
1755
|
+
|
|
1756
|
+
def self.inner_class_types
|
|
1757
|
+
@inner_class_types = { taxes: Tax }
|
|
1758
|
+
end
|
|
1759
|
+
|
|
1760
|
+
def self.field_remappings
|
|
1761
|
+
@field_remappings = {}
|
|
1762
|
+
end
|
|
1763
|
+
end
|
|
1764
|
+
# Total amount.
|
|
1765
|
+
attr_reader :amount
|
|
1766
|
+
# Currency for the total amount.
|
|
1767
|
+
attr_reader :currency
|
|
1768
|
+
# Attribute for field discounts
|
|
1769
|
+
attr_reader :discounts
|
|
1770
|
+
# Additional charges for the rental.
|
|
1771
|
+
attr_reader :extra_charges
|
|
1772
|
+
# Rate per unit.
|
|
1773
|
+
attr_reader :rate_per_unit
|
|
1774
|
+
# Unit for the rate.
|
|
1775
|
+
attr_reader :rate_unit
|
|
1776
|
+
# Attribute for field tax
|
|
1777
|
+
attr_reader :tax
|
|
1778
|
+
|
|
1779
|
+
def self.inner_class_types
|
|
1780
|
+
@inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
|
|
1781
|
+
end
|
|
1782
|
+
|
|
1783
|
+
def self.field_remappings
|
|
1784
|
+
@field_remappings = {}
|
|
1785
|
+
end
|
|
1786
|
+
end
|
|
1787
|
+
|
|
1788
|
+
class Vehicle < ::Stripe::StripeObject
|
|
1789
|
+
# Make of the vehicle.
|
|
1790
|
+
attr_reader :make
|
|
1791
|
+
# Model of the vehicle.
|
|
1792
|
+
attr_reader :model
|
|
1793
|
+
# Odometer reading.
|
|
1794
|
+
attr_reader :odometer
|
|
1795
|
+
# Type of the vehicle.
|
|
1796
|
+
attr_reader :type
|
|
1797
|
+
# Class of the vehicle.
|
|
1798
|
+
attr_reader :vehicle_class
|
|
1799
|
+
# Vehicle identification number.
|
|
1800
|
+
attr_reader :vehicle_identification_number
|
|
1801
|
+
|
|
1802
|
+
def self.inner_class_types
|
|
1803
|
+
@inner_class_types = {}
|
|
1804
|
+
end
|
|
1805
|
+
|
|
1806
|
+
def self.field_remappings
|
|
1807
|
+
@field_remappings = {}
|
|
1808
|
+
end
|
|
1809
|
+
end
|
|
1810
|
+
# Attribute for field affiliate
|
|
1811
|
+
attr_reader :affiliate
|
|
1812
|
+
# The booking number associated with the car rental.
|
|
1813
|
+
attr_reader :booking_number
|
|
1814
|
+
# The name of the car rental company.
|
|
1815
|
+
attr_reader :carrier_name
|
|
1816
|
+
# The customer service phone number of the car rental company.
|
|
1817
|
+
attr_reader :customer_service_phone_number
|
|
1818
|
+
# Number of days the car is being rented.
|
|
1819
|
+
attr_reader :days_rented
|
|
1820
|
+
# Attribute for field distance
|
|
1821
|
+
attr_reader :distance
|
|
1822
|
+
# The details of the drivers associated with the rental.
|
|
1823
|
+
attr_reader :drivers
|
|
1824
|
+
# Attribute for field drop_off
|
|
1825
|
+
attr_reader :drop_off
|
|
1826
|
+
# Insurance details for the car rental.
|
|
1827
|
+
attr_reader :insurances
|
|
1828
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
1829
|
+
attr_reader :no_show_indicator
|
|
1830
|
+
# Attribute for field pickup
|
|
1831
|
+
attr_reader :pickup
|
|
1832
|
+
# Name of the person renting the vehicle.
|
|
1833
|
+
attr_reader :renter_name
|
|
1834
|
+
# Attribute for field total
|
|
1835
|
+
attr_reader :total
|
|
1836
|
+
# Attribute for field vehicle
|
|
1837
|
+
attr_reader :vehicle
|
|
1838
|
+
|
|
1839
|
+
def self.inner_class_types
|
|
1840
|
+
@inner_class_types = {
|
|
1841
|
+
affiliate: Affiliate,
|
|
1842
|
+
distance: Distance,
|
|
1843
|
+
drivers: Driver,
|
|
1844
|
+
drop_off: DropOff,
|
|
1845
|
+
insurances: Insurance,
|
|
1846
|
+
pickup: Pickup,
|
|
1847
|
+
total: Total,
|
|
1848
|
+
vehicle: Vehicle,
|
|
1849
|
+
}
|
|
1850
|
+
end
|
|
1851
|
+
|
|
1852
|
+
def self.field_remappings
|
|
1853
|
+
@field_remappings = {}
|
|
1854
|
+
end
|
|
1855
|
+
end
|
|
1856
|
+
|
|
1857
|
+
class EventDetails < ::Stripe::StripeObject
|
|
1858
|
+
class Address < ::Stripe::StripeObject
|
|
1859
|
+
# City, district, suburb, town, or village.
|
|
1860
|
+
attr_reader :city
|
|
1861
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1862
|
+
attr_reader :country
|
|
1863
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1864
|
+
attr_reader :line1
|
|
1865
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1866
|
+
attr_reader :line2
|
|
1867
|
+
# ZIP or postal code.
|
|
1868
|
+
attr_reader :postal_code
|
|
1869
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1870
|
+
attr_reader :state
|
|
1871
|
+
|
|
1872
|
+
def self.inner_class_types
|
|
1873
|
+
@inner_class_types = {}
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
def self.field_remappings
|
|
1877
|
+
@field_remappings = {}
|
|
1878
|
+
end
|
|
1879
|
+
end
|
|
1880
|
+
|
|
1881
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1882
|
+
# The name of the affiliate that originated the purchase.
|
|
1883
|
+
attr_reader :name
|
|
1884
|
+
|
|
1885
|
+
def self.inner_class_types
|
|
1886
|
+
@inner_class_types = {}
|
|
1887
|
+
end
|
|
1888
|
+
|
|
1889
|
+
def self.field_remappings
|
|
1890
|
+
@field_remappings = {}
|
|
1891
|
+
end
|
|
1892
|
+
end
|
|
1893
|
+
|
|
1894
|
+
class Delivery < ::Stripe::StripeObject
|
|
1895
|
+
class Recipient < ::Stripe::StripeObject
|
|
1896
|
+
# The email of the recipient the ticket is delivered to.
|
|
1897
|
+
attr_reader :email
|
|
1898
|
+
# The name of the recipient the ticket is delivered to.
|
|
1899
|
+
attr_reader :name
|
|
1900
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1901
|
+
attr_reader :phone
|
|
1902
|
+
|
|
1903
|
+
def self.inner_class_types
|
|
1904
|
+
@inner_class_types = {}
|
|
1905
|
+
end
|
|
1906
|
+
|
|
1907
|
+
def self.field_remappings
|
|
1908
|
+
@field_remappings = {}
|
|
1909
|
+
end
|
|
1910
|
+
end
|
|
1911
|
+
# The delivery method for the payment
|
|
1912
|
+
attr_reader :mode
|
|
1913
|
+
# Attribute for field recipient
|
|
1914
|
+
attr_reader :recipient
|
|
1915
|
+
|
|
1916
|
+
def self.inner_class_types
|
|
1917
|
+
@inner_class_types = { recipient: Recipient }
|
|
1918
|
+
end
|
|
1919
|
+
|
|
1920
|
+
def self.field_remappings
|
|
1921
|
+
@field_remappings = {}
|
|
1922
|
+
end
|
|
1923
|
+
end
|
|
1924
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
1925
|
+
attr_reader :access_controlled_venue
|
|
1926
|
+
# Attribute for field address
|
|
1927
|
+
attr_reader :address
|
|
1928
|
+
# Attribute for field affiliate
|
|
1929
|
+
attr_reader :affiliate
|
|
1930
|
+
# The name of the company
|
|
1931
|
+
attr_reader :company
|
|
1932
|
+
# Attribute for field delivery
|
|
1933
|
+
attr_reader :delivery
|
|
1934
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
1935
|
+
attr_reader :ends_at
|
|
1936
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
1937
|
+
attr_reader :genre
|
|
1938
|
+
# The name of the event.
|
|
1939
|
+
attr_reader :name
|
|
1940
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
1941
|
+
attr_reader :starts_at
|
|
1942
|
+
|
|
1943
|
+
def self.inner_class_types
|
|
1944
|
+
@inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
|
|
1945
|
+
end
|
|
1946
|
+
|
|
1947
|
+
def self.field_remappings
|
|
1948
|
+
@field_remappings = {}
|
|
1949
|
+
end
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1952
|
+
class FlightDatum < ::Stripe::StripeObject
|
|
1953
|
+
class Affiliate < ::Stripe::StripeObject
|
|
1954
|
+
# Affiliate code.
|
|
1955
|
+
attr_reader :code
|
|
1956
|
+
# Affiliate name.
|
|
1957
|
+
attr_reader :name
|
|
1958
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1959
|
+
attr_reader :travel_authorization_code
|
|
1960
|
+
|
|
1961
|
+
def self.inner_class_types
|
|
1962
|
+
@inner_class_types = {}
|
|
1963
|
+
end
|
|
1964
|
+
|
|
1965
|
+
def self.field_remappings
|
|
1966
|
+
@field_remappings = {}
|
|
1967
|
+
end
|
|
1968
|
+
end
|
|
1969
|
+
|
|
1970
|
+
class Insurance < ::Stripe::StripeObject
|
|
1971
|
+
# Amount of the insurance.
|
|
1972
|
+
attr_reader :amount
|
|
1973
|
+
# Currency for the insurance price.
|
|
1974
|
+
attr_reader :currency
|
|
1975
|
+
# Name of the insurance company.
|
|
1976
|
+
attr_reader :insurance_company_name
|
|
1977
|
+
# Type of insurance.
|
|
1978
|
+
attr_reader :insurance_type
|
|
1979
|
+
|
|
1980
|
+
def self.inner_class_types
|
|
1981
|
+
@inner_class_types = {}
|
|
1982
|
+
end
|
|
1983
|
+
|
|
1984
|
+
def self.field_remappings
|
|
1985
|
+
@field_remappings = {}
|
|
1986
|
+
end
|
|
1987
|
+
end
|
|
1988
|
+
|
|
1989
|
+
class Passenger < ::Stripe::StripeObject
|
|
1990
|
+
# Full name of the passenger.
|
|
1991
|
+
attr_reader :name
|
|
1992
|
+
|
|
1993
|
+
def self.inner_class_types
|
|
1994
|
+
@inner_class_types = {}
|
|
1995
|
+
end
|
|
1996
|
+
|
|
1997
|
+
def self.field_remappings
|
|
1998
|
+
@field_remappings = {}
|
|
1999
|
+
end
|
|
2000
|
+
end
|
|
2001
|
+
|
|
2002
|
+
class Segment < ::Stripe::StripeObject
|
|
2003
|
+
class Arrival < ::Stripe::StripeObject
|
|
2004
|
+
# Arrival airport IATA code.
|
|
2005
|
+
attr_reader :airport
|
|
2006
|
+
# Arrival date and time.
|
|
2007
|
+
attr_reader :arrives_at
|
|
2008
|
+
# Arrival city.
|
|
2009
|
+
attr_reader :city
|
|
2010
|
+
# Arrival country.
|
|
2011
|
+
attr_reader :country
|
|
2012
|
+
|
|
2013
|
+
def self.inner_class_types
|
|
2014
|
+
@inner_class_types = {}
|
|
2015
|
+
end
|
|
2016
|
+
|
|
2017
|
+
def self.field_remappings
|
|
2018
|
+
@field_remappings = {}
|
|
2019
|
+
end
|
|
2020
|
+
end
|
|
2021
|
+
|
|
2022
|
+
class Departure < ::Stripe::StripeObject
|
|
2023
|
+
# Departure airport IATA code.
|
|
2024
|
+
attr_reader :airport
|
|
2025
|
+
# Departure city.
|
|
2026
|
+
attr_reader :city
|
|
2027
|
+
# Departure country.
|
|
2028
|
+
attr_reader :country
|
|
2029
|
+
# Departure date and time.
|
|
2030
|
+
attr_reader :departs_at
|
|
2031
|
+
|
|
2032
|
+
def self.inner_class_types
|
|
2033
|
+
@inner_class_types = {}
|
|
2034
|
+
end
|
|
2035
|
+
|
|
2036
|
+
def self.field_remappings
|
|
2037
|
+
@field_remappings = {}
|
|
2038
|
+
end
|
|
2039
|
+
end
|
|
2040
|
+
# Segment fare amount.
|
|
2041
|
+
attr_reader :amount
|
|
2042
|
+
# Attribute for field arrival
|
|
2043
|
+
attr_reader :arrival
|
|
2044
|
+
# Airline carrier code.
|
|
2045
|
+
attr_reader :carrier_code
|
|
2046
|
+
# Carrier name.
|
|
2047
|
+
attr_reader :carrier_name
|
|
2048
|
+
# Segment currency.
|
|
2049
|
+
attr_reader :currency
|
|
2050
|
+
# Attribute for field departure
|
|
2051
|
+
attr_reader :departure
|
|
2052
|
+
# Exchange ticket number.
|
|
2053
|
+
attr_reader :exchange_ticket_number
|
|
2054
|
+
# Fare basis code.
|
|
2055
|
+
attr_reader :fare_basis_code
|
|
2056
|
+
# Additional fees.
|
|
2057
|
+
attr_reader :fees
|
|
2058
|
+
# Flight number.
|
|
2059
|
+
attr_reader :flight_number
|
|
2060
|
+
# Stopover indicator.
|
|
2061
|
+
attr_reader :is_stop_over_indicator
|
|
2062
|
+
# Refundable ticket indicator.
|
|
2063
|
+
attr_reader :refundable
|
|
2064
|
+
# Class of service.
|
|
2065
|
+
attr_reader :service_class
|
|
2066
|
+
# Tax amount for segment.
|
|
2067
|
+
attr_reader :tax_amount
|
|
2068
|
+
# Ticket number.
|
|
2069
|
+
attr_reader :ticket_number
|
|
2070
|
+
|
|
2071
|
+
def self.inner_class_types
|
|
2072
|
+
@inner_class_types = { arrival: Arrival, departure: Departure }
|
|
2073
|
+
end
|
|
2074
|
+
|
|
2075
|
+
def self.field_remappings
|
|
2076
|
+
@field_remappings = {}
|
|
2077
|
+
end
|
|
2078
|
+
end
|
|
2079
|
+
|
|
2080
|
+
class Total < ::Stripe::StripeObject
|
|
2081
|
+
class Discounts < ::Stripe::StripeObject
|
|
2082
|
+
# Corporate client discount code.
|
|
2083
|
+
attr_reader :corporate_client_code
|
|
2084
|
+
|
|
2085
|
+
def self.inner_class_types
|
|
2086
|
+
@inner_class_types = {}
|
|
2087
|
+
end
|
|
2088
|
+
|
|
2089
|
+
def self.field_remappings
|
|
2090
|
+
@field_remappings = {}
|
|
2091
|
+
end
|
|
2092
|
+
end
|
|
2093
|
+
|
|
2094
|
+
class ExtraCharge < ::Stripe::StripeObject
|
|
2095
|
+
# Amount of the extra charge.
|
|
2096
|
+
attr_reader :amount
|
|
2097
|
+
# Type of extra charge.
|
|
2098
|
+
attr_reader :type
|
|
2099
|
+
|
|
2100
|
+
def self.inner_class_types
|
|
2101
|
+
@inner_class_types = {}
|
|
2102
|
+
end
|
|
2103
|
+
|
|
2104
|
+
def self.field_remappings
|
|
2105
|
+
@field_remappings = {}
|
|
2106
|
+
end
|
|
2107
|
+
end
|
|
2108
|
+
|
|
2109
|
+
class Tax < ::Stripe::StripeObject
|
|
2110
|
+
class Tax < ::Stripe::StripeObject
|
|
2111
|
+
# Tax amount.
|
|
2112
|
+
attr_reader :amount
|
|
2113
|
+
# Tax rate.
|
|
2114
|
+
attr_reader :rate
|
|
2115
|
+
# Type of tax.
|
|
2116
|
+
attr_reader :type
|
|
2117
|
+
|
|
2118
|
+
def self.inner_class_types
|
|
2119
|
+
@inner_class_types = {}
|
|
2120
|
+
end
|
|
2121
|
+
|
|
2122
|
+
def self.field_remappings
|
|
2123
|
+
@field_remappings = {}
|
|
2124
|
+
end
|
|
2125
|
+
end
|
|
2126
|
+
# Tax details.
|
|
2127
|
+
attr_reader :taxes
|
|
2128
|
+
|
|
2129
|
+
def self.inner_class_types
|
|
2130
|
+
@inner_class_types = { taxes: Tax }
|
|
2131
|
+
end
|
|
2132
|
+
|
|
2133
|
+
def self.field_remappings
|
|
2134
|
+
@field_remappings = {}
|
|
2135
|
+
end
|
|
2136
|
+
end
|
|
2137
|
+
# Total amount.
|
|
2138
|
+
attr_reader :amount
|
|
2139
|
+
# Reason for credit.
|
|
2140
|
+
attr_reader :credit_reason
|
|
2141
|
+
# Currency for the total amount.
|
|
2142
|
+
attr_reader :currency
|
|
2143
|
+
# Attribute for field discounts
|
|
2144
|
+
attr_reader :discounts
|
|
2145
|
+
# Additional charges for the flight.
|
|
2146
|
+
attr_reader :extra_charges
|
|
2147
|
+
# Attribute for field tax
|
|
2148
|
+
attr_reader :tax
|
|
2149
|
+
|
|
2150
|
+
def self.inner_class_types
|
|
2151
|
+
@inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
|
|
2152
|
+
end
|
|
2153
|
+
|
|
2154
|
+
def self.field_remappings
|
|
2155
|
+
@field_remappings = {}
|
|
2156
|
+
end
|
|
2157
|
+
end
|
|
2158
|
+
# Attribute for field affiliate
|
|
2159
|
+
attr_reader :affiliate
|
|
2160
|
+
# The booking number associated with the flight reservation.
|
|
2161
|
+
attr_reader :booking_number
|
|
2162
|
+
# The computerized reservation system used to make the reservation and purchase the ticket.
|
|
2163
|
+
attr_reader :computerized_reservation_system
|
|
2164
|
+
# Ticket restrictions.
|
|
2165
|
+
attr_reader :endorsements_and_restrictions
|
|
2166
|
+
# Insurance details for the flight.
|
|
2167
|
+
attr_reader :insurances
|
|
2168
|
+
# The list of passengers for this flight.
|
|
2169
|
+
attr_reader :passengers
|
|
2170
|
+
# The list of flight segments for this reservation.
|
|
2171
|
+
attr_reader :segments
|
|
2172
|
+
# Electronic ticket indicator.
|
|
2173
|
+
attr_reader :ticket_electronically_issued_indicator
|
|
2174
|
+
# Attribute for field total
|
|
2175
|
+
attr_reader :total
|
|
2176
|
+
# Type of flight transaction.
|
|
2177
|
+
attr_reader :transaction_type
|
|
2178
|
+
|
|
2179
|
+
def self.inner_class_types
|
|
2180
|
+
@inner_class_types = {
|
|
2181
|
+
affiliate: Affiliate,
|
|
2182
|
+
insurances: Insurance,
|
|
2183
|
+
passengers: Passenger,
|
|
2184
|
+
segments: Segment,
|
|
2185
|
+
total: Total,
|
|
2186
|
+
}
|
|
2187
|
+
end
|
|
2188
|
+
|
|
2189
|
+
def self.field_remappings
|
|
2190
|
+
@field_remappings = {}
|
|
2191
|
+
end
|
|
2192
|
+
end
|
|
2193
|
+
|
|
2194
|
+
class LodgingDatum < ::Stripe::StripeObject
|
|
2195
|
+
class Accommodation < ::Stripe::StripeObject
|
|
2196
|
+
# Type of accommodation.
|
|
2197
|
+
attr_reader :accommodation_type
|
|
2198
|
+
# Bed type.
|
|
2199
|
+
attr_reader :bed_type
|
|
2200
|
+
# Daily accommodation rate in cents.
|
|
2201
|
+
attr_reader :daily_rate_amount
|
|
2202
|
+
# Number of nights.
|
|
2203
|
+
attr_reader :nights
|
|
2204
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
2205
|
+
attr_reader :number_of_rooms
|
|
2206
|
+
# Rate type.
|
|
2207
|
+
attr_reader :rate_type
|
|
2208
|
+
# Whether smoking is allowed.
|
|
2209
|
+
attr_reader :smoking_indicator
|
|
2210
|
+
|
|
2211
|
+
def self.inner_class_types
|
|
2212
|
+
@inner_class_types = {}
|
|
2213
|
+
end
|
|
2214
|
+
|
|
2215
|
+
def self.field_remappings
|
|
2216
|
+
@field_remappings = {}
|
|
2217
|
+
end
|
|
2218
|
+
end
|
|
2219
|
+
|
|
2220
|
+
class Affiliate < ::Stripe::StripeObject
|
|
2221
|
+
# Affiliate partner code.
|
|
2222
|
+
attr_reader :code
|
|
2223
|
+
# Affiliate partner name.
|
|
2224
|
+
attr_reader :name
|
|
2225
|
+
|
|
2226
|
+
def self.inner_class_types
|
|
2227
|
+
@inner_class_types = {}
|
|
2228
|
+
end
|
|
2229
|
+
|
|
2230
|
+
def self.field_remappings
|
|
2231
|
+
@field_remappings = {}
|
|
2232
|
+
end
|
|
2233
|
+
end
|
|
2234
|
+
|
|
2235
|
+
class Guest < ::Stripe::StripeObject
|
|
2236
|
+
# Guest's full name.
|
|
2237
|
+
attr_reader :name
|
|
2238
|
+
|
|
2239
|
+
def self.inner_class_types
|
|
2240
|
+
@inner_class_types = {}
|
|
2241
|
+
end
|
|
2242
|
+
|
|
2243
|
+
def self.field_remappings
|
|
2244
|
+
@field_remappings = {}
|
|
2245
|
+
end
|
|
2246
|
+
end
|
|
2247
|
+
|
|
2248
|
+
class Host < ::Stripe::StripeObject
|
|
2249
|
+
class Address < ::Stripe::StripeObject
|
|
2250
|
+
# City, district, suburb, town, or village.
|
|
2251
|
+
attr_reader :city
|
|
2252
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2253
|
+
attr_reader :country
|
|
2254
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2255
|
+
attr_reader :line1
|
|
2256
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2257
|
+
attr_reader :line2
|
|
2258
|
+
# ZIP or postal code.
|
|
2259
|
+
attr_reader :postal_code
|
|
2260
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2261
|
+
attr_reader :state
|
|
2262
|
+
|
|
2263
|
+
def self.inner_class_types
|
|
2264
|
+
@inner_class_types = {}
|
|
2265
|
+
end
|
|
2266
|
+
|
|
2267
|
+
def self.field_remappings
|
|
2268
|
+
@field_remappings = {}
|
|
2269
|
+
end
|
|
2270
|
+
end
|
|
2271
|
+
# Attribute for field address
|
|
2272
|
+
attr_reader :address
|
|
2273
|
+
# Host's country of domicile.
|
|
2274
|
+
attr_reader :country_of_domicile
|
|
2275
|
+
# Reference number for the host.
|
|
2276
|
+
attr_reader :host_reference
|
|
2277
|
+
# Type of host.
|
|
2278
|
+
attr_reader :host_type
|
|
2279
|
+
# Name of the lodging property or host.
|
|
2280
|
+
attr_reader :name
|
|
2281
|
+
# Total number of reservations for the host.
|
|
2282
|
+
attr_reader :number_of_reservations
|
|
2283
|
+
# Property phone number.
|
|
2284
|
+
attr_reader :property_phone_number
|
|
2285
|
+
# Host's registration date.
|
|
2286
|
+
attr_reader :registered_at
|
|
2287
|
+
|
|
2288
|
+
def self.inner_class_types
|
|
2289
|
+
@inner_class_types = { address: Address }
|
|
2290
|
+
end
|
|
2291
|
+
|
|
2292
|
+
def self.field_remappings
|
|
2293
|
+
@field_remappings = {}
|
|
2294
|
+
end
|
|
2295
|
+
end
|
|
2296
|
+
|
|
2297
|
+
class Insurance < ::Stripe::StripeObject
|
|
2298
|
+
# Price of the insurance coverage in cents.
|
|
2299
|
+
attr_reader :amount
|
|
2300
|
+
# Currency of the insurance amount.
|
|
2301
|
+
attr_reader :currency
|
|
2302
|
+
# Name of the insurance company.
|
|
2303
|
+
attr_reader :insurance_company_name
|
|
2304
|
+
# Type of insurance coverage.
|
|
2305
|
+
attr_reader :insurance_type
|
|
2306
|
+
|
|
2307
|
+
def self.inner_class_types
|
|
2308
|
+
@inner_class_types = {}
|
|
2309
|
+
end
|
|
2310
|
+
|
|
2311
|
+
def self.field_remappings
|
|
2312
|
+
@field_remappings = {}
|
|
2313
|
+
end
|
|
2314
|
+
end
|
|
2315
|
+
|
|
2316
|
+
class Total < ::Stripe::StripeObject
|
|
2317
|
+
class Discounts < ::Stripe::StripeObject
|
|
2318
|
+
# Corporate client discount code.
|
|
2319
|
+
attr_reader :corporate_client_code
|
|
2320
|
+
# Coupon code.
|
|
2321
|
+
attr_reader :coupon
|
|
2322
|
+
|
|
2323
|
+
def self.inner_class_types
|
|
2324
|
+
@inner_class_types = {}
|
|
2325
|
+
end
|
|
2326
|
+
|
|
2327
|
+
def self.field_remappings
|
|
2328
|
+
@field_remappings = {}
|
|
2329
|
+
end
|
|
2330
|
+
end
|
|
2331
|
+
|
|
2332
|
+
class ExtraCharge < ::Stripe::StripeObject
|
|
2333
|
+
# Amount of the extra charge in cents.
|
|
2334
|
+
attr_reader :amount
|
|
2335
|
+
# Type of extra charge.
|
|
2336
|
+
attr_reader :type
|
|
2337
|
+
|
|
2338
|
+
def self.inner_class_types
|
|
2339
|
+
@inner_class_types = {}
|
|
2340
|
+
end
|
|
2341
|
+
|
|
2342
|
+
def self.field_remappings
|
|
2343
|
+
@field_remappings = {}
|
|
2344
|
+
end
|
|
2345
|
+
end
|
|
2346
|
+
|
|
2347
|
+
class Tax < ::Stripe::StripeObject
|
|
2348
|
+
class Tax < ::Stripe::StripeObject
|
|
2349
|
+
# Tax amount in cents.
|
|
2350
|
+
attr_reader :amount
|
|
2351
|
+
# Tax rate.
|
|
2352
|
+
attr_reader :rate
|
|
2353
|
+
# Type of tax applied.
|
|
2354
|
+
attr_reader :type
|
|
2355
|
+
|
|
2356
|
+
def self.inner_class_types
|
|
2357
|
+
@inner_class_types = {}
|
|
2358
|
+
end
|
|
2359
|
+
|
|
2360
|
+
def self.field_remappings
|
|
2361
|
+
@field_remappings = {}
|
|
2362
|
+
end
|
|
2363
|
+
end
|
|
2364
|
+
# Indicates whether the transaction is tax exempt.
|
|
2365
|
+
attr_reader :tax_exempt_indicator
|
|
2366
|
+
# Tax details.
|
|
2367
|
+
attr_reader :taxes
|
|
2368
|
+
|
|
2369
|
+
def self.inner_class_types
|
|
2370
|
+
@inner_class_types = { taxes: Tax }
|
|
2371
|
+
end
|
|
2372
|
+
|
|
2373
|
+
def self.field_remappings
|
|
2374
|
+
@field_remappings = {}
|
|
2375
|
+
end
|
|
2376
|
+
end
|
|
2377
|
+
# Total price of the lodging reservation in cents.
|
|
2378
|
+
attr_reader :amount
|
|
2379
|
+
# Cash advances in cents.
|
|
2380
|
+
attr_reader :cash_advances
|
|
2381
|
+
# Currency of the total amount.
|
|
2382
|
+
attr_reader :currency
|
|
2383
|
+
# Attribute for field discounts
|
|
2384
|
+
attr_reader :discounts
|
|
2385
|
+
# Additional charges for the lodging.
|
|
2386
|
+
attr_reader :extra_charges
|
|
2387
|
+
# Prepaid amount in cents.
|
|
2388
|
+
attr_reader :prepaid_amount
|
|
2389
|
+
# Attribute for field tax
|
|
2390
|
+
attr_reader :tax
|
|
2391
|
+
|
|
2392
|
+
def self.inner_class_types
|
|
2393
|
+
@inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
|
|
2394
|
+
end
|
|
2395
|
+
|
|
2396
|
+
def self.field_remappings
|
|
2397
|
+
@field_remappings = {}
|
|
2398
|
+
end
|
|
2399
|
+
end
|
|
2400
|
+
# Attribute for field accommodation
|
|
2401
|
+
attr_reader :accommodation
|
|
2402
|
+
# Attribute for field affiliate
|
|
2403
|
+
attr_reader :affiliate
|
|
2404
|
+
# Booking confirmation number for the lodging.
|
|
2405
|
+
attr_reader :booking_number
|
|
2406
|
+
# Check-in date.
|
|
2407
|
+
attr_reader :checkin_at
|
|
2408
|
+
# Check-out date.
|
|
2409
|
+
attr_reader :checkout_at
|
|
2410
|
+
# Customer service phone number for the lodging company.
|
|
2411
|
+
attr_reader :customer_service_phone_number
|
|
2412
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
2413
|
+
attr_reader :fire_safety_act_compliance_indicator
|
|
2414
|
+
# List of guests for the lodging.
|
|
2415
|
+
attr_reader :guests
|
|
2416
|
+
# Attribute for field host
|
|
2417
|
+
attr_reader :host
|
|
2418
|
+
# List of insurances for the lodging.
|
|
2419
|
+
attr_reader :insurances
|
|
2420
|
+
# Whether the renter is a no-show.
|
|
2421
|
+
attr_reader :no_show_indicator
|
|
2422
|
+
# Renter ID number for the lodging.
|
|
2423
|
+
attr_reader :renter_id_number
|
|
2424
|
+
# Renter name for the lodging.
|
|
2425
|
+
attr_reader :renter_name
|
|
2426
|
+
# Attribute for field total
|
|
2427
|
+
attr_reader :total
|
|
2428
|
+
|
|
2429
|
+
def self.inner_class_types
|
|
2430
|
+
@inner_class_types = {
|
|
2431
|
+
accommodation: Accommodation,
|
|
2432
|
+
affiliate: Affiliate,
|
|
2433
|
+
guests: Guest,
|
|
2434
|
+
host: Host,
|
|
2435
|
+
insurances: Insurance,
|
|
2436
|
+
total: Total,
|
|
2437
|
+
}
|
|
2438
|
+
end
|
|
2439
|
+
|
|
2440
|
+
def self.field_remappings
|
|
2441
|
+
@field_remappings = {}
|
|
2442
|
+
end
|
|
1283
2443
|
end
|
|
1284
|
-
end
|
|
1285
2444
|
|
|
1286
|
-
|
|
2445
|
+
class Subscription < ::Stripe::StripeObject
|
|
2446
|
+
class Affiliate < ::Stripe::StripeObject
|
|
2447
|
+
# The name of the affiliate that originated the purchase.
|
|
2448
|
+
attr_reader :name
|
|
2449
|
+
|
|
2450
|
+
def self.inner_class_types
|
|
2451
|
+
@inner_class_types = {}
|
|
2452
|
+
end
|
|
2453
|
+
|
|
2454
|
+
def self.field_remappings
|
|
2455
|
+
@field_remappings = {}
|
|
2456
|
+
end
|
|
2457
|
+
end
|
|
2458
|
+
|
|
2459
|
+
class BillingInterval < ::Stripe::StripeObject
|
|
2460
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2461
|
+
attr_reader :count
|
|
2462
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2463
|
+
attr_reader :interval
|
|
2464
|
+
|
|
2465
|
+
def self.inner_class_types
|
|
2466
|
+
@inner_class_types = {}
|
|
2467
|
+
end
|
|
2468
|
+
|
|
2469
|
+
def self.field_remappings
|
|
2470
|
+
@field_remappings = {}
|
|
2471
|
+
end
|
|
2472
|
+
end
|
|
2473
|
+
# Attribute for field affiliate
|
|
2474
|
+
attr_reader :affiliate
|
|
2475
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
2476
|
+
attr_reader :auto_renewal
|
|
2477
|
+
# Attribute for field billing_interval
|
|
2478
|
+
attr_reader :billing_interval
|
|
2479
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
2480
|
+
attr_reader :ends_at
|
|
2481
|
+
# Name of the product on subscription. e.g. Apple Music Subscription.
|
|
2482
|
+
attr_reader :name
|
|
2483
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
2484
|
+
attr_reader :starts_at
|
|
2485
|
+
|
|
2486
|
+
def self.inner_class_types
|
|
2487
|
+
@inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
|
|
2488
|
+
end
|
|
2489
|
+
|
|
2490
|
+
def self.field_remappings
|
|
2491
|
+
@field_remappings = {}
|
|
2492
|
+
end
|
|
2493
|
+
end
|
|
2494
|
+
# Attribute for field car_rental
|
|
2495
|
+
attr_reader :car_rental
|
|
2496
|
+
# Attribute for field car_rental_data
|
|
2497
|
+
attr_reader :car_rental_data
|
|
1287
2498
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
1288
2499
|
#
|
|
1289
2500
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1290
2501
|
attr_reader :customer_reference
|
|
2502
|
+
# Attribute for field event_details
|
|
2503
|
+
attr_reader :event_details
|
|
2504
|
+
# Attribute for field flight_data
|
|
2505
|
+
attr_reader :flight_data
|
|
2506
|
+
# Attribute for field lodging_data
|
|
2507
|
+
attr_reader :lodging_data
|
|
1291
2508
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1292
2509
|
#
|
|
1293
2510
|
# 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.
|
|
1294
2511
|
attr_reader :order_reference
|
|
2512
|
+
# Attribute for field subscription
|
|
2513
|
+
attr_reader :subscription
|
|
1295
2514
|
|
|
1296
2515
|
def self.inner_class_types
|
|
1297
|
-
@inner_class_types = {
|
|
2516
|
+
@inner_class_types = {
|
|
2517
|
+
car_rental: CarRental,
|
|
2518
|
+
car_rental_data: CarRentalDatum,
|
|
2519
|
+
event_details: EventDetails,
|
|
2520
|
+
flight_data: FlightDatum,
|
|
2521
|
+
lodging_data: LodgingDatum,
|
|
2522
|
+
subscription: Subscription,
|
|
2523
|
+
}
|
|
1298
2524
|
end
|
|
1299
2525
|
|
|
1300
2526
|
def self.field_remappings
|
|
@@ -1682,6 +2908,43 @@ module Stripe
|
|
|
1682
2908
|
@field_remappings = {}
|
|
1683
2909
|
end
|
|
1684
2910
|
end
|
|
2911
|
+
|
|
2912
|
+
class StatementDetails < ::Stripe::StripeObject
|
|
2913
|
+
class Address < ::Stripe::StripeObject
|
|
2914
|
+
# City, district, suburb, town, or village.
|
|
2915
|
+
attr_reader :city
|
|
2916
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
2917
|
+
attr_reader :country
|
|
2918
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
2919
|
+
attr_reader :line1
|
|
2920
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
2921
|
+
attr_reader :line2
|
|
2922
|
+
# ZIP or postal code.
|
|
2923
|
+
attr_reader :postal_code
|
|
2924
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2925
|
+
attr_reader :state
|
|
2926
|
+
|
|
2927
|
+
def self.inner_class_types
|
|
2928
|
+
@inner_class_types = {}
|
|
2929
|
+
end
|
|
2930
|
+
|
|
2931
|
+
def self.field_remappings
|
|
2932
|
+
@field_remappings = {}
|
|
2933
|
+
end
|
|
2934
|
+
end
|
|
2935
|
+
# Attribute for field address
|
|
2936
|
+
attr_reader :address
|
|
2937
|
+
# Phone number
|
|
2938
|
+
attr_reader :phone
|
|
2939
|
+
|
|
2940
|
+
def self.inner_class_types
|
|
2941
|
+
@inner_class_types = { address: Address }
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
def self.field_remappings
|
|
2945
|
+
@field_remappings = {}
|
|
2946
|
+
end
|
|
2947
|
+
end
|
|
1685
2948
|
# Controls when the funds will be captured from the customer's account.
|
|
1686
2949
|
attr_reader :capture_method
|
|
1687
2950
|
# Installment details for this payment.
|
|
@@ -1692,6 +2955,8 @@ module Stripe
|
|
|
1692
2955
|
attr_reader :mandate_options
|
|
1693
2956
|
# Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
|
|
1694
2957
|
attr_reader :network
|
|
2958
|
+
# Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
|
|
2959
|
+
attr_reader :request_decremental_authorization
|
|
1695
2960
|
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1696
2961
|
attr_reader :request_extended_authorization
|
|
1697
2962
|
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1700,6 +2965,8 @@ module Stripe
|
|
|
1700
2965
|
attr_reader :request_multicapture
|
|
1701
2966
|
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1702
2967
|
attr_reader :request_overcapture
|
|
2968
|
+
# Request partial authorization on this PaymentIntent.
|
|
2969
|
+
attr_reader :request_partial_authorization
|
|
1703
2970
|
# 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.
|
|
1704
2971
|
attr_reader :request_three_d_secure
|
|
1705
2972
|
# 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).
|
|
@@ -1716,9 +2983,15 @@ module Stripe
|
|
|
1716
2983
|
attr_reader :statement_descriptor_suffix_kana
|
|
1717
2984
|
# 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.
|
|
1718
2985
|
attr_reader :statement_descriptor_suffix_kanji
|
|
2986
|
+
# Attribute for field statement_details
|
|
2987
|
+
attr_reader :statement_details
|
|
1719
2988
|
|
|
1720
2989
|
def self.inner_class_types
|
|
1721
|
-
@inner_class_types = {
|
|
2990
|
+
@inner_class_types = {
|
|
2991
|
+
installments: Installments,
|
|
2992
|
+
mandate_options: MandateOptions,
|
|
2993
|
+
statement_details: StatementDetails,
|
|
2994
|
+
}
|
|
1722
2995
|
end
|
|
1723
2996
|
|
|
1724
2997
|
def self.field_remappings
|
|
@@ -1907,6 +3180,25 @@ module Stripe
|
|
|
1907
3180
|
end
|
|
1908
3181
|
end
|
|
1909
3182
|
|
|
3183
|
+
class Gopay < ::Stripe::StripeObject
|
|
3184
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3185
|
+
#
|
|
3186
|
+
# 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.
|
|
3187
|
+
#
|
|
3188
|
+
# 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.
|
|
3189
|
+
#
|
|
3190
|
+
# 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).
|
|
3191
|
+
attr_reader :setup_future_usage
|
|
3192
|
+
|
|
3193
|
+
def self.inner_class_types
|
|
3194
|
+
@inner_class_types = {}
|
|
3195
|
+
end
|
|
3196
|
+
|
|
3197
|
+
def self.field_remappings
|
|
3198
|
+
@field_remappings = {}
|
|
3199
|
+
end
|
|
3200
|
+
end
|
|
3201
|
+
|
|
1910
3202
|
class Grabpay < ::Stripe::StripeObject
|
|
1911
3203
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1912
3204
|
#
|
|
@@ -1926,6 +3218,29 @@ module Stripe
|
|
|
1926
3218
|
end
|
|
1927
3219
|
end
|
|
1928
3220
|
|
|
3221
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
3222
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
|
3223
|
+
attr_reader :expires_after
|
|
3224
|
+
# 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.
|
|
3225
|
+
attr_reader :expires_at
|
|
3226
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3227
|
+
#
|
|
3228
|
+
# 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.
|
|
3229
|
+
#
|
|
3230
|
+
# 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.
|
|
3231
|
+
#
|
|
3232
|
+
# 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).
|
|
3233
|
+
attr_reader :setup_future_usage
|
|
3234
|
+
|
|
3235
|
+
def self.inner_class_types
|
|
3236
|
+
@inner_class_types = {}
|
|
3237
|
+
end
|
|
3238
|
+
|
|
3239
|
+
def self.field_remappings
|
|
3240
|
+
@field_remappings = {}
|
|
3241
|
+
end
|
|
3242
|
+
end
|
|
3243
|
+
|
|
1929
3244
|
class Ideal < ::Stripe::StripeObject
|
|
1930
3245
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1931
3246
|
#
|
|
@@ -2254,12 +3569,56 @@ module Stripe
|
|
|
2254
3569
|
end
|
|
2255
3570
|
|
|
2256
3571
|
class Paypal < ::Stripe::StripeObject
|
|
3572
|
+
class LineItem < ::Stripe::StripeObject
|
|
3573
|
+
class Tax < ::Stripe::StripeObject
|
|
3574
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
3575
|
+
attr_reader :amount
|
|
3576
|
+
# The tax behavior for the line item.
|
|
3577
|
+
attr_reader :behavior
|
|
3578
|
+
|
|
3579
|
+
def self.inner_class_types
|
|
3580
|
+
@inner_class_types = {}
|
|
3581
|
+
end
|
|
3582
|
+
|
|
3583
|
+
def self.field_remappings
|
|
3584
|
+
@field_remappings = {}
|
|
3585
|
+
end
|
|
3586
|
+
end
|
|
3587
|
+
# Type of the line item.
|
|
3588
|
+
attr_reader :category
|
|
3589
|
+
# Description of the line item.
|
|
3590
|
+
attr_reader :description
|
|
3591
|
+
# Descriptive name of the line item.
|
|
3592
|
+
attr_reader :name
|
|
3593
|
+
# Quantity of the line item. Cannot be a negative number.
|
|
3594
|
+
attr_reader :quantity
|
|
3595
|
+
# Client facing stock keeping unit, article number or similar.
|
|
3596
|
+
attr_reader :sku
|
|
3597
|
+
# The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
|
3598
|
+
attr_reader :sold_by
|
|
3599
|
+
# Attribute for field tax
|
|
3600
|
+
attr_reader :tax
|
|
3601
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
3602
|
+
attr_reader :unit_amount
|
|
3603
|
+
|
|
3604
|
+
def self.inner_class_types
|
|
3605
|
+
@inner_class_types = { tax: Tax }
|
|
3606
|
+
end
|
|
3607
|
+
|
|
3608
|
+
def self.field_remappings
|
|
3609
|
+
@field_remappings = {}
|
|
3610
|
+
end
|
|
3611
|
+
end
|
|
2257
3612
|
# Controls when the funds will be captured from the customer's account.
|
|
2258
3613
|
attr_reader :capture_method
|
|
3614
|
+
# The line items purchased by the customer.
|
|
3615
|
+
attr_reader :line_items
|
|
2259
3616
|
# Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
2260
3617
|
attr_reader :preferred_locale
|
|
2261
3618
|
# 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.
|
|
2262
3619
|
attr_reader :reference
|
|
3620
|
+
# 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.
|
|
3621
|
+
attr_reader :reference_id
|
|
2263
3622
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2264
3623
|
#
|
|
2265
3624
|
# 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.
|
|
@@ -2268,7 +3627,19 @@ module Stripe
|
|
|
2268
3627
|
#
|
|
2269
3628
|
# 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).
|
|
2270
3629
|
attr_reader :setup_future_usage
|
|
3630
|
+
# 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.
|
|
3631
|
+
attr_reader :subsellers
|
|
3632
|
+
|
|
3633
|
+
def self.inner_class_types
|
|
3634
|
+
@inner_class_types = { line_items: LineItem }
|
|
3635
|
+
end
|
|
2271
3636
|
|
|
3637
|
+
def self.field_remappings
|
|
3638
|
+
@field_remappings = {}
|
|
3639
|
+
end
|
|
3640
|
+
end
|
|
3641
|
+
|
|
3642
|
+
class Paypay < ::Stripe::StripeObject
|
|
2272
3643
|
def self.inner_class_types
|
|
2273
3644
|
@inner_class_types = {}
|
|
2274
3645
|
end
|
|
@@ -2393,6 +3764,35 @@ module Stripe
|
|
|
2393
3764
|
end
|
|
2394
3765
|
end
|
|
2395
3766
|
|
|
3767
|
+
class Qris < ::Stripe::StripeObject
|
|
3768
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3769
|
+
#
|
|
3770
|
+
# 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.
|
|
3771
|
+
#
|
|
3772
|
+
# 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.
|
|
3773
|
+
#
|
|
3774
|
+
# 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).
|
|
3775
|
+
attr_reader :setup_future_usage
|
|
3776
|
+
|
|
3777
|
+
def self.inner_class_types
|
|
3778
|
+
@inner_class_types = {}
|
|
3779
|
+
end
|
|
3780
|
+
|
|
3781
|
+
def self.field_remappings
|
|
3782
|
+
@field_remappings = {}
|
|
3783
|
+
end
|
|
3784
|
+
end
|
|
3785
|
+
|
|
3786
|
+
class Rechnung < ::Stripe::StripeObject
|
|
3787
|
+
def self.inner_class_types
|
|
3788
|
+
@inner_class_types = {}
|
|
3789
|
+
end
|
|
3790
|
+
|
|
3791
|
+
def self.field_remappings
|
|
3792
|
+
@field_remappings = {}
|
|
3793
|
+
end
|
|
3794
|
+
end
|
|
3795
|
+
|
|
2396
3796
|
class RevolutPay < ::Stripe::StripeObject
|
|
2397
3797
|
# Controls when the funds will be captured from the customer's account.
|
|
2398
3798
|
attr_reader :capture_method
|
|
@@ -2488,6 +3888,25 @@ module Stripe
|
|
|
2488
3888
|
end
|
|
2489
3889
|
end
|
|
2490
3890
|
|
|
3891
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
3892
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3893
|
+
#
|
|
3894
|
+
# 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.
|
|
3895
|
+
#
|
|
3896
|
+
# 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.
|
|
3897
|
+
#
|
|
3898
|
+
# 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).
|
|
3899
|
+
attr_reader :setup_future_usage
|
|
3900
|
+
|
|
3901
|
+
def self.inner_class_types
|
|
3902
|
+
@inner_class_types = {}
|
|
3903
|
+
end
|
|
3904
|
+
|
|
3905
|
+
def self.field_remappings
|
|
3906
|
+
@field_remappings = {}
|
|
3907
|
+
end
|
|
3908
|
+
end
|
|
3909
|
+
|
|
2491
3910
|
class Sofort < ::Stripe::StripeObject
|
|
2492
3911
|
# Preferred language of the SOFORT authorization page that the customer is redirected to.
|
|
2493
3912
|
attr_reader :preferred_language
|
|
@@ -2509,6 +3928,25 @@ module Stripe
|
|
|
2509
3928
|
end
|
|
2510
3929
|
end
|
|
2511
3930
|
|
|
3931
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
3932
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3933
|
+
#
|
|
3934
|
+
# 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.
|
|
3935
|
+
#
|
|
3936
|
+
# 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.
|
|
3937
|
+
#
|
|
3938
|
+
# 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).
|
|
3939
|
+
attr_reader :setup_future_usage
|
|
3940
|
+
|
|
3941
|
+
def self.inner_class_types
|
|
3942
|
+
@inner_class_types = {}
|
|
3943
|
+
end
|
|
3944
|
+
|
|
3945
|
+
def self.field_remappings
|
|
3946
|
+
@field_remappings = {}
|
|
3947
|
+
end
|
|
3948
|
+
end
|
|
3949
|
+
|
|
2512
3950
|
class Swish < ::Stripe::StripeObject
|
|
2513
3951
|
# A reference for this payment to be displayed in the Swish app.
|
|
2514
3952
|
attr_reader :reference
|
|
@@ -2573,6 +4011,21 @@ module Stripe
|
|
|
2573
4011
|
class Filters < ::Stripe::StripeObject
|
|
2574
4012
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
2575
4013
|
attr_reader :account_subcategories
|
|
4014
|
+
# The institution to use to filter for possible accounts to link.
|
|
4015
|
+
attr_reader :institution
|
|
4016
|
+
|
|
4017
|
+
def self.inner_class_types
|
|
4018
|
+
@inner_class_types = {}
|
|
4019
|
+
end
|
|
4020
|
+
|
|
4021
|
+
def self.field_remappings
|
|
4022
|
+
@field_remappings = {}
|
|
4023
|
+
end
|
|
4024
|
+
end
|
|
4025
|
+
|
|
4026
|
+
class ManualEntry < ::Stripe::StripeObject
|
|
4027
|
+
# Settings for configuring manual entry of account details.
|
|
4028
|
+
attr_reader :mode
|
|
2576
4029
|
|
|
2577
4030
|
def self.inner_class_types
|
|
2578
4031
|
@inner_class_types = {}
|
|
@@ -2584,6 +4037,8 @@ module Stripe
|
|
|
2584
4037
|
end
|
|
2585
4038
|
# Attribute for field filters
|
|
2586
4039
|
attr_reader :filters
|
|
4040
|
+
# Attribute for field manual_entry
|
|
4041
|
+
attr_reader :manual_entry
|
|
2587
4042
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
2588
4043
|
attr_reader :permissions
|
|
2589
4044
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -2592,7 +4047,7 @@ module Stripe
|
|
|
2592
4047
|
attr_reader :return_url
|
|
2593
4048
|
|
|
2594
4049
|
def self.inner_class_types
|
|
2595
|
-
@inner_class_types = { filters: Filters }
|
|
4050
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
|
2596
4051
|
end
|
|
2597
4052
|
|
|
2598
4053
|
def self.field_remappings
|
|
@@ -2726,8 +4181,12 @@ module Stripe
|
|
|
2726
4181
|
attr_reader :fpx
|
|
2727
4182
|
# Attribute for field giropay
|
|
2728
4183
|
attr_reader :giropay
|
|
4184
|
+
# Attribute for field gopay
|
|
4185
|
+
attr_reader :gopay
|
|
2729
4186
|
# Attribute for field grabpay
|
|
2730
4187
|
attr_reader :grabpay
|
|
4188
|
+
# Attribute for field id_bank_transfer
|
|
4189
|
+
attr_reader :id_bank_transfer
|
|
2731
4190
|
# Attribute for field ideal
|
|
2732
4191
|
attr_reader :ideal
|
|
2733
4192
|
# Attribute for field interac_present
|
|
@@ -2764,12 +4223,18 @@ module Stripe
|
|
|
2764
4223
|
attr_reader :paynow
|
|
2765
4224
|
# Attribute for field paypal
|
|
2766
4225
|
attr_reader :paypal
|
|
4226
|
+
# Attribute for field paypay
|
|
4227
|
+
attr_reader :paypay
|
|
2767
4228
|
# Attribute for field payto
|
|
2768
4229
|
attr_reader :payto
|
|
2769
4230
|
# Attribute for field pix
|
|
2770
4231
|
attr_reader :pix
|
|
2771
4232
|
# Attribute for field promptpay
|
|
2772
4233
|
attr_reader :promptpay
|
|
4234
|
+
# Attribute for field qris
|
|
4235
|
+
attr_reader :qris
|
|
4236
|
+
# Attribute for field rechnung
|
|
4237
|
+
attr_reader :rechnung
|
|
2773
4238
|
# Attribute for field revolut_pay
|
|
2774
4239
|
attr_reader :revolut_pay
|
|
2775
4240
|
# Attribute for field samsung_pay
|
|
@@ -2780,8 +4245,12 @@ module Stripe
|
|
|
2780
4245
|
attr_reader :scalapay
|
|
2781
4246
|
# Attribute for field sepa_debit
|
|
2782
4247
|
attr_reader :sepa_debit
|
|
4248
|
+
# Attribute for field shopeepay
|
|
4249
|
+
attr_reader :shopeepay
|
|
2783
4250
|
# Attribute for field sofort
|
|
2784
4251
|
attr_reader :sofort
|
|
4252
|
+
# Attribute for field stripe_balance
|
|
4253
|
+
attr_reader :stripe_balance
|
|
2785
4254
|
# Attribute for field swish
|
|
2786
4255
|
attr_reader :swish
|
|
2787
4256
|
# Attribute for field twint
|
|
@@ -2818,7 +4287,9 @@ module Stripe
|
|
|
2818
4287
|
eps: Eps,
|
|
2819
4288
|
fpx: Fpx,
|
|
2820
4289
|
giropay: Giropay,
|
|
4290
|
+
gopay: Gopay,
|
|
2821
4291
|
grabpay: Grabpay,
|
|
4292
|
+
id_bank_transfer: IdBankTransfer,
|
|
2822
4293
|
ideal: Ideal,
|
|
2823
4294
|
interac_present: InteracPresent,
|
|
2824
4295
|
kakao_pay: KakaoPay,
|
|
@@ -2837,15 +4308,20 @@ module Stripe
|
|
|
2837
4308
|
payco: Payco,
|
|
2838
4309
|
paynow: Paynow,
|
|
2839
4310
|
paypal: Paypal,
|
|
4311
|
+
paypay: Paypay,
|
|
2840
4312
|
payto: Payto,
|
|
2841
4313
|
pix: Pix,
|
|
2842
4314
|
promptpay: Promptpay,
|
|
4315
|
+
qris: Qris,
|
|
4316
|
+
rechnung: Rechnung,
|
|
2843
4317
|
revolut_pay: RevolutPay,
|
|
2844
4318
|
samsung_pay: SamsungPay,
|
|
2845
4319
|
satispay: Satispay,
|
|
2846
4320
|
scalapay: Scalapay,
|
|
2847
4321
|
sepa_debit: SepaDebit,
|
|
4322
|
+
shopeepay: Shopeepay,
|
|
2848
4323
|
sofort: Sofort,
|
|
4324
|
+
stripe_balance: StripeBalance,
|
|
2849
4325
|
swish: Swish,
|
|
2850
4326
|
twint: Twint,
|
|
2851
4327
|
upi: Upi,
|
|
@@ -3007,6 +4483,8 @@ module Stripe
|
|
|
3007
4483
|
attr_reader :application
|
|
3008
4484
|
# 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).
|
|
3009
4485
|
attr_reader :application_fee_amount
|
|
4486
|
+
# Attribute for field async_workflows
|
|
4487
|
+
attr_reader :async_workflows
|
|
3010
4488
|
# Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
3011
4489
|
attr_reader :automatic_payment_methods
|
|
3012
4490
|
# Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
|
|
@@ -3043,6 +4521,8 @@ module Stripe
|
|
|
3043
4521
|
attr_reader :description
|
|
3044
4522
|
# The list of payment method types to exclude from use with this payment.
|
|
3045
4523
|
attr_reader :excluded_payment_method_types
|
|
4524
|
+
# The FX Quote used for the PaymentIntent.
|
|
4525
|
+
attr_reader :fx_quote
|
|
3046
4526
|
# Attribute for field hooks
|
|
3047
4527
|
attr_reader :hooks
|
|
3048
4528
|
# Unique identifier for the object.
|
|
@@ -3082,6 +4562,8 @@ module Stripe
|
|
|
3082
4562
|
attr_reader :receipt_email
|
|
3083
4563
|
# ID of the review associated with this PaymentIntent, if any.
|
|
3084
4564
|
attr_reader :review
|
|
4565
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
|
4566
|
+
attr_reader :secret_key_confirmation
|
|
3085
4567
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3086
4568
|
#
|
|
3087
4569
|
# 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.
|
|
@@ -3275,6 +4757,56 @@ module Stripe
|
|
|
3275
4757
|
request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
|
|
3276
4758
|
end
|
|
3277
4759
|
|
|
4760
|
+
# Perform a decremental authorization on an eligible
|
|
4761
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
4762
|
+
# PaymentIntent's status must be requires_capture and
|
|
4763
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
4764
|
+
# must be available.
|
|
4765
|
+
#
|
|
4766
|
+
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
4767
|
+
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
4768
|
+
#
|
|
4769
|
+
# After decrement, the PaymentIntent object
|
|
4770
|
+
# returns with the updated
|
|
4771
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
4772
|
+
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
4773
|
+
#
|
|
4774
|
+
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
4775
|
+
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
4776
|
+
def decrement_authorization(params = {}, opts = {})
|
|
4777
|
+
request_stripe_object(
|
|
4778
|
+
method: :post,
|
|
4779
|
+
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
|
|
4780
|
+
params: params,
|
|
4781
|
+
opts: opts
|
|
4782
|
+
)
|
|
4783
|
+
end
|
|
4784
|
+
|
|
4785
|
+
# Perform a decremental authorization on an eligible
|
|
4786
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
4787
|
+
# PaymentIntent's status must be requires_capture and
|
|
4788
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
4789
|
+
# must be available.
|
|
4790
|
+
#
|
|
4791
|
+
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
4792
|
+
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
4793
|
+
#
|
|
4794
|
+
# After decrement, the PaymentIntent object
|
|
4795
|
+
# returns with the updated
|
|
4796
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
4797
|
+
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
4798
|
+
#
|
|
4799
|
+
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
4800
|
+
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
4801
|
+
def self.decrement_authorization(intent, params = {}, opts = {})
|
|
4802
|
+
request_stripe_object(
|
|
4803
|
+
method: :post,
|
|
4804
|
+
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
|
|
4805
|
+
params: params,
|
|
4806
|
+
opts: opts
|
|
4807
|
+
)
|
|
4808
|
+
end
|
|
4809
|
+
|
|
3278
4810
|
# Perform an incremental authorization on an eligible
|
|
3279
4811
|
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
3280
4812
|
# PaymentIntent's status must be requires_capture and
|
|
@@ -3363,6 +4895,26 @@ module Stripe
|
|
|
3363
4895
|
search(params, opts).auto_paging_each(&blk)
|
|
3364
4896
|
end
|
|
3365
4897
|
|
|
4898
|
+
# Trigger an external action on a PaymentIntent.
|
|
4899
|
+
def trigger_action(params = {}, opts = {})
|
|
4900
|
+
request_stripe_object(
|
|
4901
|
+
method: :post,
|
|
4902
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
|
|
4903
|
+
params: params,
|
|
4904
|
+
opts: opts
|
|
4905
|
+
)
|
|
4906
|
+
end
|
|
4907
|
+
|
|
4908
|
+
# Trigger an external action on a PaymentIntent.
|
|
4909
|
+
def self.trigger_action(intent, params = {}, opts = {})
|
|
4910
|
+
request_stripe_object(
|
|
4911
|
+
method: :post,
|
|
4912
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
|
4913
|
+
params: params,
|
|
4914
|
+
opts: opts
|
|
4915
|
+
)
|
|
4916
|
+
end
|
|
4917
|
+
|
|
3366
4918
|
# Updates properties on a PaymentIntent object without confirming.
|
|
3367
4919
|
#
|
|
3368
4920
|
# Depending on which properties you update, you might need to confirm the
|
|
@@ -3402,6 +4954,7 @@ module Stripe
|
|
|
3402
4954
|
def self.inner_class_types
|
|
3403
4955
|
@inner_class_types = {
|
|
3404
4956
|
amount_details: AmountDetails,
|
|
4957
|
+
async_workflows: AsyncWorkflows,
|
|
3405
4958
|
automatic_payment_methods: AutomaticPaymentMethods,
|
|
3406
4959
|
hooks: Hooks,
|
|
3407
4960
|
last_payment_error: LastPaymentError,
|