stripe 5.55.0 → 18.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/{bin → exe}/stripe-console +1 -1
- data/lib/data/ca-certificates.crt +1805 -2337
- data/lib/stripe/api_operations/create.rb +6 -2
- data/lib/stripe/api_operations/delete.rb +12 -7
- data/lib/stripe/api_operations/list.rb +6 -9
- data/lib/stripe/api_operations/nested_resource.rb +59 -31
- data/lib/stripe/api_operations/request.rb +30 -65
- data/lib/stripe/api_operations/save.rb +20 -10
- data/lib/stripe/api_operations/search.rb +11 -9
- data/lib/stripe/api_operations/singleton_save.rb +90 -0
- data/lib/stripe/api_requestor.rb +1173 -0
- data/lib/stripe/api_resource.rb +51 -18
- data/lib/stripe/api_resource_test_helpers.rb +9 -3
- data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
- data/lib/stripe/connection_manager.rb +6 -10
- data/lib/stripe/errors.rb +74 -20
- data/lib/stripe/event_types.rb +242 -0
- data/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +123 -0
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +100 -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_core_event_destination_ping_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/instrumentation.rb +37 -15
- data/lib/stripe/list_object.rb +5 -3
- data/lib/stripe/multipart_encoder.rb +7 -7
- data/lib/stripe/oauth.rb +14 -21
- data/lib/stripe/object_types.rb +220 -103
- data/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/lib/stripe/params/account_create_params.rb +2440 -0
- data/lib/stripe/params/account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/lib/stripe/params/account_link_create_params.rb +52 -0
- data/lib/stripe/params/account_list_params.rb +42 -0
- data/lib/stripe/params/account_login_link_create_params.rb +13 -0
- 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_person_create_params.rb +435 -0
- data/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/lib/stripe/params/account_person_list_params.rb +61 -0
- data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_person_update_params.rb +435 -0
- data/lib/stripe/params/account_persons_params.rb +61 -0
- data/lib/stripe/params/account_reject_params.rb +16 -0
- data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_session_create_params.rb +823 -0
- data/lib/stripe/params/account_update_params.rb +2350 -0
- data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/lib/stripe/params/apps/secret_list_params.rb +38 -0
- data/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_update_params.rb +67 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -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 +57 -0
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +41 -0
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +107 -0
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +37 -0
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +232 -0
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +238 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +183 -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 +1705 -0
- data/lib/stripe/params/charge_create_params.rb +172 -0
- data/lib/stripe/params/charge_list_params.rb +60 -0
- data/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/lib/stripe/params/charge_search_params.rb +22 -0
- data/lib/stripe/params/charge_update_params.rb +1750 -0
- data/lib/stripe/params/checkout/session_create_params.rb +2654 -0
- data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_params.rb +87 -0
- data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/checkout/session_update_params.rb +466 -0
- data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/lib/stripe/params/climate/order_create_params.rb +49 -0
- data/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +747 -0
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_create_params.rb +96 -0
- data/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/lib/stripe/params/coupon_list_params.rb +42 -0
- data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_update_params.rb +30 -0
- data/lib/stripe/params/credit_note_create_params.rb +161 -0
- data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/lib/stripe/params/credit_note_list_params.rb +60 -0
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +173 -0
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +173 -0
- data/lib/stripe/params/credit_note_preview_params.rb +161 -0
- data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +52 -0
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/lib/stripe/params/customer_create_params.rb +259 -0
- data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/lib/stripe/params/customer_delete_params.rb +6 -0
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/lib/stripe/params/customer_list_params.rb +56 -0
- data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/lib/stripe/params/customer_search_params.rb +22 -0
- data/lib/stripe/params/customer_session_create_params.rb +219 -0
- data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_update_params.rb +243 -0
- data/lib/stripe/params/dispute_close_params.rb +13 -0
- data/lib/stripe/params/dispute_list_params.rb +56 -0
- data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/lib/stripe/params/dispute_update_params.rb +317 -0
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/lib/stripe/params/event_list_params.rb +60 -0
- data/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- 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/file_create_params.rb +36 -0
- data/lib/stripe/params/file_link_create_params.rb +22 -0
- data/lib/stripe/params/file_link_list_params.rb +56 -0
- data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_link_update_params.rb +19 -0
- data/lib/stripe/params/file_list_params.rb +52 -0
- data/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +51 -0
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -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 +97 -0
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- 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_report_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +111 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +66 -0
- data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +263 -0
- data/lib/stripe/params/invoice_attach_payment_params.rb +61 -0
- data/lib/stripe/params/invoice_create_params.rb +723 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +1810 -0
- data/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +181 -0
- data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_item_list_params.rb +64 -0
- data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_item_update_params.rb +161 -0
- data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/lib/stripe/params/invoice_line_item_update_params.rb +249 -0
- data/lib/stripe/params/invoice_list_params.rb +90 -0
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +75 -0
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_search_params.rb +22 -0
- data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +263 -0
- data/lib/stripe/params/invoice_update_params.rb +687 -0
- data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +372 -0
- data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
- data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/lib/stripe/params/issuing/card_create_params.rb +213 -0
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_update_params.rb +181 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +239 -0
- data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -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_create_params.rb +297 -0
- data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/lib/stripe/params/issuing/dispute_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/dispute_submit_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +275 -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/personalization_design_activate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +66 -0
- data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/mandate_retrieve_params.rb +13 -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 +2061 -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 +2065 -0
- data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1906 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +5647 -0
- data/lib/stripe/params/payment_intent_create_params.rb +5756 -0
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +295 -0
- data/lib/stripe/params/payment_intent_list_params.rb +56 -0
- data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +5660 -0
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/payment_link_create_params.rb +815 -0
- data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_link_update_params.rb +603 -0
- data/lib/stripe/params/payment_method_attach_params.rb +19 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +1303 -0
- data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +1303 -0
- data/lib/stripe/params/payment_method_create_params.rb +694 -0
- data/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/lib/stripe/params/payment_method_list_params.rb +43 -0
- data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_update_params.rb +139 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/lib/stripe/params/payout_create_params.rb +51 -0
- data/lib/stripe/params/payout_list_params.rb +78 -0
- data/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/lib/stripe/params/payout_update_params.rb +16 -0
- data/lib/stripe/params/plan_create_params.rb +158 -0
- data/lib/stripe/params/plan_delete_params.rb +6 -0
- data/lib/stripe/params/plan_list_params.rb +56 -0
- data/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/plan_update_params.rb +35 -0
- data/lib/stripe/params/price_create_params.rb +278 -0
- data/lib/stripe/params/price_list_params.rb +87 -0
- data/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_search_params.rb +22 -0
- data/lib/stripe/params/price_update_params.rb +132 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_create_params.rb +243 -0
- data/lib/stripe/params/product_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_list_params.rb +68 -0
- data/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_search_params.rb +22 -0
- data/lib/stripe/params/product_update_params.rb +96 -0
- data/lib/stripe/params/promotion_code_create_params.rb +95 -0
- data/lib/stripe/params/promotion_code_list_params.rb +68 -0
- data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/lib/stripe/params/quote_accept_params.rb +13 -0
- data/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/lib/stripe/params/quote_create_params.rb +1103 -0
- data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +47 -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_pdf_params.rb +13 -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_retrieve_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1072 -0
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/lib/stripe/{resources/usage_record_summary.rb → params/radar/value_list_delete_params.rb} +2 -2
- data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/lib/stripe/params/refund_create_params.rb +59 -0
- data/lib/stripe/params/refund_expire_params.rb +13 -0
- data/lib/stripe/params/refund_list_params.rb +56 -0
- data/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/refund_update_params.rb +16 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -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_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/review_approve_params.rb +13 -0
- data/lib/stripe/params/review_list_params.rb +42 -0
- data/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1272 -0
- data/lib/stripe/params/setup_intent_create_params.rb +1362 -0
- data/lib/stripe/params/setup_intent_list_params.rb +66 -0
- data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/setup_intent_update_params.rb +1257 -0
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/source_create_params.rb +317 -0
- data/lib/stripe/params/source_detach_params.rb +13 -0
- data/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/lib/stripe/params/source_update_params.rb +259 -0
- data/lib/stripe/params/source_verify_params.rb +16 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/lib/stripe/params/subscription_create_params.rb +982 -0
- data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/lib/stripe/params/subscription_item_create_params.rb +178 -0
- data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
- data/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_item_update_params.rb +162 -0
- data/lib/stripe/params/subscription_list_params.rb +133 -0
- data/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +752 -0
- data/lib/stripe/params/subscription_schedule_list_params.rb +126 -0
- data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +720 -0
- data/lib/stripe/params/subscription_search_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +941 -0
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -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/registration_create_params.rb +2031 -0
- data/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_id_create_params.rb +39 -0
- data/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/tax_id_list_params.rb +42 -0
- data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +625 -0
- data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +625 -0
- data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +749 -0
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +374 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +92 -0
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +92 -0
- data/lib/stripe/params/token_create_params.rb +1210 -0
- data/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/lib/stripe/params/topup_create_params.rb +43 -0
- data/lib/stripe/params/topup_list_params.rb +74 -0
- data/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_update_params.rb +19 -0
- data/lib/stripe/params/transfer_create_params.rb +51 -0
- data/lib/stripe/params/transfer_list_params.rb +56 -0
- data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/lib/stripe/params/transfer_update_params.rb +19 -0
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +208 -0
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +166 -0
- data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +166 -0
- data/lib/stripe/params/treasury/financial_account_update_params.rb +223 -0
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +105 -0
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +90 -0
- data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/received_debit_create_params.rb +90 -0
- data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- 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/{resources/issuing/card_details.rb → params/v2/billing/cadence_cancel_params.rb} +3 -3
- 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/meter_event_adjustment_create_params.rb +31 -0
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -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 +2363 -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_token_create_params.rb +1023 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2409 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -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_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +45 -0
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +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 +62 -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 +110 -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 +79 -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 +89 -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/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/lib/stripe/params.rb +767 -0
- data/lib/stripe/request_options.rb +138 -0
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/resources/account.rb +1320 -26
- data/lib/stripe/resources/account_link.rb +29 -0
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +764 -0
- data/lib/stripe/resources/alipay_account.rb +1 -1
- data/lib/stripe/resources/apple_pay_domain.rb +59 -0
- data/lib/stripe/resources/application.rb +28 -0
- data/lib/stripe/resources/application_fee.rb +64 -2
- data/lib/stripe/resources/application_fee_refund.rb +34 -2
- data/lib/stripe/resources/apps/secret.rb +96 -0
- data/lib/stripe/resources/balance.rb +332 -0
- data/lib/stripe/resources/balance_settings.rb +92 -0
- data/lib/stripe/resources/balance_transaction.rb +80 -0
- data/lib/stripe/resources/bank_account.rb +177 -6
- data/lib/stripe/resources/billing/alert.rb +142 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +34 -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 +104 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +177 -0
- data/lib/stripe/resources/billing/credit_grant.rb +200 -0
- data/lib/stripe/resources/billing/meter.rb +178 -0
- data/lib/stripe/resources/billing/meter_event.rb +49 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +59 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +40 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +292 -0
- data/lib/stripe/resources/billing_portal/session.rb +228 -0
- data/lib/stripe/resources/capability.rb +147 -2
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +129 -3
- data/lib/stripe/resources/cash_balance.rb +39 -0
- data/lib/stripe/resources/charge.rb +2516 -3
- data/lib/stripe/resources/checkout/session.rb +2454 -4
- data/lib/stripe/resources/climate/order.rb +173 -0
- data/lib/stripe/resources/climate/product.rb +72 -0
- data/lib/stripe/resources/climate/supplier.rb +69 -0
- data/lib/stripe/resources/confirmation_token.rb +1873 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
- data/lib/stripe/resources/country_spec.rb +82 -0
- data/lib/stripe/resources/coupon.rb +143 -0
- data/lib/stripe/resources/credit_note.rb +290 -8
- data/lib/stripe/resources/credit_note_line_item.rb +133 -0
- data/lib/stripe/resources/customer.rb +403 -27
- data/lib/stripe/resources/customer_balance_transaction.rb +48 -1
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +234 -0
- data/lib/stripe/resources/customer_session.rb +264 -0
- data/lib/stripe/resources/discount.rb +58 -0
- data/lib/stripe/resources/dispute.rb +466 -2
- data/lib/stripe/resources/entitlements/active_entitlement.rb +45 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
- data/lib/stripe/resources/entitlements/feature.rb +72 -0
- data/lib/stripe/resources/ephemeral_key.rb +44 -0
- data/lib/stripe/resources/event.rb +149 -0
- data/lib/stripe/resources/exchange_rate.rb +59 -0
- data/lib/stripe/resources/file.rb +65 -12
- data/lib/stripe/resources/file_link.rb +53 -0
- data/lib/stripe/resources/financial_connections/account.rb +342 -5
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +29 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +21 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +140 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +73 -0
- data/lib/stripe/resources/forwarding/request.rb +163 -0
- data/lib/stripe/resources/funding_instructions.rb +510 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_report.rb +396 -0
- data/lib/stripe/resources/identity/verification_session.rb +397 -4
- data/lib/stripe/resources/invoice.rb +1393 -20
- data/lib/stripe/resources/invoice_item.rb +214 -0
- data/lib/stripe/resources/invoice_line_item.rb +341 -1
- data/lib/stripe/resources/invoice_payment.rb +92 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +90 -0
- data/lib/stripe/resources/issuing/authorization.rb +650 -4
- data/lib/stripe/resources/issuing/card.rb +410 -4
- data/lib/stripe/resources/issuing/cardholder.rb +278 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +301 -2
- 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/personalization_design.rb +206 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +65 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/token.rb +195 -0
- data/lib/stripe/resources/issuing/transaction.rb +444 -0
- data/lib/stripe/resources/line_item.rb +142 -0
- data/lib/stripe/resources/login_link.rb +20 -0
- data/lib/stripe/resources/mandate.rb +433 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +960 -6
- data/lib/stripe/resources/payment_attempt_record.rb +2165 -0
- data/lib/stripe/resources/payment_intent.rb +3886 -14
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
- data/lib/stripe/resources/payment_link.rb +772 -2
- data/lib/stripe/resources/payment_method.rb +1792 -4
- data/lib/stripe/resources/payment_method_configuration.rb +2090 -0
- data/lib/stripe/resources/payment_method_domain.rb +280 -0
- data/lib/stripe/resources/payment_record.rb +2295 -0
- data/lib/stripe/resources/payout.rb +139 -4
- data/lib/stripe/resources/person.rb +475 -1
- data/lib/stripe/resources/plan.rb +137 -0
- data/lib/stripe/resources/price.rb +240 -1
- 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/product.rb +138 -1
- data/lib/stripe/resources/product_feature.rb +33 -0
- data/lib/stripe/resources/promotion_code.rb +110 -0
- data/lib/stripe/resources/quote.rb +1173 -36
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +42 -0
- data/lib/stripe/resources/radar/value_list.rb +87 -0
- data/lib/stripe/resources/radar/value_list_item.rb +71 -0
- data/lib/stripe/resources/refund.rb +748 -4
- data/lib/stripe/resources/reporting/report_run.rb +91 -0
- data/lib/stripe/resources/reporting/report_type.rb +48 -1
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/reserve_transaction.rb +30 -0
- data/lib/stripe/resources/reversal.rb +46 -2
- data/lib/stripe/resources/review.rb +99 -2
- data/lib/stripe/resources/setup_attempt.rb +664 -0
- data/lib/stripe/resources/setup_intent.rb +816 -6
- data/lib/stripe/resources/shipping_rate.rb +132 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +60 -0
- data/lib/stripe/resources/source.rb +973 -10
- data/lib/stripe/resources/source_mandate_notification.rb +98 -0
- data/lib/stripe/resources/source_transaction.rb +146 -0
- data/lib/stripe/resources/subscription.rb +979 -5
- data/lib/stripe/resources/subscription_item.rb +132 -10
- data/lib/stripe/resources/subscription_schedule.rb +780 -4
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/calculation.rb +321 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +103 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/registration.rb +2259 -0
- data/lib/stripe/resources/tax/settings.rb +131 -0
- data/lib/stripe/resources/tax/transaction.rb +287 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +60 -0
- data/lib/stripe/resources/tax_code.rb +26 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
- data/lib/stripe/resources/tax_id.rb +103 -11
- data/lib/stripe/resources/tax_rate.rb +87 -0
- data/lib/stripe/resources/terminal/configuration.rb +724 -0
- data/lib/stripe/resources/terminal/connection_token.rb +31 -0
- data/lib/stripe/resources/terminal/location.rb +168 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +752 -10
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +110 -2
- data/lib/stripe/resources/token.rb +66 -0
- data/lib/stripe/resources/topup.rb +80 -2
- data/lib/stripe/resources/transfer.rb +74 -6
- data/lib/stripe/resources/treasury/credit_reversal.rb +86 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +101 -0
- data/lib/stripe/resources/treasury/financial_account.rb +255 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +398 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +308 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +408 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +418 -0
- data/lib/stripe/resources/treasury/received_credit.rb +291 -0
- data/lib/stripe/resources/treasury/received_debit.rb +256 -0
- data/lib/stripe/resources/treasury/transaction.rb +143 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +124 -0
- data/lib/stripe/resources/v2/amount.rb +9 -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/meter_event.rb +43 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +52 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +37 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +4115 -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/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +69 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +62 -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 +83 -0
- data/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -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 +246 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources/webhook_endpoint.rb +90 -0
- data/lib/stripe/resources.rb +175 -11
- data/lib/stripe/search_result_object.rb +5 -2
- data/lib/stripe/services/account_capability_service.rb +39 -0
- data/lib/stripe/services/account_external_account_service.rb +68 -0
- data/lib/stripe/services/account_link_service.rb +17 -0
- data/lib/stripe/services/account_login_link_service.rb +19 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_person_service.rb +61 -0
- data/lib/stripe/services/account_service.rb +100 -0
- data/lib/stripe/services/account_session_service.rb +17 -0
- data/lib/stripe/services/apple_pay_domain_service.rb +50 -0
- data/lib/stripe/services/application_fee_refund_service.rb +60 -0
- data/lib/stripe/services/application_fee_service.rb +35 -0
- data/lib/stripe/services/apps/secret_service.rb +52 -0
- data/lib/stripe/services/apps_service.rb +13 -0
- data/lib/stripe/services/balance_service.rb +12 -0
- data/lib/stripe/services/balance_settings_service.rb +30 -0
- data/lib/stripe/services/balance_transaction_service.rb +32 -0
- data/lib/stripe/services/billing/alert_service.rb +74 -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/credit_balance_summary_service.rb +19 -0
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +74 -0
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
- data/lib/stripe/services/billing/meter_event_service.rb +19 -0
- data/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
- data/lib/stripe/services/billing/meter_service.rb +81 -0
- data/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
- data/lib/stripe/services/billing_portal/session_service.rb +19 -0
- data/lib/stripe/services/billing_portal_service.rb +14 -0
- data/lib/stripe/services/billing_service.rb +21 -0
- 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/charge_service.rb +69 -0
- data/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
- data/lib/stripe/services/checkout/session_service.rb +74 -0
- data/lib/stripe/services/checkout_service.rb +13 -0
- data/lib/stripe/services/climate/order_service.rb +68 -0
- data/lib/stripe/services/climate/product_service.rb +30 -0
- data/lib/stripe/services/climate/supplier_service.rb +30 -0
- data/lib/stripe/services/climate_service.rb +15 -0
- data/lib/stripe/services/confirmation_token_service.rb +17 -0
- data/lib/stripe/services/country_spec_service.rb +28 -0
- data/lib/stripe/services/coupon_service.rb +51 -0
- data/lib/stripe/services/credit_note_line_item_service.rb +17 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +17 -0
- data/lib/stripe/services/credit_note_service.rb +92 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +28 -0
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
- data/lib/stripe/services/customer_payment_method_service.rb +28 -0
- data/lib/stripe/services/customer_payment_source_service.rb +76 -0
- data/lib/stripe/services/customer_service.rb +89 -0
- data/lib/stripe/services/customer_session_service.rb +17 -0
- data/lib/stripe/services/customer_tax_id_service.rb +50 -0
- data/lib/stripe/services/dispute_service.rb +48 -0
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
- data/lib/stripe/services/entitlements/feature_service.rb +52 -0
- data/lib/stripe/services/entitlements_service.rb +14 -0
- data/lib/stripe/services/ephemeral_key_service.rb +28 -0
- data/lib/stripe/services/event_service.rb +22 -0
- data/lib/stripe/services/exchange_rate_service.rb +32 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/file_link_service.rb +38 -0
- data/lib/stripe/services/file_service.rb +35 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +83 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections/session_service.rb +30 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +16 -0
- data/lib/stripe/services/forwarding/request_service.rb +41 -0
- data/lib/stripe/services/forwarding_service.rb +13 -0
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/identity/verification_report_service.rb +30 -0
- data/lib/stripe/services/identity/verification_session_service.rb +106 -0
- data/lib/stripe/services/identity_service.rb +14 -0
- data/lib/stripe/services/invoice_item_service.rb +61 -0
- data/lib/stripe/services/invoice_line_item_service.rb +31 -0
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
- data/lib/stripe/services/invoice_service.rb +206 -0
- data/lib/stripe/services/issuing/authorization_service.rb +65 -0
- data/lib/stripe/services/issuing/card_service.rb +52 -0
- data/lib/stripe/services/issuing/cardholder_service.rb +52 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_service.rb +63 -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/personalization_design_service.rb +52 -0
- data/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
- data/lib/stripe/services/issuing/token_service.rb +41 -0
- data/lib/stripe/services/issuing/transaction_service.rb +41 -0
- data/lib/stripe/services/issuing_service.rb +24 -0
- data/lib/stripe/services/mandate_service.rb +22 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/oauth_service.rb +63 -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_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +253 -0
- data/lib/stripe/services/payment_link_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_link_service.rb +57 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +50 -0
- data/lib/stripe/services/payment_method_domain_service.rb +66 -0
- data/lib/stripe/services/payment_method_service.rb +86 -0
- data/lib/stripe/services/payment_record_service.rb +101 -0
- data/lib/stripe/services/payout_service.rb +66 -0
- data/lib/stripe/services/plan_service.rb +49 -0
- data/lib/stripe/services/price_service.rb +52 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_feature_service.rb +50 -0
- data/lib/stripe/services/product_service.rb +70 -0
- data/lib/stripe/services/promotion_code_service.rb +50 -0
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
- data/lib/stripe/services/quote_line_item_service.rb +17 -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 +140 -0
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +52 -0
- data/lib/stripe/services/radar/value_list_service.rb +63 -0
- data/lib/stripe/services/radar_service.rb +15 -0
- data/lib/stripe/services/refund_service.rb +63 -0
- data/lib/stripe/services/reporting/report_run_service.rb +41 -0
- data/lib/stripe/services/reporting/report_type_service.rb +30 -0
- data/lib/stripe/services/reporting_service.rb +14 -0
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/review_service.rb +33 -0
- data/lib/stripe/services/setup_attempt_service.rb +17 -0
- data/lib/stripe/services/setup_intent_service.rb +105 -0
- data/lib/stripe/services/shipping_rate_service.rb +50 -0
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
- data/lib/stripe/services/sigma_service.rb +13 -0
- data/lib/stripe/services/source_service.rb +64 -0
- data/lib/stripe/services/source_transaction_service.rb +17 -0
- data/lib/stripe/services/subscription_item_service.rb +61 -0
- data/lib/stripe/services/subscription_schedule_service.rb +83 -0
- data/lib/stripe/services/subscription_service.rb +149 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
- data/lib/stripe/services/tax/calculation_service.rb +37 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/registration_service.rb +54 -0
- data/lib/stripe/services/tax/settings_service.rb +30 -0
- data/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
- data/lib/stripe/services/tax/transaction_service.rb +48 -0
- data/lib/stripe/services/tax_code_service.rb +22 -0
- data/lib/stripe/services/tax_id_service.rb +38 -0
- data/lib/stripe/services/tax_rate_service.rb +38 -0
- data/lib/stripe/services/tax_service.rb +18 -0
- data/lib/stripe/services/terminal/configuration_service.rb +63 -0
- data/lib/stripe/services/terminal/connection_token_service.rb +19 -0
- data/lib/stripe/services/terminal/location_service.rb +64 -0
- 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/reader_service.rb +151 -0
- data/lib/stripe/services/terminal_service.rb +18 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
- data/lib/stripe/services/test_helpers/customer_service.rb +19 -0
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +87 -0
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
- data/lib/stripe/services/test_helpers/refund_service.rb +19 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
- data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
- data/lib/stripe/services/test_helpers_service.rb +19 -0
- data/lib/stripe/services/token_service.rb +23 -0
- data/lib/stripe/services/topup_service.rb +49 -0
- data/lib/stripe/services/transfer_reversal_service.rb +56 -0
- data/lib/stripe/services/transfer_service.rb +47 -0
- data/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
- data/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
- data/lib/stripe/services/treasury/financial_account_service.rb +70 -0
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
- data/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
- data/lib/stripe/services/treasury/received_credit_service.rb +30 -0
- data/lib/stripe/services/treasury/received_debit_service.rb +30 -0
- data/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
- data/lib/stripe/services/treasury/transaction_service.rb +30 -0
- data/lib/stripe/services/treasury_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +101 -0
- 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/meter_event_adjustment_service.rb +21 -0
- data/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +22 -0
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +73 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- data/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
- data/lib/stripe/services/v2/core/event_service.rb +32 -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 +20 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -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/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 +16 -0
- data/lib/stripe/services/webhook_endpoint_service.rb +61 -0
- data/lib/stripe/services.rb +246 -0
- data/lib/stripe/singleton_api_resource.rb +3 -3
- data/lib/stripe/stripe_client.rb +61 -1023
- data/lib/stripe/stripe_configuration.rb +60 -42
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_event_notification_handler.rb +425 -0
- data/lib/stripe/stripe_object.rb +142 -47
- data/lib/stripe/stripe_response.rb +1 -3
- data/lib/stripe/stripe_service.rb +34 -0
- data/lib/stripe/util.rb +134 -45
- data/lib/stripe/v2_list_object.rb +84 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +3 -2
- data/lib/stripe.rb +98 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +30 -0
- data/rbi/stripe.rbi +219587 -0
- metadata +1210 -28
- data/CHANGELOG.md +0 -1036
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -33
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -7
- data/README.md +0 -350
- data/Rakefile +0 -37
- data/VERSION +0 -1
- data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
- data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
- data/lib/stripe/resources/order_return.rb +0 -10
- data/lib/stripe/resources/recipient.rb +0 -14
- data/lib/stripe/resources/sku.rb +0 -13
- data/lib/stripe/resources/three_d_secure.rb +0 -14
- data/stripe.gemspec +0 -41
|
@@ -0,0 +1,1705 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class ChargeCaptureParams < ::Stripe::RequestParams
|
|
6
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
7
|
+
class CarRental < ::Stripe::RequestParams
|
|
8
|
+
class Affiliate < ::Stripe::RequestParams
|
|
9
|
+
# The name of the affiliate that originated the purchase.
|
|
10
|
+
attr_accessor :name
|
|
11
|
+
|
|
12
|
+
def initialize(name: nil)
|
|
13
|
+
@name = name
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class Delivery < ::Stripe::RequestParams
|
|
18
|
+
class Recipient < ::Stripe::RequestParams
|
|
19
|
+
# The email of the recipient the ticket is delivered to.
|
|
20
|
+
attr_accessor :email
|
|
21
|
+
# The name of the recipient the ticket is delivered to.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
24
|
+
attr_accessor :phone
|
|
25
|
+
|
|
26
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
27
|
+
@email = email
|
|
28
|
+
@name = name
|
|
29
|
+
@phone = phone
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# The delivery method for the payment
|
|
33
|
+
attr_accessor :mode
|
|
34
|
+
# Details of the recipient.
|
|
35
|
+
attr_accessor :recipient
|
|
36
|
+
|
|
37
|
+
def initialize(mode: nil, recipient: nil)
|
|
38
|
+
@mode = mode
|
|
39
|
+
@recipient = recipient
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class Distance < ::Stripe::RequestParams
|
|
44
|
+
# Distance traveled.
|
|
45
|
+
attr_accessor :amount
|
|
46
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
47
|
+
attr_accessor :unit
|
|
48
|
+
|
|
49
|
+
def initialize(amount: nil, unit: nil)
|
|
50
|
+
@amount = amount
|
|
51
|
+
@unit = unit
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class Driver < ::Stripe::RequestParams
|
|
56
|
+
# Driver's identification number.
|
|
57
|
+
attr_accessor :driver_identification_number
|
|
58
|
+
# Driver's tax number.
|
|
59
|
+
attr_accessor :driver_tax_number
|
|
60
|
+
# Full name of the person or entity on the car reservation.
|
|
61
|
+
attr_accessor :name
|
|
62
|
+
|
|
63
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
64
|
+
@driver_identification_number = driver_identification_number
|
|
65
|
+
@driver_tax_number = driver_tax_number
|
|
66
|
+
@name = name
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
71
|
+
# City, district, suburb, town, or village.
|
|
72
|
+
attr_accessor :city
|
|
73
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
74
|
+
attr_accessor :country
|
|
75
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
76
|
+
attr_accessor :line1
|
|
77
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
78
|
+
attr_accessor :line2
|
|
79
|
+
# ZIP or postal code.
|
|
80
|
+
attr_accessor :postal_code
|
|
81
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
82
|
+
attr_accessor :state
|
|
83
|
+
|
|
84
|
+
def initialize(
|
|
85
|
+
city: nil,
|
|
86
|
+
country: nil,
|
|
87
|
+
line1: nil,
|
|
88
|
+
line2: nil,
|
|
89
|
+
postal_code: nil,
|
|
90
|
+
state: nil
|
|
91
|
+
)
|
|
92
|
+
@city = city
|
|
93
|
+
@country = country
|
|
94
|
+
@line1 = line1
|
|
95
|
+
@line2 = line2
|
|
96
|
+
@postal_code = postal_code
|
|
97
|
+
@state = state
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
102
|
+
# City, district, suburb, town, or village.
|
|
103
|
+
attr_accessor :city
|
|
104
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
105
|
+
attr_accessor :country
|
|
106
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
107
|
+
attr_accessor :line1
|
|
108
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
109
|
+
attr_accessor :line2
|
|
110
|
+
# ZIP or postal code.
|
|
111
|
+
attr_accessor :postal_code
|
|
112
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
113
|
+
attr_accessor :state
|
|
114
|
+
|
|
115
|
+
def initialize(
|
|
116
|
+
city: nil,
|
|
117
|
+
country: nil,
|
|
118
|
+
line1: nil,
|
|
119
|
+
line2: nil,
|
|
120
|
+
postal_code: nil,
|
|
121
|
+
state: nil
|
|
122
|
+
)
|
|
123
|
+
@city = city
|
|
124
|
+
@country = country
|
|
125
|
+
@line1 = line1
|
|
126
|
+
@line2 = line2
|
|
127
|
+
@postal_code = postal_code
|
|
128
|
+
@state = state
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
# Affiliate details for this purchase.
|
|
132
|
+
attr_accessor :affiliate
|
|
133
|
+
# The booking number associated with the car rental.
|
|
134
|
+
attr_accessor :booking_number
|
|
135
|
+
# Class code of the car.
|
|
136
|
+
attr_accessor :car_class_code
|
|
137
|
+
# Make of the car.
|
|
138
|
+
attr_accessor :car_make
|
|
139
|
+
# Model of the car.
|
|
140
|
+
attr_accessor :car_model
|
|
141
|
+
# The name of the rental car company.
|
|
142
|
+
attr_accessor :company
|
|
143
|
+
# The customer service phone number of the car rental company.
|
|
144
|
+
attr_accessor :customer_service_phone_number
|
|
145
|
+
# Number of days the car is being rented.
|
|
146
|
+
attr_accessor :days_rented
|
|
147
|
+
# Delivery details for this purchase.
|
|
148
|
+
attr_accessor :delivery
|
|
149
|
+
# The details of the distance traveled during the rental period.
|
|
150
|
+
attr_accessor :distance
|
|
151
|
+
# The details of the passengers in the travel reservation
|
|
152
|
+
attr_accessor :drivers
|
|
153
|
+
# List of additional charges being billed.
|
|
154
|
+
attr_accessor :extra_charges
|
|
155
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
156
|
+
attr_accessor :no_show
|
|
157
|
+
# Car pick-up address.
|
|
158
|
+
attr_accessor :pickup_address
|
|
159
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
160
|
+
attr_accessor :pickup_at
|
|
161
|
+
# Name of the pickup location.
|
|
162
|
+
attr_accessor :pickup_location_name
|
|
163
|
+
# Rental rate.
|
|
164
|
+
attr_accessor :rate_amount
|
|
165
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
166
|
+
attr_accessor :rate_interval
|
|
167
|
+
# The name of the person or entity renting the car.
|
|
168
|
+
attr_accessor :renter_name
|
|
169
|
+
# Car return address.
|
|
170
|
+
attr_accessor :return_address
|
|
171
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
172
|
+
attr_accessor :return_at
|
|
173
|
+
# Name of the return location.
|
|
174
|
+
attr_accessor :return_location_name
|
|
175
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
176
|
+
attr_accessor :tax_exempt
|
|
177
|
+
# The vehicle identification number.
|
|
178
|
+
attr_accessor :vehicle_identification_number
|
|
179
|
+
|
|
180
|
+
def initialize(
|
|
181
|
+
affiliate: nil,
|
|
182
|
+
booking_number: nil,
|
|
183
|
+
car_class_code: nil,
|
|
184
|
+
car_make: nil,
|
|
185
|
+
car_model: nil,
|
|
186
|
+
company: nil,
|
|
187
|
+
customer_service_phone_number: nil,
|
|
188
|
+
days_rented: nil,
|
|
189
|
+
delivery: nil,
|
|
190
|
+
distance: nil,
|
|
191
|
+
drivers: nil,
|
|
192
|
+
extra_charges: nil,
|
|
193
|
+
no_show: nil,
|
|
194
|
+
pickup_address: nil,
|
|
195
|
+
pickup_at: nil,
|
|
196
|
+
pickup_location_name: nil,
|
|
197
|
+
rate_amount: nil,
|
|
198
|
+
rate_interval: nil,
|
|
199
|
+
renter_name: nil,
|
|
200
|
+
return_address: nil,
|
|
201
|
+
return_at: nil,
|
|
202
|
+
return_location_name: nil,
|
|
203
|
+
tax_exempt: nil,
|
|
204
|
+
vehicle_identification_number: nil
|
|
205
|
+
)
|
|
206
|
+
@affiliate = affiliate
|
|
207
|
+
@booking_number = booking_number
|
|
208
|
+
@car_class_code = car_class_code
|
|
209
|
+
@car_make = car_make
|
|
210
|
+
@car_model = car_model
|
|
211
|
+
@company = company
|
|
212
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
213
|
+
@days_rented = days_rented
|
|
214
|
+
@delivery = delivery
|
|
215
|
+
@distance = distance
|
|
216
|
+
@drivers = drivers
|
|
217
|
+
@extra_charges = extra_charges
|
|
218
|
+
@no_show = no_show
|
|
219
|
+
@pickup_address = pickup_address
|
|
220
|
+
@pickup_at = pickup_at
|
|
221
|
+
@pickup_location_name = pickup_location_name
|
|
222
|
+
@rate_amount = rate_amount
|
|
223
|
+
@rate_interval = rate_interval
|
|
224
|
+
@renter_name = renter_name
|
|
225
|
+
@return_address = return_address
|
|
226
|
+
@return_at = return_at
|
|
227
|
+
@return_location_name = return_location_name
|
|
228
|
+
@tax_exempt = tax_exempt
|
|
229
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
234
|
+
class Affiliate < ::Stripe::RequestParams
|
|
235
|
+
# Affiliate partner code.
|
|
236
|
+
attr_accessor :code
|
|
237
|
+
# Name of affiliate partner.
|
|
238
|
+
attr_accessor :name
|
|
239
|
+
|
|
240
|
+
def initialize(code: nil, name: nil)
|
|
241
|
+
@code = code
|
|
242
|
+
@name = name
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
class Distance < ::Stripe::RequestParams
|
|
247
|
+
# Distance traveled.
|
|
248
|
+
attr_accessor :amount
|
|
249
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
250
|
+
attr_accessor :unit
|
|
251
|
+
|
|
252
|
+
def initialize(amount: nil, unit: nil)
|
|
253
|
+
@amount = amount
|
|
254
|
+
@unit = unit
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class Driver < ::Stripe::RequestParams
|
|
259
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
260
|
+
# Day of birth (1-31).
|
|
261
|
+
attr_accessor :day
|
|
262
|
+
# Month of birth (1-12).
|
|
263
|
+
attr_accessor :month
|
|
264
|
+
# Year of birth (must be greater than 1900).
|
|
265
|
+
attr_accessor :year
|
|
266
|
+
|
|
267
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
268
|
+
@day = day
|
|
269
|
+
@month = month
|
|
270
|
+
@year = year
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
# Driver's date of birth.
|
|
274
|
+
attr_accessor :date_of_birth
|
|
275
|
+
# Driver's identification number.
|
|
276
|
+
attr_accessor :driver_identification_number
|
|
277
|
+
# Driver's tax number.
|
|
278
|
+
attr_accessor :driver_tax_number
|
|
279
|
+
# Driver's full name.
|
|
280
|
+
attr_accessor :name
|
|
281
|
+
|
|
282
|
+
def initialize(
|
|
283
|
+
date_of_birth: nil,
|
|
284
|
+
driver_identification_number: nil,
|
|
285
|
+
driver_tax_number: nil,
|
|
286
|
+
name: nil
|
|
287
|
+
)
|
|
288
|
+
@date_of_birth = date_of_birth
|
|
289
|
+
@driver_identification_number = driver_identification_number
|
|
290
|
+
@driver_tax_number = driver_tax_number
|
|
291
|
+
@name = name
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class DropOff < ::Stripe::RequestParams
|
|
296
|
+
class Address < ::Stripe::RequestParams
|
|
297
|
+
# City, district, suburb, town, or village.
|
|
298
|
+
attr_accessor :city
|
|
299
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
300
|
+
attr_accessor :country
|
|
301
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
302
|
+
attr_accessor :line1
|
|
303
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
304
|
+
attr_accessor :line2
|
|
305
|
+
# ZIP or postal code.
|
|
306
|
+
attr_accessor :postal_code
|
|
307
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
308
|
+
attr_accessor :state
|
|
309
|
+
|
|
310
|
+
def initialize(
|
|
311
|
+
city: nil,
|
|
312
|
+
country: nil,
|
|
313
|
+
line1: nil,
|
|
314
|
+
line2: nil,
|
|
315
|
+
postal_code: nil,
|
|
316
|
+
state: nil
|
|
317
|
+
)
|
|
318
|
+
@city = city
|
|
319
|
+
@country = country
|
|
320
|
+
@line1 = line1
|
|
321
|
+
@line2 = line2
|
|
322
|
+
@postal_code = postal_code
|
|
323
|
+
@state = state
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
# Address of the rental location.
|
|
327
|
+
attr_accessor :address
|
|
328
|
+
# Location name.
|
|
329
|
+
attr_accessor :location_name
|
|
330
|
+
# Timestamp for the location.
|
|
331
|
+
attr_accessor :time
|
|
332
|
+
|
|
333
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
334
|
+
@address = address
|
|
335
|
+
@location_name = location_name
|
|
336
|
+
@time = time
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
class Insurance < ::Stripe::RequestParams
|
|
341
|
+
# Amount of the insurance coverage in cents.
|
|
342
|
+
attr_accessor :amount
|
|
343
|
+
# Currency of the insurance amount.
|
|
344
|
+
attr_accessor :currency
|
|
345
|
+
# Name of the insurance company.
|
|
346
|
+
attr_accessor :insurance_company_name
|
|
347
|
+
# Type of insurance coverage.
|
|
348
|
+
attr_accessor :insurance_type
|
|
349
|
+
|
|
350
|
+
def initialize(
|
|
351
|
+
amount: nil,
|
|
352
|
+
currency: nil,
|
|
353
|
+
insurance_company_name: nil,
|
|
354
|
+
insurance_type: nil
|
|
355
|
+
)
|
|
356
|
+
@amount = amount
|
|
357
|
+
@currency = currency
|
|
358
|
+
@insurance_company_name = insurance_company_name
|
|
359
|
+
@insurance_type = insurance_type
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
class Pickup < ::Stripe::RequestParams
|
|
364
|
+
class Address < ::Stripe::RequestParams
|
|
365
|
+
# City, district, suburb, town, or village.
|
|
366
|
+
attr_accessor :city
|
|
367
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
368
|
+
attr_accessor :country
|
|
369
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
370
|
+
attr_accessor :line1
|
|
371
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
372
|
+
attr_accessor :line2
|
|
373
|
+
# ZIP or postal code.
|
|
374
|
+
attr_accessor :postal_code
|
|
375
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
376
|
+
attr_accessor :state
|
|
377
|
+
|
|
378
|
+
def initialize(
|
|
379
|
+
city: nil,
|
|
380
|
+
country: nil,
|
|
381
|
+
line1: nil,
|
|
382
|
+
line2: nil,
|
|
383
|
+
postal_code: nil,
|
|
384
|
+
state: nil
|
|
385
|
+
)
|
|
386
|
+
@city = city
|
|
387
|
+
@country = country
|
|
388
|
+
@line1 = line1
|
|
389
|
+
@line2 = line2
|
|
390
|
+
@postal_code = postal_code
|
|
391
|
+
@state = state
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
# Address of the rental location.
|
|
395
|
+
attr_accessor :address
|
|
396
|
+
# Location name.
|
|
397
|
+
attr_accessor :location_name
|
|
398
|
+
# Timestamp for the location.
|
|
399
|
+
attr_accessor :time
|
|
400
|
+
|
|
401
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
402
|
+
@address = address
|
|
403
|
+
@location_name = location_name
|
|
404
|
+
@time = time
|
|
405
|
+
end
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
class Total < ::Stripe::RequestParams
|
|
409
|
+
class Discounts < ::Stripe::RequestParams
|
|
410
|
+
# Corporate client discount code.
|
|
411
|
+
attr_accessor :corporate_client_code
|
|
412
|
+
# Coupon code applied to the rental.
|
|
413
|
+
attr_accessor :coupon
|
|
414
|
+
# Maximum number of free miles or kilometers included.
|
|
415
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
416
|
+
|
|
417
|
+
def initialize(
|
|
418
|
+
corporate_client_code: nil,
|
|
419
|
+
coupon: nil,
|
|
420
|
+
maximum_free_miles_or_kilometers: nil
|
|
421
|
+
)
|
|
422
|
+
@corporate_client_code = corporate_client_code
|
|
423
|
+
@coupon = coupon
|
|
424
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
425
|
+
end
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
429
|
+
# Amount of the extra charge in cents.
|
|
430
|
+
attr_accessor :amount
|
|
431
|
+
# Type of extra charge.
|
|
432
|
+
attr_accessor :type
|
|
433
|
+
|
|
434
|
+
def initialize(amount: nil, type: nil)
|
|
435
|
+
@amount = amount
|
|
436
|
+
@type = type
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
class Tax < ::Stripe::RequestParams
|
|
441
|
+
class Tax < ::Stripe::RequestParams
|
|
442
|
+
# Tax amount.
|
|
443
|
+
attr_accessor :amount
|
|
444
|
+
# Tax rate applied.
|
|
445
|
+
attr_accessor :rate
|
|
446
|
+
# Type of tax applied.
|
|
447
|
+
attr_accessor :type
|
|
448
|
+
|
|
449
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
450
|
+
@amount = amount
|
|
451
|
+
@rate = rate
|
|
452
|
+
@type = type
|
|
453
|
+
end
|
|
454
|
+
end
|
|
455
|
+
# Indicates if the transaction is tax exempt.
|
|
456
|
+
attr_accessor :tax_exempt_indicator
|
|
457
|
+
# Array of tax details.
|
|
458
|
+
attr_accessor :taxes
|
|
459
|
+
|
|
460
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
461
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
462
|
+
@taxes = taxes
|
|
463
|
+
end
|
|
464
|
+
end
|
|
465
|
+
# Total amount in cents.
|
|
466
|
+
attr_accessor :amount
|
|
467
|
+
# Currency of the amount.
|
|
468
|
+
attr_accessor :currency
|
|
469
|
+
# Discount details for the rental.
|
|
470
|
+
attr_accessor :discounts
|
|
471
|
+
# Additional charges for the rental.
|
|
472
|
+
attr_accessor :extra_charges
|
|
473
|
+
# Rate per unit for the rental.
|
|
474
|
+
attr_accessor :rate_per_unit
|
|
475
|
+
# Unit of measurement for the rate.
|
|
476
|
+
attr_accessor :rate_unit
|
|
477
|
+
# Tax breakdown for the rental.
|
|
478
|
+
attr_accessor :tax
|
|
479
|
+
|
|
480
|
+
def initialize(
|
|
481
|
+
amount: nil,
|
|
482
|
+
currency: nil,
|
|
483
|
+
discounts: nil,
|
|
484
|
+
extra_charges: nil,
|
|
485
|
+
rate_per_unit: nil,
|
|
486
|
+
rate_unit: nil,
|
|
487
|
+
tax: nil
|
|
488
|
+
)
|
|
489
|
+
@amount = amount
|
|
490
|
+
@currency = currency
|
|
491
|
+
@discounts = discounts
|
|
492
|
+
@extra_charges = extra_charges
|
|
493
|
+
@rate_per_unit = rate_per_unit
|
|
494
|
+
@rate_unit = rate_unit
|
|
495
|
+
@tax = tax
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
class Vehicle < ::Stripe::RequestParams
|
|
500
|
+
# Make of the rental vehicle.
|
|
501
|
+
attr_accessor :make
|
|
502
|
+
# Model of the rental vehicle.
|
|
503
|
+
attr_accessor :model
|
|
504
|
+
# Odometer reading at the time of rental.
|
|
505
|
+
attr_accessor :odometer
|
|
506
|
+
# Type of the rental vehicle.
|
|
507
|
+
attr_accessor :type
|
|
508
|
+
# Class of the rental vehicle.
|
|
509
|
+
attr_accessor :vehicle_class
|
|
510
|
+
# Vehicle identification number (VIN).
|
|
511
|
+
attr_accessor :vehicle_identification_number
|
|
512
|
+
|
|
513
|
+
def initialize(
|
|
514
|
+
make: nil,
|
|
515
|
+
model: nil,
|
|
516
|
+
odometer: nil,
|
|
517
|
+
type: nil,
|
|
518
|
+
vehicle_class: nil,
|
|
519
|
+
vehicle_identification_number: nil
|
|
520
|
+
)
|
|
521
|
+
@make = make
|
|
522
|
+
@model = model
|
|
523
|
+
@odometer = odometer
|
|
524
|
+
@type = type
|
|
525
|
+
@vehicle_class = vehicle_class
|
|
526
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
530
|
+
attr_accessor :affiliate
|
|
531
|
+
# Booking confirmation number for the car rental.
|
|
532
|
+
attr_accessor :booking_number
|
|
533
|
+
# Name of the car rental company.
|
|
534
|
+
attr_accessor :carrier_name
|
|
535
|
+
# Customer service phone number for the car rental company.
|
|
536
|
+
attr_accessor :customer_service_phone_number
|
|
537
|
+
# Number of days the car is being rented.
|
|
538
|
+
attr_accessor :days_rented
|
|
539
|
+
# Distance details for the rental.
|
|
540
|
+
attr_accessor :distance
|
|
541
|
+
# List of drivers for the rental.
|
|
542
|
+
attr_accessor :drivers
|
|
543
|
+
# Drop-off location details.
|
|
544
|
+
attr_accessor :drop_off
|
|
545
|
+
# Insurance details for the rental.
|
|
546
|
+
attr_accessor :insurances
|
|
547
|
+
# Indicates if the customer was a no-show.
|
|
548
|
+
attr_accessor :no_show_indicator
|
|
549
|
+
# Pickup location details.
|
|
550
|
+
attr_accessor :pickup
|
|
551
|
+
# Name of the person renting the vehicle.
|
|
552
|
+
attr_accessor :renter_name
|
|
553
|
+
# Total cost breakdown for the rental.
|
|
554
|
+
attr_accessor :total
|
|
555
|
+
# Vehicle details for the rental.
|
|
556
|
+
attr_accessor :vehicle
|
|
557
|
+
|
|
558
|
+
def initialize(
|
|
559
|
+
affiliate: nil,
|
|
560
|
+
booking_number: nil,
|
|
561
|
+
carrier_name: nil,
|
|
562
|
+
customer_service_phone_number: nil,
|
|
563
|
+
days_rented: nil,
|
|
564
|
+
distance: nil,
|
|
565
|
+
drivers: nil,
|
|
566
|
+
drop_off: nil,
|
|
567
|
+
insurances: nil,
|
|
568
|
+
no_show_indicator: nil,
|
|
569
|
+
pickup: nil,
|
|
570
|
+
renter_name: nil,
|
|
571
|
+
total: nil,
|
|
572
|
+
vehicle: nil
|
|
573
|
+
)
|
|
574
|
+
@affiliate = affiliate
|
|
575
|
+
@booking_number = booking_number
|
|
576
|
+
@carrier_name = carrier_name
|
|
577
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
578
|
+
@days_rented = days_rented
|
|
579
|
+
@distance = distance
|
|
580
|
+
@drivers = drivers
|
|
581
|
+
@drop_off = drop_off
|
|
582
|
+
@insurances = insurances
|
|
583
|
+
@no_show_indicator = no_show_indicator
|
|
584
|
+
@pickup = pickup
|
|
585
|
+
@renter_name = renter_name
|
|
586
|
+
@total = total
|
|
587
|
+
@vehicle = vehicle
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
class EventDetails < ::Stripe::RequestParams
|
|
592
|
+
class Address < ::Stripe::RequestParams
|
|
593
|
+
# City, district, suburb, town, or village.
|
|
594
|
+
attr_accessor :city
|
|
595
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
596
|
+
attr_accessor :country
|
|
597
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
598
|
+
attr_accessor :line1
|
|
599
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
600
|
+
attr_accessor :line2
|
|
601
|
+
# ZIP or postal code.
|
|
602
|
+
attr_accessor :postal_code
|
|
603
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
604
|
+
attr_accessor :state
|
|
605
|
+
|
|
606
|
+
def initialize(
|
|
607
|
+
city: nil,
|
|
608
|
+
country: nil,
|
|
609
|
+
line1: nil,
|
|
610
|
+
line2: nil,
|
|
611
|
+
postal_code: nil,
|
|
612
|
+
state: nil
|
|
613
|
+
)
|
|
614
|
+
@city = city
|
|
615
|
+
@country = country
|
|
616
|
+
@line1 = line1
|
|
617
|
+
@line2 = line2
|
|
618
|
+
@postal_code = postal_code
|
|
619
|
+
@state = state
|
|
620
|
+
end
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
class Affiliate < ::Stripe::RequestParams
|
|
624
|
+
# The name of the affiliate that originated the purchase.
|
|
625
|
+
attr_accessor :name
|
|
626
|
+
|
|
627
|
+
def initialize(name: nil)
|
|
628
|
+
@name = name
|
|
629
|
+
end
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
class Delivery < ::Stripe::RequestParams
|
|
633
|
+
class Recipient < ::Stripe::RequestParams
|
|
634
|
+
# The email of the recipient the ticket is delivered to.
|
|
635
|
+
attr_accessor :email
|
|
636
|
+
# The name of the recipient the ticket is delivered to.
|
|
637
|
+
attr_accessor :name
|
|
638
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
639
|
+
attr_accessor :phone
|
|
640
|
+
|
|
641
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
642
|
+
@email = email
|
|
643
|
+
@name = name
|
|
644
|
+
@phone = phone
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
# The delivery method for the payment
|
|
648
|
+
attr_accessor :mode
|
|
649
|
+
# Details of the recipient.
|
|
650
|
+
attr_accessor :recipient
|
|
651
|
+
|
|
652
|
+
def initialize(mode: nil, recipient: nil)
|
|
653
|
+
@mode = mode
|
|
654
|
+
@recipient = recipient
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
658
|
+
attr_accessor :access_controlled_venue
|
|
659
|
+
# The event location's address.
|
|
660
|
+
attr_accessor :address
|
|
661
|
+
# Affiliate details for this purchase.
|
|
662
|
+
attr_accessor :affiliate
|
|
663
|
+
# The name of the company
|
|
664
|
+
attr_accessor :company
|
|
665
|
+
# Delivery details for this purchase.
|
|
666
|
+
attr_accessor :delivery
|
|
667
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
668
|
+
attr_accessor :ends_at
|
|
669
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
670
|
+
attr_accessor :genre
|
|
671
|
+
# The name of the event.
|
|
672
|
+
attr_accessor :name
|
|
673
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
674
|
+
attr_accessor :starts_at
|
|
675
|
+
|
|
676
|
+
def initialize(
|
|
677
|
+
access_controlled_venue: nil,
|
|
678
|
+
address: nil,
|
|
679
|
+
affiliate: nil,
|
|
680
|
+
company: nil,
|
|
681
|
+
delivery: nil,
|
|
682
|
+
ends_at: nil,
|
|
683
|
+
genre: nil,
|
|
684
|
+
name: nil,
|
|
685
|
+
starts_at: nil
|
|
686
|
+
)
|
|
687
|
+
@access_controlled_venue = access_controlled_venue
|
|
688
|
+
@address = address
|
|
689
|
+
@affiliate = affiliate
|
|
690
|
+
@company = company
|
|
691
|
+
@delivery = delivery
|
|
692
|
+
@ends_at = ends_at
|
|
693
|
+
@genre = genre
|
|
694
|
+
@name = name
|
|
695
|
+
@starts_at = starts_at
|
|
696
|
+
end
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
class Flight < ::Stripe::RequestParams
|
|
700
|
+
class Affiliate < ::Stripe::RequestParams
|
|
701
|
+
# The name of the affiliate that originated the purchase.
|
|
702
|
+
attr_accessor :name
|
|
703
|
+
|
|
704
|
+
def initialize(name: nil)
|
|
705
|
+
@name = name
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
class Delivery < ::Stripe::RequestParams
|
|
710
|
+
class Recipient < ::Stripe::RequestParams
|
|
711
|
+
# The email of the recipient the ticket is delivered to.
|
|
712
|
+
attr_accessor :email
|
|
713
|
+
# The name of the recipient the ticket is delivered to.
|
|
714
|
+
attr_accessor :name
|
|
715
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
716
|
+
attr_accessor :phone
|
|
717
|
+
|
|
718
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
719
|
+
@email = email
|
|
720
|
+
@name = name
|
|
721
|
+
@phone = phone
|
|
722
|
+
end
|
|
723
|
+
end
|
|
724
|
+
# The delivery method for the payment
|
|
725
|
+
attr_accessor :mode
|
|
726
|
+
# Details of the recipient.
|
|
727
|
+
attr_accessor :recipient
|
|
728
|
+
|
|
729
|
+
def initialize(mode: nil, recipient: nil)
|
|
730
|
+
@mode = mode
|
|
731
|
+
@recipient = recipient
|
|
732
|
+
end
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
class Passenger < ::Stripe::RequestParams
|
|
736
|
+
# Full name of the person or entity on the flight reservation.
|
|
737
|
+
attr_accessor :name
|
|
738
|
+
|
|
739
|
+
def initialize(name: nil)
|
|
740
|
+
@name = name
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
class Segment < ::Stripe::RequestParams
|
|
745
|
+
# The flight segment amount.
|
|
746
|
+
attr_accessor :amount
|
|
747
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
748
|
+
attr_accessor :arrival_airport
|
|
749
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
750
|
+
attr_accessor :arrives_at
|
|
751
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
752
|
+
attr_accessor :carrier
|
|
753
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
754
|
+
attr_accessor :departs_at
|
|
755
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
756
|
+
attr_accessor :departure_airport
|
|
757
|
+
# The flight number associated with the segment
|
|
758
|
+
attr_accessor :flight_number
|
|
759
|
+
# The fare class for the segment.
|
|
760
|
+
attr_accessor :service_class
|
|
761
|
+
|
|
762
|
+
def initialize(
|
|
763
|
+
amount: nil,
|
|
764
|
+
arrival_airport: nil,
|
|
765
|
+
arrives_at: nil,
|
|
766
|
+
carrier: nil,
|
|
767
|
+
departs_at: nil,
|
|
768
|
+
departure_airport: nil,
|
|
769
|
+
flight_number: nil,
|
|
770
|
+
service_class: nil
|
|
771
|
+
)
|
|
772
|
+
@amount = amount
|
|
773
|
+
@arrival_airport = arrival_airport
|
|
774
|
+
@arrives_at = arrives_at
|
|
775
|
+
@carrier = carrier
|
|
776
|
+
@departs_at = departs_at
|
|
777
|
+
@departure_airport = departure_airport
|
|
778
|
+
@flight_number = flight_number
|
|
779
|
+
@service_class = service_class
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
# Affiliate details for this purchase.
|
|
783
|
+
attr_accessor :affiliate
|
|
784
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
785
|
+
attr_accessor :agency_number
|
|
786
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
787
|
+
attr_accessor :carrier
|
|
788
|
+
# Delivery details for this purchase.
|
|
789
|
+
attr_accessor :delivery
|
|
790
|
+
# The name of the person or entity on the reservation.
|
|
791
|
+
attr_accessor :passenger_name
|
|
792
|
+
# The details of the passengers in the travel reservation.
|
|
793
|
+
attr_accessor :passengers
|
|
794
|
+
# The individual flight segments associated with the trip.
|
|
795
|
+
attr_accessor :segments
|
|
796
|
+
# The ticket number associated with the travel reservation.
|
|
797
|
+
attr_accessor :ticket_number
|
|
798
|
+
|
|
799
|
+
def initialize(
|
|
800
|
+
affiliate: nil,
|
|
801
|
+
agency_number: nil,
|
|
802
|
+
carrier: nil,
|
|
803
|
+
delivery: nil,
|
|
804
|
+
passenger_name: nil,
|
|
805
|
+
passengers: nil,
|
|
806
|
+
segments: nil,
|
|
807
|
+
ticket_number: nil
|
|
808
|
+
)
|
|
809
|
+
@affiliate = affiliate
|
|
810
|
+
@agency_number = agency_number
|
|
811
|
+
@carrier = carrier
|
|
812
|
+
@delivery = delivery
|
|
813
|
+
@passenger_name = passenger_name
|
|
814
|
+
@passengers = passengers
|
|
815
|
+
@segments = segments
|
|
816
|
+
@ticket_number = ticket_number
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
821
|
+
class Affiliate < ::Stripe::RequestParams
|
|
822
|
+
# Affiliate partner code.
|
|
823
|
+
attr_accessor :code
|
|
824
|
+
# Name of affiliate partner.
|
|
825
|
+
attr_accessor :name
|
|
826
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
827
|
+
attr_accessor :travel_authorization_code
|
|
828
|
+
|
|
829
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
830
|
+
@code = code
|
|
831
|
+
@name = name
|
|
832
|
+
@travel_authorization_code = travel_authorization_code
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
class Insurance < ::Stripe::RequestParams
|
|
837
|
+
# Insurance cost.
|
|
838
|
+
attr_accessor :amount
|
|
839
|
+
# Insurance currency.
|
|
840
|
+
attr_accessor :currency
|
|
841
|
+
# Insurance company name.
|
|
842
|
+
attr_accessor :insurance_company_name
|
|
843
|
+
# Type of insurance.
|
|
844
|
+
attr_accessor :insurance_type
|
|
845
|
+
|
|
846
|
+
def initialize(
|
|
847
|
+
amount: nil,
|
|
848
|
+
currency: nil,
|
|
849
|
+
insurance_company_name: nil,
|
|
850
|
+
insurance_type: nil
|
|
851
|
+
)
|
|
852
|
+
@amount = amount
|
|
853
|
+
@currency = currency
|
|
854
|
+
@insurance_company_name = insurance_company_name
|
|
855
|
+
@insurance_type = insurance_type
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
class Passenger < ::Stripe::RequestParams
|
|
860
|
+
# Passenger's full name.
|
|
861
|
+
attr_accessor :name
|
|
862
|
+
|
|
863
|
+
def initialize(name: nil)
|
|
864
|
+
@name = name
|
|
865
|
+
end
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
class Segment < ::Stripe::RequestParams
|
|
869
|
+
class Arrival < ::Stripe::RequestParams
|
|
870
|
+
# Arrival airport IATA code.
|
|
871
|
+
attr_accessor :airport
|
|
872
|
+
# Arrival date/time.
|
|
873
|
+
attr_accessor :arrives_at
|
|
874
|
+
# Arrival city.
|
|
875
|
+
attr_accessor :city
|
|
876
|
+
# Arrival country.
|
|
877
|
+
attr_accessor :country
|
|
878
|
+
|
|
879
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
880
|
+
@airport = airport
|
|
881
|
+
@arrives_at = arrives_at
|
|
882
|
+
@city = city
|
|
883
|
+
@country = country
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
class Departure < ::Stripe::RequestParams
|
|
888
|
+
# Departure airport IATA code.
|
|
889
|
+
attr_accessor :airport
|
|
890
|
+
# Departure city.
|
|
891
|
+
attr_accessor :city
|
|
892
|
+
# Departure country.
|
|
893
|
+
attr_accessor :country
|
|
894
|
+
# Departure date/time.
|
|
895
|
+
attr_accessor :departs_at
|
|
896
|
+
|
|
897
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
898
|
+
@airport = airport
|
|
899
|
+
@city = city
|
|
900
|
+
@country = country
|
|
901
|
+
@departs_at = departs_at
|
|
902
|
+
end
|
|
903
|
+
end
|
|
904
|
+
# Segment fare amount.
|
|
905
|
+
attr_accessor :amount
|
|
906
|
+
# Arrival details.
|
|
907
|
+
attr_accessor :arrival
|
|
908
|
+
# Airline carrier code.
|
|
909
|
+
attr_accessor :carrier_code
|
|
910
|
+
# Carrier name.
|
|
911
|
+
attr_accessor :carrier_name
|
|
912
|
+
# Segment currency.
|
|
913
|
+
attr_accessor :currency
|
|
914
|
+
# Departure details.
|
|
915
|
+
attr_accessor :departure
|
|
916
|
+
# Exchange ticket number.
|
|
917
|
+
attr_accessor :exchange_ticket_number
|
|
918
|
+
# Fare basis code.
|
|
919
|
+
attr_accessor :fare_basis_code
|
|
920
|
+
# Additional fees.
|
|
921
|
+
attr_accessor :fees
|
|
922
|
+
# Flight number.
|
|
923
|
+
attr_accessor :flight_number
|
|
924
|
+
# Stopover indicator.
|
|
925
|
+
attr_accessor :is_stop_over_indicator
|
|
926
|
+
# Refundable ticket indicator.
|
|
927
|
+
attr_accessor :refundable
|
|
928
|
+
# Class of service.
|
|
929
|
+
attr_accessor :service_class
|
|
930
|
+
# Tax amount for segment.
|
|
931
|
+
attr_accessor :tax_amount
|
|
932
|
+
# Ticket number.
|
|
933
|
+
attr_accessor :ticket_number
|
|
934
|
+
|
|
935
|
+
def initialize(
|
|
936
|
+
amount: nil,
|
|
937
|
+
arrival: nil,
|
|
938
|
+
carrier_code: nil,
|
|
939
|
+
carrier_name: nil,
|
|
940
|
+
currency: nil,
|
|
941
|
+
departure: nil,
|
|
942
|
+
exchange_ticket_number: nil,
|
|
943
|
+
fare_basis_code: nil,
|
|
944
|
+
fees: nil,
|
|
945
|
+
flight_number: nil,
|
|
946
|
+
is_stop_over_indicator: nil,
|
|
947
|
+
refundable: nil,
|
|
948
|
+
service_class: nil,
|
|
949
|
+
tax_amount: nil,
|
|
950
|
+
ticket_number: nil
|
|
951
|
+
)
|
|
952
|
+
@amount = amount
|
|
953
|
+
@arrival = arrival
|
|
954
|
+
@carrier_code = carrier_code
|
|
955
|
+
@carrier_name = carrier_name
|
|
956
|
+
@currency = currency
|
|
957
|
+
@departure = departure
|
|
958
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
959
|
+
@fare_basis_code = fare_basis_code
|
|
960
|
+
@fees = fees
|
|
961
|
+
@flight_number = flight_number
|
|
962
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
963
|
+
@refundable = refundable
|
|
964
|
+
@service_class = service_class
|
|
965
|
+
@tax_amount = tax_amount
|
|
966
|
+
@ticket_number = ticket_number
|
|
967
|
+
end
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
class Total < ::Stripe::RequestParams
|
|
971
|
+
class Discounts < ::Stripe::RequestParams
|
|
972
|
+
# Corporate client discount code.
|
|
973
|
+
attr_accessor :corporate_client_code
|
|
974
|
+
|
|
975
|
+
def initialize(corporate_client_code: nil)
|
|
976
|
+
@corporate_client_code = corporate_client_code
|
|
977
|
+
end
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
981
|
+
# Amount of additional charges.
|
|
982
|
+
attr_accessor :amount
|
|
983
|
+
# Type of additional charges.
|
|
984
|
+
attr_accessor :type
|
|
985
|
+
|
|
986
|
+
def initialize(amount: nil, type: nil)
|
|
987
|
+
@amount = amount
|
|
988
|
+
@type = type
|
|
989
|
+
end
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
class Tax < ::Stripe::RequestParams
|
|
993
|
+
class Tax < ::Stripe::RequestParams
|
|
994
|
+
# Tax amount.
|
|
995
|
+
attr_accessor :amount
|
|
996
|
+
# Tax rate.
|
|
997
|
+
attr_accessor :rate
|
|
998
|
+
# Type of tax.
|
|
999
|
+
attr_accessor :type
|
|
1000
|
+
|
|
1001
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1002
|
+
@amount = amount
|
|
1003
|
+
@rate = rate
|
|
1004
|
+
@type = type
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
# Array of tax details.
|
|
1008
|
+
attr_accessor :taxes
|
|
1009
|
+
|
|
1010
|
+
def initialize(taxes: nil)
|
|
1011
|
+
@taxes = taxes
|
|
1012
|
+
end
|
|
1013
|
+
end
|
|
1014
|
+
# Total flight amount.
|
|
1015
|
+
attr_accessor :amount
|
|
1016
|
+
# Reason for credit.
|
|
1017
|
+
attr_accessor :credit_reason
|
|
1018
|
+
# Total currency.
|
|
1019
|
+
attr_accessor :currency
|
|
1020
|
+
# Discount details.
|
|
1021
|
+
attr_accessor :discounts
|
|
1022
|
+
# Additional charges.
|
|
1023
|
+
attr_accessor :extra_charges
|
|
1024
|
+
# Tax breakdown.
|
|
1025
|
+
attr_accessor :tax
|
|
1026
|
+
|
|
1027
|
+
def initialize(
|
|
1028
|
+
amount: nil,
|
|
1029
|
+
credit_reason: nil,
|
|
1030
|
+
currency: nil,
|
|
1031
|
+
discounts: nil,
|
|
1032
|
+
extra_charges: nil,
|
|
1033
|
+
tax: nil
|
|
1034
|
+
)
|
|
1035
|
+
@amount = amount
|
|
1036
|
+
@credit_reason = credit_reason
|
|
1037
|
+
@currency = currency
|
|
1038
|
+
@discounts = discounts
|
|
1039
|
+
@extra_charges = extra_charges
|
|
1040
|
+
@tax = tax
|
|
1041
|
+
end
|
|
1042
|
+
end
|
|
1043
|
+
# Affiliate details if applicable.
|
|
1044
|
+
attr_accessor :affiliate
|
|
1045
|
+
# Reservation reference.
|
|
1046
|
+
attr_accessor :booking_number
|
|
1047
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1048
|
+
attr_accessor :computerized_reservation_system
|
|
1049
|
+
# Ticket restrictions.
|
|
1050
|
+
attr_accessor :endorsements_and_restrictions
|
|
1051
|
+
# List of insurances.
|
|
1052
|
+
attr_accessor :insurances
|
|
1053
|
+
# List of passengers.
|
|
1054
|
+
attr_accessor :passengers
|
|
1055
|
+
# List of flight segments.
|
|
1056
|
+
attr_accessor :segments
|
|
1057
|
+
# Electronic ticket indicator.
|
|
1058
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1059
|
+
# Total cost breakdown.
|
|
1060
|
+
attr_accessor :total
|
|
1061
|
+
# Type of flight transaction.
|
|
1062
|
+
attr_accessor :transaction_type
|
|
1063
|
+
|
|
1064
|
+
def initialize(
|
|
1065
|
+
affiliate: nil,
|
|
1066
|
+
booking_number: nil,
|
|
1067
|
+
computerized_reservation_system: nil,
|
|
1068
|
+
endorsements_and_restrictions: nil,
|
|
1069
|
+
insurances: nil,
|
|
1070
|
+
passengers: nil,
|
|
1071
|
+
segments: nil,
|
|
1072
|
+
ticket_electronically_issued_indicator: nil,
|
|
1073
|
+
total: nil,
|
|
1074
|
+
transaction_type: nil
|
|
1075
|
+
)
|
|
1076
|
+
@affiliate = affiliate
|
|
1077
|
+
@booking_number = booking_number
|
|
1078
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1079
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1080
|
+
@insurances = insurances
|
|
1081
|
+
@passengers = passengers
|
|
1082
|
+
@segments = segments
|
|
1083
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1084
|
+
@total = total
|
|
1085
|
+
@transaction_type = transaction_type
|
|
1086
|
+
end
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
class Lodging < ::Stripe::RequestParams
|
|
1090
|
+
class Address < ::Stripe::RequestParams
|
|
1091
|
+
# City, district, suburb, town, or village.
|
|
1092
|
+
attr_accessor :city
|
|
1093
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1094
|
+
attr_accessor :country
|
|
1095
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1096
|
+
attr_accessor :line1
|
|
1097
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1098
|
+
attr_accessor :line2
|
|
1099
|
+
# ZIP or postal code.
|
|
1100
|
+
attr_accessor :postal_code
|
|
1101
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1102
|
+
attr_accessor :state
|
|
1103
|
+
|
|
1104
|
+
def initialize(
|
|
1105
|
+
city: nil,
|
|
1106
|
+
country: nil,
|
|
1107
|
+
line1: nil,
|
|
1108
|
+
line2: nil,
|
|
1109
|
+
postal_code: nil,
|
|
1110
|
+
state: nil
|
|
1111
|
+
)
|
|
1112
|
+
@city = city
|
|
1113
|
+
@country = country
|
|
1114
|
+
@line1 = line1
|
|
1115
|
+
@line2 = line2
|
|
1116
|
+
@postal_code = postal_code
|
|
1117
|
+
@state = state
|
|
1118
|
+
end
|
|
1119
|
+
end
|
|
1120
|
+
|
|
1121
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1122
|
+
# The name of the affiliate that originated the purchase.
|
|
1123
|
+
attr_accessor :name
|
|
1124
|
+
|
|
1125
|
+
def initialize(name: nil)
|
|
1126
|
+
@name = name
|
|
1127
|
+
end
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
class Delivery < ::Stripe::RequestParams
|
|
1131
|
+
class Recipient < ::Stripe::RequestParams
|
|
1132
|
+
# The email of the recipient the ticket is delivered to.
|
|
1133
|
+
attr_accessor :email
|
|
1134
|
+
# The name of the recipient the ticket is delivered to.
|
|
1135
|
+
attr_accessor :name
|
|
1136
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
1137
|
+
attr_accessor :phone
|
|
1138
|
+
|
|
1139
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
1140
|
+
@email = email
|
|
1141
|
+
@name = name
|
|
1142
|
+
@phone = phone
|
|
1143
|
+
end
|
|
1144
|
+
end
|
|
1145
|
+
# The delivery method for the payment
|
|
1146
|
+
attr_accessor :mode
|
|
1147
|
+
# Details of the recipient.
|
|
1148
|
+
attr_accessor :recipient
|
|
1149
|
+
|
|
1150
|
+
def initialize(mode: nil, recipient: nil)
|
|
1151
|
+
@mode = mode
|
|
1152
|
+
@recipient = recipient
|
|
1153
|
+
end
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
class Passenger < ::Stripe::RequestParams
|
|
1157
|
+
# Full name of the person or entity on the lodging reservation.
|
|
1158
|
+
attr_accessor :name
|
|
1159
|
+
|
|
1160
|
+
def initialize(name: nil)
|
|
1161
|
+
@name = name
|
|
1162
|
+
end
|
|
1163
|
+
end
|
|
1164
|
+
# The lodging location's address.
|
|
1165
|
+
attr_accessor :address
|
|
1166
|
+
# The number of adults on the booking
|
|
1167
|
+
attr_accessor :adults
|
|
1168
|
+
# Affiliate details for this purchase.
|
|
1169
|
+
attr_accessor :affiliate
|
|
1170
|
+
# The booking number associated with the lodging reservation.
|
|
1171
|
+
attr_accessor :booking_number
|
|
1172
|
+
# The lodging category
|
|
1173
|
+
attr_accessor :category
|
|
1174
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
1175
|
+
attr_accessor :checkin_at
|
|
1176
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
1177
|
+
attr_accessor :checkout_at
|
|
1178
|
+
# The customer service phone number of the lodging company.
|
|
1179
|
+
attr_accessor :customer_service_phone_number
|
|
1180
|
+
# The daily lodging room rate.
|
|
1181
|
+
attr_accessor :daily_room_rate_amount
|
|
1182
|
+
# Delivery details for this purchase.
|
|
1183
|
+
attr_accessor :delivery
|
|
1184
|
+
# List of additional charges being billed.
|
|
1185
|
+
attr_accessor :extra_charges
|
|
1186
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
1187
|
+
attr_accessor :fire_safety_act_compliance
|
|
1188
|
+
# The name of the lodging location.
|
|
1189
|
+
attr_accessor :name
|
|
1190
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
1191
|
+
attr_accessor :no_show
|
|
1192
|
+
# The number of rooms on the booking
|
|
1193
|
+
attr_accessor :number_of_rooms
|
|
1194
|
+
# The details of the passengers in the travel reservation
|
|
1195
|
+
attr_accessor :passengers
|
|
1196
|
+
# The phone number of the lodging location.
|
|
1197
|
+
attr_accessor :property_phone_number
|
|
1198
|
+
# The room class for this purchase.
|
|
1199
|
+
attr_accessor :room_class
|
|
1200
|
+
# The number of room nights
|
|
1201
|
+
attr_accessor :room_nights
|
|
1202
|
+
# The total tax amount associating with the room reservation.
|
|
1203
|
+
attr_accessor :total_room_tax_amount
|
|
1204
|
+
# The total tax amount
|
|
1205
|
+
attr_accessor :total_tax_amount
|
|
1206
|
+
|
|
1207
|
+
def initialize(
|
|
1208
|
+
address: nil,
|
|
1209
|
+
adults: nil,
|
|
1210
|
+
affiliate: nil,
|
|
1211
|
+
booking_number: nil,
|
|
1212
|
+
category: nil,
|
|
1213
|
+
checkin_at: nil,
|
|
1214
|
+
checkout_at: nil,
|
|
1215
|
+
customer_service_phone_number: nil,
|
|
1216
|
+
daily_room_rate_amount: nil,
|
|
1217
|
+
delivery: nil,
|
|
1218
|
+
extra_charges: nil,
|
|
1219
|
+
fire_safety_act_compliance: nil,
|
|
1220
|
+
name: nil,
|
|
1221
|
+
no_show: nil,
|
|
1222
|
+
number_of_rooms: nil,
|
|
1223
|
+
passengers: nil,
|
|
1224
|
+
property_phone_number: nil,
|
|
1225
|
+
room_class: nil,
|
|
1226
|
+
room_nights: nil,
|
|
1227
|
+
total_room_tax_amount: nil,
|
|
1228
|
+
total_tax_amount: nil
|
|
1229
|
+
)
|
|
1230
|
+
@address = address
|
|
1231
|
+
@adults = adults
|
|
1232
|
+
@affiliate = affiliate
|
|
1233
|
+
@booking_number = booking_number
|
|
1234
|
+
@category = category
|
|
1235
|
+
@checkin_at = checkin_at
|
|
1236
|
+
@checkout_at = checkout_at
|
|
1237
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1238
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
1239
|
+
@delivery = delivery
|
|
1240
|
+
@extra_charges = extra_charges
|
|
1241
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
1242
|
+
@name = name
|
|
1243
|
+
@no_show = no_show
|
|
1244
|
+
@number_of_rooms = number_of_rooms
|
|
1245
|
+
@passengers = passengers
|
|
1246
|
+
@property_phone_number = property_phone_number
|
|
1247
|
+
@room_class = room_class
|
|
1248
|
+
@room_nights = room_nights
|
|
1249
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
1250
|
+
@total_tax_amount = total_tax_amount
|
|
1251
|
+
end
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1255
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1256
|
+
# Type of accommodation.
|
|
1257
|
+
attr_accessor :accommodation_type
|
|
1258
|
+
# Bed type.
|
|
1259
|
+
attr_accessor :bed_type
|
|
1260
|
+
# Daily accommodation rate in cents.
|
|
1261
|
+
attr_accessor :daily_rate_amount
|
|
1262
|
+
# Number of nights.
|
|
1263
|
+
attr_accessor :nights
|
|
1264
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1265
|
+
attr_accessor :number_of_rooms
|
|
1266
|
+
# Rate type.
|
|
1267
|
+
attr_accessor :rate_type
|
|
1268
|
+
# Whether smoking is allowed.
|
|
1269
|
+
attr_accessor :smoking_indicator
|
|
1270
|
+
|
|
1271
|
+
def initialize(
|
|
1272
|
+
accommodation_type: nil,
|
|
1273
|
+
bed_type: nil,
|
|
1274
|
+
daily_rate_amount: nil,
|
|
1275
|
+
nights: nil,
|
|
1276
|
+
number_of_rooms: nil,
|
|
1277
|
+
rate_type: nil,
|
|
1278
|
+
smoking_indicator: nil
|
|
1279
|
+
)
|
|
1280
|
+
@accommodation_type = accommodation_type
|
|
1281
|
+
@bed_type = bed_type
|
|
1282
|
+
@daily_rate_amount = daily_rate_amount
|
|
1283
|
+
@nights = nights
|
|
1284
|
+
@number_of_rooms = number_of_rooms
|
|
1285
|
+
@rate_type = rate_type
|
|
1286
|
+
@smoking_indicator = smoking_indicator
|
|
1287
|
+
end
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1291
|
+
# Affiliate partner code.
|
|
1292
|
+
attr_accessor :code
|
|
1293
|
+
# Affiliate partner name.
|
|
1294
|
+
attr_accessor :name
|
|
1295
|
+
|
|
1296
|
+
def initialize(code: nil, name: nil)
|
|
1297
|
+
@code = code
|
|
1298
|
+
@name = name
|
|
1299
|
+
end
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
class Guest < ::Stripe::RequestParams
|
|
1303
|
+
# Guest's full name.
|
|
1304
|
+
attr_accessor :name
|
|
1305
|
+
|
|
1306
|
+
def initialize(name: nil)
|
|
1307
|
+
@name = name
|
|
1308
|
+
end
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
class Host < ::Stripe::RequestParams
|
|
1312
|
+
class Address < ::Stripe::RequestParams
|
|
1313
|
+
# City, district, suburb, town, or village.
|
|
1314
|
+
attr_accessor :city
|
|
1315
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1316
|
+
attr_accessor :country
|
|
1317
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1318
|
+
attr_accessor :line1
|
|
1319
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1320
|
+
attr_accessor :line2
|
|
1321
|
+
# ZIP or postal code.
|
|
1322
|
+
attr_accessor :postal_code
|
|
1323
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1324
|
+
attr_accessor :state
|
|
1325
|
+
|
|
1326
|
+
def initialize(
|
|
1327
|
+
city: nil,
|
|
1328
|
+
country: nil,
|
|
1329
|
+
line1: nil,
|
|
1330
|
+
line2: nil,
|
|
1331
|
+
postal_code: nil,
|
|
1332
|
+
state: nil
|
|
1333
|
+
)
|
|
1334
|
+
@city = city
|
|
1335
|
+
@country = country
|
|
1336
|
+
@line1 = line1
|
|
1337
|
+
@line2 = line2
|
|
1338
|
+
@postal_code = postal_code
|
|
1339
|
+
@state = state
|
|
1340
|
+
end
|
|
1341
|
+
end
|
|
1342
|
+
# Address of the host.
|
|
1343
|
+
attr_accessor :address
|
|
1344
|
+
# Host's country of domicile.
|
|
1345
|
+
attr_accessor :country_of_domicile
|
|
1346
|
+
# Reference number for the host.
|
|
1347
|
+
attr_accessor :host_reference
|
|
1348
|
+
# Type of host.
|
|
1349
|
+
attr_accessor :host_type
|
|
1350
|
+
# Name of the lodging property or host.
|
|
1351
|
+
attr_accessor :name
|
|
1352
|
+
# Total number of reservations for the host.
|
|
1353
|
+
attr_accessor :number_of_reservations
|
|
1354
|
+
# Property phone number.
|
|
1355
|
+
attr_accessor :property_phone_number
|
|
1356
|
+
# Host's registration date.
|
|
1357
|
+
attr_accessor :registered_at
|
|
1358
|
+
|
|
1359
|
+
def initialize(
|
|
1360
|
+
address: nil,
|
|
1361
|
+
country_of_domicile: nil,
|
|
1362
|
+
host_reference: nil,
|
|
1363
|
+
host_type: nil,
|
|
1364
|
+
name: nil,
|
|
1365
|
+
number_of_reservations: nil,
|
|
1366
|
+
property_phone_number: nil,
|
|
1367
|
+
registered_at: nil
|
|
1368
|
+
)
|
|
1369
|
+
@address = address
|
|
1370
|
+
@country_of_domicile = country_of_domicile
|
|
1371
|
+
@host_reference = host_reference
|
|
1372
|
+
@host_type = host_type
|
|
1373
|
+
@name = name
|
|
1374
|
+
@number_of_reservations = number_of_reservations
|
|
1375
|
+
@property_phone_number = property_phone_number
|
|
1376
|
+
@registered_at = registered_at
|
|
1377
|
+
end
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
class Insurance < ::Stripe::RequestParams
|
|
1381
|
+
# Price of the insurance coverage in cents.
|
|
1382
|
+
attr_accessor :amount
|
|
1383
|
+
# Currency of the insurance amount.
|
|
1384
|
+
attr_accessor :currency
|
|
1385
|
+
# Name of the insurance company.
|
|
1386
|
+
attr_accessor :insurance_company_name
|
|
1387
|
+
# Type of insurance coverage.
|
|
1388
|
+
attr_accessor :insurance_type
|
|
1389
|
+
|
|
1390
|
+
def initialize(
|
|
1391
|
+
amount: nil,
|
|
1392
|
+
currency: nil,
|
|
1393
|
+
insurance_company_name: nil,
|
|
1394
|
+
insurance_type: nil
|
|
1395
|
+
)
|
|
1396
|
+
@amount = amount
|
|
1397
|
+
@currency = currency
|
|
1398
|
+
@insurance_company_name = insurance_company_name
|
|
1399
|
+
@insurance_type = insurance_type
|
|
1400
|
+
end
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
class Total < ::Stripe::RequestParams
|
|
1404
|
+
class Discounts < ::Stripe::RequestParams
|
|
1405
|
+
# Corporate client discount code.
|
|
1406
|
+
attr_accessor :corporate_client_code
|
|
1407
|
+
# Coupon code.
|
|
1408
|
+
attr_accessor :coupon
|
|
1409
|
+
|
|
1410
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1411
|
+
@corporate_client_code = corporate_client_code
|
|
1412
|
+
@coupon = coupon
|
|
1413
|
+
end
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1417
|
+
# Amount of the extra charge in cents.
|
|
1418
|
+
attr_accessor :amount
|
|
1419
|
+
# Type of extra charge.
|
|
1420
|
+
attr_accessor :type
|
|
1421
|
+
|
|
1422
|
+
def initialize(amount: nil, type: nil)
|
|
1423
|
+
@amount = amount
|
|
1424
|
+
@type = type
|
|
1425
|
+
end
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
class Tax < ::Stripe::RequestParams
|
|
1429
|
+
class Tax < ::Stripe::RequestParams
|
|
1430
|
+
# Tax amount in cents.
|
|
1431
|
+
attr_accessor :amount
|
|
1432
|
+
# Tax rate.
|
|
1433
|
+
attr_accessor :rate
|
|
1434
|
+
# Type of tax applied.
|
|
1435
|
+
attr_accessor :type
|
|
1436
|
+
|
|
1437
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1438
|
+
@amount = amount
|
|
1439
|
+
@rate = rate
|
|
1440
|
+
@type = type
|
|
1441
|
+
end
|
|
1442
|
+
end
|
|
1443
|
+
# Indicates whether the transaction is tax exempt.
|
|
1444
|
+
attr_accessor :tax_exempt_indicator
|
|
1445
|
+
# Tax details.
|
|
1446
|
+
attr_accessor :taxes
|
|
1447
|
+
|
|
1448
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1449
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1450
|
+
@taxes = taxes
|
|
1451
|
+
end
|
|
1452
|
+
end
|
|
1453
|
+
# Total price of the lodging reservation in cents.
|
|
1454
|
+
attr_accessor :amount
|
|
1455
|
+
# Cash advances in cents.
|
|
1456
|
+
attr_accessor :cash_advances
|
|
1457
|
+
# Currency of the total amount.
|
|
1458
|
+
attr_accessor :currency
|
|
1459
|
+
# Discount details for the lodging.
|
|
1460
|
+
attr_accessor :discounts
|
|
1461
|
+
# Additional charges for the lodging.
|
|
1462
|
+
attr_accessor :extra_charges
|
|
1463
|
+
# Prepaid amount in cents.
|
|
1464
|
+
attr_accessor :prepaid_amount
|
|
1465
|
+
# Tax breakdown for the lodging reservation.
|
|
1466
|
+
attr_accessor :tax
|
|
1467
|
+
|
|
1468
|
+
def initialize(
|
|
1469
|
+
amount: nil,
|
|
1470
|
+
cash_advances: nil,
|
|
1471
|
+
currency: nil,
|
|
1472
|
+
discounts: nil,
|
|
1473
|
+
extra_charges: nil,
|
|
1474
|
+
prepaid_amount: nil,
|
|
1475
|
+
tax: nil
|
|
1476
|
+
)
|
|
1477
|
+
@amount = amount
|
|
1478
|
+
@cash_advances = cash_advances
|
|
1479
|
+
@currency = currency
|
|
1480
|
+
@discounts = discounts
|
|
1481
|
+
@extra_charges = extra_charges
|
|
1482
|
+
@prepaid_amount = prepaid_amount
|
|
1483
|
+
@tax = tax
|
|
1484
|
+
end
|
|
1485
|
+
end
|
|
1486
|
+
# Accommodation details for the lodging.
|
|
1487
|
+
attr_accessor :accommodation
|
|
1488
|
+
# Affiliate details if applicable.
|
|
1489
|
+
attr_accessor :affiliate
|
|
1490
|
+
# Booking confirmation number for the lodging.
|
|
1491
|
+
attr_accessor :booking_number
|
|
1492
|
+
# Check-in date.
|
|
1493
|
+
attr_accessor :checkin_at
|
|
1494
|
+
# Check-out date.
|
|
1495
|
+
attr_accessor :checkout_at
|
|
1496
|
+
# Customer service phone number for the lodging company.
|
|
1497
|
+
attr_accessor :customer_service_phone_number
|
|
1498
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1499
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1500
|
+
# List of guests for the lodging.
|
|
1501
|
+
attr_accessor :guests
|
|
1502
|
+
# Host details for the lodging.
|
|
1503
|
+
attr_accessor :host
|
|
1504
|
+
# List of insurances for the lodging.
|
|
1505
|
+
attr_accessor :insurances
|
|
1506
|
+
# Whether the renter is a no-show.
|
|
1507
|
+
attr_accessor :no_show_indicator
|
|
1508
|
+
# Renter ID number for the lodging.
|
|
1509
|
+
attr_accessor :renter_id_number
|
|
1510
|
+
# Renter name for the lodging.
|
|
1511
|
+
attr_accessor :renter_name
|
|
1512
|
+
# Total details for the lodging.
|
|
1513
|
+
attr_accessor :total
|
|
1514
|
+
|
|
1515
|
+
def initialize(
|
|
1516
|
+
accommodation: nil,
|
|
1517
|
+
affiliate: nil,
|
|
1518
|
+
booking_number: nil,
|
|
1519
|
+
checkin_at: nil,
|
|
1520
|
+
checkout_at: nil,
|
|
1521
|
+
customer_service_phone_number: nil,
|
|
1522
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1523
|
+
guests: nil,
|
|
1524
|
+
host: nil,
|
|
1525
|
+
insurances: nil,
|
|
1526
|
+
no_show_indicator: nil,
|
|
1527
|
+
renter_id_number: nil,
|
|
1528
|
+
renter_name: nil,
|
|
1529
|
+
total: nil
|
|
1530
|
+
)
|
|
1531
|
+
@accommodation = accommodation
|
|
1532
|
+
@affiliate = affiliate
|
|
1533
|
+
@booking_number = booking_number
|
|
1534
|
+
@checkin_at = checkin_at
|
|
1535
|
+
@checkout_at = checkout_at
|
|
1536
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1537
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1538
|
+
@guests = guests
|
|
1539
|
+
@host = host
|
|
1540
|
+
@insurances = insurances
|
|
1541
|
+
@no_show_indicator = no_show_indicator
|
|
1542
|
+
@renter_id_number = renter_id_number
|
|
1543
|
+
@renter_name = renter_name
|
|
1544
|
+
@total = total
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
class Subscription < ::Stripe::RequestParams
|
|
1549
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1550
|
+
# The name of the affiliate that originated the purchase.
|
|
1551
|
+
attr_accessor :name
|
|
1552
|
+
|
|
1553
|
+
def initialize(name: nil)
|
|
1554
|
+
@name = name
|
|
1555
|
+
end
|
|
1556
|
+
end
|
|
1557
|
+
|
|
1558
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
1559
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1560
|
+
attr_accessor :count
|
|
1561
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1562
|
+
attr_accessor :interval
|
|
1563
|
+
|
|
1564
|
+
def initialize(count: nil, interval: nil)
|
|
1565
|
+
@count = count
|
|
1566
|
+
@interval = interval
|
|
1567
|
+
end
|
|
1568
|
+
end
|
|
1569
|
+
# Affiliate details for this purchase.
|
|
1570
|
+
attr_accessor :affiliate
|
|
1571
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
1572
|
+
attr_accessor :auto_renewal
|
|
1573
|
+
# Subscription billing details for this purchase.
|
|
1574
|
+
attr_accessor :billing_interval
|
|
1575
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
1576
|
+
attr_accessor :ends_at
|
|
1577
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
1578
|
+
attr_accessor :name
|
|
1579
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
1580
|
+
attr_accessor :starts_at
|
|
1581
|
+
|
|
1582
|
+
def initialize(
|
|
1583
|
+
affiliate: nil,
|
|
1584
|
+
auto_renewal: nil,
|
|
1585
|
+
billing_interval: nil,
|
|
1586
|
+
ends_at: nil,
|
|
1587
|
+
name: nil,
|
|
1588
|
+
starts_at: nil
|
|
1589
|
+
)
|
|
1590
|
+
@affiliate = affiliate
|
|
1591
|
+
@auto_renewal = auto_renewal
|
|
1592
|
+
@billing_interval = billing_interval
|
|
1593
|
+
@ends_at = ends_at
|
|
1594
|
+
@name = name
|
|
1595
|
+
@starts_at = starts_at
|
|
1596
|
+
end
|
|
1597
|
+
end
|
|
1598
|
+
# Car rental details for this PaymentIntent.
|
|
1599
|
+
attr_accessor :car_rental
|
|
1600
|
+
# Car rental data for this PaymentIntent.
|
|
1601
|
+
attr_accessor :car_rental_data
|
|
1602
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
1603
|
+
#
|
|
1604
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
1605
|
+
attr_accessor :customer_reference
|
|
1606
|
+
# Event details for this PaymentIntent
|
|
1607
|
+
attr_accessor :event_details
|
|
1608
|
+
# Flight reservation details for this PaymentIntent
|
|
1609
|
+
attr_accessor :flight
|
|
1610
|
+
# Flight data for this PaymentIntent.
|
|
1611
|
+
attr_accessor :flight_data
|
|
1612
|
+
# Lodging reservation details for this PaymentIntent
|
|
1613
|
+
attr_accessor :lodging
|
|
1614
|
+
# Lodging data for this PaymentIntent.
|
|
1615
|
+
attr_accessor :lodging_data
|
|
1616
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1617
|
+
#
|
|
1618
|
+
# 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`.
|
|
1619
|
+
#
|
|
1620
|
+
# 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.
|
|
1621
|
+
attr_accessor :order_reference
|
|
1622
|
+
# Subscription details for this PaymentIntent
|
|
1623
|
+
attr_accessor :subscription
|
|
1624
|
+
|
|
1625
|
+
def initialize(
|
|
1626
|
+
car_rental: nil,
|
|
1627
|
+
car_rental_data: nil,
|
|
1628
|
+
customer_reference: nil,
|
|
1629
|
+
event_details: nil,
|
|
1630
|
+
flight: nil,
|
|
1631
|
+
flight_data: nil,
|
|
1632
|
+
lodging: nil,
|
|
1633
|
+
lodging_data: nil,
|
|
1634
|
+
order_reference: nil,
|
|
1635
|
+
subscription: nil
|
|
1636
|
+
)
|
|
1637
|
+
@car_rental = car_rental
|
|
1638
|
+
@car_rental_data = car_rental_data
|
|
1639
|
+
@customer_reference = customer_reference
|
|
1640
|
+
@event_details = event_details
|
|
1641
|
+
@flight = flight
|
|
1642
|
+
@flight_data = flight_data
|
|
1643
|
+
@lodging = lodging
|
|
1644
|
+
@lodging_data = lodging_data
|
|
1645
|
+
@order_reference = order_reference
|
|
1646
|
+
@subscription = subscription
|
|
1647
|
+
end
|
|
1648
|
+
end
|
|
1649
|
+
|
|
1650
|
+
class TransferData < ::Stripe::RequestParams
|
|
1651
|
+
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
|
1652
|
+
attr_accessor :amount
|
|
1653
|
+
|
|
1654
|
+
def initialize(amount: nil)
|
|
1655
|
+
@amount = amount
|
|
1656
|
+
end
|
|
1657
|
+
end
|
|
1658
|
+
# The amount to capture, which must be less than or equal to the original amount.
|
|
1659
|
+
attr_accessor :amount
|
|
1660
|
+
# An application fee to add on to this charge.
|
|
1661
|
+
attr_accessor :application_fee
|
|
1662
|
+
# An application fee amount to add on to this charge, which must be less than or equal to the original amount.
|
|
1663
|
+
attr_accessor :application_fee_amount
|
|
1664
|
+
# Specifies which fields in the response should be expanded.
|
|
1665
|
+
attr_accessor :expand
|
|
1666
|
+
# Provides industry-specific information about the charge.
|
|
1667
|
+
attr_accessor :payment_details
|
|
1668
|
+
# The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
|
|
1669
|
+
attr_accessor :receipt_email
|
|
1670
|
+
# For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
1671
|
+
#
|
|
1672
|
+
# For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
|
|
1673
|
+
attr_accessor :statement_descriptor
|
|
1674
|
+
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
|
|
1675
|
+
attr_accessor :statement_descriptor_suffix
|
|
1676
|
+
# An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
|
|
1677
|
+
attr_accessor :transfer_data
|
|
1678
|
+
# A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.
|
|
1679
|
+
attr_accessor :transfer_group
|
|
1680
|
+
|
|
1681
|
+
def initialize(
|
|
1682
|
+
amount: nil,
|
|
1683
|
+
application_fee: nil,
|
|
1684
|
+
application_fee_amount: nil,
|
|
1685
|
+
expand: nil,
|
|
1686
|
+
payment_details: nil,
|
|
1687
|
+
receipt_email: nil,
|
|
1688
|
+
statement_descriptor: nil,
|
|
1689
|
+
statement_descriptor_suffix: nil,
|
|
1690
|
+
transfer_data: nil,
|
|
1691
|
+
transfer_group: nil
|
|
1692
|
+
)
|
|
1693
|
+
@amount = amount
|
|
1694
|
+
@application_fee = application_fee
|
|
1695
|
+
@application_fee_amount = application_fee_amount
|
|
1696
|
+
@expand = expand
|
|
1697
|
+
@payment_details = payment_details
|
|
1698
|
+
@receipt_email = receipt_email
|
|
1699
|
+
@statement_descriptor = statement_descriptor
|
|
1700
|
+
@statement_descriptor_suffix = statement_descriptor_suffix
|
|
1701
|
+
@transfer_data = transfer_data
|
|
1702
|
+
@transfer_group = transfer_group
|
|
1703
|
+
end
|
|
1704
|
+
end
|
|
1705
|
+
end
|