stripe 17.1.0 → 17.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 +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +233 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -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_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_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_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 +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +55 -0
- data/lib/stripe/params/account_create_params.rb +300 -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 +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -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 +715 -0
- data/lib/stripe/params/charge_update_params.rb +715 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- 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/account_list_params.rb +4 -1
- 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 +34 -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/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -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 +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- 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_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -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_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -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 +1128 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
- data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -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/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -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 +8 -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 +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -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_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- 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/onboarding_link_create_params.rb +43 -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 +97 -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_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 +223 -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 +229 -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_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -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 +50 -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 +33 -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/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 +98 -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 +85 -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 +80 -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/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_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 +164 -0
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -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/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +237 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +38 -0
- data/lib/stripe/resources/discount.rb +2 -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 +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -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 +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +203 -1
- data/lib/stripe/resources/payment_intent.rb +789 -4
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -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_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 +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3906 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -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 +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -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 +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +112 -0
- data/lib/stripe/services/account_notice_service.rb +39 -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/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/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -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_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -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/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/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +8 -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 +61 -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/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -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 +4 -1
- 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 +73 -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 +63 -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/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -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 +4 -1
- data/lib/stripe/services.rb +58 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- 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.rbi +145086 -86712
- metadata +337 -3
|
@@ -174,21 +174,739 @@ module Stripe
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
+
class Hooks < ::Stripe::RequestParams
|
|
178
|
+
class Inputs < ::Stripe::RequestParams
|
|
179
|
+
class Tax < ::Stripe::RequestParams
|
|
180
|
+
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
181
|
+
attr_accessor :calculation
|
|
182
|
+
|
|
183
|
+
def initialize(calculation: nil)
|
|
184
|
+
@calculation = calculation
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
# Tax arguments for automations
|
|
188
|
+
attr_accessor :tax
|
|
189
|
+
|
|
190
|
+
def initialize(tax: nil)
|
|
191
|
+
@tax = tax
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
# Arguments passed in automations
|
|
195
|
+
attr_accessor :inputs
|
|
196
|
+
|
|
197
|
+
def initialize(inputs: nil)
|
|
198
|
+
@inputs = inputs
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
177
202
|
class PaymentDetails < ::Stripe::RequestParams
|
|
203
|
+
class CarRental < ::Stripe::RequestParams
|
|
204
|
+
class Affiliate < ::Stripe::RequestParams
|
|
205
|
+
# The name of the affiliate that originated the purchase.
|
|
206
|
+
attr_accessor :name
|
|
207
|
+
|
|
208
|
+
def initialize(name: nil)
|
|
209
|
+
@name = name
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
class Delivery < ::Stripe::RequestParams
|
|
214
|
+
class Recipient < ::Stripe::RequestParams
|
|
215
|
+
# The email of the recipient the ticket is delivered to.
|
|
216
|
+
attr_accessor :email
|
|
217
|
+
# The name of the recipient the ticket is delivered to.
|
|
218
|
+
attr_accessor :name
|
|
219
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
220
|
+
attr_accessor :phone
|
|
221
|
+
|
|
222
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
223
|
+
@email = email
|
|
224
|
+
@name = name
|
|
225
|
+
@phone = phone
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
# The delivery method for the payment
|
|
229
|
+
attr_accessor :mode
|
|
230
|
+
# Details of the recipient.
|
|
231
|
+
attr_accessor :recipient
|
|
232
|
+
|
|
233
|
+
def initialize(mode: nil, recipient: nil)
|
|
234
|
+
@mode = mode
|
|
235
|
+
@recipient = recipient
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
class Distance < ::Stripe::RequestParams
|
|
240
|
+
# Distance traveled.
|
|
241
|
+
attr_accessor :amount
|
|
242
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
243
|
+
attr_accessor :unit
|
|
244
|
+
|
|
245
|
+
def initialize(amount: nil, unit: nil)
|
|
246
|
+
@amount = amount
|
|
247
|
+
@unit = unit
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
class Driver < ::Stripe::RequestParams
|
|
252
|
+
# Driver's identification number.
|
|
253
|
+
attr_accessor :driver_identification_number
|
|
254
|
+
# Driver's tax number.
|
|
255
|
+
attr_accessor :driver_tax_number
|
|
256
|
+
# Full name of the person or entity on the car reservation.
|
|
257
|
+
attr_accessor :name
|
|
258
|
+
|
|
259
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
260
|
+
@driver_identification_number = driver_identification_number
|
|
261
|
+
@driver_tax_number = driver_tax_number
|
|
262
|
+
@name = name
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
267
|
+
# City, district, suburb, town, or village.
|
|
268
|
+
attr_accessor :city
|
|
269
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
270
|
+
attr_accessor :country
|
|
271
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
272
|
+
attr_accessor :line1
|
|
273
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
274
|
+
attr_accessor :line2
|
|
275
|
+
# ZIP or postal code.
|
|
276
|
+
attr_accessor :postal_code
|
|
277
|
+
# State, county, province, or region.
|
|
278
|
+
attr_accessor :state
|
|
279
|
+
|
|
280
|
+
def initialize(
|
|
281
|
+
city: nil,
|
|
282
|
+
country: nil,
|
|
283
|
+
line1: nil,
|
|
284
|
+
line2: nil,
|
|
285
|
+
postal_code: nil,
|
|
286
|
+
state: nil
|
|
287
|
+
)
|
|
288
|
+
@city = city
|
|
289
|
+
@country = country
|
|
290
|
+
@line1 = line1
|
|
291
|
+
@line2 = line2
|
|
292
|
+
@postal_code = postal_code
|
|
293
|
+
@state = state
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
298
|
+
# City, district, suburb, town, or village.
|
|
299
|
+
attr_accessor :city
|
|
300
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
301
|
+
attr_accessor :country
|
|
302
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
303
|
+
attr_accessor :line1
|
|
304
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
305
|
+
attr_accessor :line2
|
|
306
|
+
# ZIP or postal code.
|
|
307
|
+
attr_accessor :postal_code
|
|
308
|
+
# State, county, province, or region.
|
|
309
|
+
attr_accessor :state
|
|
310
|
+
|
|
311
|
+
def initialize(
|
|
312
|
+
city: nil,
|
|
313
|
+
country: nil,
|
|
314
|
+
line1: nil,
|
|
315
|
+
line2: nil,
|
|
316
|
+
postal_code: nil,
|
|
317
|
+
state: nil
|
|
318
|
+
)
|
|
319
|
+
@city = city
|
|
320
|
+
@country = country
|
|
321
|
+
@line1 = line1
|
|
322
|
+
@line2 = line2
|
|
323
|
+
@postal_code = postal_code
|
|
324
|
+
@state = state
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
# Affiliate details for this purchase.
|
|
328
|
+
attr_accessor :affiliate
|
|
329
|
+
# The booking number associated with the car rental.
|
|
330
|
+
attr_accessor :booking_number
|
|
331
|
+
# Class code of the car.
|
|
332
|
+
attr_accessor :car_class_code
|
|
333
|
+
# Make of the car.
|
|
334
|
+
attr_accessor :car_make
|
|
335
|
+
# Model of the car.
|
|
336
|
+
attr_accessor :car_model
|
|
337
|
+
# The name of the rental car company.
|
|
338
|
+
attr_accessor :company
|
|
339
|
+
# The customer service phone number of the car rental company.
|
|
340
|
+
attr_accessor :customer_service_phone_number
|
|
341
|
+
# Number of days the car is being rented.
|
|
342
|
+
attr_accessor :days_rented
|
|
343
|
+
# Delivery details for this purchase.
|
|
344
|
+
attr_accessor :delivery
|
|
345
|
+
# The details of the distance traveled during the rental period.
|
|
346
|
+
attr_accessor :distance
|
|
347
|
+
# The details of the passengers in the travel reservation
|
|
348
|
+
attr_accessor :drivers
|
|
349
|
+
# List of additional charges being billed.
|
|
350
|
+
attr_accessor :extra_charges
|
|
351
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
352
|
+
attr_accessor :no_show
|
|
353
|
+
# Car pick-up address.
|
|
354
|
+
attr_accessor :pickup_address
|
|
355
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
356
|
+
attr_accessor :pickup_at
|
|
357
|
+
# Name of the pickup location.
|
|
358
|
+
attr_accessor :pickup_location_name
|
|
359
|
+
# Rental rate.
|
|
360
|
+
attr_accessor :rate_amount
|
|
361
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
362
|
+
attr_accessor :rate_interval
|
|
363
|
+
# The name of the person or entity renting the car.
|
|
364
|
+
attr_accessor :renter_name
|
|
365
|
+
# Car return address.
|
|
366
|
+
attr_accessor :return_address
|
|
367
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
368
|
+
attr_accessor :return_at
|
|
369
|
+
# Name of the return location.
|
|
370
|
+
attr_accessor :return_location_name
|
|
371
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
372
|
+
attr_accessor :tax_exempt
|
|
373
|
+
# The vehicle identification number.
|
|
374
|
+
attr_accessor :vehicle_identification_number
|
|
375
|
+
|
|
376
|
+
def initialize(
|
|
377
|
+
affiliate: nil,
|
|
378
|
+
booking_number: nil,
|
|
379
|
+
car_class_code: nil,
|
|
380
|
+
car_make: nil,
|
|
381
|
+
car_model: nil,
|
|
382
|
+
company: nil,
|
|
383
|
+
customer_service_phone_number: nil,
|
|
384
|
+
days_rented: nil,
|
|
385
|
+
delivery: nil,
|
|
386
|
+
distance: nil,
|
|
387
|
+
drivers: nil,
|
|
388
|
+
extra_charges: nil,
|
|
389
|
+
no_show: nil,
|
|
390
|
+
pickup_address: nil,
|
|
391
|
+
pickup_at: nil,
|
|
392
|
+
pickup_location_name: nil,
|
|
393
|
+
rate_amount: nil,
|
|
394
|
+
rate_interval: nil,
|
|
395
|
+
renter_name: nil,
|
|
396
|
+
return_address: nil,
|
|
397
|
+
return_at: nil,
|
|
398
|
+
return_location_name: nil,
|
|
399
|
+
tax_exempt: nil,
|
|
400
|
+
vehicle_identification_number: nil
|
|
401
|
+
)
|
|
402
|
+
@affiliate = affiliate
|
|
403
|
+
@booking_number = booking_number
|
|
404
|
+
@car_class_code = car_class_code
|
|
405
|
+
@car_make = car_make
|
|
406
|
+
@car_model = car_model
|
|
407
|
+
@company = company
|
|
408
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
409
|
+
@days_rented = days_rented
|
|
410
|
+
@delivery = delivery
|
|
411
|
+
@distance = distance
|
|
412
|
+
@drivers = drivers
|
|
413
|
+
@extra_charges = extra_charges
|
|
414
|
+
@no_show = no_show
|
|
415
|
+
@pickup_address = pickup_address
|
|
416
|
+
@pickup_at = pickup_at
|
|
417
|
+
@pickup_location_name = pickup_location_name
|
|
418
|
+
@rate_amount = rate_amount
|
|
419
|
+
@rate_interval = rate_interval
|
|
420
|
+
@renter_name = renter_name
|
|
421
|
+
@return_address = return_address
|
|
422
|
+
@return_at = return_at
|
|
423
|
+
@return_location_name = return_location_name
|
|
424
|
+
@tax_exempt = tax_exempt
|
|
425
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
426
|
+
end
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
class EventDetails < ::Stripe::RequestParams
|
|
430
|
+
class Address < ::Stripe::RequestParams
|
|
431
|
+
# City, district, suburb, town, or village.
|
|
432
|
+
attr_accessor :city
|
|
433
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
434
|
+
attr_accessor :country
|
|
435
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
436
|
+
attr_accessor :line1
|
|
437
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
438
|
+
attr_accessor :line2
|
|
439
|
+
# ZIP or postal code.
|
|
440
|
+
attr_accessor :postal_code
|
|
441
|
+
# State, county, province, or region.
|
|
442
|
+
attr_accessor :state
|
|
443
|
+
|
|
444
|
+
def initialize(
|
|
445
|
+
city: nil,
|
|
446
|
+
country: nil,
|
|
447
|
+
line1: nil,
|
|
448
|
+
line2: nil,
|
|
449
|
+
postal_code: nil,
|
|
450
|
+
state: nil
|
|
451
|
+
)
|
|
452
|
+
@city = city
|
|
453
|
+
@country = country
|
|
454
|
+
@line1 = line1
|
|
455
|
+
@line2 = line2
|
|
456
|
+
@postal_code = postal_code
|
|
457
|
+
@state = state
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
class Affiliate < ::Stripe::RequestParams
|
|
462
|
+
# The name of the affiliate that originated the purchase.
|
|
463
|
+
attr_accessor :name
|
|
464
|
+
|
|
465
|
+
def initialize(name: nil)
|
|
466
|
+
@name = name
|
|
467
|
+
end
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
class Delivery < ::Stripe::RequestParams
|
|
471
|
+
class Recipient < ::Stripe::RequestParams
|
|
472
|
+
# The email of the recipient the ticket is delivered to.
|
|
473
|
+
attr_accessor :email
|
|
474
|
+
# The name of the recipient the ticket is delivered to.
|
|
475
|
+
attr_accessor :name
|
|
476
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
477
|
+
attr_accessor :phone
|
|
478
|
+
|
|
479
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
480
|
+
@email = email
|
|
481
|
+
@name = name
|
|
482
|
+
@phone = phone
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
# The delivery method for the payment
|
|
486
|
+
attr_accessor :mode
|
|
487
|
+
# Details of the recipient.
|
|
488
|
+
attr_accessor :recipient
|
|
489
|
+
|
|
490
|
+
def initialize(mode: nil, recipient: nil)
|
|
491
|
+
@mode = mode
|
|
492
|
+
@recipient = recipient
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
496
|
+
attr_accessor :access_controlled_venue
|
|
497
|
+
# The event location's address.
|
|
498
|
+
attr_accessor :address
|
|
499
|
+
# Affiliate details for this purchase.
|
|
500
|
+
attr_accessor :affiliate
|
|
501
|
+
# The name of the company
|
|
502
|
+
attr_accessor :company
|
|
503
|
+
# Delivery details for this purchase.
|
|
504
|
+
attr_accessor :delivery
|
|
505
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
506
|
+
attr_accessor :ends_at
|
|
507
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
508
|
+
attr_accessor :genre
|
|
509
|
+
# The name of the event.
|
|
510
|
+
attr_accessor :name
|
|
511
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
512
|
+
attr_accessor :starts_at
|
|
513
|
+
|
|
514
|
+
def initialize(
|
|
515
|
+
access_controlled_venue: nil,
|
|
516
|
+
address: nil,
|
|
517
|
+
affiliate: nil,
|
|
518
|
+
company: nil,
|
|
519
|
+
delivery: nil,
|
|
520
|
+
ends_at: nil,
|
|
521
|
+
genre: nil,
|
|
522
|
+
name: nil,
|
|
523
|
+
starts_at: nil
|
|
524
|
+
)
|
|
525
|
+
@access_controlled_venue = access_controlled_venue
|
|
526
|
+
@address = address
|
|
527
|
+
@affiliate = affiliate
|
|
528
|
+
@company = company
|
|
529
|
+
@delivery = delivery
|
|
530
|
+
@ends_at = ends_at
|
|
531
|
+
@genre = genre
|
|
532
|
+
@name = name
|
|
533
|
+
@starts_at = starts_at
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
class Flight < ::Stripe::RequestParams
|
|
538
|
+
class Affiliate < ::Stripe::RequestParams
|
|
539
|
+
# The name of the affiliate that originated the purchase.
|
|
540
|
+
attr_accessor :name
|
|
541
|
+
|
|
542
|
+
def initialize(name: nil)
|
|
543
|
+
@name = name
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
class Delivery < ::Stripe::RequestParams
|
|
548
|
+
class Recipient < ::Stripe::RequestParams
|
|
549
|
+
# The email of the recipient the ticket is delivered to.
|
|
550
|
+
attr_accessor :email
|
|
551
|
+
# The name of the recipient the ticket is delivered to.
|
|
552
|
+
attr_accessor :name
|
|
553
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
554
|
+
attr_accessor :phone
|
|
555
|
+
|
|
556
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
557
|
+
@email = email
|
|
558
|
+
@name = name
|
|
559
|
+
@phone = phone
|
|
560
|
+
end
|
|
561
|
+
end
|
|
562
|
+
# The delivery method for the payment
|
|
563
|
+
attr_accessor :mode
|
|
564
|
+
# Details of the recipient.
|
|
565
|
+
attr_accessor :recipient
|
|
566
|
+
|
|
567
|
+
def initialize(mode: nil, recipient: nil)
|
|
568
|
+
@mode = mode
|
|
569
|
+
@recipient = recipient
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
class Passenger < ::Stripe::RequestParams
|
|
574
|
+
# Full name of the person or entity on the flight reservation.
|
|
575
|
+
attr_accessor :name
|
|
576
|
+
|
|
577
|
+
def initialize(name: nil)
|
|
578
|
+
@name = name
|
|
579
|
+
end
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
class Segment < ::Stripe::RequestParams
|
|
583
|
+
# The flight segment amount.
|
|
584
|
+
attr_accessor :amount
|
|
585
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
586
|
+
attr_accessor :arrival_airport
|
|
587
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
588
|
+
attr_accessor :arrives_at
|
|
589
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
590
|
+
attr_accessor :carrier
|
|
591
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
592
|
+
attr_accessor :departs_at
|
|
593
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
594
|
+
attr_accessor :departure_airport
|
|
595
|
+
# The flight number associated with the segment
|
|
596
|
+
attr_accessor :flight_number
|
|
597
|
+
# The fare class for the segment.
|
|
598
|
+
attr_accessor :service_class
|
|
599
|
+
|
|
600
|
+
def initialize(
|
|
601
|
+
amount: nil,
|
|
602
|
+
arrival_airport: nil,
|
|
603
|
+
arrives_at: nil,
|
|
604
|
+
carrier: nil,
|
|
605
|
+
departs_at: nil,
|
|
606
|
+
departure_airport: nil,
|
|
607
|
+
flight_number: nil,
|
|
608
|
+
service_class: nil
|
|
609
|
+
)
|
|
610
|
+
@amount = amount
|
|
611
|
+
@arrival_airport = arrival_airport
|
|
612
|
+
@arrives_at = arrives_at
|
|
613
|
+
@carrier = carrier
|
|
614
|
+
@departs_at = departs_at
|
|
615
|
+
@departure_airport = departure_airport
|
|
616
|
+
@flight_number = flight_number
|
|
617
|
+
@service_class = service_class
|
|
618
|
+
end
|
|
619
|
+
end
|
|
620
|
+
# Affiliate details for this purchase.
|
|
621
|
+
attr_accessor :affiliate
|
|
622
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
623
|
+
attr_accessor :agency_number
|
|
624
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
625
|
+
attr_accessor :carrier
|
|
626
|
+
# Delivery details for this purchase.
|
|
627
|
+
attr_accessor :delivery
|
|
628
|
+
# The name of the person or entity on the reservation.
|
|
629
|
+
attr_accessor :passenger_name
|
|
630
|
+
# The details of the passengers in the travel reservation.
|
|
631
|
+
attr_accessor :passengers
|
|
632
|
+
# The individual flight segments associated with the trip.
|
|
633
|
+
attr_accessor :segments
|
|
634
|
+
# The ticket number associated with the travel reservation.
|
|
635
|
+
attr_accessor :ticket_number
|
|
636
|
+
|
|
637
|
+
def initialize(
|
|
638
|
+
affiliate: nil,
|
|
639
|
+
agency_number: nil,
|
|
640
|
+
carrier: nil,
|
|
641
|
+
delivery: nil,
|
|
642
|
+
passenger_name: nil,
|
|
643
|
+
passengers: nil,
|
|
644
|
+
segments: nil,
|
|
645
|
+
ticket_number: nil
|
|
646
|
+
)
|
|
647
|
+
@affiliate = affiliate
|
|
648
|
+
@agency_number = agency_number
|
|
649
|
+
@carrier = carrier
|
|
650
|
+
@delivery = delivery
|
|
651
|
+
@passenger_name = passenger_name
|
|
652
|
+
@passengers = passengers
|
|
653
|
+
@segments = segments
|
|
654
|
+
@ticket_number = ticket_number
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
class Lodging < ::Stripe::RequestParams
|
|
659
|
+
class Address < ::Stripe::RequestParams
|
|
660
|
+
# City, district, suburb, town, or village.
|
|
661
|
+
attr_accessor :city
|
|
662
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
663
|
+
attr_accessor :country
|
|
664
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
665
|
+
attr_accessor :line1
|
|
666
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
667
|
+
attr_accessor :line2
|
|
668
|
+
# ZIP or postal code.
|
|
669
|
+
attr_accessor :postal_code
|
|
670
|
+
# State, county, province, or region.
|
|
671
|
+
attr_accessor :state
|
|
672
|
+
|
|
673
|
+
def initialize(
|
|
674
|
+
city: nil,
|
|
675
|
+
country: nil,
|
|
676
|
+
line1: nil,
|
|
677
|
+
line2: nil,
|
|
678
|
+
postal_code: nil,
|
|
679
|
+
state: nil
|
|
680
|
+
)
|
|
681
|
+
@city = city
|
|
682
|
+
@country = country
|
|
683
|
+
@line1 = line1
|
|
684
|
+
@line2 = line2
|
|
685
|
+
@postal_code = postal_code
|
|
686
|
+
@state = state
|
|
687
|
+
end
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
class Affiliate < ::Stripe::RequestParams
|
|
691
|
+
# The name of the affiliate that originated the purchase.
|
|
692
|
+
attr_accessor :name
|
|
693
|
+
|
|
694
|
+
def initialize(name: nil)
|
|
695
|
+
@name = name
|
|
696
|
+
end
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
class Delivery < ::Stripe::RequestParams
|
|
700
|
+
class Recipient < ::Stripe::RequestParams
|
|
701
|
+
# The email of the recipient the ticket is delivered to.
|
|
702
|
+
attr_accessor :email
|
|
703
|
+
# The name of the recipient the ticket is delivered to.
|
|
704
|
+
attr_accessor :name
|
|
705
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
706
|
+
attr_accessor :phone
|
|
707
|
+
|
|
708
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
709
|
+
@email = email
|
|
710
|
+
@name = name
|
|
711
|
+
@phone = phone
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
# The delivery method for the payment
|
|
715
|
+
attr_accessor :mode
|
|
716
|
+
# Details of the recipient.
|
|
717
|
+
attr_accessor :recipient
|
|
718
|
+
|
|
719
|
+
def initialize(mode: nil, recipient: nil)
|
|
720
|
+
@mode = mode
|
|
721
|
+
@recipient = recipient
|
|
722
|
+
end
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
class Passenger < ::Stripe::RequestParams
|
|
726
|
+
# Full name of the person or entity on the lodging reservation.
|
|
727
|
+
attr_accessor :name
|
|
728
|
+
|
|
729
|
+
def initialize(name: nil)
|
|
730
|
+
@name = name
|
|
731
|
+
end
|
|
732
|
+
end
|
|
733
|
+
# The lodging location's address.
|
|
734
|
+
attr_accessor :address
|
|
735
|
+
# The number of adults on the booking
|
|
736
|
+
attr_accessor :adults
|
|
737
|
+
# Affiliate details for this purchase.
|
|
738
|
+
attr_accessor :affiliate
|
|
739
|
+
# The booking number associated with the lodging reservation.
|
|
740
|
+
attr_accessor :booking_number
|
|
741
|
+
# The lodging category
|
|
742
|
+
attr_accessor :category
|
|
743
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
744
|
+
attr_accessor :checkin_at
|
|
745
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
746
|
+
attr_accessor :checkout_at
|
|
747
|
+
# The customer service phone number of the lodging company.
|
|
748
|
+
attr_accessor :customer_service_phone_number
|
|
749
|
+
# The daily lodging room rate.
|
|
750
|
+
attr_accessor :daily_room_rate_amount
|
|
751
|
+
# Delivery details for this purchase.
|
|
752
|
+
attr_accessor :delivery
|
|
753
|
+
# List of additional charges being billed.
|
|
754
|
+
attr_accessor :extra_charges
|
|
755
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
756
|
+
attr_accessor :fire_safety_act_compliance
|
|
757
|
+
# The name of the lodging location.
|
|
758
|
+
attr_accessor :name
|
|
759
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
760
|
+
attr_accessor :no_show
|
|
761
|
+
# The number of rooms on the booking
|
|
762
|
+
attr_accessor :number_of_rooms
|
|
763
|
+
# The details of the passengers in the travel reservation
|
|
764
|
+
attr_accessor :passengers
|
|
765
|
+
# The phone number of the lodging location.
|
|
766
|
+
attr_accessor :property_phone_number
|
|
767
|
+
# The room class for this purchase.
|
|
768
|
+
attr_accessor :room_class
|
|
769
|
+
# The number of room nights
|
|
770
|
+
attr_accessor :room_nights
|
|
771
|
+
# The total tax amount associating with the room reservation.
|
|
772
|
+
attr_accessor :total_room_tax_amount
|
|
773
|
+
# The total tax amount
|
|
774
|
+
attr_accessor :total_tax_amount
|
|
775
|
+
|
|
776
|
+
def initialize(
|
|
777
|
+
address: nil,
|
|
778
|
+
adults: nil,
|
|
779
|
+
affiliate: nil,
|
|
780
|
+
booking_number: nil,
|
|
781
|
+
category: nil,
|
|
782
|
+
checkin_at: nil,
|
|
783
|
+
checkout_at: nil,
|
|
784
|
+
customer_service_phone_number: nil,
|
|
785
|
+
daily_room_rate_amount: nil,
|
|
786
|
+
delivery: nil,
|
|
787
|
+
extra_charges: nil,
|
|
788
|
+
fire_safety_act_compliance: nil,
|
|
789
|
+
name: nil,
|
|
790
|
+
no_show: nil,
|
|
791
|
+
number_of_rooms: nil,
|
|
792
|
+
passengers: nil,
|
|
793
|
+
property_phone_number: nil,
|
|
794
|
+
room_class: nil,
|
|
795
|
+
room_nights: nil,
|
|
796
|
+
total_room_tax_amount: nil,
|
|
797
|
+
total_tax_amount: nil
|
|
798
|
+
)
|
|
799
|
+
@address = address
|
|
800
|
+
@adults = adults
|
|
801
|
+
@affiliate = affiliate
|
|
802
|
+
@booking_number = booking_number
|
|
803
|
+
@category = category
|
|
804
|
+
@checkin_at = checkin_at
|
|
805
|
+
@checkout_at = checkout_at
|
|
806
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
807
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
808
|
+
@delivery = delivery
|
|
809
|
+
@extra_charges = extra_charges
|
|
810
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
811
|
+
@name = name
|
|
812
|
+
@no_show = no_show
|
|
813
|
+
@number_of_rooms = number_of_rooms
|
|
814
|
+
@passengers = passengers
|
|
815
|
+
@property_phone_number = property_phone_number
|
|
816
|
+
@room_class = room_class
|
|
817
|
+
@room_nights = room_nights
|
|
818
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
819
|
+
@total_tax_amount = total_tax_amount
|
|
820
|
+
end
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
class Subscription < ::Stripe::RequestParams
|
|
824
|
+
class Affiliate < ::Stripe::RequestParams
|
|
825
|
+
# The name of the affiliate that originated the purchase.
|
|
826
|
+
attr_accessor :name
|
|
827
|
+
|
|
828
|
+
def initialize(name: nil)
|
|
829
|
+
@name = name
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
834
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
835
|
+
attr_accessor :count
|
|
836
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
837
|
+
attr_accessor :interval
|
|
838
|
+
|
|
839
|
+
def initialize(count: nil, interval: nil)
|
|
840
|
+
@count = count
|
|
841
|
+
@interval = interval
|
|
842
|
+
end
|
|
843
|
+
end
|
|
844
|
+
# Affiliate details for this purchase.
|
|
845
|
+
attr_accessor :affiliate
|
|
846
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
847
|
+
attr_accessor :auto_renewal
|
|
848
|
+
# Subscription billing details for this purchase.
|
|
849
|
+
attr_accessor :billing_interval
|
|
850
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
851
|
+
attr_accessor :ends_at
|
|
852
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
853
|
+
attr_accessor :name
|
|
854
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
855
|
+
attr_accessor :starts_at
|
|
856
|
+
|
|
857
|
+
def initialize(
|
|
858
|
+
affiliate: nil,
|
|
859
|
+
auto_renewal: nil,
|
|
860
|
+
billing_interval: nil,
|
|
861
|
+
ends_at: nil,
|
|
862
|
+
name: nil,
|
|
863
|
+
starts_at: nil
|
|
864
|
+
)
|
|
865
|
+
@affiliate = affiliate
|
|
866
|
+
@auto_renewal = auto_renewal
|
|
867
|
+
@billing_interval = billing_interval
|
|
868
|
+
@ends_at = ends_at
|
|
869
|
+
@name = name
|
|
870
|
+
@starts_at = starts_at
|
|
871
|
+
end
|
|
872
|
+
end
|
|
873
|
+
# Car rental details for this PaymentIntent.
|
|
874
|
+
attr_accessor :car_rental
|
|
178
875
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
179
876
|
#
|
|
180
877
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
181
878
|
attr_accessor :customer_reference
|
|
879
|
+
# Event details for this PaymentIntent
|
|
880
|
+
attr_accessor :event_details
|
|
881
|
+
# Flight reservation details for this PaymentIntent
|
|
882
|
+
attr_accessor :flight
|
|
883
|
+
# Lodging reservation details for this PaymentIntent
|
|
884
|
+
attr_accessor :lodging
|
|
182
885
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
183
886
|
#
|
|
184
887
|
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
185
888
|
#
|
|
186
889
|
# 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.
|
|
187
890
|
attr_accessor :order_reference
|
|
891
|
+
# Subscription details for this PaymentIntent
|
|
892
|
+
attr_accessor :subscription
|
|
188
893
|
|
|
189
|
-
def initialize(
|
|
894
|
+
def initialize(
|
|
895
|
+
car_rental: nil,
|
|
896
|
+
customer_reference: nil,
|
|
897
|
+
event_details: nil,
|
|
898
|
+
flight: nil,
|
|
899
|
+
lodging: nil,
|
|
900
|
+
order_reference: nil,
|
|
901
|
+
subscription: nil
|
|
902
|
+
)
|
|
903
|
+
@car_rental = car_rental
|
|
190
904
|
@customer_reference = customer_reference
|
|
905
|
+
@event_details = event_details
|
|
906
|
+
@flight = flight
|
|
907
|
+
@lodging = lodging
|
|
191
908
|
@order_reference = order_reference
|
|
909
|
+
@subscription = subscription
|
|
192
910
|
end
|
|
193
911
|
end
|
|
194
912
|
|
|
@@ -210,6 +928,8 @@ module Stripe
|
|
|
210
928
|
attr_accessor :expand
|
|
211
929
|
# Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents.
|
|
212
930
|
attr_accessor :final_capture
|
|
931
|
+
# Automations to be run during the PaymentIntent lifecycle
|
|
932
|
+
attr_accessor :hooks
|
|
213
933
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
214
934
|
attr_accessor :metadata
|
|
215
935
|
# Provides industry-specific information about the charge.
|
|
@@ -230,6 +950,7 @@ module Stripe
|
|
|
230
950
|
application_fee_amount: nil,
|
|
231
951
|
expand: nil,
|
|
232
952
|
final_capture: nil,
|
|
953
|
+
hooks: nil,
|
|
233
954
|
metadata: nil,
|
|
234
955
|
payment_details: nil,
|
|
235
956
|
statement_descriptor: nil,
|
|
@@ -241,6 +962,7 @@ module Stripe
|
|
|
241
962
|
@application_fee_amount = application_fee_amount
|
|
242
963
|
@expand = expand
|
|
243
964
|
@final_capture = final_capture
|
|
965
|
+
@hooks = hooks
|
|
244
966
|
@metadata = metadata
|
|
245
967
|
@payment_details = payment_details
|
|
246
968
|
@statement_descriptor = statement_descriptor
|