mega-pure-kit 0.0.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 +7 -0
- data/mega-pure-kit.gemspec +12 -0
- data/stripe-19.3.0/exe/stripe-console +16 -0
- data/stripe-19.3.0/lib/data/ca-certificates.crt +3511 -0
- data/stripe-19.3.0/lib/stripe/api_operations/create.rb +16 -0
- data/stripe-19.3.0/lib/stripe/api_operations/delete.rb +44 -0
- data/stripe-19.3.0/lib/stripe/api_operations/list.rb +16 -0
- data/stripe-19.3.0/lib/stripe/api_operations/nested_resource.rb +101 -0
- data/stripe-19.3.0/lib/stripe/api_operations/request.rb +94 -0
- data/stripe-19.3.0/lib/stripe/api_operations/save.rb +107 -0
- data/stripe-19.3.0/lib/stripe/api_operations/search.rb +21 -0
- data/stripe-19.3.0/lib/stripe/api_operations/singleton_save.rb +90 -0
- data/stripe-19.3.0/lib/stripe/api_requestor.rb +1168 -0
- data/stripe-19.3.0/lib/stripe/api_resource.rb +145 -0
- data/stripe-19.3.0/lib/stripe/api_resource_test_helpers.rb +53 -0
- data/stripe-19.3.0/lib/stripe/api_version.rb +9 -0
- data/stripe-19.3.0/lib/stripe/connection_manager.rb +196 -0
- data/stripe-19.3.0/lib/stripe/error_object.rb +93 -0
- data/stripe-19.3.0/lib/stripe/errors.rb +171 -0
- data/stripe-19.3.0/lib/stripe/event_types.rb +106 -0
- data/stripe-19.3.0/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/stripe-19.3.0/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +123 -0
- data/stripe-19.3.0/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +100 -0
- data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
- data/stripe-19.3.0/lib/stripe/instrumentation.rb +106 -0
- data/stripe-19.3.0/lib/stripe/list_object.rb +141 -0
- data/stripe-19.3.0/lib/stripe/multipart_encoder.rb +131 -0
- data/stripe-19.3.0/lib/stripe/oauth.rb +58 -0
- data/stripe-19.3.0/lib/stripe/object_types.rb +189 -0
- data/stripe-19.3.0/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/account_create_params.rb +2202 -0
- data/stripe-19.3.0/lib/stripe/params/account_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/stripe-19.3.0/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/stripe-19.3.0/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/stripe-19.3.0/lib/stripe/params/account_link_create_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/account_list_params.rb +42 -0
- data/stripe-19.3.0/lib/stripe/params/account_login_link_create_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_person_create_params.rb +435 -0
- data/stripe-19.3.0/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/account_person_list_params.rb +61 -0
- data/stripe-19.3.0/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_person_update_params.rb +435 -0
- data/stripe-19.3.0/lib/stripe/params/account_persons_params.rb +61 -0
- data/stripe-19.3.0/lib/stripe/params/account_reject_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/account_session_create_params.rb +632 -0
- data/stripe-19.3.0/lib/stripe/params/account_update_params.rb +2149 -0
- data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/stripe-19.3.0/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/stripe-19.3.0/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/stripe-19.3.0/lib/stripe/params/apps/secret_list_params.rb +38 -0
- data/stripe-19.3.0/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/balance_settings_update_params.rb +107 -0
- data/stripe-19.3.0/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/stripe-19.3.0/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +57 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +41 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_create_params.rb +107 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_create_params.rb +232 -0
- data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_update_params.rb +238 -0
- data/stripe-19.3.0/lib/stripe/params/billing_portal/session_create_params.rb +183 -0
- data/stripe-19.3.0/lib/stripe/params/charge_capture_params.rb +57 -0
- data/stripe-19.3.0/lib/stripe/params/charge_create_params.rb +175 -0
- data/stripe-19.3.0/lib/stripe/params/charge_list_params.rb +60 -0
- data/stripe-19.3.0/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/charge_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/charge_update_params.rb +102 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_create_params.rb +2740 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_list_params.rb +87 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/checkout/session_update_params.rb +348 -0
- data/stripe-19.3.0/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/climate/order_create_params.rb +53 -0
- data/stripe-19.3.0/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/stripe-19.3.0/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/confirmation_token_create_params.rb +715 -0
- data/stripe-19.3.0/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/coupon_create_params.rb +80 -0
- data/stripe-19.3.0/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/coupon_list_params.rb +42 -0
- data/stripe-19.3.0/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/coupon_update_params.rb +30 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_create_params.rb +178 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_list_params.rb +60 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_list_preview_line_items_params.rb +190 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_preview_lines_list_params.rb +190 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_preview_params.rb +178 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_list_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/stripe-19.3.0/lib/stripe/params/customer_create_params.rb +259 -0
- data/stripe-19.3.0/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/customer_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/stripe-19.3.0/lib/stripe/params/customer_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/stripe-19.3.0/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/customer_session_create_params.rb +188 -0
- data/stripe-19.3.0/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/customer_update_params.rb +243 -0
- data/stripe-19.3.0/lib/stripe/params/dispute_close_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/dispute_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/dispute_update_params.rb +324 -0
- data/stripe-19.3.0/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/stripe-19.3.0/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/stripe-19.3.0/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/event_list_params.rb +60 -0
- data/stripe-19.3.0/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/file_create_params.rb +36 -0
- data/stripe-19.3.0/lib/stripe/params/file_link_create_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/file_link_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/file_link_update_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/file_list_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_list_params.rb +51 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/session_create_params.rb +68 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/stripe-19.3.0/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/stripe-19.3.0/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/stripe-19.3.0/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_session_create_params.rb +111 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_session_list_params.rb +66 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_add_lines_params.rb +261 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_attach_payment_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_create_params.rb +664 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_create_preview_params.rb +1230 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_item_create_params.rb +165 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_item_list_params.rb +64 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_item_update_params.rb +145 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_line_item_update_params.rb +232 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_list_params.rb +90 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_payment_list_params.rb +75 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_update_lines_params.rb +261 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_update_params.rb +628 -0
- data/stripe-19.3.0/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_capture_params.rb +390 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_create_params.rb +452 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +223 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_create_params.rb +242 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/card_update_params.rb +189 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_create_params.rb +246 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_update_params.rb +238 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +441 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +441 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/mandate_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_capture_params.rb +291 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_confirm_params.rb +2878 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_create_params.rb +3009 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_increment_authorization_params.rb +285 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_update_params.rb +2876 -0
- data/stripe-19.3.0/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/payment_link_create_params.rb +879 -0
- data/stripe-19.3.0/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/stripe-19.3.0/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_link_update_params.rb +667 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_attach_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_create_params.rb +1282 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_list_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_update_params.rb +1282 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_create_params.rb +662 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_list_params.rb +43 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payment_method_update_params.rb +139 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
- data/stripe-19.3.0/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payout_create_params.rb +51 -0
- data/stripe-19.3.0/lib/stripe/params/payout_list_params.rb +78 -0
- data/stripe-19.3.0/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/payout_update_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/plan_create_params.rb +178 -0
- data/stripe-19.3.0/lib/stripe/params/plan_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/plan_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/plan_update_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params/price_create_params.rb +318 -0
- data/stripe-19.3.0/lib/stripe/params/price_list_params.rb +87 -0
- data/stripe-19.3.0/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/price_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/price_update_params.rb +133 -0
- data/stripe-19.3.0/lib/stripe/params/product_create_params.rb +276 -0
- data/stripe-19.3.0/lib/stripe/params/product_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/product_list_params.rb +68 -0
- data/stripe-19.3.0/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/product_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/product_update_params.rb +96 -0
- data/stripe-19.3.0/lib/stripe/params/promotion_code_create_params.rb +95 -0
- data/stripe-19.3.0/lib/stripe/params/promotion_code_list_params.rb +68 -0
- data/stripe-19.3.0/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/stripe-19.3.0/lib/stripe/params/quote_accept_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/quote_create_params.rb +327 -0
- data/stripe-19.3.0/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/quote_list_params.rb +43 -0
- data/stripe-19.3.0/lib/stripe/params/quote_pdf_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/quote_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/quote_update_params.rb +289 -0
- data/stripe-19.3.0/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/stripe-19.3.0/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/refund_create_params.rb +59 -0
- data/stripe-19.3.0/lib/stripe/params/refund_expire_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/refund_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/refund_update_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/stripe-19.3.0/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/stripe-19.3.0/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/review_approve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/review_list_params.rb +42 -0
- data/stripe-19.3.0/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_confirm_params.rb +1252 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_create_params.rb +1342 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_list_params.rb +66 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_update_params.rb +1237 -0
- data/stripe-19.3.0/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/stripe-19.3.0/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/stripe-19.3.0/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/source_create_params.rb +317 -0
- data/stripe-19.3.0/lib/stripe/params/source_detach_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/source_update_params.rb +259 -0
- data/stripe-19.3.0/lib/stripe/params/source_verify_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_create_params.rb +917 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_item_create_params.rb +138 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_item_delete_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_item_update_params.rb +138 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_list_params.rb +133 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_schedule_create_params.rb +668 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_schedule_list_params.rb +126 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_schedule_update_params.rb +636 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_search_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/subscription_update_params.rb +896 -0
- data/stripe-19.3.0/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/stripe-19.3.0/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/tax/registration_create_params.rb +2044 -0
- data/stripe-19.3.0/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/stripe-19.3.0/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/stripe-19.3.0/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/tax_id_create_params.rb +39 -0
- data/stripe-19.3.0/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/tax_id_list_params.rb +42 -0
- data/stripe-19.3.0/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/stripe-19.3.0/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/configuration_create_params.rb +671 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/configuration_update_params.rb +671 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +717 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +395 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +457 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +228 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +446 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +446 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_create_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
- data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
- data/stripe-19.3.0/lib/stripe/params/token_create_params.rb +1210 -0
- data/stripe-19.3.0/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/topup_create_params.rb +67 -0
- data/stripe-19.3.0/lib/stripe/params/topup_list_params.rb +74 -0
- data/stripe-19.3.0/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/topup_update_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_create_params.rb +47 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_list_params.rb +56 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/stripe-19.3.0/lib/stripe/params/transfer_update_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/stripe-19.3.0/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
- data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
- data/stripe-19.3.0/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
- data/stripe-19.3.0/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
- data/stripe-19.3.0/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_create_params.rb +2189 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_token_create_params.rb +1070 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/account_update_params.rb +2242 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_create_params.rb +106 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_list_params.rb +45 -0
- data/stripe-19.3.0/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/stripe-19.3.0/lib/stripe/params.rb +1345 -0
- data/stripe-19.3.0/lib/stripe/railtie.rb +8 -0
- data/stripe-19.3.0/lib/stripe/request_options.rb +138 -0
- data/stripe-19.3.0/lib/stripe/request_params.rb +140 -0
- data/stripe-19.3.0/lib/stripe/resources/account.rb +1295 -0
- data/stripe-19.3.0/lib/stripe/resources/account_link.rb +39 -0
- data/stripe-19.3.0/lib/stripe/resources/account_session.rb +737 -0
- data/stripe-19.3.0/lib/stripe/resources/apple_pay_domain.rb +76 -0
- data/stripe-19.3.0/lib/stripe/resources/application.rb +28 -0
- data/stripe-19.3.0/lib/stripe/resources/application_fee.rb +76 -0
- data/stripe-19.3.0/lib/stripe/resources/application_fee_refund.rb +63 -0
- data/stripe-19.3.0/lib/stripe/resources/apps/secret.rb +96 -0
- data/stripe-19.3.0/lib/stripe/resources/balance.rb +340 -0
- data/stripe-19.3.0/lib/stripe/resources/balance_settings.rb +132 -0
- data/stripe-19.3.0/lib/stripe/resources/balance_transaction.rb +90 -0
- data/stripe-19.3.0/lib/stripe/resources/bank_account.rb +214 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/alert.rb +142 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/alert_triggered.rb +34 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/credit_balance_summary.rb +104 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/credit_balance_transaction.rb +177 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/credit_grant.rb +200 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/meter.rb +178 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/meter_event.rb +49 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/meter_event_adjustment.rb +59 -0
- data/stripe-19.3.0/lib/stripe/resources/billing/meter_event_summary.rb +40 -0
- data/stripe-19.3.0/lib/stripe/resources/billing_portal/configuration.rb +306 -0
- data/stripe-19.3.0/lib/stripe/resources/billing_portal/session.rb +240 -0
- data/stripe-19.3.0/lib/stripe/resources/capability.rb +179 -0
- data/stripe-19.3.0/lib/stripe/resources/card.rb +162 -0
- data/stripe-19.3.0/lib/stripe/resources/cash_balance.rb +61 -0
- data/stripe-19.3.0/lib/stripe/resources/charge.rb +2418 -0
- data/stripe-19.3.0/lib/stripe/resources/checkout/session.rb +2541 -0
- data/stripe-19.3.0/lib/stripe/resources/climate/order.rb +177 -0
- data/stripe-19.3.0/lib/stripe/resources/climate/product.rb +76 -0
- data/stripe-19.3.0/lib/stripe/resources/climate/supplier.rb +69 -0
- data/stripe-19.3.0/lib/stripe/resources/confirmation_token.rb +1808 -0
- data/stripe-19.3.0/lib/stripe/resources/connect_collection_transfer.rb +32 -0
- data/stripe-19.3.0/lib/stripe/resources/country_spec.rb +92 -0
- data/stripe-19.3.0/lib/stripe/resources/coupon.rb +131 -0
- data/stripe-19.3.0/lib/stripe/resources/credit_note.rb +317 -0
- data/stripe-19.3.0/lib/stripe/resources/credit_note_line_item.rb +129 -0
- data/stripe-19.3.0/lib/stripe/resources/customer.rb +450 -0
- data/stripe-19.3.0/lib/stripe/resources/customer_balance_transaction.rb +78 -0
- data/stripe-19.3.0/lib/stripe/resources/customer_cash_balance_transaction.rb +234 -0
- data/stripe-19.3.0/lib/stripe/resources/customer_session.rb +228 -0
- data/stripe-19.3.0/lib/stripe/resources/discount.rb +66 -0
- data/stripe-19.3.0/lib/stripe/resources/dispute.rb +496 -0
- data/stripe-19.3.0/lib/stripe/resources/entitlements/active_entitlement.rb +45 -0
- data/stripe-19.3.0/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
- data/stripe-19.3.0/lib/stripe/resources/entitlements/feature.rb +72 -0
- data/stripe-19.3.0/lib/stripe/resources/ephemeral_key.rb +64 -0
- data/stripe-19.3.0/lib/stripe/resources/event.rb +96 -0
- data/stripe-19.3.0/lib/stripe/resources/exchange_rate.rb +69 -0
- data/stripe-19.3.0/lib/stripe/resources/file.rb +89 -0
- data/stripe-19.3.0/lib/stripe/resources/file_link.rb +65 -0
- data/stripe-19.3.0/lib/stripe/resources/financial_connections/account.rb +375 -0
- data/stripe-19.3.0/lib/stripe/resources/financial_connections/account_owner.rb +39 -0
- data/stripe-19.3.0/lib/stripe/resources/financial_connections/account_ownership.rb +31 -0
- data/stripe-19.3.0/lib/stripe/resources/financial_connections/session.rb +88 -0
- data/stripe-19.3.0/lib/stripe/resources/financial_connections/transaction.rb +73 -0
- data/stripe-19.3.0/lib/stripe/resources/forwarding/request.rb +163 -0
- data/stripe-19.3.0/lib/stripe/resources/funding_instructions.rb +525 -0
- data/stripe-19.3.0/lib/stripe/resources/identity/verification_report.rb +408 -0
- data/stripe-19.3.0/lib/stripe/resources/identity/verification_session.rb +428 -0
- data/stripe-19.3.0/lib/stripe/resources/invoice.rb +1361 -0
- data/stripe-19.3.0/lib/stripe/resources/invoice_item.rb +271 -0
- data/stripe-19.3.0/lib/stripe/resources/invoice_line_item.rb +321 -0
- data/stripe-19.3.0/lib/stripe/resources/invoice_payment.rb +92 -0
- data/stripe-19.3.0/lib/stripe/resources/invoice_rendering_template.rb +90 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/authorization.rb +762 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/card.rb +463 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/cardholder.rb +296 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/dispute.rb +324 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/personalization_design.rb +206 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/physical_bundle.rb +65 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/token.rb +195 -0
- data/stripe-19.3.0/lib/stripe/resources/issuing/transaction.rb +571 -0
- data/stripe-19.3.0/lib/stripe/resources/line_item.rb +108 -0
- data/stripe-19.3.0/lib/stripe/resources/login_link.rb +35 -0
- data/stripe-19.3.0/lib/stripe/resources/mandate.rb +468 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_attempt_record.rb +2060 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_intent.rb +3456 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_link.rb +849 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_method.rb +1754 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_method_configuration.rb +2056 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_method_domain.rb +280 -0
- data/stripe-19.3.0/lib/stripe/resources/payment_record.rb +2190 -0
- data/stripe-19.3.0/lib/stripe/resources/payout.rb +168 -0
- data/stripe-19.3.0/lib/stripe/resources/person.rb +506 -0
- data/stripe-19.3.0/lib/stripe/resources/plan.rb +170 -0
- data/stripe-19.3.0/lib/stripe/resources/price.rb +280 -0
- data/stripe-19.3.0/lib/stripe/resources/product.rb +159 -0
- data/stripe-19.3.0/lib/stripe/resources/product_feature.rb +33 -0
- data/stripe-19.3.0/lib/stripe/resources/promotion_code.rb +122 -0
- data/stripe-19.3.0/lib/stripe/resources/quote.rb +675 -0
- data/stripe-19.3.0/lib/stripe/resources/radar/early_fraud_warning.rb +54 -0
- data/stripe-19.3.0/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
- data/stripe-19.3.0/lib/stripe/resources/radar/value_list.rb +102 -0
- data/stripe-19.3.0/lib/stripe/resources/radar/value_list_item.rb +85 -0
- data/stripe-19.3.0/lib/stripe/resources/refund.rb +781 -0
- data/stripe-19.3.0/lib/stripe/resources/reporting/report_run.rb +104 -0
- data/stripe-19.3.0/lib/stripe/resources/reporting/report_type.rb +60 -0
- data/stripe-19.3.0/lib/stripe/resources/reserve/hold.rb +84 -0
- data/stripe-19.3.0/lib/stripe/resources/reserve/plan.rb +78 -0
- data/stripe-19.3.0/lib/stripe/resources/reserve/release.rb +65 -0
- data/stripe-19.3.0/lib/stripe/resources/reserve_transaction.rb +30 -0
- data/stripe-19.3.0/lib/stripe/resources/reversal.rb +74 -0
- data/stripe-19.3.0/lib/stripe/resources/review.rb +118 -0
- data/stripe-19.3.0/lib/stripe/resources/setup_attempt.rb +683 -0
- data/stripe-19.3.0/lib/stripe/resources/setup_intent.rb +942 -0
- data/stripe-19.3.0/lib/stripe/resources/shipping_rate.rb +144 -0
- data/stripe-19.3.0/lib/stripe/resources/sigma/scheduled_query_run.rb +76 -0
- data/stripe-19.3.0/lib/stripe/resources/source.rb +972 -0
- data/stripe-19.3.0/lib/stripe/resources/source_mandate_notification.rb +98 -0
- data/stripe-19.3.0/lib/stripe/resources/source_transaction.rb +154 -0
- data/stripe-19.3.0/lib/stripe/resources/subscription.rb +975 -0
- data/stripe-19.3.0/lib/stripe/resources/subscription_item.rb +131 -0
- data/stripe-19.3.0/lib/stripe/resources/subscription_schedule.rb +618 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/association.rb +86 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/calculation.rb +321 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/calculation_line_item.rb +103 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/registration.rb +2275 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/settings.rb +131 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/transaction.rb +287 -0
- data/stripe-19.3.0/lib/stripe/resources/tax/transaction_line_item.rb +60 -0
- data/stripe-19.3.0/lib/stripe/resources/tax_code.rb +36 -0
- data/stripe-19.3.0/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
- data/stripe-19.3.0/lib/stripe/resources/tax_id.rb +119 -0
- data/stripe-19.3.0/lib/stripe/resources/tax_rate.rb +99 -0
- data/stripe-19.3.0/lib/stripe/resources/terminal/configuration.rb +799 -0
- data/stripe-19.3.0/lib/stripe/resources/terminal/connection_token.rb +43 -0
- data/stripe-19.3.0/lib/stripe/resources/terminal/location.rb +183 -0
- data/stripe-19.3.0/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/stripe-19.3.0/lib/stripe/resources/terminal/reader.rb +925 -0
- data/stripe-19.3.0/lib/stripe/resources/test_helpers/test_clock.rb +133 -0
- data/stripe-19.3.0/lib/stripe/resources/token.rb +76 -0
- data/stripe-19.3.0/lib/stripe/resources/topup.rb +101 -0
- data/stripe-19.3.0/lib/stripe/resources/transfer.rb +93 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/credit_reversal.rb +86 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/debit_reversal.rb +101 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/financial_account.rb +253 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/financial_account_features.rb +396 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/inbound_transfer.rb +308 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/outbound_payment.rb +408 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/outbound_transfer.rb +388 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/received_credit.rb +261 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/received_debit.rb +226 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/transaction.rb +143 -0
- data/stripe-19.3.0/lib/stripe/resources/treasury/transaction_entry.rb +124 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/amount.rb +9 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/billing/meter_event.rb +43 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +53 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/billing/meter_event_session.rb +38 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/commerce/product_catalog_import.rb +276 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/account.rb +3645 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/account_person.rb +487 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/event.rb +70 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/event_destination.rb +147 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/core/event_notification.rb +63 -0
- data/stripe-19.3.0/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/stripe-19.3.0/lib/stripe/resources/webhook_endpoint.rb +103 -0
- data/stripe-19.3.0/lib/stripe/resources.rb +503 -0
- data/stripe-19.3.0/lib/stripe/search_result_object.rb +89 -0
- data/stripe-19.3.0/lib/stripe/services/account_capability_service.rb +39 -0
- data/stripe-19.3.0/lib/stripe/services/account_external_account_service.rb +68 -0
- data/stripe-19.3.0/lib/stripe/services/account_link_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/account_login_link_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/account_person_service.rb +61 -0
- data/stripe-19.3.0/lib/stripe/services/account_service.rb +100 -0
- data/stripe-19.3.0/lib/stripe/services/account_session_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/apple_pay_domain_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/application_fee_refund_service.rb +60 -0
- data/stripe-19.3.0/lib/stripe/services/application_fee_service.rb +35 -0
- data/stripe-19.3.0/lib/stripe/services/apps/secret_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/apps_service.rb +13 -0
- data/stripe-19.3.0/lib/stripe/services/balance_service.rb +12 -0
- data/stripe-19.3.0/lib/stripe/services/balance_settings_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/balance_transaction_service.rb +32 -0
- data/stripe-19.3.0/lib/stripe/services/billing/alert_service.rb +74 -0
- data/stripe-19.3.0/lib/stripe/services/billing/credit_balance_summary_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/billing/credit_grant_service.rb +74 -0
- data/stripe-19.3.0/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/billing/meter_event_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/billing/meter_service.rb +81 -0
- data/stripe-19.3.0/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/billing_portal/session_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/billing_portal_service.rb +14 -0
- data/stripe-19.3.0/lib/stripe/services/billing_service.rb +20 -0
- data/stripe-19.3.0/lib/stripe/services/charge_service.rb +69 -0
- data/stripe-19.3.0/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/checkout/session_service.rb +82 -0
- data/stripe-19.3.0/lib/stripe/services/checkout_service.rb +13 -0
- data/stripe-19.3.0/lib/stripe/services/climate/order_service.rb +70 -0
- data/stripe-19.3.0/lib/stripe/services/climate/product_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/climate/supplier_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/climate_service.rb +15 -0
- data/stripe-19.3.0/lib/stripe/services/confirmation_token_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/country_spec_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/coupon_service.rb +51 -0
- data/stripe-19.3.0/lib/stripe/services/credit_note_line_item_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/credit_note_preview_lines_service.rb +21 -0
- data/stripe-19.3.0/lib/stripe/services/credit_note_service.rb +98 -0
- data/stripe-19.3.0/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/customer_cash_balance_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/customer_payment_method_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/customer_payment_source_service.rb +76 -0
- data/stripe-19.3.0/lib/stripe/services/customer_service.rb +89 -0
- data/stripe-19.3.0/lib/stripe/services/customer_session_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/customer_tax_id_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/dispute_service.rb +48 -0
- data/stripe-19.3.0/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/entitlements/feature_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/entitlements_service.rb +14 -0
- data/stripe-19.3.0/lib/stripe/services/ephemeral_key_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/event_service.rb +22 -0
- data/stripe-19.3.0/lib/stripe/services/exchange_rate_service.rb +32 -0
- data/stripe-19.3.0/lib/stripe/services/file_link_service.rb +38 -0
- data/stripe-19.3.0/lib/stripe/services/file_service.rb +35 -0
- data/stripe-19.3.0/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/financial_connections/account_service.rb +81 -0
- data/stripe-19.3.0/lib/stripe/services/financial_connections/session_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/financial_connections_service.rb +15 -0
- data/stripe-19.3.0/lib/stripe/services/forwarding/request_service.rb +41 -0
- data/stripe-19.3.0/lib/stripe/services/forwarding_service.rb +13 -0
- data/stripe-19.3.0/lib/stripe/services/identity/verification_report_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/identity/verification_session_service.rb +106 -0
- data/stripe-19.3.0/lib/stripe/services/identity_service.rb +14 -0
- data/stripe-19.3.0/lib/stripe/services/invoice_item_service.rb +65 -0
- data/stripe-19.3.0/lib/stripe/services/invoice_line_item_service.rb +33 -0
- data/stripe-19.3.0/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/invoice_service.rb +212 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/authorization_service.rb +65 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/card_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/cardholder_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/dispute_service.rb +63 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/personalization_design_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/token_service.rb +41 -0
- data/stripe-19.3.0/lib/stripe/services/issuing/transaction_service.rb +41 -0
- data/stripe-19.3.0/lib/stripe/services/issuing_service.rb +20 -0
- data/stripe-19.3.0/lib/stripe/services/mandate_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/oauth_service.rb +63 -0
- data/stripe-19.3.0/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/stripe-19.3.0/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/payment_intent_service.rb +218 -0
- data/stripe-19.3.0/lib/stripe/services/payment_link_line_item_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/payment_link_service.rb +59 -0
- data/stripe-19.3.0/lib/stripe/services/payment_method_configuration_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/payment_method_domain_service.rb +66 -0
- data/stripe-19.3.0/lib/stripe/services/payment_method_service.rb +86 -0
- data/stripe-19.3.0/lib/stripe/services/payment_record_service.rb +101 -0
- data/stripe-19.3.0/lib/stripe/services/payout_service.rb +66 -0
- data/stripe-19.3.0/lib/stripe/services/plan_service.rb +51 -0
- data/stripe-19.3.0/lib/stripe/services/price_service.rb +54 -0
- data/stripe-19.3.0/lib/stripe/services/product_feature_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/product_service.rb +72 -0
- data/stripe-19.3.0/lib/stripe/services/promotion_code_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/quote_line_item_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/quote_service.rb +96 -0
- data/stripe-19.3.0/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
- data/stripe-19.3.0/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/radar/value_list_item_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/radar/value_list_service.rb +63 -0
- data/stripe-19.3.0/lib/stripe/services/radar_service.rb +16 -0
- data/stripe-19.3.0/lib/stripe/services/refund_service.rb +63 -0
- data/stripe-19.3.0/lib/stripe/services/reporting/report_run_service.rb +41 -0
- data/stripe-19.3.0/lib/stripe/services/reporting/report_type_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/reporting_service.rb +14 -0
- data/stripe-19.3.0/lib/stripe/services/review_service.rb +33 -0
- data/stripe-19.3.0/lib/stripe/services/setup_attempt_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/setup_intent_service.rb +105 -0
- data/stripe-19.3.0/lib/stripe/services/shipping_rate_service.rb +50 -0
- data/stripe-19.3.0/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/sigma_service.rb +13 -0
- data/stripe-19.3.0/lib/stripe/services/source_service.rb +64 -0
- data/stripe-19.3.0/lib/stripe/services/source_transaction_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/subscription_item_service.rb +65 -0
- data/stripe-19.3.0/lib/stripe/services/subscription_schedule_service.rb +80 -0
- data/stripe-19.3.0/lib/stripe/services/subscription_service.rb +142 -0
- data/stripe-19.3.0/lib/stripe/services/tax/association_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/tax/calculation_service.rb +37 -0
- data/stripe-19.3.0/lib/stripe/services/tax/registration_service.rb +54 -0
- data/stripe-19.3.0/lib/stripe/services/tax/settings_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/tax/transaction_service.rb +48 -0
- data/stripe-19.3.0/lib/stripe/services/tax_code_service.rb +22 -0
- data/stripe-19.3.0/lib/stripe/services/tax_id_service.rb +38 -0
- data/stripe-19.3.0/lib/stripe/services/tax_rate_service.rb +38 -0
- data/stripe-19.3.0/lib/stripe/services/tax_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/terminal/configuration_service.rb +63 -0
- data/stripe-19.3.0/lib/stripe/services/terminal/connection_token_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/terminal/location_service.rb +64 -0
- data/stripe-19.3.0/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/terminal/reader_service.rb +151 -0
- data/stripe-19.3.0/lib/stripe/services/terminal_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/customer_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/authorization_service.rb +99 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/transaction_service.rb +51 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/refund_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/test_helpers_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/token_service.rb +23 -0
- data/stripe-19.3.0/lib/stripe/services/topup_service.rb +49 -0
- data/stripe-19.3.0/lib/stripe/services/transfer_reversal_service.rb +56 -0
- data/stripe-19.3.0/lib/stripe/services/transfer_service.rb +47 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/financial_account_service.rb +70 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/received_credit_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/received_debit_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/treasury/transaction_service.rb +30 -0
- data/stripe-19.3.0/lib/stripe/services/treasury_service.rb +22 -0
- data/stripe-19.3.0/lib/stripe/services/v1_services.rb +93 -0
- data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +21 -0
- data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
- data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
- data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
- data/stripe-19.3.0/lib/stripe/services/v2/billing_service.rb +18 -0
- data/stripe-19.3.0/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
- data/stripe-19.3.0/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
- data/stripe-19.3.0/lib/stripe/services/v2/commerce_service.rb +15 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/account_link_service.rb +23 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/account_service.rb +91 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/account_token_service.rb +44 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/accounts/person_token_service.rb +43 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core/event_service.rb +33 -0
- data/stripe-19.3.0/lib/stripe/services/v2/core_service.rb +19 -0
- data/stripe-19.3.0/lib/stripe/services/v2_services.rb +15 -0
- data/stripe-19.3.0/lib/stripe/services/webhook_endpoint_service.rb +61 -0
- data/stripe-19.3.0/lib/stripe/services.rb +472 -0
- data/stripe-19.3.0/lib/stripe/singleton_api_resource.rb +26 -0
- data/stripe-19.3.0/lib/stripe/stripe_client.rb +97 -0
- data/stripe-19.3.0/lib/stripe/stripe_configuration.rb +210 -0
- data/stripe-19.3.0/lib/stripe/stripe_context.rb +68 -0
- data/stripe-19.3.0/lib/stripe/stripe_object.rb +692 -0
- data/stripe-19.3.0/lib/stripe/stripe_response.rb +108 -0
- data/stripe-19.3.0/lib/stripe/stripe_service.rb +34 -0
- data/stripe-19.3.0/lib/stripe/util.rb +490 -0
- data/stripe-19.3.0/lib/stripe/v2_list_object.rb +84 -0
- data/stripe-19.3.0/lib/stripe/version.rb +5 -0
- data/stripe-19.3.0/lib/stripe/webhook.rb +129 -0
- data/stripe-19.3.0/lib/stripe.rb +185 -0
- data/stripe-19.3.0/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/stripe-19.3.0/rbi/stripe/stripe_client.rbi +17 -0
- data/stripe-19.3.0/rbi/stripe.rbi +170441 -0
- metadata +1083 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
class APIResource < StripeObject
|
|
5
|
+
include Stripe::APIOperations::Request
|
|
6
|
+
|
|
7
|
+
# A flag that can be set a behavior that will cause this resource to be
|
|
8
|
+
# encoded and sent up along with an update of its parent resource. This is
|
|
9
|
+
# usually not desirable because resources are updated individually on their
|
|
10
|
+
# own endpoints, but there are certain cases, replacing a customer's source
|
|
11
|
+
# for example, where this is allowed.
|
|
12
|
+
attr_accessor :save_with_parent
|
|
13
|
+
|
|
14
|
+
# TODO: (major) Remove OBJECT_NAME and stop using const_get here
|
|
15
|
+
# This is a workaround to avoid breaking users who have defined their own
|
|
16
|
+
# APIResource subclasses with a custom OBJECT_NAME. We should never fallback
|
|
17
|
+
# on this case otherwise.
|
|
18
|
+
OBJECT_NAME = ""
|
|
19
|
+
def self.object_name
|
|
20
|
+
const_get(:OBJECT_NAME)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.class_name
|
|
24
|
+
name.split("::")[-1]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.resource_url
|
|
28
|
+
if name.include?("Stripe::V2")
|
|
29
|
+
raise NotImplementedError,
|
|
30
|
+
"V2 resources do not have a defined URL. Please use the StripeClient " \
|
|
31
|
+
"to make V2 requests"
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
if self == APIResource
|
|
35
|
+
raise NotImplementedError,
|
|
36
|
+
"APIResource is an abstract class. You should perform actions " \
|
|
37
|
+
"on its subclasses (Charge, Customer, etc.)"
|
|
38
|
+
end
|
|
39
|
+
# Namespaces are separated in object names with periods (.) and in URLs
|
|
40
|
+
# with forward slashes (/), so replace the former with the latter.
|
|
41
|
+
"/v1/#{object_name.downcase.tr('.', '/')}s"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# A metaprogramming call that specifies that a field of a resource can be
|
|
45
|
+
# its own type of API resource (say a nested card under an account for
|
|
46
|
+
# example), and if that resource is set, it should be transmitted to the
|
|
47
|
+
# API on a create or update. Doing so is not the default behavior because
|
|
48
|
+
# API resources should normally be persisted on their own RESTful
|
|
49
|
+
# endpoints.
|
|
50
|
+
def self.save_nested_resource(name)
|
|
51
|
+
define_method(:"#{name}=") do |value|
|
|
52
|
+
super(value)
|
|
53
|
+
|
|
54
|
+
# The parent setter will perform certain useful operations like
|
|
55
|
+
# converting to an APIResource if appropriate. Refresh our argument
|
|
56
|
+
# value to whatever it mutated to.
|
|
57
|
+
value = send(name)
|
|
58
|
+
|
|
59
|
+
# Note that the value may be subresource, but could also be a scalar
|
|
60
|
+
# (like a tokenized card's ID for example), so we check the type before
|
|
61
|
+
# setting #save_with_parent here.
|
|
62
|
+
value.save_with_parent = true if value.is_a?(APIResource)
|
|
63
|
+
|
|
64
|
+
value
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Adds a custom method to a resource class. This is used to add support for
|
|
69
|
+
# non-CRUDL API requests, e.g. capturing charges. custom_method takes the
|
|
70
|
+
# following parameters:
|
|
71
|
+
# - name: the name of the custom method to create (as a symbol)
|
|
72
|
+
# - http_verb: the HTTP verb for the API request (:get, :post, or :delete)
|
|
73
|
+
# - http_path: the path to append to the resource's URL. If not provided,
|
|
74
|
+
# the name is used as the path
|
|
75
|
+
#
|
|
76
|
+
# For example, this call:
|
|
77
|
+
# custom_method :capture, http_verb: post
|
|
78
|
+
# adds a `capture` class method to the resource class that, when called,
|
|
79
|
+
# will send a POST request to `/v1/<object_name>/capture`.
|
|
80
|
+
def self.custom_method(name, http_verb:, http_path: nil)
|
|
81
|
+
Util.custom_method self, self, name, http_verb, http_path
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def resource_url
|
|
85
|
+
unless (id = self["id"])
|
|
86
|
+
raise InvalidRequestError.new(
|
|
87
|
+
"Could not determine which URL to request: #{self.class} instance " \
|
|
88
|
+
"has invalid ID: #{id.inspect}",
|
|
89
|
+
"id"
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
"#{self.class.resource_url}/#{CGI.escape(id)}"
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def refresh
|
|
96
|
+
if self.class.name.include?("Stripe::V2")
|
|
97
|
+
raise NotImplementedError,
|
|
98
|
+
"It is not possible to refresh v2 objects. Please retrieve the object using the StripeClient instead."
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
opts = RequestOptions.extract_opts_from_hash(@retrieve_opts || {})
|
|
102
|
+
@retrieve_opts = {} # Make sure to clear the retrieve options
|
|
103
|
+
@obj = @requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params,
|
|
104
|
+
opts: opts)
|
|
105
|
+
initialize_from(
|
|
106
|
+
@obj.last_response.data,
|
|
107
|
+
@obj.instance_variable_get(:@opts),
|
|
108
|
+
@obj.last_response,
|
|
109
|
+
api_mode: :v1,
|
|
110
|
+
requestor: @requestor
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Retrieve by passing id like `retrieve(id)`
|
|
115
|
+
# If passing parameters, pass a single map with parameters and the `id` as well.
|
|
116
|
+
# For example: retrieve({id: some_id, some_param: some_param_value})
|
|
117
|
+
def self.retrieve(id, opts = {})
|
|
118
|
+
if name.include?("Stripe::V2")
|
|
119
|
+
raise NotImplementedError,
|
|
120
|
+
"It is not possible to retrieve v2 objects on the resource. Please use the StripeClient instead."
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
instance = new(id)
|
|
124
|
+
# Explicitly send options for the retrieve call, to preserve custom headers
|
|
125
|
+
# This is so we can pass custom headers from this static function
|
|
126
|
+
# to the instance variable method call
|
|
127
|
+
# The custom headers will be cleaned up with the rest of the RequestOptions
|
|
128
|
+
instance.instance_variable_set(:@retrieve_opts, Util.normalize_opts(opts))
|
|
129
|
+
instance.refresh
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def request_stripe_object(method:, path:, params:, base_address: :api, opts: {})
|
|
133
|
+
APIRequestor.active_requestor.execute_request_initialize_from(method, path, base_address, self,
|
|
134
|
+
params: params, opts: opts)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
protected def request_stream(method:, path:, params:, base_address: :api, opts: {},
|
|
138
|
+
&read_body_chunk_block)
|
|
139
|
+
resp, = execute_resource_request_stream(
|
|
140
|
+
method, path, base_address, params, opts, &read_body_chunk_block
|
|
141
|
+
)
|
|
142
|
+
resp
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
# The base class for nested TestHelpers classes in resource objects.
|
|
5
|
+
# The APIResourceTestHelpers handles URL generation and custom method
|
|
6
|
+
# support for test-helper methods.
|
|
7
|
+
#
|
|
8
|
+
# class MyAPIResource < APIResource
|
|
9
|
+
# class TestHelpers < APIResourceTestHelpers
|
|
10
|
+
class APIResourceTestHelpers
|
|
11
|
+
include Stripe::APIOperations::Request
|
|
12
|
+
|
|
13
|
+
def initialize(resource)
|
|
14
|
+
@resource = resource
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.resource_class
|
|
18
|
+
nil
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# Adds a custom method to a test helper. This is used to add support for
|
|
22
|
+
# non-CRUDL API requests, e.g. capturing charges. custom_method takes the
|
|
23
|
+
# following parameters:
|
|
24
|
+
# - name: the name of the custom method to create (as a symbol)
|
|
25
|
+
# - http_verb: the HTTP verb for the API request (:get, :post, or :delete)
|
|
26
|
+
# - http_path: the path to append to the resource's URL. If not provided,
|
|
27
|
+
# the name is used as the path
|
|
28
|
+
#
|
|
29
|
+
# For example, this call:
|
|
30
|
+
# custom_method :capture, http_verb: post
|
|
31
|
+
# adds a `capture` class method to the resource class that, when called,
|
|
32
|
+
# will send a POST request to `/v1/<object_name>/capture`.
|
|
33
|
+
def self.custom_method(name, http_verb:, http_path: nil)
|
|
34
|
+
Util.custom_method resource_class, self, name, http_verb, http_path
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.resource_url
|
|
38
|
+
"/v1/test_helpers/" \
|
|
39
|
+
"#{resource_class.object_name.downcase.tr('.', '/')}s"
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def resource_url
|
|
43
|
+
unless (id = @resource["id"])
|
|
44
|
+
raise InvalidRequestError.new(
|
|
45
|
+
"Could not determine which URL to request: #{self.class} instance " \
|
|
46
|
+
"has invalid ID: #{id.inspect}",
|
|
47
|
+
"id"
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
"#{self.class.resource_url}/#{CGI.escape(id)}"
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
# Manages connections across multiple hosts which is useful because the
|
|
5
|
+
# library may connect to multiple hosts during a typical session (main API,
|
|
6
|
+
# Connect, Uploads). Ruby doesn't provide an easy way to make this happen
|
|
7
|
+
# easily, so this class is designed to track what we're connected to and
|
|
8
|
+
# manage the lifecycle of those connections.
|
|
9
|
+
#
|
|
10
|
+
# Note that this class in itself is *not* thread safe. We expect it to be
|
|
11
|
+
# instantiated once per thread.
|
|
12
|
+
class ConnectionManager
|
|
13
|
+
# Timestamp (in seconds procured from the system's monotonic clock)
|
|
14
|
+
# indicating when the connection manager last made a request. This is used
|
|
15
|
+
# by `APIRequestor` to determine whether a connection manager should be
|
|
16
|
+
# garbage collected or not.
|
|
17
|
+
attr_reader :last_used
|
|
18
|
+
attr_reader :config
|
|
19
|
+
|
|
20
|
+
def initialize(config = Stripe.config)
|
|
21
|
+
@config = config
|
|
22
|
+
@active_connections = {}
|
|
23
|
+
@last_used = Util.monotonic_time
|
|
24
|
+
|
|
25
|
+
# A connection manager may be accessed across threads as one thread makes
|
|
26
|
+
# requests on it while another is trying to clear it (either because it's
|
|
27
|
+
# trying to garbage collect the manager or trying to clear it because a
|
|
28
|
+
# configuration setting has changed). That's probably thread-safe already
|
|
29
|
+
# because of Ruby's GIL, but just in case the library's running on JRuby
|
|
30
|
+
# or the like, use a mutex to synchronize access in this connection
|
|
31
|
+
# manager.
|
|
32
|
+
@mutex = Mutex.new
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Finishes any active connections by closing their TCP connection and
|
|
36
|
+
# clears them from internal tracking.
|
|
37
|
+
def clear
|
|
38
|
+
@mutex.synchronize do
|
|
39
|
+
@active_connections.each_value(&:finish)
|
|
40
|
+
@active_connections = {}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Gets a connection for a given URI. This is for internal use only as it's
|
|
45
|
+
# subject to change (we've moved between HTTP client schemes in the past
|
|
46
|
+
# and may do it again).
|
|
47
|
+
#
|
|
48
|
+
# `uri` is expected to be a string.
|
|
49
|
+
def connection_for(uri)
|
|
50
|
+
@mutex.synchronize do
|
|
51
|
+
u = URI.parse(uri)
|
|
52
|
+
connection = @active_connections[[u.host, u.port]]
|
|
53
|
+
|
|
54
|
+
if connection.nil?
|
|
55
|
+
connection = create_connection(u)
|
|
56
|
+
connection.start
|
|
57
|
+
|
|
58
|
+
@active_connections[[u.host, u.port]] = connection
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
connection
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Executes an HTTP request to the given URI with the given method. Also
|
|
66
|
+
# allows a request body, headers, and query string to be specified.
|
|
67
|
+
def execute_request(method, uri, body: nil, headers: nil, query: nil,
|
|
68
|
+
&block)
|
|
69
|
+
# Perform some basic argument validation because it's easy to get
|
|
70
|
+
# confused between strings and hashes for things like body and query
|
|
71
|
+
# parameters.
|
|
72
|
+
raise ArgumentError, "method should be a symbol" \
|
|
73
|
+
unless method.is_a?(Symbol)
|
|
74
|
+
raise ArgumentError, "uri should be a string" \
|
|
75
|
+
unless uri.is_a?(String)
|
|
76
|
+
raise ArgumentError, "body should be a string" \
|
|
77
|
+
if body && !body.is_a?(String)
|
|
78
|
+
raise ArgumentError, "headers should be a hash" \
|
|
79
|
+
if headers && !headers.is_a?(Hash)
|
|
80
|
+
raise ArgumentError, "query should be a string" \
|
|
81
|
+
if query && !query.is_a?(String)
|
|
82
|
+
|
|
83
|
+
@last_used = Util.monotonic_time
|
|
84
|
+
|
|
85
|
+
connection = connection_for(uri)
|
|
86
|
+
|
|
87
|
+
u = URI.parse(uri)
|
|
88
|
+
path = if query
|
|
89
|
+
u.path + "?" + query
|
|
90
|
+
else
|
|
91
|
+
u.path
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
method_name = method.to_s.upcase
|
|
95
|
+
has_response_body = method_name != "HEAD"
|
|
96
|
+
request = Net::HTTPGenericRequest.new(
|
|
97
|
+
method_name,
|
|
98
|
+
(body ? true : false),
|
|
99
|
+
has_response_body,
|
|
100
|
+
path,
|
|
101
|
+
headers
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
Util.log_debug("ConnectionManager starting request",
|
|
105
|
+
method_name: method_name,
|
|
106
|
+
path: path,
|
|
107
|
+
process_id: Process.pid,
|
|
108
|
+
thread_object_id: Thread.current.object_id,
|
|
109
|
+
connection_manager_object_id: object_id,
|
|
110
|
+
connection_object_id: connection.object_id,
|
|
111
|
+
log_timestamp: Util.monotonic_time)
|
|
112
|
+
|
|
113
|
+
resp = @mutex.synchronize do
|
|
114
|
+
# The block parameter is special here. If a block is provided, the block
|
|
115
|
+
# is invoked with the Net::HTTPResponse. However, the body will not have
|
|
116
|
+
# been read yet in the block, and can be streamed by calling
|
|
117
|
+
# HTTPResponse#read_body.
|
|
118
|
+
connection.request(request, body, &block)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
Util.log_debug("ConnectionManager request complete",
|
|
122
|
+
method_name: method_name,
|
|
123
|
+
path: path,
|
|
124
|
+
process_id: Process.pid,
|
|
125
|
+
thread_object_id: Thread.current.object_id,
|
|
126
|
+
connection_manager_object_id: object_id,
|
|
127
|
+
connection_object_id: connection.object_id,
|
|
128
|
+
response_object_id: resp.object_id,
|
|
129
|
+
log_timestamp: Util.monotonic_time)
|
|
130
|
+
|
|
131
|
+
resp
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
#
|
|
135
|
+
# private
|
|
136
|
+
#
|
|
137
|
+
|
|
138
|
+
# `uri` should be a parsed `URI` object.
|
|
139
|
+
private def create_connection(uri)
|
|
140
|
+
# These all come back as `nil` if no proxy is configured.
|
|
141
|
+
proxy_host, proxy_port, proxy_user, proxy_pass = proxy_parts
|
|
142
|
+
|
|
143
|
+
connection = Net::HTTP.new(uri.host, uri.port,
|
|
144
|
+
proxy_host, proxy_port,
|
|
145
|
+
proxy_user, proxy_pass)
|
|
146
|
+
|
|
147
|
+
# Time in seconds within which Net::HTTP will try to reuse an already
|
|
148
|
+
# open connection when issuing a new operation. Outside this window, Ruby
|
|
149
|
+
# will transparently close and re-open the connection without trying to
|
|
150
|
+
# reuse it.
|
|
151
|
+
#
|
|
152
|
+
# Ruby's default of 2 seconds is almost certainly too short. Here I've
|
|
153
|
+
# reused Go's default for `DefaultTransport`.
|
|
154
|
+
connection.keep_alive_timeout = 30
|
|
155
|
+
|
|
156
|
+
connection.open_timeout = config.open_timeout
|
|
157
|
+
connection.read_timeout = config.read_timeout
|
|
158
|
+
connection.write_timeout = config.write_timeout if connection.respond_to?(:write_timeout=)
|
|
159
|
+
|
|
160
|
+
connection.use_ssl = uri.scheme == "https"
|
|
161
|
+
|
|
162
|
+
if config.verify_ssl_certs
|
|
163
|
+
connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
164
|
+
connection.cert_store = config.ca_store
|
|
165
|
+
else
|
|
166
|
+
connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
167
|
+
warn_ssl_verify_none
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
connection
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# `Net::HTTP` somewhat awkwardly requires each component of a proxy URI
|
|
174
|
+
# (host, port, etc.) rather than the URI itself. This method simply parses
|
|
175
|
+
# out those pieces to make passing them into a new connection a little less
|
|
176
|
+
# ugly.
|
|
177
|
+
private def proxy_parts
|
|
178
|
+
if config.proxy.nil?
|
|
179
|
+
[nil, nil, nil, nil]
|
|
180
|
+
else
|
|
181
|
+
u = URI.parse(config.proxy)
|
|
182
|
+
[u.host, u.port, u.user, u.password]
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
private def warn_ssl_verify_none
|
|
187
|
+
return if @verify_ssl_warned
|
|
188
|
+
|
|
189
|
+
@verify_ssl_warned = true
|
|
190
|
+
warn("WARNING: Running without SSL cert verification. " \
|
|
191
|
+
"You should never do this in production. " \
|
|
192
|
+
"Execute `Stripe.verify_ssl_certs = true` to enable " \
|
|
193
|
+
"verification.")
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
# Represents an error object as returned by the API.
|
|
5
|
+
#
|
|
6
|
+
# @see https://stripe.com/docs/api/errors
|
|
7
|
+
class ErrorObject < StripeObject
|
|
8
|
+
# Unlike other objects, we explicitly declare getter methods here. This
|
|
9
|
+
# is because the API doesn't return `null` values for fields on this
|
|
10
|
+
# object, rather the fields are omitted entirely. Not declaring the getter
|
|
11
|
+
# methods would cause users to run into `NoMethodError` exceptions and
|
|
12
|
+
# get in the way of generic error handling.
|
|
13
|
+
|
|
14
|
+
# For card errors, the ID of the failed charge.
|
|
15
|
+
def charge
|
|
16
|
+
@values[:charge]
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# For some errors that could be handled programmatically, a short string
|
|
20
|
+
# indicating the error code reported.
|
|
21
|
+
def code
|
|
22
|
+
@values[:code]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# For card errors resulting from a card issuer decline, a short string
|
|
26
|
+
# indicating the card issuer's reason for the decline if they provide one.
|
|
27
|
+
def decline_code
|
|
28
|
+
@values[:decline_code]
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# A URL to more information about the error code reported.
|
|
32
|
+
def doc_url
|
|
33
|
+
@values[:doc_url]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# A human-readable message providing more details about the error. For card
|
|
37
|
+
# errors, these messages can be shown to your users.
|
|
38
|
+
def message
|
|
39
|
+
@values[:message]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# If the error is parameter-specific, the parameter related to the error.
|
|
43
|
+
# For example, you can use this to display a message near the correct form
|
|
44
|
+
# field.
|
|
45
|
+
def param
|
|
46
|
+
@values[:param]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# The PaymentIntent object for errors returned on a request involving a
|
|
50
|
+
# PaymentIntent.
|
|
51
|
+
def payment_intent
|
|
52
|
+
@values[:payment_intent]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# The PaymentMethod object for errors returned on a request involving a
|
|
56
|
+
# PaymentMethod.
|
|
57
|
+
def payment_method
|
|
58
|
+
@values[:payment_method]
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# The SetupIntent object for errors returned on a request involving a
|
|
62
|
+
# SetupIntent.
|
|
63
|
+
def setup_intent
|
|
64
|
+
@values[:setup_intent]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# The source object for errors returned on a request involving a source.
|
|
68
|
+
def source
|
|
69
|
+
@values[:source]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# The type of error returned. One of `api_error`, `card_error`,
|
|
73
|
+
# `idempotency_error`, or `invalid_request_error`.
|
|
74
|
+
def type
|
|
75
|
+
@values[:type]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Represents on OAuth error returned by the OAuth API.
|
|
80
|
+
#
|
|
81
|
+
# @see https://stripe.com/docs/connect/oauth-reference#post-token-errors
|
|
82
|
+
class OAuthErrorObject < StripeObject
|
|
83
|
+
# A unique error code per error type.
|
|
84
|
+
def error
|
|
85
|
+
@values[:error]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# A human readable description of the error.
|
|
89
|
+
def error_description
|
|
90
|
+
@values[:error_description]
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
# StripeError is the base error from which all other more specific Stripe
|
|
5
|
+
# errors derive.
|
|
6
|
+
class StripeError < StandardError
|
|
7
|
+
attr_reader :message, :code, :error, :http_body, :http_headers, :http_status, :json_body, :request_id
|
|
8
|
+
|
|
9
|
+
# Response contains a StripeResponse object that has some basic information
|
|
10
|
+
# about the response that conveyed the error.
|
|
11
|
+
attr_accessor :response # equivalent to #data
|
|
12
|
+
|
|
13
|
+
# Initializes a StripeError.
|
|
14
|
+
def initialize(message = nil, http_status: nil, http_body: nil, # rubocop:todo Lint/MissingSuper
|
|
15
|
+
json_body: nil, http_headers: nil, code: nil)
|
|
16
|
+
@message = message
|
|
17
|
+
@http_status = http_status
|
|
18
|
+
@http_body = http_body
|
|
19
|
+
@http_headers = http_headers || {}
|
|
20
|
+
@idempotent_replayed = @http_headers["idempotent-replayed"] == "true"
|
|
21
|
+
@json_body = json_body
|
|
22
|
+
@code = code
|
|
23
|
+
@request_id = @http_headers["request-id"]
|
|
24
|
+
@error = construct_error_object
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def construct_error_object
|
|
28
|
+
return nil if @json_body.nil? || !@json_body.key?(:error)
|
|
29
|
+
|
|
30
|
+
# ErrorObject is shared between v1 and v2, so use original object_classes to find
|
|
31
|
+
ErrorObject.construct_from(@json_body[:error], {}, nil, :v1)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def to_s
|
|
35
|
+
status_string = @http_status.nil? ? "" : "(Status #{@http_status}) "
|
|
36
|
+
id_string = @request_id.nil? ? "" : "(Request #{@request_id}) "
|
|
37
|
+
"#{status_string}#{id_string}#{@message}"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# AuthenticationError is raised when invalid credentials are used to connect
|
|
42
|
+
# to Stripe's servers.
|
|
43
|
+
class AuthenticationError < StripeError
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# APIConnectionError is raised in the event that the SDK can't connect to
|
|
47
|
+
# Stripe's servers. That can be for a variety of different reasons from a
|
|
48
|
+
# downed network to a bad TLS certificate.
|
|
49
|
+
class APIConnectionError < StripeError
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# APIError is a generic error that may be raised in cases where none of the
|
|
53
|
+
# other named errors cover the problem. It could also be raised in the case
|
|
54
|
+
# that a new error has been introduced in the API, but this version of the
|
|
55
|
+
# Ruby SDK doesn't know how to handle it.
|
|
56
|
+
class APIError < StripeError
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# CardError is raised when a user enters a card that can't be charged for
|
|
60
|
+
# some reason.
|
|
61
|
+
class CardError < StripeError
|
|
62
|
+
attr_reader :param
|
|
63
|
+
|
|
64
|
+
def initialize(message, param, code: nil, http_status: nil, http_body: nil,
|
|
65
|
+
json_body: nil, http_headers: nil)
|
|
66
|
+
super(message, http_status: http_status, http_body: http_body,
|
|
67
|
+
json_body: json_body, http_headers: http_headers,
|
|
68
|
+
code: code)
|
|
69
|
+
@param = param
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# IdempotencyError is raised in cases where an idempotency key was used
|
|
74
|
+
# improperly.
|
|
75
|
+
class IdempotencyError < StripeError
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# InvalidRequestError is raised when a request is initiated with invalid
|
|
79
|
+
# parameters.
|
|
80
|
+
class InvalidRequestError < StripeError
|
|
81
|
+
attr_accessor :param
|
|
82
|
+
|
|
83
|
+
def initialize(message, param, http_status: nil, http_body: nil,
|
|
84
|
+
json_body: nil, http_headers: nil, code: nil)
|
|
85
|
+
super(message, http_status: http_status, http_body: http_body,
|
|
86
|
+
json_body: json_body, http_headers: http_headers,
|
|
87
|
+
code: code)
|
|
88
|
+
@param = param
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# PermissionError is raised in cases where access was attempted on a resource
|
|
93
|
+
# that wasn't allowed.
|
|
94
|
+
class PermissionError < StripeError
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# RateLimitError is raised in cases where an account is putting too much load
|
|
98
|
+
# on Stripe's API servers (usually by performing too many requests). Please
|
|
99
|
+
# back off on request rate.
|
|
100
|
+
class RateLimitError < StripeError
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# SignatureVerificationError is raised when the signature verification for a
|
|
104
|
+
# webhook fails
|
|
105
|
+
class SignatureVerificationError < StripeError
|
|
106
|
+
attr_accessor :sig_header
|
|
107
|
+
|
|
108
|
+
def initialize(message, sig_header, http_body: nil)
|
|
109
|
+
super(message, http_body: http_body)
|
|
110
|
+
@sig_header = sig_header
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
module OAuth
|
|
115
|
+
# OAuthError is raised when the OAuth API returns an error.
|
|
116
|
+
class OAuthError < StripeError
|
|
117
|
+
def initialize(code, description, http_status: nil, http_body: nil,
|
|
118
|
+
json_body: nil, http_headers: nil)
|
|
119
|
+
super(description, http_status: http_status, http_body: http_body,
|
|
120
|
+
json_body: json_body, http_headers: http_headers,
|
|
121
|
+
code: code)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
def construct_error_object
|
|
125
|
+
return nil if @json_body.nil?
|
|
126
|
+
|
|
127
|
+
OAuthErrorObject.construct_from(@json_body, {}, nil, :v1)
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# InvalidClientError is raised when the client doesn't belong to you, or
|
|
132
|
+
# the API key mode (live or test) doesn't match the client mode. Or the
|
|
133
|
+
# stripe_user_id doesn't exist or isn't connected to your application.
|
|
134
|
+
class InvalidClientError < OAuthError
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# InvalidGrantError is raised when a specified code doesn't exist, is
|
|
138
|
+
# expired, has been used, or doesn't belong to you; a refresh token doesn't
|
|
139
|
+
# exist, or doesn't belong to you; or if an API key's mode (live or test)
|
|
140
|
+
# doesn't match the mode of a code or refresh token.
|
|
141
|
+
class InvalidGrantError < OAuthError
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# InvalidRequestError is raised when a code, refresh token, or grant type
|
|
145
|
+
# parameter is not provided, but was required.
|
|
146
|
+
class InvalidRequestError < OAuthError
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# InvalidScopeError is raised when an invalid scope parameter is provided.
|
|
150
|
+
class InvalidScopeError < OAuthError
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# UnsupportedGrantTypeError is raised when an unuspported grant type
|
|
154
|
+
# parameter is specified.
|
|
155
|
+
class UnsupportedGrantTypeError < OAuthError
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# UnsupportedResponseTypeError is raised when an unsupported response type
|
|
159
|
+
# parameter is specified.
|
|
160
|
+
class UnsupportedResponseTypeError < OAuthError
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# class definitions: The beginning of the section generated from our OpenAPI spec
|
|
165
|
+
class RateLimitError < StripeError
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
class TemporarySessionExpiredError < StripeError
|
|
169
|
+
end
|
|
170
|
+
# class definitions: The end of the section generated from our OpenAPI spec
|
|
171
|
+
end
|