stripe 21.1.0 → 21.2.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 +4 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +193 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_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 +80 -0
- data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -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_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_under_review_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_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_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/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +52 -0
- data/lib/stripe/params/account_create_params.rb +299 -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 +191 -0
- data/lib/stripe/params/account_update_params.rb +261 -0
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -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_refill_params.rb +37 -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 +87 -3
- data/lib/stripe/params/checkout/session_update_params.rb +161 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/coupon_create_params.rb +48 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +23 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -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 +38 -1
- data/lib/stripe/params/fx_quote_create_params.rb +71 -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 +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +64 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +772 -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 +33 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +64 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- 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 +981 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2391 -100
- data/lib/stripe/params/payment_intent_create_params.rb +2391 -100
- 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 +2423 -101
- 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 +88 -0
- data/lib/stripe/params/payment_plan_create_params.rb +128 -0
- data/lib/stripe/params/payment_plan_list_params.rb +25 -0
- data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_plan_update_params.rb +105 -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/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/radar/billing_evaluation_create_params.rb +231 -0
- 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_list_params.rb +37 -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 +122 -3
- data/lib/stripe/params/setup_intent_create_params.rb +122 -3
- data/lib/stripe/params/setup_intent_update_params.rb +122 -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 +71 -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 +133 -6
- data/lib/stripe/params/subscription_item_create_params.rb +50 -3
- data/lib/stripe/params/subscription_item_update_params.rb +33 -2
- 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 +116 -5
- 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/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -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 +19 -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/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 +392 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
- data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -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/data/schema_list_params.rb +26 -0
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -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 +26 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +61 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
- 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 +112 -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_disable_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -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/signals/account_activity_create_params.rb +200 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +365 -0
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +162 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -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 +185 -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 +18 -1
- data/lib/stripe/resources/charge.rb +227 -1
- data/lib/stripe/resources/checkout/session.rb +91 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +58 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +18 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +126 -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/authorization.rb +16 -0
- data/lib/stripe/resources/issuing/card.rb +16 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -1
- 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 +18 -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 +1018 -13
- data/lib/stripe/resources/payment_method.rb +151 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_plan.rb +213 -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/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1261 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/plan.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 +38 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +73 -0
- data/lib/stripe/resources/subscription_item.rb +22 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/form.rb +264 -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/token.rb +15 -1
- 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/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 +802 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
- data/lib/stripe/resources/v2/data/query_run.rb +255 -0
- data/lib/stripe/resources/v2/data/report.rb +104 -0
- data/lib/stripe/resources/v2/data/report_run.rb +246 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +143 -0
- data/lib/stripe/resources/v2/data/schema.rb +121 -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/iam/activity_log.rb +926 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +177 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -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/v2/signals/account_activity.rb +252 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
- data/lib/stripe/resources.rb +339 -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/payment_plan_service.rb +50 -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/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/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +30 -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 +45 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -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/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- 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 +3 -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/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 +4 -1
- data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
- data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
- data/lib/stripe/services/v2/data/report_service.rb +34 -0
- 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/schema_service.rb +32 -0
- data/lib/stripe/services/v2/data_service.rb +19 -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/financial_account_service.rb +27 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- 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/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +186 -0
- data/lib/stripe/stripe_client.rb +4 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +216 -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 +53 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
- data/rbi/stripe.rbi +100059 -38254
- metadata +330 -3
|
@@ -145,6 +145,18 @@ module Stripe
|
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
+
class Surcharge < ::Stripe::RequestParams
|
|
149
|
+
# Portion of the amount that corresponds to a surcharge.
|
|
150
|
+
attr_accessor :amount
|
|
151
|
+
# Indicate whether to enforce validations on the surcharge amount.
|
|
152
|
+
attr_accessor :enforce_validation
|
|
153
|
+
|
|
154
|
+
def initialize(amount: nil, enforce_validation: nil)
|
|
155
|
+
@amount = amount
|
|
156
|
+
@enforce_validation = enforce_validation
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
148
160
|
class Tax < ::Stripe::RequestParams
|
|
149
161
|
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
150
162
|
#
|
|
@@ -169,6 +181,8 @@ module Stripe
|
|
|
169
181
|
attr_accessor :line_items
|
|
170
182
|
# Contains information about the shipping portion of the amount.
|
|
171
183
|
attr_accessor :shipping
|
|
184
|
+
# Contains information about the surcharge portion of the amount.
|
|
185
|
+
attr_accessor :surcharge
|
|
172
186
|
# Contains information about the tax portion of the amount.
|
|
173
187
|
attr_accessor :tax
|
|
174
188
|
|
|
@@ -177,12 +191,14 @@ module Stripe
|
|
|
177
191
|
enforce_arithmetic_validation: nil,
|
|
178
192
|
line_items: nil,
|
|
179
193
|
shipping: nil,
|
|
194
|
+
surcharge: nil,
|
|
180
195
|
tax: nil
|
|
181
196
|
)
|
|
182
197
|
@discount_amount = discount_amount
|
|
183
198
|
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
184
199
|
@line_items = line_items
|
|
185
200
|
@shipping = shipping
|
|
201
|
+
@surcharge = surcharge
|
|
186
202
|
@tax = tax
|
|
187
203
|
end
|
|
188
204
|
end
|
|
@@ -213,6 +229,232 @@ module Stripe
|
|
|
213
229
|
end
|
|
214
230
|
|
|
215
231
|
class PaymentDetails < ::Stripe::RequestParams
|
|
232
|
+
class CarRental < ::Stripe::RequestParams
|
|
233
|
+
class Affiliate < ::Stripe::RequestParams
|
|
234
|
+
# The name of the affiliate that originated the purchase.
|
|
235
|
+
attr_accessor :name
|
|
236
|
+
|
|
237
|
+
def initialize(name: nil)
|
|
238
|
+
@name = name
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class Delivery < ::Stripe::RequestParams
|
|
243
|
+
class Recipient < ::Stripe::RequestParams
|
|
244
|
+
# The email of the recipient the ticket is delivered to.
|
|
245
|
+
attr_accessor :email
|
|
246
|
+
# The name of the recipient the ticket is delivered to.
|
|
247
|
+
attr_accessor :name
|
|
248
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
249
|
+
attr_accessor :phone
|
|
250
|
+
|
|
251
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
252
|
+
@email = email
|
|
253
|
+
@name = name
|
|
254
|
+
@phone = phone
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
# The delivery method for the payment
|
|
258
|
+
attr_accessor :mode
|
|
259
|
+
# Details of the recipient.
|
|
260
|
+
attr_accessor :recipient
|
|
261
|
+
|
|
262
|
+
def initialize(mode: nil, recipient: nil)
|
|
263
|
+
@mode = mode
|
|
264
|
+
@recipient = recipient
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
class Distance < ::Stripe::RequestParams
|
|
269
|
+
# Distance traveled.
|
|
270
|
+
attr_accessor :amount
|
|
271
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
272
|
+
attr_accessor :unit
|
|
273
|
+
|
|
274
|
+
def initialize(amount: nil, unit: nil)
|
|
275
|
+
@amount = amount
|
|
276
|
+
@unit = unit
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
class Driver < ::Stripe::RequestParams
|
|
281
|
+
# Driver's identification number.
|
|
282
|
+
attr_accessor :driver_identification_number
|
|
283
|
+
# Driver's tax number.
|
|
284
|
+
attr_accessor :driver_tax_number
|
|
285
|
+
# Full name of the person or entity on the car reservation.
|
|
286
|
+
attr_accessor :name
|
|
287
|
+
|
|
288
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
289
|
+
@driver_identification_number = driver_identification_number
|
|
290
|
+
@driver_tax_number = driver_tax_number
|
|
291
|
+
@name = name
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
296
|
+
# City, district, suburb, town, or village.
|
|
297
|
+
attr_accessor :city
|
|
298
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
299
|
+
attr_accessor :country
|
|
300
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
301
|
+
attr_accessor :line1
|
|
302
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
303
|
+
attr_accessor :line2
|
|
304
|
+
# ZIP or postal code.
|
|
305
|
+
attr_accessor :postal_code
|
|
306
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
307
|
+
attr_accessor :state
|
|
308
|
+
|
|
309
|
+
def initialize(
|
|
310
|
+
city: nil,
|
|
311
|
+
country: nil,
|
|
312
|
+
line1: nil,
|
|
313
|
+
line2: nil,
|
|
314
|
+
postal_code: nil,
|
|
315
|
+
state: nil
|
|
316
|
+
)
|
|
317
|
+
@city = city
|
|
318
|
+
@country = country
|
|
319
|
+
@line1 = line1
|
|
320
|
+
@line2 = line2
|
|
321
|
+
@postal_code = postal_code
|
|
322
|
+
@state = state
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
327
|
+
# City, district, suburb, town, or village.
|
|
328
|
+
attr_accessor :city
|
|
329
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
330
|
+
attr_accessor :country
|
|
331
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
332
|
+
attr_accessor :line1
|
|
333
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
334
|
+
attr_accessor :line2
|
|
335
|
+
# ZIP or postal code.
|
|
336
|
+
attr_accessor :postal_code
|
|
337
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
338
|
+
attr_accessor :state
|
|
339
|
+
|
|
340
|
+
def initialize(
|
|
341
|
+
city: nil,
|
|
342
|
+
country: nil,
|
|
343
|
+
line1: nil,
|
|
344
|
+
line2: nil,
|
|
345
|
+
postal_code: nil,
|
|
346
|
+
state: nil
|
|
347
|
+
)
|
|
348
|
+
@city = city
|
|
349
|
+
@country = country
|
|
350
|
+
@line1 = line1
|
|
351
|
+
@line2 = line2
|
|
352
|
+
@postal_code = postal_code
|
|
353
|
+
@state = state
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
# Affiliate details for this purchase.
|
|
357
|
+
attr_accessor :affiliate
|
|
358
|
+
# The booking number associated with the car rental.
|
|
359
|
+
attr_accessor :booking_number
|
|
360
|
+
# Class code of the car.
|
|
361
|
+
attr_accessor :car_class_code
|
|
362
|
+
# Make of the car.
|
|
363
|
+
attr_accessor :car_make
|
|
364
|
+
# Model of the car.
|
|
365
|
+
attr_accessor :car_model
|
|
366
|
+
# The name of the rental car company.
|
|
367
|
+
attr_accessor :company
|
|
368
|
+
# The customer service phone number of the car rental company.
|
|
369
|
+
attr_accessor :customer_service_phone_number
|
|
370
|
+
# Number of days the car is being rented.
|
|
371
|
+
attr_accessor :days_rented
|
|
372
|
+
# Delivery details for this purchase.
|
|
373
|
+
attr_accessor :delivery
|
|
374
|
+
# The details of the distance traveled during the rental period.
|
|
375
|
+
attr_accessor :distance
|
|
376
|
+
# The details of the passengers in the travel reservation
|
|
377
|
+
attr_accessor :drivers
|
|
378
|
+
# List of additional charges being billed.
|
|
379
|
+
attr_accessor :extra_charges
|
|
380
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
381
|
+
attr_accessor :no_show
|
|
382
|
+
# Car pick-up address.
|
|
383
|
+
attr_accessor :pickup_address
|
|
384
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
385
|
+
attr_accessor :pickup_at
|
|
386
|
+
# Name of the pickup location.
|
|
387
|
+
attr_accessor :pickup_location_name
|
|
388
|
+
# Rental rate.
|
|
389
|
+
attr_accessor :rate_amount
|
|
390
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
391
|
+
attr_accessor :rate_interval
|
|
392
|
+
# The name of the person or entity renting the car.
|
|
393
|
+
attr_accessor :renter_name
|
|
394
|
+
# Car return address.
|
|
395
|
+
attr_accessor :return_address
|
|
396
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
397
|
+
attr_accessor :return_at
|
|
398
|
+
# Name of the return location.
|
|
399
|
+
attr_accessor :return_location_name
|
|
400
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
401
|
+
attr_accessor :tax_exempt
|
|
402
|
+
# The vehicle identification number.
|
|
403
|
+
attr_accessor :vehicle_identification_number
|
|
404
|
+
|
|
405
|
+
def initialize(
|
|
406
|
+
affiliate: nil,
|
|
407
|
+
booking_number: nil,
|
|
408
|
+
car_class_code: nil,
|
|
409
|
+
car_make: nil,
|
|
410
|
+
car_model: nil,
|
|
411
|
+
company: nil,
|
|
412
|
+
customer_service_phone_number: nil,
|
|
413
|
+
days_rented: nil,
|
|
414
|
+
delivery: nil,
|
|
415
|
+
distance: nil,
|
|
416
|
+
drivers: nil,
|
|
417
|
+
extra_charges: nil,
|
|
418
|
+
no_show: nil,
|
|
419
|
+
pickup_address: nil,
|
|
420
|
+
pickup_at: nil,
|
|
421
|
+
pickup_location_name: nil,
|
|
422
|
+
rate_amount: nil,
|
|
423
|
+
rate_interval: nil,
|
|
424
|
+
renter_name: nil,
|
|
425
|
+
return_address: nil,
|
|
426
|
+
return_at: nil,
|
|
427
|
+
return_location_name: nil,
|
|
428
|
+
tax_exempt: nil,
|
|
429
|
+
vehicle_identification_number: nil
|
|
430
|
+
)
|
|
431
|
+
@affiliate = affiliate
|
|
432
|
+
@booking_number = booking_number
|
|
433
|
+
@car_class_code = car_class_code
|
|
434
|
+
@car_make = car_make
|
|
435
|
+
@car_model = car_model
|
|
436
|
+
@company = company
|
|
437
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
438
|
+
@days_rented = days_rented
|
|
439
|
+
@delivery = delivery
|
|
440
|
+
@distance = distance
|
|
441
|
+
@drivers = drivers
|
|
442
|
+
@extra_charges = extra_charges
|
|
443
|
+
@no_show = no_show
|
|
444
|
+
@pickup_address = pickup_address
|
|
445
|
+
@pickup_at = pickup_at
|
|
446
|
+
@pickup_location_name = pickup_location_name
|
|
447
|
+
@rate_amount = rate_amount
|
|
448
|
+
@rate_interval = rate_interval
|
|
449
|
+
@renter_name = renter_name
|
|
450
|
+
@return_address = return_address
|
|
451
|
+
@return_at = return_at
|
|
452
|
+
@return_location_name = return_location_name
|
|
453
|
+
@tax_exempt = tax_exempt
|
|
454
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
|
|
216
458
|
class CarRentalDatum < ::Stripe::RequestParams
|
|
217
459
|
class Affiliate < ::Stripe::RequestParams
|
|
218
460
|
# Affiliate partner code.
|
|
@@ -571,6 +813,669 @@ module Stripe
|
|
|
571
813
|
end
|
|
572
814
|
end
|
|
573
815
|
|
|
816
|
+
class EventDetails < ::Stripe::RequestParams
|
|
817
|
+
class Address < ::Stripe::RequestParams
|
|
818
|
+
# City, district, suburb, town, or village.
|
|
819
|
+
attr_accessor :city
|
|
820
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
821
|
+
attr_accessor :country
|
|
822
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
823
|
+
attr_accessor :line1
|
|
824
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
825
|
+
attr_accessor :line2
|
|
826
|
+
# ZIP or postal code.
|
|
827
|
+
attr_accessor :postal_code
|
|
828
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
829
|
+
attr_accessor :state
|
|
830
|
+
|
|
831
|
+
def initialize(
|
|
832
|
+
city: nil,
|
|
833
|
+
country: nil,
|
|
834
|
+
line1: nil,
|
|
835
|
+
line2: nil,
|
|
836
|
+
postal_code: nil,
|
|
837
|
+
state: nil
|
|
838
|
+
)
|
|
839
|
+
@city = city
|
|
840
|
+
@country = country
|
|
841
|
+
@line1 = line1
|
|
842
|
+
@line2 = line2
|
|
843
|
+
@postal_code = postal_code
|
|
844
|
+
@state = state
|
|
845
|
+
end
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
class Affiliate < ::Stripe::RequestParams
|
|
849
|
+
# The name of the affiliate that originated the purchase.
|
|
850
|
+
attr_accessor :name
|
|
851
|
+
|
|
852
|
+
def initialize(name: nil)
|
|
853
|
+
@name = name
|
|
854
|
+
end
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
class Delivery < ::Stripe::RequestParams
|
|
858
|
+
class Recipient < ::Stripe::RequestParams
|
|
859
|
+
# The email of the recipient the ticket is delivered to.
|
|
860
|
+
attr_accessor :email
|
|
861
|
+
# The name of the recipient the ticket is delivered to.
|
|
862
|
+
attr_accessor :name
|
|
863
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
864
|
+
attr_accessor :phone
|
|
865
|
+
|
|
866
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
867
|
+
@email = email
|
|
868
|
+
@name = name
|
|
869
|
+
@phone = phone
|
|
870
|
+
end
|
|
871
|
+
end
|
|
872
|
+
# The delivery method for the payment
|
|
873
|
+
attr_accessor :mode
|
|
874
|
+
# Details of the recipient.
|
|
875
|
+
attr_accessor :recipient
|
|
876
|
+
|
|
877
|
+
def initialize(mode: nil, recipient: nil)
|
|
878
|
+
@mode = mode
|
|
879
|
+
@recipient = recipient
|
|
880
|
+
end
|
|
881
|
+
end
|
|
882
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
883
|
+
attr_accessor :access_controlled_venue
|
|
884
|
+
# The event location's address.
|
|
885
|
+
attr_accessor :address
|
|
886
|
+
# Affiliate details for this purchase.
|
|
887
|
+
attr_accessor :affiliate
|
|
888
|
+
# The name of the company
|
|
889
|
+
attr_accessor :company
|
|
890
|
+
# Delivery details for this purchase.
|
|
891
|
+
attr_accessor :delivery
|
|
892
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
893
|
+
attr_accessor :ends_at
|
|
894
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
895
|
+
attr_accessor :genre
|
|
896
|
+
# The name of the event.
|
|
897
|
+
attr_accessor :name
|
|
898
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
899
|
+
attr_accessor :starts_at
|
|
900
|
+
|
|
901
|
+
def initialize(
|
|
902
|
+
access_controlled_venue: nil,
|
|
903
|
+
address: nil,
|
|
904
|
+
affiliate: nil,
|
|
905
|
+
company: nil,
|
|
906
|
+
delivery: nil,
|
|
907
|
+
ends_at: nil,
|
|
908
|
+
genre: nil,
|
|
909
|
+
name: nil,
|
|
910
|
+
starts_at: nil
|
|
911
|
+
)
|
|
912
|
+
@access_controlled_venue = access_controlled_venue
|
|
913
|
+
@address = address
|
|
914
|
+
@affiliate = affiliate
|
|
915
|
+
@company = company
|
|
916
|
+
@delivery = delivery
|
|
917
|
+
@ends_at = ends_at
|
|
918
|
+
@genre = genre
|
|
919
|
+
@name = name
|
|
920
|
+
@starts_at = starts_at
|
|
921
|
+
end
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
class Flight < ::Stripe::RequestParams
|
|
925
|
+
class Affiliate < ::Stripe::RequestParams
|
|
926
|
+
# The name of the affiliate that originated the purchase.
|
|
927
|
+
attr_accessor :name
|
|
928
|
+
|
|
929
|
+
def initialize(name: nil)
|
|
930
|
+
@name = name
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
class Delivery < ::Stripe::RequestParams
|
|
935
|
+
class Recipient < ::Stripe::RequestParams
|
|
936
|
+
# The email of the recipient the ticket is delivered to.
|
|
937
|
+
attr_accessor :email
|
|
938
|
+
# The name of the recipient the ticket is delivered to.
|
|
939
|
+
attr_accessor :name
|
|
940
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
941
|
+
attr_accessor :phone
|
|
942
|
+
|
|
943
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
944
|
+
@email = email
|
|
945
|
+
@name = name
|
|
946
|
+
@phone = phone
|
|
947
|
+
end
|
|
948
|
+
end
|
|
949
|
+
# The delivery method for the payment
|
|
950
|
+
attr_accessor :mode
|
|
951
|
+
# Details of the recipient.
|
|
952
|
+
attr_accessor :recipient
|
|
953
|
+
|
|
954
|
+
def initialize(mode: nil, recipient: nil)
|
|
955
|
+
@mode = mode
|
|
956
|
+
@recipient = recipient
|
|
957
|
+
end
|
|
958
|
+
end
|
|
959
|
+
|
|
960
|
+
class Passenger < ::Stripe::RequestParams
|
|
961
|
+
# Full name of the person or entity on the flight reservation.
|
|
962
|
+
attr_accessor :name
|
|
963
|
+
|
|
964
|
+
def initialize(name: nil)
|
|
965
|
+
@name = name
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
class Segment < ::Stripe::RequestParams
|
|
970
|
+
# The flight segment amount.
|
|
971
|
+
attr_accessor :amount
|
|
972
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
973
|
+
attr_accessor :arrival_airport
|
|
974
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
975
|
+
attr_accessor :arrives_at
|
|
976
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
977
|
+
attr_accessor :carrier
|
|
978
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
979
|
+
attr_accessor :departs_at
|
|
980
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
981
|
+
attr_accessor :departure_airport
|
|
982
|
+
# The flight number associated with the segment
|
|
983
|
+
attr_accessor :flight_number
|
|
984
|
+
# The fare class for the segment.
|
|
985
|
+
attr_accessor :service_class
|
|
986
|
+
|
|
987
|
+
def initialize(
|
|
988
|
+
amount: nil,
|
|
989
|
+
arrival_airport: nil,
|
|
990
|
+
arrives_at: nil,
|
|
991
|
+
carrier: nil,
|
|
992
|
+
departs_at: nil,
|
|
993
|
+
departure_airport: nil,
|
|
994
|
+
flight_number: nil,
|
|
995
|
+
service_class: nil
|
|
996
|
+
)
|
|
997
|
+
@amount = amount
|
|
998
|
+
@arrival_airport = arrival_airport
|
|
999
|
+
@arrives_at = arrives_at
|
|
1000
|
+
@carrier = carrier
|
|
1001
|
+
@departs_at = departs_at
|
|
1002
|
+
@departure_airport = departure_airport
|
|
1003
|
+
@flight_number = flight_number
|
|
1004
|
+
@service_class = service_class
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
# Affiliate details for this purchase.
|
|
1008
|
+
attr_accessor :affiliate
|
|
1009
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
1010
|
+
attr_accessor :agency_number
|
|
1011
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
1012
|
+
attr_accessor :carrier
|
|
1013
|
+
# Delivery details for this purchase.
|
|
1014
|
+
attr_accessor :delivery
|
|
1015
|
+
# The name of the person or entity on the reservation.
|
|
1016
|
+
attr_accessor :passenger_name
|
|
1017
|
+
# The details of the passengers in the travel reservation.
|
|
1018
|
+
attr_accessor :passengers
|
|
1019
|
+
# The individual flight segments associated with the trip.
|
|
1020
|
+
attr_accessor :segments
|
|
1021
|
+
# The ticket number associated with the travel reservation.
|
|
1022
|
+
attr_accessor :ticket_number
|
|
1023
|
+
|
|
1024
|
+
def initialize(
|
|
1025
|
+
affiliate: nil,
|
|
1026
|
+
agency_number: nil,
|
|
1027
|
+
carrier: nil,
|
|
1028
|
+
delivery: nil,
|
|
1029
|
+
passenger_name: nil,
|
|
1030
|
+
passengers: nil,
|
|
1031
|
+
segments: nil,
|
|
1032
|
+
ticket_number: nil
|
|
1033
|
+
)
|
|
1034
|
+
@affiliate = affiliate
|
|
1035
|
+
@agency_number = agency_number
|
|
1036
|
+
@carrier = carrier
|
|
1037
|
+
@delivery = delivery
|
|
1038
|
+
@passenger_name = passenger_name
|
|
1039
|
+
@passengers = passengers
|
|
1040
|
+
@segments = segments
|
|
1041
|
+
@ticket_number = ticket_number
|
|
1042
|
+
end
|
|
1043
|
+
end
|
|
1044
|
+
|
|
1045
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1046
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1047
|
+
# Affiliate partner code.
|
|
1048
|
+
attr_accessor :code
|
|
1049
|
+
# Name of affiliate partner.
|
|
1050
|
+
attr_accessor :name
|
|
1051
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1052
|
+
attr_accessor :travel_authorization_code
|
|
1053
|
+
|
|
1054
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1055
|
+
@code = code
|
|
1056
|
+
@name = name
|
|
1057
|
+
@travel_authorization_code = travel_authorization_code
|
|
1058
|
+
end
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
class Insurance < ::Stripe::RequestParams
|
|
1062
|
+
# Insurance cost.
|
|
1063
|
+
attr_accessor :amount
|
|
1064
|
+
# Insurance currency.
|
|
1065
|
+
attr_accessor :currency
|
|
1066
|
+
# Insurance company name.
|
|
1067
|
+
attr_accessor :insurance_company_name
|
|
1068
|
+
# Type of insurance.
|
|
1069
|
+
attr_accessor :insurance_type
|
|
1070
|
+
|
|
1071
|
+
def initialize(
|
|
1072
|
+
amount: nil,
|
|
1073
|
+
currency: nil,
|
|
1074
|
+
insurance_company_name: nil,
|
|
1075
|
+
insurance_type: nil
|
|
1076
|
+
)
|
|
1077
|
+
@amount = amount
|
|
1078
|
+
@currency = currency
|
|
1079
|
+
@insurance_company_name = insurance_company_name
|
|
1080
|
+
@insurance_type = insurance_type
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
class Passenger < ::Stripe::RequestParams
|
|
1085
|
+
# Passenger's full name.
|
|
1086
|
+
attr_accessor :name
|
|
1087
|
+
|
|
1088
|
+
def initialize(name: nil)
|
|
1089
|
+
@name = name
|
|
1090
|
+
end
|
|
1091
|
+
end
|
|
1092
|
+
|
|
1093
|
+
class Segment < ::Stripe::RequestParams
|
|
1094
|
+
class Arrival < ::Stripe::RequestParams
|
|
1095
|
+
# Arrival airport IATA code.
|
|
1096
|
+
attr_accessor :airport
|
|
1097
|
+
# Arrival date/time.
|
|
1098
|
+
attr_accessor :arrives_at
|
|
1099
|
+
# Arrival city.
|
|
1100
|
+
attr_accessor :city
|
|
1101
|
+
# Arrival country.
|
|
1102
|
+
attr_accessor :country
|
|
1103
|
+
|
|
1104
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1105
|
+
@airport = airport
|
|
1106
|
+
@arrives_at = arrives_at
|
|
1107
|
+
@city = city
|
|
1108
|
+
@country = country
|
|
1109
|
+
end
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
class Departure < ::Stripe::RequestParams
|
|
1113
|
+
# Departure airport IATA code.
|
|
1114
|
+
attr_accessor :airport
|
|
1115
|
+
# Departure city.
|
|
1116
|
+
attr_accessor :city
|
|
1117
|
+
# Departure country.
|
|
1118
|
+
attr_accessor :country
|
|
1119
|
+
# Departure date/time.
|
|
1120
|
+
attr_accessor :departs_at
|
|
1121
|
+
|
|
1122
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1123
|
+
@airport = airport
|
|
1124
|
+
@city = city
|
|
1125
|
+
@country = country
|
|
1126
|
+
@departs_at = departs_at
|
|
1127
|
+
end
|
|
1128
|
+
end
|
|
1129
|
+
# Segment fare amount.
|
|
1130
|
+
attr_accessor :amount
|
|
1131
|
+
# Arrival details.
|
|
1132
|
+
attr_accessor :arrival
|
|
1133
|
+
# Airline carrier code.
|
|
1134
|
+
attr_accessor :carrier_code
|
|
1135
|
+
# Carrier name.
|
|
1136
|
+
attr_accessor :carrier_name
|
|
1137
|
+
# Segment currency.
|
|
1138
|
+
attr_accessor :currency
|
|
1139
|
+
# Departure details.
|
|
1140
|
+
attr_accessor :departure
|
|
1141
|
+
# Exchange ticket number.
|
|
1142
|
+
attr_accessor :exchange_ticket_number
|
|
1143
|
+
# Fare basis code.
|
|
1144
|
+
attr_accessor :fare_basis_code
|
|
1145
|
+
# Additional fees.
|
|
1146
|
+
attr_accessor :fees
|
|
1147
|
+
# Flight number.
|
|
1148
|
+
attr_accessor :flight_number
|
|
1149
|
+
# Stopover indicator.
|
|
1150
|
+
attr_accessor :is_stop_over_indicator
|
|
1151
|
+
# Refundable ticket indicator.
|
|
1152
|
+
attr_accessor :refundable
|
|
1153
|
+
# Class of service.
|
|
1154
|
+
attr_accessor :service_class
|
|
1155
|
+
# Tax amount for segment.
|
|
1156
|
+
attr_accessor :tax_amount
|
|
1157
|
+
# Ticket number.
|
|
1158
|
+
attr_accessor :ticket_number
|
|
1159
|
+
|
|
1160
|
+
def initialize(
|
|
1161
|
+
amount: nil,
|
|
1162
|
+
arrival: nil,
|
|
1163
|
+
carrier_code: nil,
|
|
1164
|
+
carrier_name: nil,
|
|
1165
|
+
currency: nil,
|
|
1166
|
+
departure: nil,
|
|
1167
|
+
exchange_ticket_number: nil,
|
|
1168
|
+
fare_basis_code: nil,
|
|
1169
|
+
fees: nil,
|
|
1170
|
+
flight_number: nil,
|
|
1171
|
+
is_stop_over_indicator: nil,
|
|
1172
|
+
refundable: nil,
|
|
1173
|
+
service_class: nil,
|
|
1174
|
+
tax_amount: nil,
|
|
1175
|
+
ticket_number: nil
|
|
1176
|
+
)
|
|
1177
|
+
@amount = amount
|
|
1178
|
+
@arrival = arrival
|
|
1179
|
+
@carrier_code = carrier_code
|
|
1180
|
+
@carrier_name = carrier_name
|
|
1181
|
+
@currency = currency
|
|
1182
|
+
@departure = departure
|
|
1183
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1184
|
+
@fare_basis_code = fare_basis_code
|
|
1185
|
+
@fees = fees
|
|
1186
|
+
@flight_number = flight_number
|
|
1187
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1188
|
+
@refundable = refundable
|
|
1189
|
+
@service_class = service_class
|
|
1190
|
+
@tax_amount = tax_amount
|
|
1191
|
+
@ticket_number = ticket_number
|
|
1192
|
+
end
|
|
1193
|
+
end
|
|
1194
|
+
|
|
1195
|
+
class Total < ::Stripe::RequestParams
|
|
1196
|
+
class Discounts < ::Stripe::RequestParams
|
|
1197
|
+
# Corporate client discount code.
|
|
1198
|
+
attr_accessor :corporate_client_code
|
|
1199
|
+
|
|
1200
|
+
def initialize(corporate_client_code: nil)
|
|
1201
|
+
@corporate_client_code = corporate_client_code
|
|
1202
|
+
end
|
|
1203
|
+
end
|
|
1204
|
+
|
|
1205
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1206
|
+
# Amount of additional charges.
|
|
1207
|
+
attr_accessor :amount
|
|
1208
|
+
# Type of additional charges.
|
|
1209
|
+
attr_accessor :type
|
|
1210
|
+
|
|
1211
|
+
def initialize(amount: nil, type: nil)
|
|
1212
|
+
@amount = amount
|
|
1213
|
+
@type = type
|
|
1214
|
+
end
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
class Tax < ::Stripe::RequestParams
|
|
1218
|
+
class TaxItem < ::Stripe::RequestParams
|
|
1219
|
+
# Tax amount.
|
|
1220
|
+
attr_accessor :amount
|
|
1221
|
+
# Tax rate.
|
|
1222
|
+
attr_accessor :rate
|
|
1223
|
+
# Type of tax.
|
|
1224
|
+
attr_accessor :type
|
|
1225
|
+
|
|
1226
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1227
|
+
@amount = amount
|
|
1228
|
+
@rate = rate
|
|
1229
|
+
@type = type
|
|
1230
|
+
end
|
|
1231
|
+
end
|
|
1232
|
+
# Array of tax details.
|
|
1233
|
+
attr_accessor :tax_items
|
|
1234
|
+
|
|
1235
|
+
def initialize(tax_items: nil)
|
|
1236
|
+
@tax_items = tax_items
|
|
1237
|
+
end
|
|
1238
|
+
end
|
|
1239
|
+
# Total flight amount.
|
|
1240
|
+
attr_accessor :amount
|
|
1241
|
+
# Reason for credit.
|
|
1242
|
+
attr_accessor :credit_reason
|
|
1243
|
+
# Total currency.
|
|
1244
|
+
attr_accessor :currency
|
|
1245
|
+
# Discount details.
|
|
1246
|
+
attr_accessor :discounts
|
|
1247
|
+
# Additional charges.
|
|
1248
|
+
attr_accessor :extra_charges
|
|
1249
|
+
# Tax breakdown.
|
|
1250
|
+
attr_accessor :tax
|
|
1251
|
+
|
|
1252
|
+
def initialize(
|
|
1253
|
+
amount: nil,
|
|
1254
|
+
credit_reason: nil,
|
|
1255
|
+
currency: nil,
|
|
1256
|
+
discounts: nil,
|
|
1257
|
+
extra_charges: nil,
|
|
1258
|
+
tax: nil
|
|
1259
|
+
)
|
|
1260
|
+
@amount = amount
|
|
1261
|
+
@credit_reason = credit_reason
|
|
1262
|
+
@currency = currency
|
|
1263
|
+
@discounts = discounts
|
|
1264
|
+
@extra_charges = extra_charges
|
|
1265
|
+
@tax = tax
|
|
1266
|
+
end
|
|
1267
|
+
end
|
|
1268
|
+
# Affiliate details if applicable.
|
|
1269
|
+
attr_accessor :affiliate
|
|
1270
|
+
# Reservation reference.
|
|
1271
|
+
attr_accessor :booking_number
|
|
1272
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1273
|
+
attr_accessor :computerized_reservation_system
|
|
1274
|
+
# Ticket restrictions.
|
|
1275
|
+
attr_accessor :endorsements_and_restrictions
|
|
1276
|
+
# List of insurances.
|
|
1277
|
+
attr_accessor :insurances
|
|
1278
|
+
# List of passengers.
|
|
1279
|
+
attr_accessor :passengers
|
|
1280
|
+
# List of flight segments.
|
|
1281
|
+
attr_accessor :segments
|
|
1282
|
+
# Electronic ticket indicator.
|
|
1283
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1284
|
+
# Total cost breakdown.
|
|
1285
|
+
attr_accessor :total
|
|
1286
|
+
# Type of flight transaction.
|
|
1287
|
+
attr_accessor :transaction_type
|
|
1288
|
+
|
|
1289
|
+
def initialize(
|
|
1290
|
+
affiliate: nil,
|
|
1291
|
+
booking_number: nil,
|
|
1292
|
+
computerized_reservation_system: nil,
|
|
1293
|
+
endorsements_and_restrictions: nil,
|
|
1294
|
+
insurances: nil,
|
|
1295
|
+
passengers: nil,
|
|
1296
|
+
segments: nil,
|
|
1297
|
+
ticket_electronically_issued_indicator: nil,
|
|
1298
|
+
total: nil,
|
|
1299
|
+
transaction_type: nil
|
|
1300
|
+
)
|
|
1301
|
+
@affiliate = affiliate
|
|
1302
|
+
@booking_number = booking_number
|
|
1303
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1304
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1305
|
+
@insurances = insurances
|
|
1306
|
+
@passengers = passengers
|
|
1307
|
+
@segments = segments
|
|
1308
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1309
|
+
@total = total
|
|
1310
|
+
@transaction_type = transaction_type
|
|
1311
|
+
end
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
class Lodging < ::Stripe::RequestParams
|
|
1315
|
+
class Address < ::Stripe::RequestParams
|
|
1316
|
+
# City, district, suburb, town, or village.
|
|
1317
|
+
attr_accessor :city
|
|
1318
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1319
|
+
attr_accessor :country
|
|
1320
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1321
|
+
attr_accessor :line1
|
|
1322
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1323
|
+
attr_accessor :line2
|
|
1324
|
+
# ZIP or postal code.
|
|
1325
|
+
attr_accessor :postal_code
|
|
1326
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1327
|
+
attr_accessor :state
|
|
1328
|
+
|
|
1329
|
+
def initialize(
|
|
1330
|
+
city: nil,
|
|
1331
|
+
country: nil,
|
|
1332
|
+
line1: nil,
|
|
1333
|
+
line2: nil,
|
|
1334
|
+
postal_code: nil,
|
|
1335
|
+
state: nil
|
|
1336
|
+
)
|
|
1337
|
+
@city = city
|
|
1338
|
+
@country = country
|
|
1339
|
+
@line1 = line1
|
|
1340
|
+
@line2 = line2
|
|
1341
|
+
@postal_code = postal_code
|
|
1342
|
+
@state = state
|
|
1343
|
+
end
|
|
1344
|
+
end
|
|
1345
|
+
|
|
1346
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1347
|
+
# The name of the affiliate that originated the purchase.
|
|
1348
|
+
attr_accessor :name
|
|
1349
|
+
|
|
1350
|
+
def initialize(name: nil)
|
|
1351
|
+
@name = name
|
|
1352
|
+
end
|
|
1353
|
+
end
|
|
1354
|
+
|
|
1355
|
+
class Delivery < ::Stripe::RequestParams
|
|
1356
|
+
class Recipient < ::Stripe::RequestParams
|
|
1357
|
+
# The email of the recipient the ticket is delivered to.
|
|
1358
|
+
attr_accessor :email
|
|
1359
|
+
# The name of the recipient the ticket is delivered to.
|
|
1360
|
+
attr_accessor :name
|
|
1361
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1362
|
+
attr_accessor :phone
|
|
1363
|
+
|
|
1364
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1365
|
+
@email = email
|
|
1366
|
+
@name = name
|
|
1367
|
+
@phone = phone
|
|
1368
|
+
end
|
|
1369
|
+
end
|
|
1370
|
+
# The delivery method for the payment
|
|
1371
|
+
attr_accessor :mode
|
|
1372
|
+
# Details of the recipient.
|
|
1373
|
+
attr_accessor :recipient
|
|
1374
|
+
|
|
1375
|
+
def initialize(mode: nil, recipient: nil)
|
|
1376
|
+
@mode = mode
|
|
1377
|
+
@recipient = recipient
|
|
1378
|
+
end
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1381
|
+
class Passenger < ::Stripe::RequestParams
|
|
1382
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1383
|
+
attr_accessor :name
|
|
1384
|
+
|
|
1385
|
+
def initialize(name: nil)
|
|
1386
|
+
@name = name
|
|
1387
|
+
end
|
|
1388
|
+
end
|
|
1389
|
+
# The lodging location's address.
|
|
1390
|
+
attr_accessor :address
|
|
1391
|
+
# The number of adults on the booking
|
|
1392
|
+
attr_accessor :adults
|
|
1393
|
+
# Affiliate details for this purchase.
|
|
1394
|
+
attr_accessor :affiliate
|
|
1395
|
+
# The booking number associated with the lodging reservation.
|
|
1396
|
+
attr_accessor :booking_number
|
|
1397
|
+
# The lodging category
|
|
1398
|
+
attr_accessor :category
|
|
1399
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1400
|
+
attr_accessor :checkin_at
|
|
1401
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1402
|
+
attr_accessor :checkout_at
|
|
1403
|
+
# The customer service phone number of the lodging company.
|
|
1404
|
+
attr_accessor :customer_service_phone_number
|
|
1405
|
+
# The daily lodging room rate.
|
|
1406
|
+
attr_accessor :daily_room_rate_amount
|
|
1407
|
+
# Delivery details for this purchase.
|
|
1408
|
+
attr_accessor :delivery
|
|
1409
|
+
# List of additional charges being billed.
|
|
1410
|
+
attr_accessor :extra_charges
|
|
1411
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1412
|
+
attr_accessor :fire_safety_act_compliance
|
|
1413
|
+
# The name of the lodging location.
|
|
1414
|
+
attr_accessor :name
|
|
1415
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1416
|
+
attr_accessor :no_show
|
|
1417
|
+
# The number of rooms on the booking
|
|
1418
|
+
attr_accessor :number_of_rooms
|
|
1419
|
+
# The details of the passengers in the travel reservation
|
|
1420
|
+
attr_accessor :passengers
|
|
1421
|
+
# The phone number of the lodging location.
|
|
1422
|
+
attr_accessor :property_phone_number
|
|
1423
|
+
# The room class for this purchase.
|
|
1424
|
+
attr_accessor :room_class
|
|
1425
|
+
# The number of room nights
|
|
1426
|
+
attr_accessor :room_nights
|
|
1427
|
+
# The total tax amount associating with the room reservation.
|
|
1428
|
+
attr_accessor :total_room_tax_amount
|
|
1429
|
+
# The total tax amount
|
|
1430
|
+
attr_accessor :total_tax_amount
|
|
1431
|
+
|
|
1432
|
+
def initialize(
|
|
1433
|
+
address: nil,
|
|
1434
|
+
adults: nil,
|
|
1435
|
+
affiliate: nil,
|
|
1436
|
+
booking_number: nil,
|
|
1437
|
+
category: nil,
|
|
1438
|
+
checkin_at: nil,
|
|
1439
|
+
checkout_at: nil,
|
|
1440
|
+
customer_service_phone_number: nil,
|
|
1441
|
+
daily_room_rate_amount: nil,
|
|
1442
|
+
delivery: nil,
|
|
1443
|
+
extra_charges: nil,
|
|
1444
|
+
fire_safety_act_compliance: nil,
|
|
1445
|
+
name: nil,
|
|
1446
|
+
no_show: nil,
|
|
1447
|
+
number_of_rooms: nil,
|
|
1448
|
+
passengers: nil,
|
|
1449
|
+
property_phone_number: nil,
|
|
1450
|
+
room_class: nil,
|
|
1451
|
+
room_nights: nil,
|
|
1452
|
+
total_room_tax_amount: nil,
|
|
1453
|
+
total_tax_amount: nil
|
|
1454
|
+
)
|
|
1455
|
+
@address = address
|
|
1456
|
+
@adults = adults
|
|
1457
|
+
@affiliate = affiliate
|
|
1458
|
+
@booking_number = booking_number
|
|
1459
|
+
@category = category
|
|
1460
|
+
@checkin_at = checkin_at
|
|
1461
|
+
@checkout_at = checkout_at
|
|
1462
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1463
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1464
|
+
@delivery = delivery
|
|
1465
|
+
@extra_charges = extra_charges
|
|
1466
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1467
|
+
@name = name
|
|
1468
|
+
@no_show = no_show
|
|
1469
|
+
@number_of_rooms = number_of_rooms
|
|
1470
|
+
@passengers = passengers
|
|
1471
|
+
@property_phone_number = property_phone_number
|
|
1472
|
+
@room_class = room_class
|
|
1473
|
+
@room_nights = room_nights
|
|
1474
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1475
|
+
@total_tax_amount = total_tax_amount
|
|
1476
|
+
end
|
|
1477
|
+
end
|
|
1478
|
+
|
|
574
1479
|
class LodgingDatum < ::Stripe::RequestParams
|
|
575
1480
|
class Accommodation < ::Stripe::RequestParams
|
|
576
1481
|
# Type of accommodation.
|
|
@@ -864,29 +1769,104 @@ module Stripe
|
|
|
864
1769
|
@total = total
|
|
865
1770
|
end
|
|
866
1771
|
end
|
|
1772
|
+
|
|
1773
|
+
class Subscription < ::Stripe::RequestParams
|
|
1774
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1775
|
+
# The name of the affiliate that originated the purchase.
|
|
1776
|
+
attr_accessor :name
|
|
1777
|
+
|
|
1778
|
+
def initialize(name: nil)
|
|
1779
|
+
@name = name
|
|
1780
|
+
end
|
|
1781
|
+
end
|
|
1782
|
+
|
|
1783
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1784
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1785
|
+
attr_accessor :count
|
|
1786
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1787
|
+
attr_accessor :interval
|
|
1788
|
+
|
|
1789
|
+
def initialize(count: nil, interval: nil)
|
|
1790
|
+
@count = count
|
|
1791
|
+
@interval = interval
|
|
1792
|
+
end
|
|
1793
|
+
end
|
|
1794
|
+
# Affiliate details for this purchase.
|
|
1795
|
+
attr_accessor :affiliate
|
|
1796
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1797
|
+
attr_accessor :auto_renewal
|
|
1798
|
+
# Subscription billing details for this purchase.
|
|
1799
|
+
attr_accessor :billing_interval
|
|
1800
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1801
|
+
attr_accessor :ends_at
|
|
1802
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1803
|
+
attr_accessor :name
|
|
1804
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1805
|
+
attr_accessor :starts_at
|
|
1806
|
+
|
|
1807
|
+
def initialize(
|
|
1808
|
+
affiliate: nil,
|
|
1809
|
+
auto_renewal: nil,
|
|
1810
|
+
billing_interval: nil,
|
|
1811
|
+
ends_at: nil,
|
|
1812
|
+
name: nil,
|
|
1813
|
+
starts_at: nil
|
|
1814
|
+
)
|
|
1815
|
+
@affiliate = affiliate
|
|
1816
|
+
@auto_renewal = auto_renewal
|
|
1817
|
+
@billing_interval = billing_interval
|
|
1818
|
+
@ends_at = ends_at
|
|
1819
|
+
@name = name
|
|
1820
|
+
@starts_at = starts_at
|
|
1821
|
+
end
|
|
1822
|
+
end
|
|
1823
|
+
# Car rental details for this PaymentIntent.
|
|
1824
|
+
attr_accessor :car_rental
|
|
867
1825
|
# Car rental data for this PaymentIntent.
|
|
868
1826
|
attr_accessor :car_rental_data
|
|
869
1827
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
870
1828
|
#
|
|
871
1829
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
872
1830
|
attr_accessor :customer_reference
|
|
1831
|
+
# Event details for this PaymentIntent
|
|
1832
|
+
attr_accessor :event_details
|
|
1833
|
+
# Flight reservation details for this PaymentIntent
|
|
1834
|
+
attr_accessor :flight
|
|
1835
|
+
# Flight data for this PaymentIntent.
|
|
1836
|
+
attr_accessor :flight_data
|
|
1837
|
+
# Lodging reservation details for this PaymentIntent
|
|
1838
|
+
attr_accessor :lodging
|
|
873
1839
|
# Lodging data for this PaymentIntent.
|
|
874
1840
|
attr_accessor :lodging_data
|
|
875
1841
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
876
1842
|
#
|
|
877
1843
|
# 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.
|
|
878
1844
|
attr_accessor :order_reference
|
|
1845
|
+
# Subscription details for this PaymentIntent
|
|
1846
|
+
attr_accessor :subscription
|
|
879
1847
|
|
|
880
1848
|
def initialize(
|
|
1849
|
+
car_rental: nil,
|
|
881
1850
|
car_rental_data: nil,
|
|
882
1851
|
customer_reference: nil,
|
|
1852
|
+
event_details: nil,
|
|
1853
|
+
flight: nil,
|
|
1854
|
+
flight_data: nil,
|
|
1855
|
+
lodging: nil,
|
|
883
1856
|
lodging_data: nil,
|
|
884
|
-
order_reference: nil
|
|
1857
|
+
order_reference: nil,
|
|
1858
|
+
subscription: nil
|
|
885
1859
|
)
|
|
1860
|
+
@car_rental = car_rental
|
|
886
1861
|
@car_rental_data = car_rental_data
|
|
887
1862
|
@customer_reference = customer_reference
|
|
1863
|
+
@event_details = event_details
|
|
1864
|
+
@flight = flight
|
|
1865
|
+
@flight_data = flight_data
|
|
1866
|
+
@lodging = lodging
|
|
888
1867
|
@lodging_data = lodging_data
|
|
889
1868
|
@order_reference = order_reference
|
|
1869
|
+
@subscription = subscription
|
|
890
1870
|
end
|
|
891
1871
|
end
|
|
892
1872
|
|